Elevator pitch
Let an ACP client or proxy supply tools to an agent using the ACP connection it already has. Declare an MCP server with"type": "acp", then send independent MCP requests to its serverId. Results, request-scoped notifications, and cancellation travel over ACP without a second process or network endpoint.
This draft targets MCP 2026-07-28 only. It does not emulate older MCP revisions. ACP initialization and sessions remain unchanged, but there is no MCP initialization handshake, MCP connection object, or connect/disconnect exchange.
Motivation
ACP manages an agent’s conversation while MCP provides tools behind it. A client often needs to do both: provide project-aware tools, ask the agent to use them, and execute them inside the client’s process or sandbox. Requiring a separate HTTP listener or subprocess for those tools creates an extra communication path and makes isolation harder. Native MCP-over-ACP keeps the interaction on the authorized ACP channel. It works directly between a client and an agent; proxy chains are useful but not required.Protocol model
There are three identities, with different purposes:serverIdnames a server declared by its provider. It selects a tool/resource/prompt offering, not an MCP session.requestIdis a caller-generated opaque string identifying one logical MCP request. It is used as the inner MCP JSON-RPC ID and is preserved across ACP proxies.- Outer JSON-RPC
ididentifies the ACP request on one hop. A proxy may renumber it when forwarding.
sessionId and toolCallId, which name the ACP session and tool call it was sent for. Both are optional. See Session and tool call attribution.
Every operation carries its own MCP version, client capabilities, and other request context. Nothing about a previous request establishes that context for the next one. A subscription may keep one request alive; that is not a session for unrelated calls.
Stateless MCP does not require stateless application services. Providers may reuse tool implementations, database pools, caches, and authorization services. Execution and notification permissions belong to each operation, while application state may outlive it. Discovery, listing, and execution must use that operation’s explicit caller context, not the identity or capabilities of an earlier request.
The binding uses one method name, mcp/message, in two directions:
- An agent-to-provider request invokes one MCP operation and eventually receives one result or error.
- A provider-to-agent notification carries an MCP notification belonging to that active operation.
mcp/message is this binding’s ACP transport envelope, not an MCP-defined method. JSON-RPC distinguishes the two forms by the outer id: requests have one, notifications do not. The inner MCP method is preserved, such as tools/call for a request or notifications/progress for a notification. Implementations dispatch by JSON-RPC message kind and direction, not the outer method name alone.
There are no provider-originated MCP requests. Interactive tools use MCP’s multi round-trip request pattern (MRTR).
Declaring a server
The client checks the agent’s ACP MCP capability, then includes a declaration in a session setup request. For example,session/new parameters can include:
serverId. A server ID identifies one registration for the lifetime of the ACP connection and must not be rebound to a different registration, including after removal. The same registration may be offered to multiple ACP sessions; distinct offerings use distinct server IDs rather than hidden per-MCP-connection catalogs.
The provider must be ready to serve requests when it publishes the declaration. An agent may invoke tools or discover the server before returning the ACP session ID. Those requests carry no sessionId. See Requests without attribution.
Only the owning provider claims requests for its registered IDs. Intermediaries without a matching registration forward the request. If no provider can resolve the ID, the final recipient returns the binding’s server-unavailable error.
A declaration is a reference to a registration, not a remote allocation request. This RFD adds no server-update or unadvertisement method. The provider owns the registration’s local lifetime: releasing it rejects future requests and cancels outstanding work. Closing the ACP connection releases all its registrations. Merely omitting a previously declared server from a later setup request does not revoke a registration used by another session.
Capability advertising
In ACP v1, the relevantInitializeResponse fragment is:
false.
In draft ACP v2, the fragment is:
null means support is not advertised, and {} advertises support. These are ACP capabilities, separate from the MCP client capabilities carried on each request.
An intermediary only advertises support when its downstream chain can consume this transport. The conductor does not unconditionally add the capability. A proxy that provides no adaptation preserves its successor’s capabilities.
This capability advertises the MCP transport, not every optional MCP feature or a guarantee that every operation can be cancelled. MCP discovery and per-request capabilities describe the supported features.
Requests and results
The agent sends an ACP request with a server ID, a fresh logical MCP request ID, and flattened MCP method/parameters:"mcp-request:a11f" as its MCP JSON-RPC ID. It does not use the outer ACP ID 20, which may differ on another hop.
The successful ACP response carries exactly one inner MCP outcome. A result is nested under result:
error branch:
-32000 must not trigger ACP authentication. An MCP tool-execution error remains a result with isError, not either kind of protocol error.
Senders MUST include exactly one of result or error in the carrier. result must be present on the result branch and accepts any JSON value, including explicit null. error is a non-null object with required integer code and string message; optional data distinguishes omission from explicit null. Receivers ignore unknown outer carrier fields and prefer result if both outcome keys are present, matching the existing JSON-RPC response handling. Unknown inner result and error fields remain opaque and are preserved. An optional carrier _meta contains ACP metadata and is separate from the inner outcome’s metadata; omission, null, and invalid non-object values are all treated as absent.
Binding failures
Outer ACP errors are reserved for failures to admit, route, or execute the binding itself:
These binding-specific codes do not allocate new meanings in MCP’s reserved
-32000 through -32019 range. No implementation may report overload as ACP’s authentication-required error. A malformed inner MCP request or an MCP error returned by a backend belongs in the outcome carrier instead.
server/discover is an ordinary inner MCP request. It is supported but is not a prerequisite for calling a tool. The transport does not silently perform an MCP handshake or substitute ACP capability discovery for MCP server discovery.
Discovery’s supportedVersions describes the revisions available through this binding. The SDK restricts it to 2026-07-28, even when the hosted backend supports additional revisions on other transports; it does not invent support that the backend lacks. Other discovery capabilities and metadata are preserved.
Fields and metadata
serverId, requestId, and method are required non-null strings on both requests and notifications. A caller uses a fresh requestId for each operation, including an MRTR retry, and must not reuse an active ID for the same server on the same ACP connection.
The inner params field accepts an object or null and is optional at the envelope level. Omission and null both mean no inner parameters; positional arrays are invalid. This does not relax MCP’s requirements: a valid 2026-07-28 request must include its required metadata in params._meta.
sessionId and toolCallId are optional strings on requests. Omission and null are equivalent. See Session and tool call attribution.
An optional outer _meta object alongside serverId is ACP envelope metadata. Omission and null are equivalent. It is distinct from MCP metadata inside the inner parameters or result, which must be preserved.
Providers validate the per-request MCP version and capabilities. Missing or malformed required inner metadata is an MCP invalid-parameters outcome. An unsupported version is MCP’s UnsupportedProtocolVersion error (-32022), with the supported and requested versions, inside the outcome carrier. This binding’s supported set contains only 2026-07-28: a caller without a mutual version surfaces that error rather than falling back to initialize or an earlier revision.
Session and tool call attribution
serverId selects a server. It does not say which ACP session a request was sent for, or which tool call. The same registration can be offered to several sessions, and a child session can use a server that was declared to its parent.
A provider needs the session for two things:
- To run the request. A provider that runs each session’s tools in that session’s working directory or sandbox cannot run a request until it knows the session.
- To show the request. A client shows what its tool is doing in the transcript of the session that made the call. For a child session, that is the child’s transcript.
session/update, and the client serves the mcp/message request for it. Nothing tells the client that the two are the same work. toolCallId does. A client uses it to:
- Show its own view of the tool call. The agent’s report of an MCP tool is often little more than the tool’s name and JSON. The client that ran the tool knows the diff it applied, the terminal it started, or the files it opened. It can draw that in the entry of the tool call, instead of in a second entry beside it.
- Show output while the tool runs. The client can show its tool’s output on the tool call as the tool produces it, without waiting for the agent to send it back in a tool call update.
- Tell concurrent calls apart. Two calls of the same tool with the same arguments in one session differ only in their tool call.
- Join the other messages about the same tool call.
session/request_permissionandelicitation/createcan already name a tool call. When a tool answers withinput_requiredand the agent collects the input withelicitation/create, the client can tell that the prompt belongs to the request it just answered.
mcp/message request can name the ACP work that caused it:
sessionIdis the session whose work caused the request. It is the ID the agent uses onsession/updatefor that work. For work in a child session that the agent exposes, that is the child’s ID, even when the server was declared to an ancestor.toolCallIdis the tool call in that session that the request is part of. It is the ID the agent uses to report the call insession/update.
null are equivalent. The agent MUST NOT send toolCallId without sessionId. Only requests carry the fields. A notification belongs to its request through requestId.
The link runs one way, from an MCP request to a tool call. A tool call that the agent reports says nothing about whether an mcp/message request will follow. The fields also do not tie a request to the lifetime of that work. Cancelling a tool call or a session’s work does not cancel the mcp/message requests that name it. The agent cancels a request it no longer needs with $/cancel_request, as for any other request.
What the agent sends
- The agent SHOULD include each field when it knows the value. An agent that cannot tell which session or tool call a request belongs to omits the field. It MUST NOT send the root session’s ID, the latest tool call’s ID, or any other guess in its place. A provider can reject a request that has no
sessionId. - The agent MUST NOT send a
sessionIdunless the session is active on the connection, or is a child session that the agent has announced withsubagent_updateand whose root session is active. A session becomes active with the response to its setup request, so a request the agent sends before that response has nosessionId. - The agent MUST NOT send a
sessionIdfor a server that was not declared to that session or to one of its ancestors. The servers declared to a session are themcpServersof its most recent setup request on the connection. - The agent SHOULD report a tool call in
session/updatebefore it sends a request that names it. An agent that cannot order the two still sendstoolCallId. An agent that does not report the tool call omits it. - More than one request can carry the same
toolCallId, such as an MRTR retry.
What the provider does
- A provider MAY ignore both fields.
- A provider MAY use
sessionIdto choose which session a request acts on, or where its output is shown. Before it does, it MUST check that the session is active on the connection or is an announced child of an active session, and that the server was declared to it or to one of its ancestors. If the check fails, the provider MUST reject the request with-32602before it runs the inner MCP request. It MUST NOT run the request for another session instead. - A provider that needs the session to run a request MAY reject a request that has no
sessionId, with-32602, before it runs the inner MCP request. - A provider MUST NOT reject or delay a request because
toolCallIdis missing or names a tool call it does not know. Many requests are not part of a tool call, and the agent’s report can arrive after the request. The provider can keep the association and apply it when the tool call is reported. - A provider MUST NOT treat either field as permission to run a request, as a key for deduplicating requests, or as a sign that a tool call started or finished. The status of a tool call comes from
session/update.
Requests without attribution
Some requests have no session to name. An agent can discover a server once and share the result between sessions. A request the agent sends while it handles a setup request comes before the session is active. An HTTP client does not say which session it is working for. A provider that rejects every request without asessionId therefore also rejects discovery during session setup, and every request from an agent that sends no attribution. A provider that needs a session for those requests declares a separate serverId in each session setup request. The serverId then identifies the session the server was declared to. It cannot identify a child session that uses the server. sessionId adds that.
Alternatives considered
- A required scope on every request.
elicitation/createrequires exactly one ofsessionIdor therequestIdof a pending request. That fits a request the user has to answer. An HTTP adapter or a discovery request can have no session, and many providers can serve those requests anyway. A required field would make the agent invent a session for them. With optional fields, only a provider that needs the session rejects the request. - A required report before the request. If
toolCallIdhad to name a tool call the provider has already seen, the provider could reject an unknown ID. Some agents report tool calls and run them on separate paths, so the rule would make them delay the request or drop the field. The provider still could not tell a late report from one that never comes. Reporting first is a SHOULD instead. - Matching a request to a tool call by name and arguments. A client could compare the tool name and arguments of a request with the raw input of the tool calls the agent reports. The agent chooses the title and raw input it reports, and can leave the raw input out. Two concurrent calls can have the same name and arguments.
- A session ID in the tool’s arguments. The model would have to copy the value correctly on every call. The value would say which session to act on, not which session made the call.
- A marker on the tool call. A tool call update could say that an
mcp/messagerequest will follow. That ties what the agent reports to the transport one tool uses, and the provider still has to match the two.
Open questions
- Which error a provider returns for a
sessionIdit rejects, and for a missing one it needs.-32602matches the other envelope failures of this binding.-32002is the code for an unknown session, but ACP defines it only for requests the client sends. A code of its own for the missingsessionIdwould tell the agent that the request can succeed with attribution. - Whether an agent should advertise that it attributes requests, for example inside the
acpMCP capability. A provider that needssessionIdcould then tell atinitializethat an agent never sends it, and declare a separateserverIdfor each session or no server at all.
Request-scoped notifications
While a request is active, its provider can send a notification with the same server and logical request IDs:Subscriptions
subscriptions/listen is a long-lived mcp/message request, not a new ACP connection. Its first associated MCP notification is notifications/subscriptions/acknowledged. Subsequent notifications obey the acknowledged filter.
Each subscription notification carries io.modelcontextprotocol/subscriptionId in its inner _meta. That value is the logical requestId of the listen request, not the outer ACP JSON-RPC ID. A graceful completion result carries the same subscription metadata. Multiple subscriptions and ordinary requests may be active concurrently.
Cancellation and lifetime
Cancellation uses ACP’s existing$/cancel_request for the outer ACP request; this binding adds no separate cancellation method or support requirement. A caller can request cancellation when it no longer needs an operation’s result. For the example request above:
requestId or tunnel an unrelated hop’s cancellation ID.
Cancellation is best effort. A provider may complete an operation normally if it cannot cancel it or completion wins the race. When it honors cancellation, it stops producing new notifications for that operation and answers the original ACP request with a cancellation error after cleanup. Cancelling one operation does not cancel sibling requests, subscriptions, the server registration, or the containing ACP connection.
For long-lived operations such as subscriptions/listen, per-request cancellation is useful because it avoids closing the whole ACP connection to stop one stream. An HTTP adapter translates response-stream closure into a cancellation request upstream, following MCP’s transport-specific cancellation rules.
Honoring cancellation is not merely deletion of a routing entry. Execution and cleanup remain supervised; admission permits and the active logical ID stay owned until cleanup finishes. A reusable service remains available for sibling operations. Work reported as cancelled before execution does not start later. Cancellation cannot roll back already-performed external side effects.
Releasing a provider registration or closing its ACP connection cancels all work owned by it. Transport EOF initiates cancellation; it must not wait indefinitely for an application future that is itself awaiting the disconnected peer. Unknown servers and invalid or duplicate active request IDs receive errors; malformed notifications do not receive synthetic replies.
Bound notification buffering, frame sizes, and outstanding work. Retain resource accounting while messages are queued, deferred, serialized, or held in an unread response body, not only while backend execution is active. Keep shutdown and any supported cancellation responsive when data capacity is exhausted. If an implementation cannot continue a stream safely, fail or cancel that request explicitly instead of silently dropping subscription events or growing an unbounded queue. Do not block unrelated dispatch while waiting for a slow consumer.
Interactive tools
MCP 2026-07-28 replaces reverse JSON-RPC calls with MRTR. Fortools/call, resources/read, or prompts/get, a provider may return resultType: "input_required" with input requests and/or opaque requestState. That completes the current ACP request.
The agent obtains the requested input, then issues a fresh mcp/message request for the original operation with inputResponses and the exact opaque state. Each retry supplies its own MCP metadata and uses a fresh logical request ID. It carries the same sessionId and toolCallId as the request it continues, when the agent sends them. The transport must not parse retry state, automatically approve an elicitation, or replay side-effecting calls without the agent’s policy.
This flow needs neither a persistent MCP session nor a provider-originated ACP request.
Proxying and HTTP adaptation
Proxies preserveserverId, logical requestId, sessionId, toolCallId, inner payloads, and metadata. A proxy that rewrites session IDs or tool call IDs on session/update rewrites them the same way on mcp/message. Normal ACP forwarding handles outer responses and, where supported, hop-local cancellation. Providers claim requests for their declared servers; other components forward them normally. There is no conductor MCP connection table or special connect/disconnect routing.
An optional adapter may expose a native server to a modern MCP HTTP client. HTTP capability alone does not prove that an agent supports this MCP revision. The adapter must not add a legacy fallback.
The HTTP endpoint can be reused, but every POST represents its own request:
- Accept a single JSON-RPC request per POST and return JSON or request-scoped SSE. Reject batches and client-sent responses.
- Support subscriptions as long-lived POST response streams. Closing one response stream requests cancellation of only its mapped ACP request and stops delivery on that stream.
- Return 405 for GET and DELETE. Do not issue session headers or implement SSE resumption.
- Validate protocol-version, method, name, and applicable mirrored tool-parameter headers against the body, including required value decoding.
- Validate supplied Origin headers, bind local listeners to loopback, and enforce access control. A random port is not authentication.
- Allocate independent logical MCP IDs for overlapping HTTP request IDs. Translate MCP ID references at this transport boundary, including subscription IDs, while preserving progress tokens and opaque state. ACP proxies do not perform that translation.
mcp/message without sessionId and toolCallId unless its host supplies them. A host that runs the agent’s tools can do that. For example, it records the session of each tool call before the tool runs, then matches the tool call ID that the MCP client puts in the request’s _meta. The adapter MUST NOT infer the session from the order or timing of requests, or from the session that was active last. A request it cannot match is sent without attribution, and a provider that needs the session can reject it.
Native-tool re-export
The Rust adapter exposes a new local HTTP endpoint for native tools, not a transparent tunnel for another HTTP endpoint’s routing or authorization policy. It uses one loopback listener per ACP connection. A non-secret encoding ofserverId identifies the route, and a connection-specific bearer credential is bound to that server. Credentials never appear in URLs. The provider still decides whether the registration exists and the caller is authorized; retaining an old URL does not resurrect a removed registration.
This endpoint does not advertise tool-parameter header mirroring. It removes x-mcp-header only from actual schema annotation positions in returned tool descriptors, preserving validation keywords, argument names, and example/default data. It rejects supplied Mcp-Param-* headers rather than assigning them authority. Standard method/name/version header validation still applies.
Each tools/call goes directly to its native provider without hidden tools/list requests. This avoids a descriptor lookup/execution race and does not introduce a discovery prerequisite. Native ACP passthrough preserves descriptors unchanged. A deployment requiring an existing HTTP gateway’s parameter-header policy must implement that policy at the new endpoint or decline this re-export; native execution cannot inherit HTTP headers that were never transported.
HTTP is an adapter, not a prerequisite for the native protocol. Its validation and security surface must be tested separately; working native tool calls do not establish HTTP conformance.
Security
Server IDs and request IDs are routing identifiers, not credentials. Providers bind server ownership and visibility to the supplying ACP component and authorized callers. Self-reported MCPclientInfo is not an authentication identity.
sessionId and toolCallId are statements by the agent, not credentials. A provider that chooses a session by sessionId first checks it against the sessions the server was declared to, and authorizes an attributed request the way it authorizes any other.
Keep outer ACP metadata separate from inner MCP metadata. Do not persist runtime credentials from rewritten HTTP declarations in traces.
Servers treat MRTR state as attacker-controlled input. Where it influences authorization or business logic, protect integrity and address principal binding, expiry, replay, and single-use requirements. Intermediaries keep it opaque.
Tool lists vary by explicit server identity and authorization scope, not hidden connection state. Preserve required cache metadata and do not share private catalogs across callers.
Implementation and validation
The Rust implementation uses each ACP version’s unstableMessageMcpRequest, MessageMcpResponse, MessageMcpNotification, McpError, and McpRequestId schema types. The v1 and v2 response and error types are defined independently so either version can evolve without changing the other. Their JSON representation is currently the same.
sessionId and toolCallId are fields of each version’s MessageMcpRequest. No implementation sends or checks them yet. An unpublished prototype test against the Claude Code adapter showed that an HTTP adapter can produce them. A PreToolUse hook records the session of each tool-use ID, and Claude Code puts that ID in the _meta of tools/call. With a parent session and two concurrent child sessions that call the same tool on one server, each request named the session and tool call that the adapter reported in session/update.
The SDK’s target API separates a reusable McpService from each owned operation. A McpRequestContext supplies logical/server identity, validated metadata and capabilities, cancellation, and request-scoped notifications. A backend factory is an explicit adapter for implementations that need per-operation construction, not a requirement imposed by stateless MCP. Integration adapters must supervise any tasks spawned by their underlying library, not assume dropping a wrapper joins detached handlers.
Reference implementation tests cover:
- Real discovery and tool calls without MCP initialization, directly and through a proxy.
- Stable logical IDs when ACP outer IDs are renumbered.
- Independent concurrent requests, request-specific metadata/errors, and rejection of duplicate active IDs.
- Separation of inner MCP errors from outer ACP errors, including colliding codes, explicit null data, and unknown extension fields.
- MRTR with nonempty input responses, opaque state, and fresh retry IDs.
- Subscription acknowledgement ordering, filtered notifications, correlation, and graceful completion.
- Cancellation of queued and running tools and subscriptions, including noncooperative user futures, registration removal, transport EOF, late-message rejection, and joined resource cleanup.
- Slow readers, bounded pending work, control-plane liveness under saturation, and admission recovery after response-body release.
- HTTP request isolation, header/Origin/access checks, direct annotated native-tool calls without preliminary requests, request-close cancellation, and rejection of removed transport behavior.
Stabilization gates
The Rust reference implementation exercises the versioned response carriers, reusable services, bounded transport queues, and native-tool HTTP re-export together. Its cleanup regression deliberately pauses a tool runner while ACP continues dispatching: cancellation cannot settle or release the logical request ID until the runner drops the tool future. Both mutable and concurrent tools use this rule. Independent item-count limits are not evidence of complete memory bounds, and dropping a task handle is not evidence that its work stopped. Concrete buffer sizes and concurrency quotas are implementation policies, not wire-protocol constants. Their behavior must be configurable or documented, and quota failures must preserve the error-domain distinction above. Both ACP v1 and draft v2 must exercise the same binding semantics; this proposal does not otherwise stabilize ACP v2 or optional MCP extensions. The Rust reference implementation supervises cancellation and joins owned backend work before reporting it complete; it cannot forcibly terminate detached application work. These are implementation safeguards, not additional cancellation requirements for advertising the transport. The reference tests establish the covered binding behavior, not full conformance for every MCP feature or readiness to publish packages. The draft schema must be released and dependent SDK major versions coordinated before publication.References and revision history
Normative MCP references: 2026-07-28 specification, versioning, MRTR, subscriptions, cancellation, and Streamable HTTP. This proposal was split from the proxy-chain RFD. Earlier drafts used serverid/acpId, an MCP connection ID, connect/disconnect methods, and reverse requests. Those drafts and the stateful implementation checkpoint are not compatibility commitments. This revision replaces them with server-addressed requests and request-scoped notifications targeting MCP 2026-07-28 only. A later revision added the optional sessionId and toolCallId fields that attribute a request to an ACP session and tool call.