Skip to main content

Crate rig_mcp

Crate rig_mcp 

Source
Expand description

§rig-mcp

Model Context Protocol bridge for rig-compose tool registries, backed by the official rmcp SDK.

Skills cannot tell an McpTool apart from a rig_compose::LocalTool — both implement the same Tool trait. The same registry can be exposed as an MCP server via serve_stdio and consumed by another process via StdioTransport::spawn, with all spec-level concerns (JSON-RPC framing, capability handshakes, protocol-version negotiation) delegated to rmcp.

Re-exports§

pub use stdio::StdioTransport;
pub use stdio::serve_stdio;
pub use transport::LoopbackTransport;
pub use transport::McpTool;
pub use transport::McpTransport;

Modules§

stdio
Stdio MCP transport, backed by the official rmcp SDK.
transport
Model Context Protocol transport abstraction.