Skip to content

MessageMcpRequest

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970870546256["mcp.MessageMcpRequest"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970870546256
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

UNSTABLE: Parameters of mcp/message: an inner MCP request to the provider.

Source code in src/aclientp/schema/v2/mcp.py
class MessageMcpRequest(AnnotatedObject):
    """**UNSTABLE**: Parameters of ``mcp/message``: an inner MCP request to the provider."""

    server_id: McpServerAcpId
    """The declared ACP MCP server receiving this request."""

    request_id: McpRequestId
    """The caller-generated identifier for the inner MCP request."""

    method: str
    """The inner MCP method name."""

    params: dict[str, Any] | MISSING | None = MISSING
    """The inner MCP params; ``None`` is the same as omitted."""

method instance-attribute

method: str

The inner MCP method name.

params class-attribute instance-attribute

params: dict[str, Any] | MISSING | None = MISSING

The inner MCP params; None is the same as omitted.

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.

:fa-brands-github: Show source on GitHub