rig-mcp 0.1.1

Model Context Protocol bridge for rig-compose tool registries. Wraps the official `rmcp` SDK with rig-compose's transport-agnostic Tool surface.
Documentation

rig-mcp

CI Crates.io docs.rs License: MIT OR Apache-2.0 MSRV

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

Install

[dependencies]
rig-compose = "0.1"
rig-mcp     = "0.1"

What you get

  • McpTransport — trait abstracting client transports.
  • LoopbackTransport — in-process round-trip against a local ToolRegistry. Useful for tests and embedding.
  • StdioTransport::spawn / StdioClient — newline-framed JSON-RPC over a child process's stdio.
  • serve_stdio() — exposes any ToolRegistry as an MCP server endpoint.
  • McpTool — adapts a transport into a rig_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:

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.