pub struct McpServerState {Show 19 fields
pub name: String,
pub source: ToolSource,
pub owner: String,
pub command: String,
pub transport: Transport,
pub program: String,
pub args: Vec<String>,
pub url: Option<String>,
pub policy: Policy,
pub prefix: String,
pub timeout_secs: u64,
pub disabled: bool,
pub tools: usize,
pub error: Option<String>,
pub token_env: Option<String>,
pub token: TokenSource,
pub protocol: Option<String>,
pub server_name: Option<String>,
pub server_version: Option<String>,
}Expand description
What mcp list prints for one server: the declaration, and what it actually did.
Fields§
§name: String§source: ToolSource§owner: String§command: Stringcommand arg arg, or http <url> — the one line a reader needs to recognise the entry.
transport: TransportThe entry’s own fields, for a surface that edits rather than reads it (#517): a form
that opens with what the file says cannot be built from the display line above.
program: String§args: Vec<String>§url: Option<String>§policy: Policy§prefix: String§timeout_secs: u64§disabled: bool§tools: usizeTools the server listed. Zero with an error is a server that did not start; zero without
one is a server that started and offers nothing.
error: Option<String>§token_env: Option<String>The variable token_env names, when the entry asks for a bearer token. A name, never a
value; a listing prints it beside the word for whether it resolves (#517).
token: TokenSourceWhether that variable resolves now — none, env, .env or unset — so a server that
cannot authenticate says so where it is listed, not only when somebody presses test.
protocol: Option<String>What the server answered initialize with: the protocol version it speaks, and its own
name and version. None when it never got that far.
server_name: Option<String>§server_version: Option<String>