MCP support reference
This page lists exactly what agentd's MCP client supports: the protocol revisions, how a connection is negotiated, the capabilities it uses and the ones it refuses, its timeouts and retry schedules, every MCP log event, the MCP Tasks and MCP Events limits, agentd's own tools, and the known limits. It is for integrators building servers that agentd connects to and for operators reading its logs. The concepts are in MCP: tools and context; the configuration task is Connect MCP servers.
Revisions
agentd speaks two MCP revisions over Streamable HTTP and picks one per
server. The SDK underneath is rmcp, the
official Rust SDK.
| 2026-07-28 | 2025-11-25 | |
|---|---|---|
| First request | server/discover | initialize, then notifications/initialized |
| Session | none | Mcp-Session-Id from the initialize answer, sent on every request; a lost one is re-dialed |
Per-request _meta | io.modelcontextprotocol/protocolVersion, …/clientInfo, …/clientCapabilities on every request | none; agreed once in the handshake |
| Headers the client sets | MCP-Protocol-Version, Mcp-Method, Mcp-Name on a call, read or prompt, Mcp-Param-* for annotated tool arguments | MCP-Protocol-Version |
| Tool argument headers | tools are listed once on connect, so every call, a worker's included, carries its Mcp-Param-* headers | not used |
| Server push | the subscriptions/listen stream only | a GET event stream |
| Resource subscriptions | one listen per connection, its filter widened and narrowed | resources/subscribe and resources/unsubscribe per URI |
list_changed | a listen that asks for it, held from connect | on the GET stream |
| Cancellation | closing the request's stream | notifications/cancelled |
| Server-to-client requests | inside the call's answer (input_required), answered, then called again | requests on the stream, answered |
| MCP Tasks extension | declared on a tools/call that has a bound (a turn's, a workflow step's, a store adapter's), tasks/* and a listen that asks for task ids, unless the server's tasks is off | not declared; every call is answered inline |
| Response cache | off | off |
A server that lists only revisions older than 2025-11-25 is reached through
initialize at the newest revision it lists that the SDK knows.
server/discover results that leave out resultType, ttlMs or
cacheScope are accepted and read as complete, 0 and private. An
instructions member is not read.
Negotiation
Every connection probes with server/discover. What the probe gets decides
the next step:
| The probe got | agentd |
|---|---|
a -32022 whose data.supported names 2026-07-28 | asks again at that revision |
a -32022, or a DiscoverResult, listing only older revisions | sends initialize at the newest of them it knows |
a -32022 listing nothing | sends initialize at 2025-11-25 |
a -32020 or -32021 (a modern server refusing agentd's request), a 401, a server never reached, or a version list with nothing agentd can offer | fails the connect, naming the refusal |
nothing: the server's auth could not produce its credential, so the probe was not sent | fails the connect, naming the target and the cause; the connect is retried like any other |
a 429 or 503 with Retry-After | fails the connect and sends the server nothing more — no initialize — until the wait is over (five minutes at most); the connect is retried like any other |
anything else: -32601, a 403, another 4xx or 5xx with or without a body, {}, a 202, silence until the connection's timeout | sends initialize at 2025-11-25 |
- The probe is bounded by the connection's timeout. A fallback that is refused too names both refusals, and no request is sent twice.
- A re-dial, and the dial of a turn worker or subagent, start the way the connection they follow reached the server.
- A refused
initializeis followed byserver/discoverwhen the server answered with a JSON-RPC error or a4xxother than401. A5xx, silence or an unreachable server is not re-probed.
What agentd says about itself:
| Connection | clientInfo | Client capabilities |
|---|---|---|
| The supervisor's (startup, reload, re-dial, a server joining) | name: agentd, version: the agentd version, title: the instance name | none |
| A turn worker's or subagent's | name: agentd, version | elicitation |
Wire examples
The probe of a supervisor connection, and a server that speaks 2026-07-28:
// agentd → server
// headers: MCP-Protocol-Version: 2026-07-28, Mcp-Method: server/discover
{"jsonrpc":"2.0","id":0,"method":"server/discover","params":{"_meta":{
"io.modelcontextprotocol/protocolVersion":"2026-07-28",
"io.modelcontextprotocol/clientInfo":{"name":"agentd","version":"<agentd version>","title":"<instance>"},
"io.modelcontextprotocol/clientCapabilities":{}
}}}
// server → agentd
{"jsonrpc":"2.0","id":0,"result":{
"resultType":"complete",
"supportedVersions":["2026-07-28"],
"capabilities":{"resources":{"subscribe":true,"listChanged":true},"tools":{"listChanged":true}},
"ttlMs":0,"cacheScope":"private",
"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"<server>","version":"<server version>"}}
}}
The handshake sent to a server that predates server/discover:
// agentd → server (no MCP-Protocol-Version header on this request)
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{
"protocolVersion":"2025-11-25",
"capabilities":{},
"clientInfo":{"name":"agentd","version":"<agentd version>","title":"<instance>"}
}}
// server → agentd, with the header Mcp-Session-Id: <session>
{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-11-25","capabilities":{"tools":{}},
"serverInfo":{"name":"<server>","version":"<server version>"}}}
// agentd → server
{"jsonrpc":"2.0","method":"notifications/initialized"}
A tool call and its two kinds of failure:
// agentd → server
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{
"name":"get_weather","arguments":{"location":"NYC"},
"_meta":{"agent/run_id":"<run id>","agent/instance":"<instance>","traceparent":"<w3c traceparent>"}}}
// server → agentd: the tool ran and failed (a successful JSON-RPC response)
{"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":"unknown city"}],"isError":true}}
// server → agentd: a protocol fault
{"jsonrpc":"2.0","id":2,"error":{"code":-32602,"message":"unknown tool: get_weather"}}
Capabilities
| Feature | Support | How agentd uses it |
|---|---|---|
tools/list | yes | Every page, following nextCursor to the end; each page is bounded by the timeout |
tools/call | yes | Turns, subagents, mcp.tool and tool steps, mapped contracts |
notifications/tools/list_changed | yes | Logged as mcp.tools_changed; the supervisor's catalogue is rebuilt at the next reload; a subagent session re-lists at its next turn boundary |
resources/list | yes | A subagent's resource note (at most 50 URIs, first server wins); the mcp.resource step's list |
resources/read | yes | Notify-then-read, the instruction, resource.read in a subagent, the mcp.resource step's read |
resources/templates/list | yes | The mcp.resource step's templates; a template is not subscribable |
resources/subscribe, subscriptions/listen | yes | subscribe starts, wait {on: resource}, the instruction; concrete URIs only, and only when the server advertises resources.subscribe |
notifications/resources/list_changed | received | Not acted on |
prompts/get | yes | The mcp.resource step's prompt. A prompt is not a skill |
completion/complete | yes | The mcp.resource step's complete |
| Elicitation | yes | On worker and subagent connections: an ask_human gate, answered within 300 s or cancel |
| MCP Tasks (SEP-2663) | yes, at 2026-07-28 only | A tools/call answered with a task (resultType: "task") is followed with tasks/get, tasks/update and tasks/cancel, and pushes on a listen's taskIds; a task on any other method is an invalid answer. See MCP Tasks reference |
| Skills (SEP-2640) | yes, at 2026-07-28 only | Where the server declares io.modelcontextprotocol/skills: skills/list, skills/get, resources/directory/read with directoryRead, and each file through resources/read. See Skills reference |
| Sampling, roots | no | Not declared; a server request for them is dropped |
| Tasks of 2025-11-25 (core, experimental) | no | Not declared |
notifications/message, notifications/progress | received | Not acted on |
Response cache (ttlMs, cacheScope) | off | Every read and list goes to the server |
| MCP Events (SEP-3415, Beta) | yes, at 2026-07-28 only | Bindings and grants; the server declares extensions["io.modelcontextprotocol/events"]. Poll, push and webhook delivery |
agentd refuses at load any configured header the client sets itself:
MCP-Protocol-Version, Mcp-Method, Mcp-Name, every Mcp-Param-*,
Mcp-Session-Id and Last-Event-ID, in mcp.servers[].headers and in an
MCP service's headers.
Request metadata
Every tools/call carries keys in _meta that let a server correlate and
deduplicate:
| Key | Sent on |
|---|---|
agent/run_id | every call |
agent/instance | every call |
traceparent | every request of any kind: a span of its own in the trace of the unit of work it is made for (an mcp.resource step's lists included, one span per page), or the process trace for the connection's own handshake, catalogue lists, subscriptions and MCP Events requests (W3C trace context, SEP-414) |
tracestate | beside traceparent, when the trace has one |
agent/ctx | calls made during a conversation turn |
agent/idempotency_key | calls from a turn, from an mcp.tool step (stable across the step's retries, or its idempotency.value), and from the supervisor's tool registry |
agent/attempt, agent/run | calls from an mcp.tool step |
agent/acting_for, agent/labels | calls from the supervisor's tool registry (a workflow tool step, a mapped contract): the principal the work is for, or the instance's autonomous identity |
io.modelcontextprotocol/clientCapabilities | at 2026-07-28, the connection's capabilities; on a bounded tools/call, tasks/* and a listen that asks for task ids, with extensions["io.modelcontextprotocol/tasks"] added |
Timeouts
| Bound | Value | Applies to |
|---|---|---|
| Connection timeout | mcp.servers[].timeout, else mcp.default_timeout, default 60 s | each silence on a supervisor connection: the handshake, tools/list, registry-routed calls |
| Child connection timeout | 60 s, fixed | each silence on a turn worker's or subagent's connection |
| Turn tool call | the turn's remaining deadline, at most 600 s | the whole of one call the model makes |
mcp.tool step | the step's timeout, else limits.step_timeout, default 600 s | the whole of the call |
| Management call | 2 s | a subscribe, an unsubscribe or a re-dial handshake made from the supervisor's loop |
| Listen idle | 10 min, never less than the connection timeout | a quiet listen is closed and opened again (mcp.listen.ended, reason: idle) |
| Elicitation | 300 s | a person answering a server's question; then cancel |
| Answer POST | 5 s, set by the SDK | sending agentd's answer to a server request |
events/* request | 30 s | each MCP Events request |
tasks/* request | 30 s | each tasks/get, tasks/update and tasks/cancel |
| A step's task | the step's timeout; for mcp.tool, else limits.step_timeout | from the step's start; then tasks/cancel |
| A turn's task | the turn's call bound, less half of it or 30 s, whichever is less | then the task is handed to the supervisor |
A timeout bounds silence: a call that streams progress is not cut off by
the connection timeout. A call abandoned at its bound is cancelled:
agentd sends notifications/cancelled for the round in flight and closes its
response stream, which at 2026-07-28 is the cancellation. It holds up no other
call on the connection.
At shutdown agentd closes its connections. There is no server process to
signal, and the close counts inside lifecycle.drain_timeout (default
25 s). MCP Events subscriptions are not released at shutdown; the next
start arms them again from their stored cursors.
Retry schedules
| What | Schedule |
|---|---|
| Dialing a server that was down at startup | 1 s after the first failure, doubling to 60 s |
| Re-dialing a server that lost its session | 1 s, doubling to 30 s; one server per loop pass |
| Asking again for a failed subscription | 1 s, doubling to 30 s |
| Listening again after a listen ended or was unavailable | 250 ms, doubling to 30 s |
MCP Events: a failed request (transport, 5xx, timeout) | 1 s, doubling to 5 min, with ±10% jitter |
MCP Events: -32025 ResourceExhausted | the same, up to 15 min |
| MCP Events: listing a server's event types again | every 15 min, after a reload, or on its list_changed |
| MCP Events: polling | the server's nextPollMs, at least 1 s, 30 s when the server names none, at most 15 min, with ±10% jitter |
| MCP Tasks: polling a task | the task's pollIntervalMs, at least 250 ms, 2 s when it names none, at most 10 min; every 10 min for a task the server's listen took, as a backstop to its pushes |
MCP Tasks: a failed poll (transport, -32603, timeout), or a failed tasks/update declining a task's questions | 1 s, doubling to 5 min |
An MCP Events poll asks for at most 50 occurrences. While the server says hasMore and
each page held something new, agentd polls again at once, ten times in a row
at most.
Log events
Every event is one NDJSON line on stderr. Fields beyond the common envelope are listed. Events and metrics reference documents the envelope.
Connections
| Event | Level | Fields | When |
|---|---|---|---|
mcp.connect | info | server, protocol, tools, reason | A connection is made. tools is the advertised count at startup and on joining. reason is joined, reload or session_lost when it is not the first dial |
mcp.connect.fail | warn | server, err, reason | A dial failed. Also counted in agent_mcp_connect_failures_total |
mcp.disconnect | info, warn | server, reason | A connection was closed: reload or reload refused (info), or session_lost (warn) |
mcp.joined | info | server | A server that was down at startup joined; its subscriptions and bindings are restored |
mcp.join.refused | warn | server, errors | A joining server answered, but the catalogue with its tools could not be built; it is dialed again later |
mcp.tool.dropped | warn | server, tool, reason | The SDK left a tool out of a 2026-07-28 listing because of an invalid x-mcp-header annotation |
mcp.tools_changed | info | server, note | The server said its tool list changed |
mcp.tools_refreshed | info | tools | A subagent session re-listed its tools; tools is the new catalogue size |
mcp.tools_refresh_failed | warn | err | A subagent's re-list failed; its current catalogue stays |
mcp.unsubscribed | info | server, uri, reason | A subscription nothing wants any more was released (reason: unowned) |
mcp.unsubscribe.fail | warn | server, uri, reason, err | Releasing it failed; it is tried again later |
Listens (2026-07-28)
| Event | Level | Fields | When |
|---|---|---|---|
mcp.listen.ended | info | server, reason: idle, detail, retry_ms | A quiet listen reached its idle limit and is reopened |
mcp.listen.ended | warn | server, reason, retry_ms | A listen ended for any other reason: the server closed it, or the client fell behind |
mcp.listen.resumed | info | server | A listen is held again |
mcp.listen.narrowed | warn | server, dropped | The server acknowledged a listen without some URIs; they are asked for again |
mcp.listen.unavailable | warn | server, reason, retry_ms | A listen failed; logged once, retried on the listen schedule |
mcp.listen.flags_refused | warn | server, reason | The server refused the list_changed flags; the listen continues without them |
A listen the server refuses outright (-32601 or -32602) is logged once
and not asked for again; the connection works without its list_changed.
Subscriptions
| Event | Level | Fields | When |
|---|---|---|---|
start.subscribe.armed | info | workflow, node, server, uri, reason | A subscribe start is subscribed |
start.subscribe.unsupported | error | workflow, node, server, uri, err | The server offers no subscriptions; the start can never fire |
start.subscribe.fail | warn | workflow, node, server, uri, err | A subscribe failed in a way that may pass; asked again on the backoff |
start.subscribe.no_server | warn | workflow, node, server | The start's server is not connected |
wait.resubscribed | info | server, uri, reason | A parked wait {on: resource} is subscribed again |
wait.resubscribe.fail | warn | server, uri, reason, err | Subscribing it again failed in a way that may pass; retried |
wait.resubscribe.fail | error | server, uri, reason, err, failed or parked | The waits failed, or stay parked because the server is configured but not connected |
instruction.subscribe.unsupported | info | server, uri | The instruction's server offers no subscriptions; the instruction is followed by its refresh alone |
instruction.subscribe.fail | warn | server, uri, err | Subscribing the instruction failed; retried |
instruction.event | info | server, event_type | An MCP Events occurrence re-read the instruction |
Skills
A line names a server's skill by server and uri, a folder's by path.
| Event | Level | Fields | When |
|---|---|---|---|
skills.discovered | info | server, count, truncated, skills ([{name, uri}]) | A source's skills were listed |
skills.source.unavailable | warn | server, reason | A skills.sources server is not connected, did not reach 2026-07-28, does not declare the extension, or its listing failed |
skills.declined | warn | server, uri, reason; file, skill, ctx or run and step when a load or a read asked | An entry broke a rule at discovery, or a file's bytes or the frontmatter did not match |
skills.loaded | info | ctx or run and step, skill, server, uri, hash, verified | A body entered a context or a step's prompt |
skills.unknown | warn | skill, err, candidates | A reference named no skill, or more than one |
skills.load.failed | warn | skill, server, uri, err | The skill's server was not connected or answered with an error |
skills.collision | warn | name, candidates | Skills of different origins share a name; each is reached by its qualified reference |
skills.unloaded | info | ctx, skill, server, uri, reason | A reload removed the skill's source, or its source no longer admits it: the context lets go of it |
MCP Events
| Event | Level | Fields | When |
|---|---|---|---|
mcp.events.listed | info | server, types | A server's event types were listed |
mcp.events.type.dropped | warn | server, event_type, reason | A listed type's x-mcp-header annotations are invalid: it is left out of the listing, as a tool with invalid annotations is |
mcp.events.list.fail | warn | server, err, retry_ms | Listing failed; retried |
mcp.events.list_changed | info | server | The server said its event types changed; listed again |
mcp.events.armed | info | server, event_type, mode, cursor_present | A binding is polling or streaming, or its webhook subscription is live |
mcp.events.stream.opened | info | server, event_type, cursor_present, truncated | A push binding's events/stream was taken: its active frame arrived |
mcp.events.stream.closed | info | server, event_type, reason, acked, code?, err?, status?, retry_ms? | A push stream ended. reason: server_closed, dropped, silent, refused, status, terminated, rate, pressure, store_degraded, paused, mode_changed, redialed, rediscovering, fallback, removed, oversize_cursor; retry_ms when it is opened again after a backoff |
mcp.events.delivery | warn | server, event_type, binding, mode, reason, not_offered? | A binding is delivered in a later listed mode: the server does not offer the earlier ones (not_offered), or refused the stream (method_not_found, unsupported, forbidden, refused). Said once, until a reload or a re-dial decides afresh |
mcp.events.error | warn | server, event_type, code, err | A push stream's transient error frame; the stream goes on |
mcp.events.arm.fail | warn, error | server, event_type, err, retry_ms | Arming a binding failed; retried |
mcp.events.refused | error | server, event_type, reason, detail | The binding cannot work; see refusals |
mcp.events.poll.fail | warn | server, event_type, code, err, retry_ms, relist? | A poll failed; retried. On -32020 (the headers disagreed with the body) the server is listed again first, relist: true |
mcp.events.paused | warn | server, event_type, cause, detail | Intake is held: cause is pressure, rate or store_degraded; the cursor is kept |
mcp.events.resumed | info | server, event_type, cause | A paused binding resumed |
mcp.events.gap | warn | server, event_type, cause | A loss the wire shows: truncated, no_replay or schema_changed |
mcp.events.rejected | warn | server, event_type, event_id, cause | An occurrence was not appended: oversize or malformed; the cursor moves past it |
mcp.events.schema_mismatch | warn | server, event_type, event_id | Appended with schema_ok: false |
mcp.events.subscribed | info | server, event_type, owner, reason, subscription | A runtime subscription was made; also audited |
mcp.events.unsubscribed | info | server, event_type, owner, reason, subscription | A runtime subscription was released; also audited |
mcp.events.removed | info | server, event_type, reason | A binding was removed and its records deleted |
mcp.events.terminated | error | server, event_type, code, mode? | The server ended a webhook subscription, or a push stream (mode: push): -32024 refuses the binding, -32023 or -32026 {reason: schema_changed} lists the server again, a push stream's -32026 moves to the next listed mode, anything else re-arms after a backoff |
mcp.events.delivery_suspended | warn | server, event_type, last_error, active | The server reported failed deliveries; re-armed from the stored cursor |
mcp.events.throttled | info | server, event_type, retry_after_ms | The server is throttling deliveries |
mcp.events.mode_changed | warn | server, event_type, from, to, cause | A binding moved to the next delivery mode the operator listed, until a reload or a re-dial decides afresh |
mcp.events.callback_failed | error | server, event_type, reason, url | The server could not use the webhook URL; after five in a row the next mode is tried |
mcp.events.hook.denied | warn | server, event_type, reason | A webhook delivery failed its signature check; answered 401 |
mcp.events.hook.unsaved | warn | err | The stream head was not saved; the delivery is answered 503 |
mcp.events.index.failed | warn | subscriptions, err | The record of runtime subscriptions could not be saved |
Payloads are never logged; lines carry event_id, and text from the server
is stripped of control characters and cut at 200 bytes.
MCP Tasks
Lines about a task name it by its handle (task, mt_ and 16 hex digits),
never by the server's task id.
| Event | Level | Fields | When |
|---|---|---|---|
mcp.task.created | info | server, tool, task, status, ttl_ms, poll_interval_ms, run, step | A workflow step's call became a task; the step waits on it |
mcp.task.handed_over | info | server, task, ctx, run | A turn's call became a task still running at the call's bound; the supervisor follows it |
mcp.task.resumed | info | server, task, status | A restart read the task back; it is polled again |
mcp.task.status | info | server, task, from, to, status_message | The task moved |
mcp.task.input.requested | info | server, task, key, method | A task the supervisor follows asked for input it cannot put to a person |
mcp.task.input.declined | warn | server, task, key, method, reason | That input was answered decline |
mcp.task.completed | info | server, task, is_error | The task completed; is_error is the tool's own |
mcp.task.failed | warn | server, task, code or reason, detail | The task failed, asked for something agentd never declares, or a request about it failed for good |
mcp.task.cancelled | info | server, task, reason | tasks/cancel was sent (the step timed out, the run was cancelled, the step no longer waits for it, the run ended, mcp.task.cancel), or the server cancelled it |
mcp.task.expired | warn | server, task, reason | unknown: the server answered -32602; ttl: still open 30 s past its ttlMs (tasks/cancel sent); unread: a turn's ended task nobody read within a day, or before its run ended |
mcp.task.poll.fail | warn | server, task, err, retry_ms | A poll, or the tasks/update declining a task's questions, failed in a way that may pass; retried |
mcp.task.listen.unavailable | info | server, err | A listen asking for task notifications failed; the server's tasks are polled |
A task's results, errors and input requests are never logged.
MCP Tasks reference
Limits
| Limit | Value |
|---|---|
| Open tasks the supervisor keeps on one server | 32, its declaring calls still in flight counted; past it, its calls to the server do not declare the extension |
| Polls in flight | 8, on threads of their own, never the main loop |
| Poll interval | the task's pollIntervalMs, between 250 ms and 10 min; 2 s when it names none |
| TTL backstop | 30 s past ttlMs, counted from when agentd first saw the task |
| A turn's ended task, unread | kept a day for mcp.task.get |
| A turn's handover margin | half the call's bound, at most 30 s |
Who follows a task
| The call came from | Followed by | When it ends | Its bound |
|---|---|---|---|
a workflow tool or mcp.tool step | the supervisor, from a record in the store that a restart reads back | the step finishes with the outcome | the step's timeout (an mcp.tool step's default included), then tasks/cancel |
| a model in a turn | the turn worker, inside the call | the outcome is the tool result | past the call's bound less the margin, it is handed to the supervisor and the model gets {task, server, status, note} |
| a turn's task handed over | the supervisor, from a record | kept until mcp.task.get reads it | none; mcp.task.cancel cancels, and so does the end of the run an agent step's task was handed over in |
| a store adapter | the connection, inside the call | the outcome is the call's | the call's own bound, then tasks/cancel |
a subagent, a mapped contract, knowledge.auto_context, a turn's call the supervisor runs, the instruction bindings | no one: these calls have no bound, so they do not declare the extension | the server answers inline, or refuses with -32021 | — |
A turn worker's follow looks at the turn's cancel at least every 100 ms: a
turn cancelled while it follows a task sends tasks/cancel and hands
nothing over.
How a task ends
| Task | The call |
|---|---|
completed | its result is the call's CallToolResult, isError: true included |
failed | fails with the task's JSON-RPC error |
cancelled | fails: the server cancelled it |
a seed already completed, failed or input_required | fetched with tasks/get at once for what the seed does not carry, then as below |
-32602 from tasks/get or tasks/update | fails: the server does not know the task (unknown or expired) |
open 30 s past ttlMs | tasks/cancel, and fails: still open past its ttlMs |
any other error from tasks/get that will not pass | tasks/cancel, and fails with the error |
asks for sampling/createMessage, roots/list or another undeclared request | tasks/cancel, and fails naming the request |
Input requests
| Request | On a turn worker's connection | On the supervisor's |
|---|---|---|
elicitation/create, form | the ask_human gate, as a direct elicitation; cancel after 300 s | declined; with the step's input, the gate a human step opens, cancel after input.timeout (24 h) |
elicitation/create, URL | declined | declined |
| anything else | the task is cancelled | the task is cancelled |
A round's answers go back together in one tasks/update, sent again until
the server acknowledges them, and a key is never asked twice, whatever later
polls list. No poll goes out while a person decides. A turn's task that
asks after it was handed over is declined: the turn that could have asked
has moved on. A person's answer is never stored, so one the server has not
acknowledged when the task is handed over has its key released, and is
declined too.
On the supervisor's connections, a workflow step that sets input (RFC
0054) has its task's form elicitations put to a person one key at a time,
each over A2A on a task of its own in the run's conversation, and sends the
round's answers together once every key has one. The record keeps a key as
answered only once the server acknowledged it, so after a restart the
question's task ends and the person is asked again on a new one rather than
a key being left unanswered. While a person decides, the task is polled at
its own interval.
Skills reference
Limits
| Limit | Value |
|---|---|
| Files per skill | 512, SKILL.md included; more is declined from the entry |
| Bytes per skill | 16 MiB (16,777,216), the sum of the entry's sizes; for a dynamic skill, what is read of it |
skills/list pages | 64 per listing; past them, skills.discovered says truncated |
A resources/read answer | 24 MiB, so one 16 MiB file arrives whole, a base64 blob included; every other MCP answer is held to 8 MiB |
A dynamic skill's file list | its directory and each subdirectory it lists, read with resources/directory/read, up to 64 files |
Each skills/* request | 30 s |
| A body or a file in context | skills.max_bytes (32768), after the whole file was checked |
| Loaded skills per context | skills.max_loaded (8) |
What is checked
| When | Check | On failure |
|---|---|---|
listing, skills/get | the entry: a uri ending in /SKILL.md whose last path segment is frontmatter.name, and every uri in a URI's own characters (no space, line break, quote or angle bracket); name and description by the Agent Skills rules; resources an array of {uri, digest, size} — each once, inside the skill's directory, sha256: and 64 lowercase hex digits, SKILL.md among them — or "dynamic" | declined |
| listing | within the limits; dynamic only with dynamic: allow | declined |
| load | SKILL.md's size, then its SHA-256, against the entry | skills/get once: a changed digest is read again, the same one declined |
| load | SKILL.md's frontmatter, field by field, against the entry's | declined, naming the field |
skills.read | the file is listed in the entry the skill was loaded under, its size and SHA-256 match | declined; a refreshed entry that differs says to load the skill again |
allowed-tools and every other frontmatter field are ignored: a skill
grants nothing. agentd sends a skill URI only back to the server that
served it.
In the model's context a server's skill keeps to its block: the catalogue
gives each skill one line (a line break in a description becomes a
space), the header and the <skill_content> tag carry the server and
uri with quotes and angle brackets escaped, and a <skill_content or
</skill_content in the body, in any case, is made inert. A context
names each loaded skill by the reference it loaded it under;
skills.read and skills.unload find it by that or by what the
catalogue calls it now.
A reload keeps a context's loaded skills that the new catalogue holds. A
server's skill whose source the reload removed, or whose source no longer
admits it — a filter that leaves it out, dynamic: refuse, an entry now
declined — leaves every context (skills.unloaded), and skills.read
never reads from a server that is not a source. A skill got with
skills/get stays while its source admits its entry.
References
| Form | Names |
|---|---|
<name> | the one skill of that name, in any origin |
<origin>/<name> | the skill of that name in one origin: a source's server name, or local for agentd's own |
<origin>/<path> | a server's skill by its path, the uri without its scheme and /SKILL.md |
Two matches are an error listing both by <origin>/<path>. A
<server>/<path> no listing names is asked of the server as
skill://<path>/SKILL.md with skills/get.
MCP Events reference
Limits
| Limit | Value |
|---|---|
| Bindings per server | 64 |
| Bindings and subscriptions per instance | 256 |
Live runtime subscriptions per grant (max) | 1 to 64, default 8 |
A tool-made subscription's lifetime | at most 30 d, default 1 d |
| Runtime subscription arguments, serialized | 4 KiB |
| One occurrence, or one webhook body | 256 KiB, and at most store.max_value_bytes |
An eventId | 1 KiB |
| A stored cursor | 4 KiB |
| Duplicate detection | ids seen in the last 35 min, at most 4096 per binding |
| Listing | 20 pages or 1000 types; past that, list_too_large |
Webhook lease (ttl) | default 1 h, refreshed at 80% of what the server grants |
| A webhook refusal still outstanding | after 5 min the binding is paused, keeping its cursor |
events/* requests | 4 worker threads of their own, never the main loop |
MCP Events refusals
mcp.events.refused is logged once per cause, at error level. Nothing is
sent where nothing may be, and the refusal holds until a later listing, a
re-dial or a reload shows the cause has cleared.
reason | When |
|---|---|
revision | The connection reached 2025-11-25; no events/* request is sent |
no_capability | The server does not declare the events extension; no events/* request is sent |
unknown_revision | The server declares the extension at a revision agentd does not implement (SEP-3392); no events/* request is sent |
method_not_found | events/list answered -32601; a gateway may not pass Events through |
unknown_event | The server's listing does not name the type |
no_common_mode | No listed delivery mode is one the type offers and agentd supports |
invalid_arguments | The arguments fail the type's input schema, or the server answered -32602 |
forbidden | The server answered -32024: the credential may not subscribe |
not_supported | The server answered -32026 for the delivery mode |
list_too_large | The listing ran past 20 pages or 1000 types |
Stream event
| Field | Value |
|---|---|
id | mcp/<server>/<type>/<eventId>, or mcp/<server>/<type>/sha256:<hash> when longer than 200 bytes |
stream, subject | the binding's into |
source | mcp:<server> |
data.server, data.event | the server and the event type |
data.event_id, data.occurred_at | the server's eventId and timestamp |
data.schema_ok | whether the payload passed the type's payload schema |
data.subscription | the binding's key, assigned by agentd |
data.payload | the server's data, verbatim |
Webhook delivery answers
Routes are <webhooks.url>/hooks/_mcp/<binding>. A delivery's Standard
Webhooks signature is checked before its body is used: all four headers, a
timestamp within 5 minutes, and the HMAC over the raw body.
| Status | When |
|---|---|
200 | The occurrence is durably appended or is a duplicate, or a gap or terminated envelope was taken |
401 | The signature check failed |
405 | The method is not POST |
410 | No binding at this path, a body that is not a JSON object, or a malformed occurrence; final |
413 | The body is over 256 KiB; answered before it is read; final |
429 | Pressure, or the binding's rate is spent; with Retry-After |
503 | Not armed yet, shutting down, a degraded store, or the append was not saved; with Retry-After |
Metrics
| Metric | Type | Labels |
|---|---|---|
agent_mcp_connect_failures_total | counter | server |
agent_mcp_events_total | counter | server, event, mode, outcome (appended, duplicate, rejected, schema_mismatch, refused_pressure, followed, unauthenticated) |
agent_mcp_events_requests_total | counter | server, method, outcome (ok, refused, failed) |
agent_mcp_event_gaps_total | counter | server, event, cause |
agent_mcp_events_dedup_evicted_total | counter | server, event |
agent_mcp_event_lag_ms | gauge | server, event: append time minus the server's timestamp |
agent_subscriptions_active | gauge | kind="resource": the resource subscriptions the connections hold; kind="event": MCP Events bindings, by mode |
agent_mcp_tasks_open | gauge | server: the MCP tasks the supervisor follows that have not ended |
agent_mcp_tasks_total | counter | server, outcome (completed, failed, cancelled, expired): the tasks it followed to their end |
Events and metrics reference lists every metric.
agentd's own tools
These tools are built into agentd and act on the agent, never on the
world. agentd --capabilities prints the list as internal_tools. "Root"
is the instance's own conversation, "workflow" a workflow step, and
"subagent" a subagent's loop; the grant is the default, which
configuration can narrow.
| Tool | Default grant | Does |
|---|---|---|
instruction.read | root, workflow, subagent | Read the current instruction |
instruction.subscribe | root | Subscribe to the instruction resource, or switch to another URI |
subagent.run, .send, .status, .await, .list, .kill, .retire | root, workflow | Spawn, steer, wait for, list, stop and retire subagents |
memory.get, .set, .list, .push, .shift, .pop, .delete | root, workflow, subagent | Durable memory, including queue operations |
artifact.create, .get, .delete, .list | root, workflow, subagent | Artifacts delivered with the task |
message.send | root, workflow, subagent | Deliver a message into one of the instance's own conversations |
events.list, .subscribe, .unsubscribe, .subscriptions | root, workflow | Runtime MCP Events subscriptions; offered only when a grant sets tools: true |
mcp.task.get, .cancel | root, workflow | Read, or cancel, an MCP task a tool call of the caller's conversation became and handed over; offered where a server's tasks is auto |
workflow.run, .cancel, .wait | root, workflow | Start, cancel and wait for runs |
workflow.list, .status, .signal | root, workflow, subagent | Read runs and send signals |
workflow.create, .update, .delete, .pause, .resume | root | Define workflows at runtime, pause and resume runs |
plan.create, .get, .update, .clear | root, workflow, subagent | The conversation's working plan |
ask_human | root, workflow, subagent | Ask a person and wait for a schema-checked answer |
sleep, await | root, workflow, subagent | Wait for a duration, or until a condition holds |
context.compact | root, workflow, subagent | Summarize older messages in the context |
think | root, workflow, subagent | One structured reasoning call with no tools |
decide | root, workflow, subagent | Typed questions answered with calibrated confidence |
skills.list, .load, .read, .unload | root, workflow, subagent | The skills catalogue, the loaded set, and a loaded skill's files, read through the skill's own origin |
finish | root, subagent | End the current unit of work with a status |
status | everyone, A2A callers included | The instance's runs, subagents, conversations, budget and store |
company.status | root, workflow, subagent | The Companies the instance acts at for its User, as it knows them now: verified, signed in, held by a Retry-After, which of its servers joined — its MCP servers, and those its operation tools are named under. Offered only where a Company is declared (the companies feature), in the User's work |
knowledge.search, .get, .list | root, workflow, subagent | A contract: implemented by knowledge.server or a mapping |
search.query, .fetch | root, workflow, subagent | A contract: implemented by search.server or a mapping |
code.run | root, workflow | A contract: implemented only by a mapping to a sandbox server |
exec | root, workflow, subagent | A contract: a mapping, or a local command runner with the exec build feature and security.exec.enabled |
A subagent's loop also gets resource.read when its servers expose
resources. It reads one resource by URI.
Known limits
- Revision choice. The probe alone chooses the revision. A server that
answers
server/discoverbut servessubscriptions/listenin a shape the client cannot read holds no listens, though the same server reached throughinitializemight have. No setting makes agentd start withinitialize. - Probe cost. Dialing a server that predates
server/discovercosts one extra request. A server that answers the probe only after the connection's timeout is reached throughinitializeafter that wait. - Revision changes. A server that changes revision is probed again only
when it refuses
initialize, or when a reload dials it afresh. - Dropped tools. At 2026-07-28 the SDK leaves out of a listing any tool
whose
x-mcp-headerannotation is invalid: one on the schema root or off aproperties-only path, a value that is empty or not an HTTP token, or a duplicate name. agentd logs each asmcp.tool.dropped. - Message order. When a server sends a request ahead of a
tools/listanswer on the same stream, the SDK may miss the tools' header schemas, and an annotated call lacks itsMcp-Param-*headers until the next list. A notification ahead of the answer is handled. - Interactive reads. A
resources/readanswered withinput_requiredfails. - Answer bound. The POST that carries agentd's answer to a server request is bounded at 5 s by the SDK.
- Listens do not resume. A reopened listen starts from the moment it reopens. agentd reads every held URI again after reopening, so state converges, but changes inside one gap are coalesced and a change reverted inside the gap is not delivered.
- Catalogue refresh. The supervisor's tool catalogue is rebuilt at a reload, not when a server says its tools changed.
- Child timeouts. A turn worker's and a subagent's connections use a
fixed 60 s timeout; a per-server
timeoutdoes not reach them. - Tags are per server. The union of every key under
tagsapplies to every tool of the server. - MCP Events is Beta. agentd follows the Beta specification
(
ext-eventsspecification/beta/events). A Beta extension may still change under the same identifier; a change that breaks compatibility bumps therevisionin its settings, and agentd does not use a revision it does not implement. Only the spec's error codes (-32023…-32027,-32020) are read as what they mean. - Invisible losses. Two losses do not show on the wire: a server that omits its delivery status and gives up deliveries that never reached agentd, and anything missed on a type without replay.
- Replicas. Each instance holds its own Events subscriptions, so
replicas need distinct
webhooks.urlvalues. - Tasks and a person. The supervisor's connections declare no elicitation, so a workflow step's task that asks a question is declined; so is a turn's task that asks after it was handed over.
- Unrecorded tasks. A store adapter's task lives only as long as its call: a restart does not poll it again.
- Calls without a bound. A subagent's, a mapped contract's and
knowledge.auto_context's calls have no bound of their own, so they do not offer tasks: a server that needs one refuses them with-32021. - Skills are listed at startup and on a reload. A skills source that
joins after startup has its skills listed at the next reload, and a
listing is not refreshed when its
ttlMspasses. - No per-skill approval. The operator's
skills.sourcesentry is the approval of a server's skills; agentd asks no person before it loads one.
Next steps
- Connect MCP servers — declare, authenticate and verify a server.
- React to changes and events — the triggers these events report on.
- MCP: tools and context — why the client behaves this way.
- Events and metrics reference — the log envelope and every metric.