Skip to main content

Module exec

Module exec 

Source
Expand description

Execution abstraction over the MCP client.

Plans take a &mut impl McpExec rather than the concrete crate::client::Client so they can be unit-tested with MockClient without spawning a child process.

Structs§

MockClient
In-memory MCP client used for plan unit tests. Each tool is registered with a closure that maps the call arguments to a CallOutcome. The mock is fully synchronous internally; concurrency is provided by tokio.

Traits§

McpExec
Minimum surface a plan needs from an MCP client.