Skip to main content

Module mcp_projection

Module mcp_projection 

Source
Expand description

Projection of gateway routes into concrete rmcp::model types.

super::mcp_routes returns loose route/descriptor structs — reused directly from soma-mcp-proxy (GatewayToolRoute etc. are type aliases for soma_mcp_proxy::Mcp*Route). A caller that wants to hand these routes to its own inbound MCP clients — rather than just tracking route names — needs real rmcp::model objects. soma-mcp-proxy already owns that exact conversion (rmcp_tool_from_route and friends, itself built on soma-mcp-server’s generic descriptor projection), so this module delegates to it instead of re-deriving the conversion, keeping a single owner for “route struct -> rmcp::model type” and keeping the gateway off rmcp server-side types.