Model Context Protocol (MCP)
Everruns is both an MCP server, exposing its agents and tools to external clients with OAuth 2.1, and an MCP client that registers remote servers as virtual capabilities.
Everruns speaks the Model Context Protocol on both sides: it exposes its own agents and tools as an MCP server, and it consumes remote MCP servers as agent capabilities.
Everruns as an MCP server
Section titled “Everruns as an MCP server”Every Everruns deployment exposes an authenticated MCP endpoint at /mcp so external clients, Claude Desktop, Cursor, VS Code, or another agent, can discover and call your agents and tools over JSON-RPC. It is a standard product surface, with no deployment variable or organization feature toggle.
- Transport: JSON-RPC 2.0 over Streamable HTTP (
POST /mcp). Protocol versions2026-07-28,2025-06-18and2025-03-26are supported. - Browsers: opening
/mcpin a browser shows a page that explains the URL is for MCP clients, with the URL to copy and setup commands. Only aGETthat acceptstext/htmland nottext/event-streamgets the page; every otherGETreturns405 Method Not Allowed. - Methods:
initialize,server/discover,ping,tools/list,tools/call,resources/list,resources/templates/list,resources/read; under2026-07-28,skills/list,skills/get, andresources/directory/read, plustasks/get,tasks/updateandtasks/cancelfor clients that use Tasks; and, for organizations that turn on MCP Events,events/list,events/subscribeandevents/unsubscribe. - Auth: MCP requests authenticate and resolve an organization before dispatch. OAuth 2.1 uses mandatory PKCE, and MCP access tokens are bound to the exact
/mcpresource so they cannot be reused against the REST API. Unauthenticated requests fail with401and protected-resource discovery metadata is served at/.well-known/oauth-protected-resource/mcp. - Files:
agent_runandsession_send_messagetake an optionalfileslist, each file as base64dataor a publichttpsurl. The files are copied into the session’s/attachmentsfolder, as for channels. - Rooms:
room_read_unread,room_read,room_post,room_who_read,room_mark_readand the room file tools let a client take part in a room like any member. - Entity cards: under protocol
2025-06-18and newer,agent_get_card,harness_get_card,capability_get_card, andknowledge_get_cardopen the corresponding Everruns cards. Supported hosts render the cards; other clients receive structured details and a text fallback.
Routing is intentionally split: REST under /api/*, MCP OAuth under /oauth/*, and MCP JSON-RPC at /mcp.
Client trust and attribution
Section titled “Client trust and attribution”The authorization page shows the selected redirect host and the access you are
granting. Client names are self-declared; a familiar name or localhost callback
does not verify an application’s publisher. The mcp scope permits reading and
changing data and running agents across your accessible organizations. Runs can
incur costs. Narrower OAuth scopes are not currently supported.
A session’s information tooltip identifies the MCP client that created it. Each user input records its own client, visible beside the message and in its information tooltip. Change history also identifies the client. A later client or web message does not inherit the original client’s attribution. Older sessions and credentials without a grant have no inferred client identity. Names remain labeled as self-declared; client and grant IDs distinguish clients with the same name. Manage or revoke connections in Settings > AI clients.
Skills for MCP clients
Section titled “Skills for MCP clients”The endpoint serves public workflow guidance through the official
MCP Skills extension.
With protocol 2026-07-28, server/discover advertises
io.modelcontextprotocol/skills with directory reading enabled. Use skills/list
to discover complete entries or skills/get to look up a known SKILL.md URI
directly, then read instructions and supporting files with resources/read.
The server publishes one skill, skill://everruns/SKILL.md: product concepts
and a map of task guides beside it, matching the server’s version. For example:
| File | Use it for |
|---|---|
skill://everruns/references/mcp.md |
Connection setup, finding agents, running sessions, inspecting results, and managing resources through MCP |
skill://everruns/references/cli.md |
Command usage and examples across CLI, session shell, and MCP |
skill://everruns/references/agent-authoring.md |
Creating or revising agent definitions, selecting capabilities and harnesses, and verifying behavior |
skill://everruns/references/debug-session.md |
Finding out why a session failed or stalled |
Each entry preserves all authored frontmatter and includes every file’s URI,
SHA-256 digest, and byte size. Supporting references resolve relative to the
skill directory. resources/directory/read lists direct children of a directory,
for example skill://everruns/references, without a trailing slash. Unknown
skills, files, directories, and cursors return JSON-RPC -32602.
These files ship with the server and are identical for every organization. They use public cache hints, while organization data resources remain private. Requests still require MCP authentication. Organization-managed Skills registry entries, the Rust Framework skill, and repository contributor workflows are not published in this catalog or accessible through its skill resource reads.
Reading a resource does not itself activate a skill. A host supporting the extension loads it through its skill loader, checks the manifest and frontmatter, and applies its approval policy. Older clients can read a known skill URI as an ordinary resource but receive no Skills extension capability.
Polling for replies
Section titled “Polling for replies”session_get_status returns latest_output, the latest non-empty text the agent
said in the session, including replies delivered through send_message. Private
commentary, tool arguments, and failed deliveries do not count as replies.
since_event_id and event_types filter the returned event page only. The latest
reply remains available even when that page is empty or contains only status
events. It is a session snapshot, so it can still be the previous turn’s reply
while a new turn runs or after a turn that sends no reply; check status and
the returned events for progress. latest_output is null when the session has
no visible text reply.
Long agent turns as tasks
Section titled “Long agent turns as tasks”An agent turn can take minutes. Clients on protocol 2026-07-28 that declare the
MCP Tasks extension
(io.modelcontextprotocol/tasks) get a task back from agent_run and
session_send_message instead of holding the request open, then poll
tasks/get until the turn ends.
- One task per message. Each message starts its own task, and a finished task keeps its own reply, so an old task id never shows a later turn.
- Results. A completed task carries the agent’s reply as the tool result,
with the session id, the message id and any structured result in
structuredContent. A turn that failed or was stopped iscompletedwithisError: trueand a status message saying why; a cancelled turn iscancelled. - Questions. When the agent asks with Ask User and the client also declares
form elicitation, the task is
input_requiredand carries the form. Answer it withtasks/update; send a follow-up message withsession_send_message. - Cancel.
tasks/cancelstops the running turn.
Task ids are checked against the caller’s access on every request: an id for a session the caller cannot read is an unknown task. Clients that do not declare the extension keep getting plain tool results.
In ChatGPT and Codex
Section titled “In ChatGPT and Codex”/mcp serves MCP Apps: hosts
that render them, including ChatGPT, Codex and Claude, can open entity cards,
the organization Home, and the full Session workspace with Trace, Approvals,
Work, Events, Files and Cost. Ask to open a session and the client calls
session_open with its ID. Running an agent, sending a message and checking
status return data without opening another view.
The views use your connected MCP account and selected organization, without a second browser sign-in. Read-only tokens retain read-only access. Self-hosted deployments must serve the configured frontend URL, and the host must support embedded frames. Entity titles open Everruns while Session tabs navigate inside the workspace. Files use the MCP connection, and downloads require host download support. HTML has a static preview; PDF and interactive HTML previews, along with credential entry, open in Everruns through the host.
Repeated results for the same workspace preserve drafts and the selected tab. Theme and fullscreen changes keep the workspace mounted. If the initial host connection times out, choose Retry connection. Hosts that do not render apps retain structured results and text through the same tools.
Session events (experimental)
Section titled “Session events (experimental)”With the MCP Events feature flag turned on for an organization, an MCP client
can subscribe to webhooks for session.completed, session.failed and
session.input_required, filtered by agent or session. Callbacks must be public
HTTPS URLs and are verified before the first event. Deliveries are signed per
Standard Webhooks and carry identifiers and
state, not message content: read the session with session_get_status.
Everruns as an MCP client
Section titled “Everruns as an MCP client”People can also add MCP servers for themselves; agents with the User MCP Servers capability use them while that person chats. See User MCP Servers.
A server the agent adds for one conversation only ("scope": "chat") shows under the MCP button in that conversation’s header, where you can see whether you have signed in and remove it; its tools leave from the next message. Over the API: GET /v1/sessions/{session_id}/mcp-servers and DELETE /v1/sessions/{session_id}/mcp-servers/{name}.
Register a remote MCP server and its tools appear as a virtual capability: auto-discovered, namespaced, and executed alongside built-in capabilities. No code changes are needed to give an agent new tools.
- Org-managed servers: organization-scoped
McpServerrecords connect over remote HTTP (Streamable HTTP).stdiois rejected by the hosted control plane and is only available to single-tenant runtime/CLI hosts. People who manage MCP servers keep these presets in Settings > Organization > MCP catalog; a preset does nothing until an agent or a person adds it. MCP sign-ins you authorized for agent servers that act as you are listed in Settings > MCP servers. - Scoped
mcpServers: harnesses, agents, and sessions can embed remote MCP config directly (the remote-server subset of.mcp.json) for session-local or agent-local wiring without creating an org-global record. - Restricted egress: on deployments that limit where requests that send data may go (such as the Everruns demo instance), MCP traffic only reaches approved services. Once a platform administrator allows it, org admins can add their own MCP hosts under Settings > Organization > Outbound allowlist.
- Tool naming: discovered tools are namespaced per server so they never collide with built-in capabilities.
- Protocol compatibility: the client negotiates the MCP protocol era per server. By default (
auto) it issues a session-less2026-07-28request and transparently falls back to the statefulinitializehandshake (2025-11-25, then2025-06-18/2025-03-26) for servers that require it, caching the verdict per server. Set the protocol mode tolegacy,stable, orrcto pin a specific era and skip negotiation. No setting is needed for the common case.
Reading a server’s resources
Section titled “Reading a server’s resources”Many MCP servers publish context as resources: files, schemas, documents. Whenever a conversation has an MCP server attached, the agent gets two read-only tools:
list_mcp_resourceslists a server’s resources and resource templates, one page at a time.read_mcp_resourcereads one resource by URI, including a URI the agent filled in from a template.
Text is returned to the agent as is, images arrive as images, and other binary content is saved to the session’s files (or only described, where the session has no files) instead of being pasted into the conversation. Content a server marks as meant only for the user stays out of the agent’s context. Resources are read with the same sign-in as the server’s tools, and only servers attached to the conversation can be reached. A server that publishes no resources says so when asked.
Who a server acts as
Section titled “Who a server acts as”Each MCP server attached to an agent says whose sign-in its calls use
(actsAs, or Who should this server act as? on the agent’s MCP servers
sheet):
actsAs |
On the sheet | Calls run as |
|---|---|---|
none |
No identity | Nobody: the server needs no sign-in |
service |
Service identity | The agent’s own account, signed in once by someone who manages MCP servers |
user |
Invoking user | The person chatting, with their own sign-in; nothing when nobody is chatting |
user_or_service |
Each user, or the agent if they have not connected | The person chatting when they have signed in, otherwise the agent’s account |
user_or_service is never chosen for you. Unattended runs (schedules,
triggers) always use the agent’s account, since nobody is chatting. Every MCP
tool call records which account it used in its tool.completed event
(acted_as: user or service), so a fallback to the agent is visible.
When someone adds an OAuth server to the catalog, Everruns checks right away that it can reach the server’s sign-in service and register with it. The catalog row then says Ready to connect, or why not, for example “Can’t reach mcp.linear.app: this host is not on the allowed network list”. Saving works either way; Check again re-runs the check after you change the network list.
An OAuth server from the catalog can be attached before anyone has signed in to it. The first Authorize or Connect registers Everruns with the server and signs in; until then the attachment shows Connection required and its tools are unavailable. If a sign-in fails, you return to the page you started from with the reason, for example that the server’s host is not on the organization’s allowed network list.
An agent with a server acting as user or user_or_service gets the
connect_mcp_server tool, so it can show a Connect card in chat before a
call fails.
Connecting from chat
Section titled “Connecting from chat”When a call needs a sign-in that is missing, the chat pauses on a Connect
card (or, for the agent’s own account, an Authorize card for someone who
manages MCP servers and Ask an admin for everyone else). Set
connectInChat on the attachment (Ask to connect in chat on the agent’s
MCP servers sheet) to choose:
connectInChat |
A missing sign-in |
|---|---|
ask (default) |
Pauses the chat with the card |
never |
Fails the call with an error naming the server and its settings link (/settings/connections for the person’s own sign-in, the agent’s MCP servers sheet for the agent’s), and the turn goes on |
never suits agents behind channels that cannot show a card, such as a chat
bridge. connect_mcp_server follows it too and returns the same link instead
of a card.
{ "mcpServers": { "github": { "use": "catalog:github", "actsAs": "user", "connectInChat": "never" } }}Loading tools on demand
Section titled “Loading tools on demand”Every server’s tools are normally listed at the start of each turn, which costs
one tools/list round trip per server. Set deferred: true on an attachment
(Load tools on demand on the agent’s MCP servers sheet) to skip that:
the agent sees one line for the server, mcp_<name> with its name and
description, and loads the server’s tools when it needs them, by finding it
with tool_search or calling that line. The tools are callable from the
agent’s next step and stay loaded for the rest of the conversation. Off is the
default, so existing agents are unchanged. A person’s own servers
(User MCP servers) load on demand by
default; a person can turn that off for one of their servers with its Load
tools on demand switch in Settings > My MCP servers.
For catalogs with hundreds or thousands of operations, Everruns paginates discovery and supports bounded search and schema disclosure. See Large MCP catalogs and tool surfaces.
{ "mcpServers": { "linear": { "use": "catalog:linear", "actsAs": "user", "deferred": true } }}A catalog entry can take the agent’s account from an existing connection
instead of its own sign-in (service_connection_provider, Agent credential
in the catalog form). The seeded github entry
(https://api.githubcopilot.com/mcp/) uses the agent’s GitHub App, so an agent
with a GitHub App needs no second GitHub login. A connection is only accepted
for servers on its provider’s own hosts, so its tokens cannot be sent anywhere
else.
GitHub’s MCP server accepts the App’s installation token, but that token acts as
the App, not a person. It reaches only the repositories the App is installed on,
with the App’s permissions, and tools about a person (get_me, notifications,
starred repositories, “my” issues and pull requests) fail. For those, attach the
server acting as user so the person signs in.
Long-running tools
Section titled “Long-running tools”A call to an MCP tool fails if the server has not answered within 60 seconds.
For a server whose tools take longer, such as one that runs a build or a
deployment, set tool_timeout_ms on the attachment or catalog entry (Tool call
timeout in the catalog form, in seconds). It accepts 1 second to 30 minutes.
timeout, the key common mcpServers config files use, works as well. An
attachment that uses a catalog entry may set its own timeout. If it does not,
it uses the catalog’s timeout.
{ "mcpServers": { "ci": { "type": "http", "url": "https://ci.example.com/mcp", "tool_timeout_ms": 600000 } }}A server that supports the MCP Tasks extension does not need a longer timeout. Everruns declares the extension on every tool call, so such a server can answer with a task instead of holding the request open. The agent then checks on the task until it finishes, for up to 30 minutes. While it runs, the server’s status message (for example “Running tests”) shows on the tool call in chat and in the session’s events. Questions the task asks reach the agent’s user the same way as a server’s form questions. If the turn is cancelled or the wait runs out, Everruns cancels the task on the server.
Waking an agent on a server’s events (experimental)
Section titled “Waking an agent on a server’s events (experimental)”With the MCP Events flag on, an agent can also subscribe to events that one
of its own MCP servers publishes, such as a tracker announcing new issues.
Create an agent trigger with trigger_type: "mcp_event", the attachment’s name
in mcp_server, the event name from the server’s events/list in mcp_event,
and any subscription arguments in mcp_event_arguments:
curl -X POST "$EVERRUNS_API/v1/agents/$AGENT_ID/triggers" \ -H "Content-Type: application/json" \ -d '{ "trigger_type": "mcp_event", "mcp_server": "tracker", "mcp_event": "issue.created", "mcp_event_arguments": {"team": "eng"}, "message": "Triage {{payload.issue.title}}" }'Everruns subscribes with the agent’s credential for that attachment (its
sign-in to the server, or the connection a catalog entry such as github names),
a signing secret it generates, and a callback URL of its own; the server must
accept webhook delivery. Each signed event starts a run with the event’s data
as {{payload}}. Subscriptions are renewed before they expire and cancelled
when the trigger is disabled or deleted. The attachment must act as the agent
(service or user_or_service), not only as the calling user, since a trigger
runs as the agent.
Which tools ask before they run
Section titled “Which tools ask before they run”In the normal approval mode, a tool that can change something asks a person before it runs. Everruns can’t see inside a remote tool, so most MCP tools ask by default, even ones that only read. You can tell Everruns what each tool does:
- Read only: the tool only looks things up. It never asks.
- Changes: the tool changes or sends something. It always asks.
Your label wins over what the server says about its own tools, and it stays when the server’s tool list changes. A tool with no label follows what the server says about it.
In the app, open Settings > MCP catalog and click Tools on a server. Each tool shows its description, what the server says about it, and a choice: Default, Read only, or Changes things.
Suggest labels asks a decision model to judge every tool that has no label yet. It only fills in a suggestion, such as “Suggested: read only”. Nothing changes until a person picks a choice or clicks Use suggestion.
The deployment’s decision model judges, unless your organization set System decisions to This organization’s model: then your organization’s default decision model judges, on your provider account. If that model is not usable, the button reports an error rather than using the deployment’s.
List a server’s tools with their labels, then set or clear one:
curl "$EVERRUNS_API/v1/mcp-servers/mcp_01h9/tools"curl -X PUT "$EVERRUNS_API/v1/mcp-servers/mcp_01h9/tools/search_docs/label" \ -H "Content-Type: application/json" -d '{"label": "read_only"}'Send {"label": "changes"} to always ask, or {"label": null} to remove the
label. Setting a label needs the same permission as editing the server, and it
removes the tool’s suggestion. To get suggestions, which come back with the
tool list:
curl -X POST "$EVERRUNS_API/v1/mcp-servers/mcp_01h9/tools/suggest-labels"Labels work on the other places an MCP server can live too:
-
An agent’s or harness’s own server (one added by URL): put the labels in the server’s
tool_labels, keyed by the tool’s own name. They win over a catalog server’s saved labels when the entry uses one."mcpServers": {"notes": {"url": "https://notes.example.com/mcp","tool_labels": { "search": "read_only", "publish": "changes" }}} -
Your own server (one you added by URL under My MCP servers): click Tools on it. Everruns asks the server for its tools with your sign-in. A server you added from the catalog uses the catalog’s labels.
Servers added during a conversation never carry labels, because the agent can add them itself and a label only ever lets a tool run without asking.
When a tool needs a person
Section titled “When a tool needs a person”Some MCP tools cannot finish without a human: a payment to authorize, an API key
to paste, a consent screen to click. Under protocol 2026-07-28 the server hands
back a URL instead of asking for the value, and Everruns holds the turn until
someone answers. See URL mode elicitation.
A server can also ask the person a few structured questions (form mode
elicitation), such as which environment to deploy to. This is off by default:
set the server’s Elicitation setting (elicitation_policy) to
url_and_form to allow it. The questions appear in the conversation marked as
coming from that server, and the answer goes back to the server when the tool
runs again. Everruns refuses questions that ask for a password or key, and
declines on the person’s behalf if nobody answers in time. none stops a server
eliciting at all.
Use Everruns from your AI tools
Section titled “Use Everruns from your AI tools”To give Claude Code, Codex, Cursor or Gemini CLI the MCP server plus skills for building, debugging and shipping agents, install the everruns plugin; see Use in AI tools.
Related
Section titled “Related”- URL mode elicitation, tool calls that need a person
- Capabilities, how virtual capabilities fit the capability system
- Slack Integration, publishing an Agent through a messaging endpoint
Optional Platform discovery readiness budget
Section titled “Optional Platform discovery readiness budget”Set EVERRUNS_MCP_DISCOVERY_READINESS_MS=250 on the Platform server to limit
how long turn preparation waits for scoped MCP HTTP discovery. Without this
setting, discovery retains its blocking behavior. The setting applies to both
in-process and remote worker turn preparation; it does not change previews,
org catalog refreshes, or tool-call timeouts.
Discovery that exceeds the budget continues in bounded background jobs. A
later turn can pick up its tools after resolving the current credentials again.
Pending servers do not count as failed connections. Deferred servers still wait
until the session reveals them. The chat-only MCP server listing includes an
optional discovery field reporting the last turn’s pending, ready, failed,
or authentication_required state, separately from the viewer’s sign-in state.
This is an HTTP-discovery wait budget, not a timeout for database or credential resolution. Background results are local to the Platform process and are short-lived; restarting or routing the next turn to another replica may require another discovery. Successful catalog results still follow their existing identity-scoped cache policy once a turn picks them up.
A discovery response whose cache TTL expires before the next turn can still be delivered once as a delayed response, after current authority and configuration are checked. It is not treated as fresh cached data and does not restart its database cache TTL. Subsequent turns rediscover it.
Descriptive metadata
Section titled “Descriptive metadata”Everruns renders selected invisible and bidirectional formatting controls in MCP
descriptions as visible Unicode markers such as [U+202E]. Tool and server
descriptions, display titles, and recognized schema title/description
annotations receive this presentation when sent to a model. Canonical schemas,
identifiers, argument values, and literal schema data remain unchanged.
This is metadata hygiene, not prompt-injection protection. Schema traversal is limited to 64 levels and 16,384 schema nodes; metadata beyond these limits and inside opaque extensions stays unchanged. Emoji, script joiners and combining marks are preserved.