rig-mcp
Model Context Protocol bridge for
rig-compose tool registries,
backed by the official rmcp SDK.
Install
[]
= "0.1"
= "0.1"
What you get
McpTransport— trait abstracting client transports.LoopbackTransport— in-process round-trip against a localToolRegistry. Useful for tests and embedding.StdioTransport::spawn/StdioClient— newline-framed JSON-RPC over a child process's stdio.serve_stdio()— exposes anyToolRegistryas an MCP server endpoint.McpTool— adapts a transport into arig_compose::Tool, so the same skill chain works against local and remote tools indistinguishably.
All spec-level concerns (JSON-RPC framing, capability handshakes,
protocol-version negotiation) are delegated to rmcp; this crate keeps the
adapter surface small.
Rust version
The crate targets Rust 1.88 (edition 2024). MSRV bumps follow the
Rig contributing policy
and ship as a feat!: change.
License
Dual-licensed under either of:
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.