Using with Cursor
Cursor reads MCP servers from ~/.cursor/mcp.json (global scope, shared
across all Cursor projects). codehub setup writes the entry for you.
Wire the MCP server
Section titled “Wire the MCP server”codehub setup --editors cursorThe writer merges a codehub entry into the existing mcpServers
object without touching any other servers you may already have wired.
Prerequisite: codehub must be on your PATH — run
mise run cli:link from a checkout, or mise run cli:install-global
to install the packed tarball. See
Install.
The entry has the same shape as Claude Code’s:
{ "mcpServers": { "codehub": { "command": "codehub", "args": ["mcp"], "env": {} } }}Restart Cursor (or reload the window) after the first write so it picks up the new server. Cursor spawns the server over stdio and keeps it alive for the session.
Using the tools
Section titled “Using the tools”Open Cursor’s chat, select a model that supports tool use, and ask
questions like “What is the blast radius of validateUser?” or “Find
me everything related to the auth token refresh flow.” Cursor will
call the codehub MCP tools directly and return structured results.
See MCP tools for the full catalogue of 29 tools.
Multi-editor setup
Section titled “Multi-editor setup”--editors accepts any comma-separated subset of
claude-code,cursor,codex,windsurf,opencode. The default is all five.
codehub setup --editors cursor,claude-codeReverting
Section titled “Reverting”codehub setup --editors cursor --undo--undo removes only the codehub entry from ~/.cursor/mcp.json.
Other MCP servers are left alone.