Skip to content

McpServerHttp

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

HTTP transport configuration for MCP.

Source code in src/aclientp/schema/v2/mcp.py
class McpServerHttp(AnnotatedObject):
    """HTTP transport configuration for MCP."""

    type: Literal["http"] = Field(default="http", init=False)

    name: str
    """Human-readable name identifying this MCP server."""

    url: str
    """URL to the MCP server."""

    headers: Sequence[HttpHeader] | MISSING = MISSING
    """HTTP headers to set when making requests to the MCP server. Headers the MCP transport
    defines are owned by the transport, and Agents use the transport's values for them."""

headers class-attribute instance-attribute

headers: Sequence[HttpHeader] | MISSING = MISSING

HTTP headers to set when making requests to the MCP server. Headers the MCP transport defines are owned by the transport, and Agents use the transport's values for them.

name instance-attribute

name: str

Human-readable name identifying this MCP server.

url instance-attribute

url: str

URL to the MCP server.

:fa-brands-github: Show source on GitHub