tiny.acp.McpServer
Defined in client.
A caller gives the agent extra tools for the session, which the agent gets by starting the listed tool servers.
API (4)
Fields and members
Public fields and members.
Source
Source: lib/acp/src/client.zig:237
zig
/// A caller gives the agent extra tools for the session, which the agent gets by starting the/// listed tool servers. The structure describes one MCP (Model Context Protocol) server the agent/// is asked to start, given as a name, a command, arguments and environment. `start` sends each one/// in the `mcpServers` list of `session/new` as an object with `name`, `command`, `args` and `env`./// The package test writes a server that talks over standard input and output.pub const McpServer = struct { /// The server's name, sent as `name`. name: []const u8, /// The program the agent runs for this server, sent as `command`. command: []const u8, /// The server's arguments, sent as the `args` list. The field defaults to none. args: []const []const u8 = &.{}, /// Environment variables for the server, sent as the `env` list. The field defaults to none. env: []const EnvVariable = &.{},};Source: lib/acp/src/root.zig:70
zig
pub const McpServer = client.McpServer;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 4 |
| Version | 26.7.0 |
| Revision | daab053ee433 |