Files
conversation-history/setupForAgentsCLI.md
T

2.4 KiB

Setup Instructions for Connecting Any MCP-Capable CLI to Hermes Server


The Raw Config You Need

Your Hermes MCP server is an HTTP/SSE transport with a header key:

{
  "mcpServers": {
    "hermes-mcp": {
      "url": "https://hermes.fetcherpay.com/mcp",
      "headers": {
        "x-api-key": "114521f3f9e6858480d6269446a446ef"
      }
    }
  }
}

Claude Code (claude CLI)

1. Install Claude Code (if not already):

npm install -g @anthropic-ai/claude-code

2. Add the MCP server:

claude mcp add hermes-mcp \
  --transport http \
  https://hermes.fetcherpay.com/mcp \
  --header "x-api-key: 114521f3f9e6858480d6269446a446ef"

Or manually — Claude Code stores MCP config in ~/.claude/mcp.json:

{
  "mcpServers": {
    "hermes-mcp": {
      "url": "https://hermes.fetcherpay.com/mcp",
      "headers": {
        "x-api-key": "114521f3f9e6858480d6269446a446ef"
      }
    }
  }
}

3. Verify:

claude mcp list

Note: If claude mcp add doesn't exist in your version, use the manual ~/.claude/mcp.json method. Claude Code's MCP support is relatively new and CLI flags vary by version.


Generic / Open-Source Agent CLI

Most agent CLIs that support MCP read from a config file. Common locations:

Tool Config Path
Cline (VS Code extension) ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Continue.dev ~/.continue/config.json (under mcpServers)
Any custom MCP client Usually --mcp-config-file /path/to/mcp.json

Generic pattern:

some-agent-cli --mcp-config-file ~/.mcp.json

Where ~/.mcp.json contains the JSON block above.


Claude Desktop (not CLI, but useful)

If you also use Claude Desktop app, add this to:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "hermes-mcp": {
      "url": "https://hermes.fetcherpay.com/mcp",
      "headers": {
        "x-api-key": "114521f3f9e6858480d6269446a446ef"
      }
    }
  }
}

Then restart Claude Desktop.


Portable Config File

A portable ~/.mcp.json can be symlinked everywhere:

# Claude Code
claude --mcp-config-file ~/.mcp.json

# Any generic agent CLI
<agent> --mcp-config-file ~/.mcp.json