Description
Add an MCP (Model Context Protocol) server that exposes the KB as read-only tools for AI agents. Any MCP-compatible client (Claude Code, Cursor, Windsurf) can connect and query entities, ask questions, get gap reports, and browse the knowledge graph. The FastAPI endpoints (/ask, /stats, /health) already exist — this wraps them in MCP protocol.
Acceptance Criteria
Out of Scope
- MCP write tools (separate P1 issue)
- Authentication/authorization
- Multi-block simultaneous serving
Description
Add an MCP (Model Context Protocol) server that exposes the KB as read-only tools for AI agents. Any MCP-compatible client (Claude Code, Cursor, Windsurf) can connect and query entities, ask questions, get gap reports, and browse the knowledge graph. The FastAPI endpoints (
/ask,/stats,/health) already exist — this wraps them in MCP protocol.Acceptance Criteria
cb mcp-serveor as part ofcb serve --mcpquery_kb(question)— ask a natural language question, get grounded answer with citationsget_entity(type, id)— retrieve a specific entity by type and IDlist_entities(type?)— list entities, optionally filtered by typeget_gaps()— return known gaps (MISSING + INCOMPLETE items from last eval)get_stats()— return KB statistics (entity counts by type, coverage scores).mcp.jsonor~/.claude.jsonfor auto-discoveryOut of Scope