Registers an MCP server on the connection behind context.
The server is ready to serve requests as soon as this returns, so publish its McpServerRegistration.declaration only afterwards.
ReadonlyhandleHandles an incoming mcp/message request. Register it with
onRequest(methods.client.mcp.message, provider.handleRequest).
Resolves with the inner MCP outcome. Binding failures reject with a
RequestError carrying the binding's outer error code.
Serves MCP servers to an ACP peer over
mcp/message.Create one provider per app, register handleRequest for
mcp/messagerequests, then register servers on each connection:Several servers can be registered on the same connection; requests are dispatched by
serverId. A server's McpServerOptions.admit check decides, before its handler runs, which requests it serves.