Currently agents interact with Wit by shelling out to CLI commands. An MCP (Model Context Protocol) server would expose Wit's JSON-RPC API as native tools that AI agents can call directly.
What this enables:
- Agents get
wit_declare, wit_lock, wit_status, wit_release as native tools
- Tool descriptions tell the agent when to use each tool automatically
- No need for CLAUDE.md instructions — the tool metadata drives behavior
- Works with any MCP-compatible client (Claude Code, Cursor, etc.)
Implementation:
- Thin wrapper that translates MCP tool calls to Wit's existing JSON-RPC API
- Each of the 12 RPC methods maps 1:1 to an MCP tool
- Server runs alongside the daemon or as a separate process
See docs/PROTOCOL.md and docs/openrpc.json for the full API spec.
Currently agents interact with Wit by shelling out to CLI commands. An MCP (Model Context Protocol) server would expose Wit's JSON-RPC API as native tools that AI agents can call directly.
What this enables:
wit_declare,wit_lock,wit_status,wit_releaseas native toolsImplementation:
See
docs/PROTOCOL.mdanddocs/openrpc.jsonfor the full API spec.