cursus.mcp.server¶
Optional MCP server adapter for the cursus toolset.
This is a thin adapter: it mounts the framework-neutral tools from
cursus.mcp.registry onto an actual Model Context Protocol server. The official
mcp Python SDK is an optional dependency, imported lazily here so that importing
cursus.mcp (the tool functions, schemas, and registry) never requires the SDK.
Run as a stdio MCP server:
python -m cursus.mcp.server
If the SDK is not installed, this raises a clear, actionable error pointing at the
extra to install. Everything else in cursus.mcp works without it.
- build_server(name='cursus')[source]¶
Build an MCP
Serverexposing every registered cursus tool.The server’s
list_toolsis generated from the registry, andcall_toolroutes straight throughcursus.mcp.registry.call_tool(), so the server and in-process callers share one code path and one result contract.