Skip to main content

Crate rtb_mcp

Crate rtb_mcp 

Source
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().await

See docs/development/specs/2026-05-01-rtb-mcp-v0.1.md for the authoritative contract.

Structs§

McpCmd
The mcp subcommand.
McpServer
MCP server that exposes every mcp_exposed Command as an MCP tool over the supplied Transport.

Enums§

McpError
Failure modes for the crate::McpServer runtime.
Transport
MCP transport selection.

Type Aliases§

Result
Convenience alias.