bankai/mcp
G11 — MCP (Model Context Protocol) stdio server. It shares Bankai’s daemon boundary for task operations; it never invokes JSONL-backed task handlers.
Transport: newline-delimited JSON-RPC over stdio (the MCP spec’s only stdio framing — “Messages are delimited by newlines, and MUST NOT contain embedded newlines”). Each tools/call wraps the daemon’s existing {“ok”}/{“error”} envelope as MCP text content.
This is the Hickey-compatible “compose don’t build” path: mcp_toolkit exists on Hex but hard-depends on Mist (the web-framework weight aarondb was dropped for), so the stdio path reuses Bankai’s daemon protocol instead.
Values
pub fn handle_message(workspace: String, line: String) -> String
Pure dispatch over one JSON-RPC message line — pub so the protocol layer is testable without stdio. Returns “” when no response is owed (notification).