pub struct ClientRpcMcp<'a> { /* private fields */ }Expand description
mcp.* RPCs.
Implementations§
Source§impl<'a> ClientRpcMcp<'a>
impl<'a> ClientRpcMcp<'a>
Sourcepub fn config(&self) -> ClientRpcMcpConfig<'a>
pub fn config(&self) -> ClientRpcMcpConfig<'a>
mcp.config.* sub-namespace.
Sourcepub async fn discover(
&self,
params: McpDiscoverRequest,
) -> Result<McpDiscoverResult, Error>
pub async fn discover( &self, params: McpDiscoverRequest, ) -> Result<McpDiscoverResult, Error>
Discovers MCP servers from user, workspace, plugin, and builtin sources.
Wire method: mcp.discover.
§Parameters
params- Optional working directory used as context for MCP server discovery.
§Returns
MCP servers discovered from user, workspace, plugin, and built-in sources.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn plan_install(
&self,
params: McpPlanInstallRequest,
) -> Result<McpPlanInstallResult, Error>
pub async fn plan_install( &self, params: McpPlanInstallRequest, ) -> Result<McpPlanInstallResult, Error>
Requests a side-effect-free MCP install plan from a catalog candidate handle or a caller-supplied card. This host-implemented server method is available through SDK/TUI hosts; standalone and C-ABI runtimes whose host does not implement server-method dispatch return JSON-RPC MethodNotFound. A runtime with planning available returns a normalised plan and opaque single-use plan handle; a runtime without it returns the typed planning-unavailable result. A completed plan reports resource identity, provenance, eligible transport choices, the user-scope target, required typed values and secret placeholders, the policy result, the configuration changes installing would make, and whether a reload would be needed. Planning never writes configuration, stores a secret, or reloads MCP servers, so abandoning a plan needs no call and leaves nothing behind.
Wire method: mcp.planInstall.
§Parameters
params- A side-effect-free request for an MCP install plan. Computing a plan never writes configuration, stores a secret, or reloads MCP servers.
§Returns
Outcome of an mcp.planInstall call: either a normalised plan, or one typed refusal. Nothing is written in either case.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for ClientRpcMcp<'a>
impl<'a> Clone for ClientRpcMcp<'a>
Source§fn clone(&self) -> ClientRpcMcp<'a>
fn clone(&self) -> ClientRpcMcp<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more