Skip to main content

MCP JSON config

Load Merge Agent Handler locally in different providers like Claude Desktop, Windsurf, and Cursor by setting up the MCP JSON configuration file. The config contains the Merge Agent Handler MCP url, and the bearer token. What you need from Merge Agent Handler:
  • Tool Pack ID
  • Registered User ID
  • Production and Test Access Key
{
    "mcpServers": {
      "agent-handler": {
        "command": "npx",
        "args": [
          "-y",
          "mcp-remote@latest",
          "https://ah-api.merge.dev/api/v1/tool-packs/<tool-pack-id>/registered-users/<registered-user-id>/mcp",
          "--header",
          "Authorization: Bearer ${AUTH_TOKEN}"
        ],
        "env": {
          "AUTH_TOKEN": "<ah-production-access-key>"
        }
      }
    }
  }

Implementations in different providers

Claude Desktop

Steps:
  1. Open Claude Desktop Settings in the system’s menu bar
  2. Navigate to Developer settings
  3. Click “edit config”. You’ll need to open this file in a text editor or IDE.
  4. Paste the Merge Agent Handler MCP JSON config into the file. Remember to replace the Tool Pack ID, Registered User ID, and Access Key with information from the Merge Agent Handler dashboard.
  5. Click save, and then restart Claude Desktop. You should now see Merge Agent Handler tools loaded up!
For more detailed instructions, you can follow the guide here.

Windsurf

Steps:
  1. Open Windsurf Settings in the system’s menu bar
  2. Navigate to Cascade, and click on “Manage MCPs”
  3. Click on “View raw config”. This will open to the file where you can paste the JSON config.
  4. Paste the Merge Agent Handler MCP JSON config into the file. Remember to replace the Tool Pack ID, Registered User ID, and Access Key with information from the Merge Agent Handler dashboard.
  5. Click save, and then click “Refresh” on the Manage MCPs page.
For more detailed instructions, you can follow the guide here. You can also do this directly in Cascade, the Windsurf agent. Click on the Customization icon in the top of Cascade (boxes icon), and click on the below icon. mcp-json-config

Cursor

You can follow the guide here.