cloudllm_mcp
cloudllm_mcp is the published package name for the standalone Rust crate
that exposes the mcp library target. Code can still import it as mcp.
mcp is a standalone Rust crate containing reusable MCP-oriented tool
protocol primitives, an HTTP client/server runtime, and supporting utilities.
It exists so multiple projects in this repository can share the same MCP foundation without creating circular dependencies.
What It Provides
- tool protocol primitives:
ToolProtocolToolMetadataToolParameterToolResultToolRegistry
- MCP events:
McpEventMcpEventHandler
- MCP runtime:
UnifiedMcpServerMCPServerBuilderMcpClientProtocol
- server utilities:
HttpServerAdapterHttpServerConfigHttpServerInstanceIpFilterAuthConfig
- streamable HTTP transport:
StreamableHttpConfigstreamable_http_routerstreamable_http_router_with_sse
- SSE (Server-Sent Events) support:
SseBroadcaster— multi-subscriber broadcast channel for SSE eventsSseEventHandler— bridgesMcpEventlifecycle events into the SSE streamSseMessage— typed SSE message with optional event name and JSON data- GET endpoint returns
text/event-streamwhen a broadcaster is attached - POST requests automatically broadcast JSON-RPC results/errors as SSE events
Build
Build with HTTP server support:
Test
Intended Use
cloudllmdepends onmcpfor its shared MCP protocol/runtime layermentisdbdepends onmcpfor its MCP-facing tool schema and result types
This crate is transport/runtime infrastructure, not a complete agent framework.