pub struct McpServerSpec {
pub name: String,
pub transport: McpTransportKind,
pub command: Option<String>,
pub args: Vec<String>,
pub env: Vec<(String, String)>,
pub url: Option<String>,
pub headers: Vec<(String, String)>,
pub token_env: Option<String>,
pub token: Option<String>,
pub auth: Option<String>,
pub auth_header: Option<String>,
}Expand description
Everything a harness needs to launch/connect an MCP server itself — the
provision path (MCP_SKILLS.md §6). A harness with a node’s mcp_servers
runs the tools natively rather than Rinne driving the host loop.
The token is the resolved secret, held in memory only: a provisioner must
reference it via environment expansion in the config it writes, never inline
it on disk (§9, §12).
Fields§
§name: String§transport: McpTransportKind§command: Option<String>§args: Vec<String>§env: Vec<(String, String)>Non-secret environment passed to a stdio server.
url: Option<String>§headers: Vec<(String, String)>Non-secret headers for an http server.
token_env: Option<String>The environment variable the server’s token is referenced through (the
var a stdio server reads, or the one an http Authorization header
expands). None when the server needs no token.
token: Option<String>The resolved token value. In memory only — never serialized to a config
file by a provisioner; injected into the harness subprocess environment
and referenced via token_env.
auth: Option<String>How the token is presented (MCP_SKILLS.md §10): bearer (default HTTP
Authorization: Bearer), apikey (a custom HTTP header named by
auth_header), or env (a stdio env var named by auth_header).
auth_header: Option<String>The header/env-var name for apikey/env auth.