mcp
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| AcpMcpServer aclientp.schema.mcp **UNSTABLE**: MCP server reachable over the ACP connection itself (``mcp/message``). |
||
| BaseMcpServer aclientp.schema.mcp MCP server base class. |
||
| HttpHeader aclientp.schema.mcp An HTTP header to set when making requests to the MCP server. |
||
| HttpMcpServer aclientp.schema.mcp HTTP transport configuration. |
||
| McpError aclientp.schema.mcp **UNSTABLE**: A structured inner MCP error. Never an ACP error code. |
||
| MessageMcpNotification aclientp.schema.mcp **UNSTABLE**: An inner MCP notification tied to an active inner MCP request. |
||
| MessageMcpRequest aclientp.schema.mcp **UNSTABLE**: An inner MCP request sent to an ``acp`` MCP server via ``mcp/message``. |
||
| MessageMcpResponse aclientp.schema.mcp **UNSTABLE**: Response to ``mcp/message``: exactly one inner MCP outcome. |
||
| SseMcpServer aclientp.schema.mcp SSE transport configuration. |
||
| StdioMcpServer aclientp.schema.mcp Stdio transport configuration. |
🛈 DocStrings¶
MCP schema definitions.
McpRequestId
module-attribute
¶
UNSTABLE: Caller-generated identifier for an inner MCP request.
McpServerAcpId
module-attribute
¶
UNSTABLE: Identifier of an MCP server provided over ACP.
AcpMcpServer
¶
Bases: BaseMcpServer
UNSTABLE: MCP server reachable over the ACP connection itself (mcp/message).
Only available when the Agent capabilities indicate mcp_capabilities.acp is true.
Source code in src/aclientp/schema/mcp.py
server_id
instance-attribute
¶
server_id: McpServerAcpId
Unique identifier for this MCP server, generated by the component providing it.
type
class-attribute
instance-attribute
¶
ACP transport type.
BaseMcpServer
¶
HttpHeader
¶
Bases: AnnotatedObject
An HTTP header to set when making requests to the MCP server.
Source code in src/aclientp/schema/mcp.py
HttpMcpServer
¶
Bases: BaseMcpServer
HTTP transport configuration.
Only available when the Agent capabilities indicate mcp_capabilities.http is true.
Source code in src/aclientp/schema/mcp.py
headers
class-attribute
instance-attribute
¶
headers: Sequence[HttpHeader] = Field(default_factory=list)
HTTP headers to set when making requests to the MCP server.
type
class-attribute
instance-attribute
¶
HTTP transport type.
McpError
¶
Bases: Schema
UNSTABLE: A structured inner MCP error. Never an ACP error code.
Source code in src/aclientp/schema/mcp.py
MessageMcpNotification
¶
Bases: AnnotatedObject
UNSTABLE: An inner MCP notification tied to an active inner MCP request.
Source code in src/aclientp/schema/mcp.py
params
class-attribute
instance-attribute
¶
Optional inner MCP params.
request_id
instance-attribute
¶
request_id: McpRequestId
The identifier of the active inner MCP request.
server_id
instance-attribute
¶
server_id: McpServerAcpId
The declared ACP MCP server handling the associated request.
MessageMcpRequest
¶
Bases: Request
UNSTABLE: An inner MCP request sent to an acp MCP server via mcp/message.
Either side may send it, to the side that declared the server.
Source code in src/aclientp/schema/mcp.py
params
class-attribute
instance-attribute
¶
Optional inner MCP params.
request_id
instance-attribute
¶
request_id: McpRequestId
The caller-generated identifier for the inner MCP request.
server_id
instance-attribute
¶
server_id: McpServerAcpId
The declared ACP MCP server receiving this request.
MessageMcpResponse
¶
Bases: Response
UNSTABLE: Response to mcp/message: exactly one inner MCP outcome.
Either an opaque result (which may be JSON null) or an error.
Receivers prefer result if both are present.
Source code in src/aclientp/schema/mcp.py
SseMcpServer
¶
Bases: BaseMcpServer
SSE transport configuration.
Only available when the Agent capabilities indicate mcp_capabilities.sse is true.
Source code in src/aclientp/schema/mcp.py
headers
instance-attribute
¶
headers: Sequence[HttpHeader]
HTTP headers to set when making requests to the MCP server.
type
class-attribute
instance-attribute
¶
SSE transport type.
StdioMcpServer
¶
Bases: BaseMcpServer
Stdio transport configuration.
All Agents MUST support this transport.
Source code in src/aclientp/schema/mcp.py
env
instance-attribute
¶
env: Sequence[EnvVariable]
Environment variables to set when launching the MCP server.