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 Server exposing every registered cursus tool.

The server’s list_tools is generated from the registry, and call_tool routes straight through cursus.mcp.registry.call_tool(), so the server and in-process callers share one code path and one result contract.

main()[source]

Entry point: run the cursus MCP server over stdio.