rig-rmcp 0.43.0

MCP (Model Context Protocol) tool support for Rig via the rmcp SDK: MCP tools as rig-core dynamic tools, plus a client handler that keeps any ManagedToolSink (rig-agent's tool server, for example) in sync with the server's tool list.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! In-process rmcp suites for the handler, the `DynamicTool` adapter (including
//! `_meta` passthrough and result preservation through the per-call
//! `ToolContext`), and the result mapping. rig-agent is a dev-dependency only:
//! its tool server is the reference `ManagedToolSink`/runtime these tests
//! register into.

#[cfg(test)]
mod dispatch;

#[cfg(test)]
mod migrated_tests;

// Compile-time thread-safety contract: rmcp's `ClientHandler` requires it, and
// rig-agent's `ToolServerHandle` is the sink the docs recommend.
const _: fn() = || {
    fn assert_send_sync_static<T: Send + Sync + 'static>() {}
    assert_send_sync_static::<crate::McpClientHandler<rig_agent::tool::server::ToolServerHandle>>();
};