Integrations
AI assistants (MCP)
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, andmcp.writeif the assistant may make changes.
| Scope | Allows |
|---|---|
mcp.read | Every read tool. Required for any MCP call. |
mcp.write | Also 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
| Data | Direction | Mode | Notes |
|---|---|---|---|
| Overview, agents, messages, segments, people and decisions | Out to the assistant | On demand | mcp.read; email and phone are left out of people |
| Agent pause and resume | In from the assistant | On demand | mcp.write |
| Draft variants | In from the assistant | On demand | mcp.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.
- 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.
- Choose Connect. Sign in if asked.
- 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
claude mcp add --transport http herald https://app.runherald.com/api/mcp --header "Authorization: Bearer hk_…"Cursor (~/.cursor/mcp.json or .cursor/mcp.json)
{
"mcpServers": {
"herald": {
"url": "https://app.runherald.com/api/mcp",
"headers": { "Authorization": "Bearer hk_…" }
}
}
}Gemini CLI (~/.gemini/settings.json)
{
"mcpServers": {
"herald": {
"httpUrl": "https://app.runherald.com/api/mcp",
"headers": { "Authorization": "Bearer hk_…" }
}
}
}Tools
| Tool | Scope | Arguments | Returns |
|---|---|---|---|
get_overview | read | days?: 7, 30 or 90 (default 30) | The Overview numbers for the app: people, sends and conversions, and lift versus holdout |
list_agents | read | none | The app's agents with status and counts, and lift versus holdout for active agents |
get_agent | read | agent_id | The agent, its goals, its variants with tries and warmup, lift, and its 10 newest model metrics |
list_messages | read | agent_id | The agent's messages with every variant's copy and status |
explain_decision | read | user_id, limit?: 1 to 20 (default 5) | The person's newest decisions: agent, variant, channel, odds and conversion |
list_segments | read | none | Segments with sizes and the agents using them |
get_person | read | user_id | The person's profile, attributes (email and phone left out), channel stats and recent messages |
pause_agent | write | agent_id | Turns on the agent's sending pause |
resume_agent | write | agent_id | Turns the sending pause off |
draft_variant | write | agent_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
| Symptom | Cause | Fix |
|---|---|---|
| The write tools are missing | The key or sign-in has no mcp.write | Create a key with mcp.write, or reconnect and tick "Pause agents and draft messages" |
| The assistant asks you to sign in again | Its refresh token is more than 90 days old, or someone chose Disconnect | Connect again |
| An agent can't be found | The agent belongs to another app | Use a key or sign-in for that app |
Common errors
| Message | Cause | Fix |
|---|---|---|
Invalid API key | 401: the key is missing, unknown, revoked or expired | Paste a current key. OAuth clients are sent to sign in |
This API key lacks the mcp.read scope | 403: the key has no mcp.read | Create a key with mcp.read |
This key can't make changes; create one with the mcp.write scope. | A write tool without mcp.write | Create a key with mcp.write |
No agent with id <id> in this app. | The agent belongs to another app | Use that app's key |
Rate limit exceeded for mcp.requests: 3600 per hour | 429: over the hourly limit | Wait for Retry-After |
The refresh token expired | OAuth: the refresh token is more than 90 days old | Connect again |
Not in this version
Resources and prompts, server-initiated streams and a win probability per variant. get_agent reports tries and warmup instead.