Skip to main content
Use Nous Research’s Hermes Agent as an MCP client for Plainrouter. Start with an installed Hermes environment and a configured model provider.

1. Try the sandbox

Add this to ~/.hermes/config.yaml, preserving existing entries:
Start a new Hermes session or use /reload-mcp. The sandbox needs no Plainrouter account or key, returns synthetic data, and never contacts Meta. Ask:
Both calls should succeed and include sandbox: true. This checks the connection, not production data or ad execution.

2. Create a workspace key

In Plainrouter, select your workspace and open Settings → Workspace keys. Create a Read key for analysis; use Write for Actions, including Actions record reads. Copy it once into your protected credential configuration. Each key covers one workspace. Never put keys in prompts or source control. Key permissions and replacement.

3. Add Plainrouter to the client

Add a production server under mcp_servers in your private local config:
Replace the placeholder only in that private file; keep it out of repositories and shared config exports. Preserve the sandbox entry if you still need it. Reload MCP or start a new session. The URL connects over HTTP; do not configure Plainrouter as a local command.

4. Verify the connection

Start with this read-only request:
Check the tool result, not just the assistant’s summary: the workspace must be yours and the call must succeed. This workspace-only read works before connecting Meta. For account diagnostics, connect Meta and verify the selected account. Agent replies can vary. In Ask, changes wait for approval; in Full, policy-allowed changes run automatically. Rule violations are blocked in either mode. A client’s tool confirmation is separate from Plainrouter’s execution controls.

5. Troubleshooting

  • New server is missing: reload the Hermes session or gateway that actually owns the connection.
  • 401 on calls: check the complete bearer header and current key. A Server secret cannot authenticate MCP.
  • Tool names differ: Hermes prefixes MCP tool names with the server name. Select tools belonging to plainrouter, not the sandbox.
Reference: Hermes MCP configuration, reload and tool naming. Choose another client.