Skip to content

BaseMcpServer

Sub classes

Name Children Inherits
HttpMcpServer
aclientp.schema.mcp
HTTP transport configuration.
    SseMcpServer
    aclientp.schema.mcp
    SSE transport configuration.
      StdioMcpServer
      aclientp.schema.mcp
      Stdio transport configuration.
        AcpMcpServer
        aclientp.schema.mcp
        **UNSTABLE**: MCP server reachable over the ACP connection itself (``mcp/message``).

          Base classes

          Name Children Inherits
          AnnotatedObject
          aclientp.schema.base
          Base class for generated models.

          ⋔ Inheritance diagram

          graph TD
            95970858786304["mcp.BaseMcpServer"]
            95970862258240["base.AnnotatedObject"]
            95970862254416["base.Schema"]
            95970851503232["main.BaseModel"]
            125067848591872["builtins.object"]
            95970862258240 --> 95970858786304
            95970862254416 --> 95970862258240
            95970851503232 --> 95970862254416
            125067848591872 --> 95970851503232

          🛈 DocStrings

          Bases: AnnotatedObject

          MCP server base class.

          Source code in src/aclientp/schema/mcp.py
          class BaseMcpServer(AnnotatedObject):
              """MCP server base class."""
          
              name: str
              """Human-readable name identifying this MCP server."""
          

          name instance-attribute

          name: str
          

          Human-readable name identifying this MCP server.

          :fa-brands-github: Show source on GitHub