The declared server the request is addressed to.
The caller's logical MCP request ID.
Inner MCP method, such as tools/call or server/discover.
Inner MCP params. null and omission are both undefined.
The tool a tools/call request names: its params.name. undefined for
every other method, and for a tools/call without a string name.
The ACP session whose work caused this request, if the caller named one. See McpOperationContext.sessionId.
The tool call in that session that this request is part of, if the caller named one. See McpOperationContext.toolCallId.
Aborts when the caller cancels this request, the server registration is disposed, or the ACP connection closes. It is the signal the handler would get as McpOperationContext.signal. An asynchronous check can stop early on it. The request then ends as cancelled, whatever the check does.
Returns sessionId. If the caller named none, throws an McpSessionError that says this server needs to know the session and the agent did not say.
Throws an McpSessionError with message, for a session that the
server's own check refuses: for example, one that is not active on this
connection, or one the server was not declared to. Without a message,
the error names the rejected sessionId, or says what
requireSession says when the request has none.
Optionalmessage: string
One
mcp/messagerequest, as McpServerOptions.admit sees it before the server's handler runs.