Skip to content
Menu

Integrations

AI assistants (MCP)

BetaMarkdown version

Connect Claude, ChatGPT, Cursor or Gemini CLI to the Herald MCP server to read results and, if you allow it, pause agents and draft variants.

Note

Built and tested against each vendor's documented API; tell us if anything differs in your account.

The Herald MCP server lets an AI assistant read an app's results and, if you allow it, pause agents and draft message variants. It is a remote Model Context Protocol server.

Endpoint: https://app.runherald.com/api/mcp

What you'll need

  • An admin of the account.
  • For Claude Code, Cursor and Gemini CLI: an API key from Settings → Sending, the app, then API keys. Give it mcp.read, and mcp.write if the assistant may make changes.
ScopeAllows
mcp.readEvery read tool. Required for any MCP call.
mcp.writeAlso pause_agent, resume_agent and draft_variant.

A key belongs to one app. Every tool reads or changes only that app's agents. Each request counts toward a limit of 3,600 per hour per app by default.

What it does

An assistant calls the tools below for one app, with an API key or an OAuth sign-in. It reads that app's overview, agents, messages, segments, people and decisions. With write access it can also pause or resume an agent and add a paused draft variant.

Supported data

DataDirectionModeNotes
Overview, agents, messages, segments, people and decisionsOut to the assistantOn demandmcp.read; email and phone are left out of people
Agent pause and resumeIn from the assistantOn demandmcp.write
Draft variantsIn from the assistantOn demandmcp.write; created paused

Connect

Claude.ai and ChatGPT sign in with OAuth. Claude Code, Cursor and Gemini CLI use an API key.

Claude.ai or ChatGPT

These two sign in with OAuth instead of a key.

  1. Add a connector with the URL above. In Claude.ai: Settings → Connectors → Add custom connector. In ChatGPT: Settings → Connectors → Advanced → Developer mode, then create a connector.
  2. Choose Connect. Sign in if asked.
  3. Pick the app the assistant may use. "Read results" is always on. "Pause agents and draft messages" stays off unless you tick it. Approve.

Only account admins can approve. Access tokens last 1 hour and refresh tokens 90 days.

Claude Code, Cursor or Gemini CLI

Replace hk_… with your key.

Claude Code

bash
claude mcp add --transport http herald https://app.runherald.com/api/mcp --header "Authorization: Bearer hk_…"

Cursor (~/.cursor/mcp.json or .cursor/mcp.json)

json
{
  "mcpServers": {
    "herald": {
      "url": "https://app.runherald.com/api/mcp",
      "headers": { "Authorization": "Bearer hk_…" }
    }
  }
}

Gemini CLI (~/.gemini/settings.json)

json
{
  "mcpServers": {
    "herald": {
      "httpUrl": "https://app.runherald.com/api/mcp",
      "headers": { "Authorization": "Bearer hk_…" }
    }
  }
}

Tools

ToolScopeArgumentsReturns
get_overviewreaddays?: 7, 30 or 90 (default 30)The Overview numbers for the app: people, sends and conversions, and lift versus holdout
list_agentsreadnoneThe app's agents with status and counts, and lift versus holdout for active agents
get_agentreadagent_idThe agent, its goals, its variants with tries and warmup, lift, and its 10 newest model metrics
list_messagesreadagent_idThe agent's messages with every variant's copy and status
explain_decisionreaduser_id, limit?: 1 to 20 (default 5)The person's newest decisions: agent, variant, channel, odds and conversion
list_segmentsreadnoneSegments with sizes and the agents using them
get_personreaduser_idThe person's profile, attributes (email and phone left out), channel stats and recent messages
pause_agentwriteagent_idTurns on the agent's sending pause
resume_agentwriteagent_idTurns the sending pause off
draft_variantwriteagent_id, body, title?, channel?Adds a paused variant named "AI draft" to the agent's first message (or its first message on channel)

What write access allows

With mcp.write, an assistant can pause or resume an agent and add a draft variant. A draft is created paused and never sends until someone sets it active in the console. A push draft needs a title. Without mcp.write, a write tool is not listed, and calling it returns an error.

Disconnect

For a key, delete it on the app's API keys card. For Claude.ai or ChatGPT, open Settings → Sending, the app, API keys, then Connected AI apps, and choose Disconnect. That revokes the connection's tokens at once.

Limits

  • 3,600 MCP requests per hour per app by default (mcp.requests), with the rate-limit headers on every answer. See API errors.
  • One app per key or sign-in.
  • OAuth access tokens last 1 hour and refresh tokens 90 days.

Troubleshooting

SymptomCauseFix
The write tools are missingThe key or sign-in has no mcp.writeCreate a key with mcp.write, or reconnect and tick "Pause agents and draft messages"
The assistant asks you to sign in againIts refresh token is more than 90 days old, or someone chose DisconnectConnect again
An agent can't be foundThe agent belongs to another appUse a key or sign-in for that app

Common errors

MessageCauseFix
Invalid API key401: the key is missing, unknown, revoked or expiredPaste a current key. OAuth clients are sent to sign in
This API key lacks the mcp.read scope403: the key has no mcp.readCreate a key with mcp.read
This key can't make changes; create one with the mcp.write scope.A write tool without mcp.writeCreate a key with mcp.write
No agent with id <id> in this app.The agent belongs to another appUse that app's key
Rate limit exceeded for mcp.requests: 3600 per hour429: over the hourly limitWait for Retry-After
The refresh token expiredOAuth: the refresh token is more than 90 days oldConnect again

Not in this version

Resources and prompts, server-initiated streams and a win probability per variant. get_agent reports tries and warmup instead.

See Herald decide live →