MCP Server Setup
Set up the Traverse MCP stdio server so AI agents can discover and call your governed capabilities as tools.
Before you start
You need three things before starting the MCP server.
- Rust installed (
rustc --versionshould print 1.94 or later) - The Traverse repo cloned locally
- A bundle built and ready — run the quickstart first if you have not
Start the MCP server
The MCP server reads from stdin and writes to stdout. It does not bind a port. Run it with cargo run during development.
The server stays running and processes one JSON-RPC message per line. In production you hand the binary path to your MCP client and let the client manage the process.
Configure your MCP client
Most MCP clients take a JSON config that maps a server name to a command. Point yours at the compiled traverse-mcp binary.
Replace /path/to/traverse with the absolute path to your local repo. The binary is at target/debug/traverse-mcp after a dev build, or target/release/traverse-mcp after a release build.
Test with tools/list
Send a tools/list request to see all capabilities the server exposes. You can pipe it directly to test without an MCP client.
Execute a capability via MCP
Use tools/call to invoke a capability. Pass the tool name and a JSON arguments object matching the input schema.
Understanding the response
Every MCP response from Traverse includes a standard content block for the MCP client, plus a _traverse object with execution metadata.
completed or error. If error, an error field is also present with the reason and failing state.Connect to Claude Desktop or other MCP clients
Claude Desktop uses a claude_desktop_config.json file. The pattern is the same as the generic config above. Add a traverse entry under mcpServers.
Restart Claude Desktop after editing the config. The Traverse capabilities will appear in the tools list. You can ask Claude to use them by name or just describe the goal in natural language.