Skip to main content

Module mcp_handler

Module mcp_handler 

Source
Expand description

MCP Server Handler — bridges rmcp’s ServerHandler to Roboticus’s ToolRegistry.

This module implements the server half of the MCP gateway. External MCP clients (Claude Desktop, Cursor, VS Code, etc.) connect via SSE/HTTP, discover Roboticus’s tools through tools/list, and invoke them through tools/call.

All tool calls from MCP clients run with InputAuthority::External and pass through the policy engine — Forbidden tools are never exposed, and Dangerous tools require explicit configuration.

Structs§

McpToolContext
Minimal context needed to construct a ToolContext for MCP-originated calls.
RoboticusMcpHandler
Bridges Roboticus’s ToolRegistry to the MCP protocol so external clients can discover and invoke tools over SSE/HTTP.