Expand description
MCP server exposing tool commands as Model Context Protocol tools.
A thin layer over the official rmcp SDK. Every
rtb_app::command::Command in rtb_app::command::BUILTIN_COMMANDS
that returns true from Command::mcp_exposed() is registered as
an MCP tool on server start. The tool’s tools/call invocation
runs the underlying Command::run against a clone of the host
App.
§Quick start
use rtb_app::app::App;
use rtb_mcp::{McpServer, Transport};
McpServer::new(app, Transport::Stdio).serve().awaitSee docs/development/specs/2026-05-01-rtb-mcp-v0.1.md for the
authoritative contract.
Structs§
- McpCmd
- The
mcpsubcommand. - McpServer
- MCP server that exposes every
mcp_exposedCommandas an MCP tool over the suppliedTransport.
Enums§
- McpError
- Failure modes for the
crate::McpServerruntime. - Transport
- MCP transport selection.
Type Aliases§
- Result
- Convenience alias.