MCP
MCP server
Outboxer runs a hosted Model Context Protocol server at
https://mcp.outboxer.dev/mcp. It exposes the API as tools, resources and prompts, so Claude and other MCP clients
can run the agent workflows without custom code. There is nothing to install or run: point your
client at the URL and authenticate with an API key.
Every tool call becomes a /v1 call made with your own key. Scopes, roles, quotas, key restrictions, the review
gate and audit logging all apply exactly as they do for any other API client.
Connect a client#
| URL | https://mcp.outboxer.dev/mcp (Streamable HTTP) |
| Auth | Authorization: Bearer obx_live_… on every request |
Give each agent its own agent key (see authentication),
with only the scopes it needs, or create one in the web app under Settings → MCP connections, which also shows
ready-made setup for Claude Code and Claude Desktop. OAuth sign-in isn't available yet, so clients authenticate with
an API key in the Authorization header.
Claude Code:
claude mcp add --transport http outboxer https://mcp.outboxer.dev/mcp --header "Authorization: Bearer obx_live_…"Claude Code, project-scoped (.mcp.json in a repo; the key comes from your environment):
{
"mcpServers": {
"outboxer": {
"type": "http",
"url": "https://mcp.outboxer.dev/mcp",
"headers": { "Authorization": "Bearer ${OUTBOXER_API_KEY}" }
}
}
}Claude Desktop (claude_desktop_config.json, Settings → Developer → Edit Config). Until OAuth sign-in is available,
bridge the remote server with a static header:
{
"mcpServers": {
"outboxer": {
"command": "npx",
"args": ["mcp-remote", "https://mcp.outboxer.dev/mcp", "--header", "Authorization: Bearer obx_live_…"]
}
}
}Cursor and other clients: add an HTTP (Streamable HTTP) server with the URL above and an Authorization: Bearer obx_live_…
header. To check a key by hand, list the tools it can see:
curl -s https://mcp.outboxer.dev/mcp -H "Authorization: Bearer $OUTBOXER_API_KEY" -H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'The server is stateless: each request stands alone. A request without a key gets 401.
Organization approval#
An MCP client works only after an organization owner or admin approves its connection.
- Request. In the web app, open Settings → MCP connections → Connect an MCP client (
POST /v1/mcp/connections). This creates a key for you and shows the Claude Code and Claude Desktop setup.- A workspace owner or admin can request a key for an agent instead (
agent_id). - The key is inactive until approved. You can add it to the client right away; it starts working the moment it is approved.
- A workspace owner or admin can request a key for an agent instead (
- Existing keys work too. The first call through the MCP server files a pending request automatically. Until it is approved:
- the server offers a single tool,
check_access, which explains the situation; - API calls made through MCP return
403 mcp_approval_pending.
- the server offers a single tool,
- Approval. Owners and admins get an in-app notification and an email. They approve, reject (with an optional note) or later revoke the connection in Settings → MCP connections (
POST /v1/mcp/connections/{id}/approve|reject|revoke).- Revoking stops MCP use of that key.
- A key that was created for the connection is revoked entirely.
- Exceptions. Connections requested by organization owners or admins are approved immediately. An owner or admin can turn the requirement off for the organization:
PATCH /v1/mcp/settings {"require_approval": false}.
What the gate does and doesn't cover:
- Approval applies to calls made through the MCP server.
- The same key used directly against the REST API is governed by its scopes as usual. To stop that too, revoke the key, or request the connection through Settings, which creates a key that is unusable until approved.
- Webhook events:
mcp.connection_requestedandmcp.connection_updated.
Tools by job#
The tool list is computed per token from GET /v1/me. A tool is listed only when the key holds the scope and the
role allows the ability in at least one workspace. Tools in italics aren't visible to a default agent key, because
their scope has to be granted by a human.
| Job | Tool | API | Scope |
|---|---|---|---|
| Orient | list_workspaces |
GET /v1/me |
any |
get_brand_context |
GET /v1/workspaces/{ws}/context |
context:read |
|
get_schedule |
GET …/posts + GET …/slots |
posts:read, channels:read |
|
| Brand connectivity | check_connections |
GET …/connections |
channels:read |
check_channel |
POST /v1/channels/{id}/check |
channels:read |
|
create_connect_link |
POST …/connect-links |
channels:connect |
|
revoke_connect_link |
DELETE /v1/connect-links/{id} |
channels:connect |
|
| Design system | get_design_system |
GET …/design-system (+ /versions) |
design_system:read |
update_design_system |
PATCH …/design-system (merge patch, If-Match) |
design_system:write |
|
restore_design_system_version |
POST …/design-system/versions/{n}/restore |
design_system:write |
|
import_design_system |
POST …/design-system/import (dry_run to preview) |
design_system:write |
|
| Publishing log | get_publish_log |
GET …/publish-log/summary, GET …/publish-log |
posts:read |
| Campaigns | list_campaigns, get_campaign |
GET …/campaigns, GET /v1/campaigns/{id} |
posts:read |
create_campaign, update_campaign |
POST …/campaigns, PATCH /v1/campaigns/{id} |
campaigns:write |
|
| Drafting | validate_post |
POST …/validate |
posts:read |
create_draft |
POST …/posts |
drafts:write (+ posts:submit to submit) |
|
revise_draft |
GET → PATCH /v1/posts/{id} (If-Match) → optional submit |
drafts:write |
|
list_posts, get_post |
GET …/posts, GET /v1/posts/{id} |
posts:read |
|
get_feedback |
GET …/posts?status=changes_requested…&include=comments |
posts:read |
|
| Media | upload_media, upload_media_from_url, optimize_media |
POST …/media, …/media/import, /v1/media/{id}/optimize |
media:write |
list_media |
GET …/media |
posts:read |
|
| Review and publishing | submit_post |
POST /v1/posts/{id}/submit |
posts:submit |
archive_post |
POST /v1/posts/{id}/archive |
drafts:write |
|
approve_post |
POST /v1/posts/{id}/approve |
posts:approve |
|
schedule_post, unschedule_post, publish_now |
POST /v1/posts/{id}/schedule, /unschedule, /publish-now |
posts:publish |
|
get_post_metrics |
GET /v1/posts/{id}/metrics |
analytics:read |
|
get_insights |
GET …/analytics |
analytics:read |
|
| Engagement | get_inbox, get_followups |
GET …/inbox, GET /v1/posts/{id}/followups |
engagement:read |
reply_to_interaction |
POST /v1/interactions/{id}/reply |
engagement:write |
|
create_autoreply_rule |
POST …/autoreply-rules |
engagement:write + owner/admin/editor (users only) |
|
| Webhooks | list_webhooks, create_webhook |
GET/POST /v1/webhooks |
webhooks:manage |
| Billing | get_billing |
GET /v1/billing, GET /v1/posts/{id}/cost |
billing:read |
Resources:
ob://capabilities: the publicGET /v1/capabilitiesdocument (scopes, abilities, events, conventions, recipes).ob://workspaces/{ws}/design-system: the design system as markdown.ob://workspaces/{ws}/capabilities: connected channels with their capability matrices.
Prompts: draft_posts_for_week (plan, validate and submit a week of posts), connectivity_check (the
check_brand_connectivity recipe) and launch_campaign (connectivity → design system → campaign → drafts → submit).
Safety model#
- No privileges of its own. The server forwards the caller's token and holds no credentials. Anything the API
would refuse, the tool refuses too, with the same problem
code. - Scope-gated tools. Approve, publish, design-system writes, connect links, engagement and webhooks tools aren't even listed unless the key can use them, so a default agent can't be talked into calling them.
- Agents can't approve their own posts, even with
posts:approve. They never complete OAuth either:create_connect_linkreturns a URL meant for a human, and the tool output says to pass it on, not open it. - Untrusted text is labelled. Reviewer comments, inbox messages, other authors' text and top-post text come back
only in
untrusted_text/untrusted_excerpt/untrusted_threadfields with a_note. The serverinstructionstell the model to treat them as data. - Idempotent writes. Every POST carries an
Idempotency-Key, derived from the tool name and its arguments unless you pass one, so a retried tool call doesn't create duplicates. State-dependent steps add the post version. - Errors you can act on. Problems come back as
isError: trueresults withcode,errors[].path/hintand, for well-known codes, anext_step(e.g. "re-read with get_design_system and retry").
