Local development
There are two ways to give your local agent access to Agent Handler tools:
- Merge CLI (recommended) - two commands plus a one-line setup that wires the CLI into your agent’s config. Works with Claude Code, Cursor, and any agent that reads
AGENTS.md(Codex, Aider, etc.). - MCP server - point your IDE’s MCP config directly at Agent Handler’s hosted MCP URL. Use this for IDEs without a
merge setuptarget (Windsurf, VS Code) or if you’d rather configure MCP yourself.
Option 1 - Merge CLI (recommended)
Connect the CLI to your agent
merge setup writes a short usage guide into your agent’s instruction file so it knows when to call merge search-tools and merge execute-tool. Pick your agent:
Claude Code
Cursor
Codex / AGENTS.md
Writes a ## Merge CLI section to CLAUDE.md and adds Bash(merge *) to .claude/settings.json so Claude Code can run the CLI without prompting.
Run from the root of the project where you want the agent to use Merge tools. Re-run safely - the command is idempotent.
Option 2 - MCP server
If your IDE doesn’t have a merge setup target, point its MCP config at Agent Handler’s hosted MCP URL.
Verify the connection
Restart your IDE and confirm agent-handler appears in its MCP server list. In Claude Code, run:
You should see agent-handler listed under Local MCPs with a connected status.
Next
Configure what tools your agent should be able to call with Tool Packs.
