briefcase.mcp
pip install briefcase-ai[mcp]Exposes safe SDK operations to MCP-capable clients (Cursor, Claude Code, Codex,
Replit). Run with the briefcase-mcp console script or python -m briefcase.mcp.
The mcp extra installs mcp>=1.2,<2. mcp 2.0 removed mcp.server.fastmcp, which this module is built on.
build_server(), main()
from briefcase.mcp import build_server, main
server = build_server() # returns a FastMCP server# main() is the entry point used by the briefcase-mcp console scriptbuild_server() -> FastMCPmain() -> NoneTools exposed to MCP clients:
sanitize_text(text) -> {"sanitized", "redactions"} # wraps briefcase.sanitizeestimate_cost(model, input_tokens, output_tokens) # wraps briefcase.cost -> {"model", "input_cost", "output_cost", "total_cost"}analyze_drift(outputs: list[str]) # wraps briefcase.drift -> {"consistency_score", "agreement_rate", "consensus_output", "status"}how_to(topic="") -> str # usage guidanceThe server also exposes a briefcase://llms-full.txt resource with the full
usage guide.