Skip to content

McpServerStdio

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

Stdio transport configuration for MCP.

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

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

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

    command: AbsolutePath
    """Absolute path to the MCP server executable."""

    args: Sequence[str] | MISSING = MISSING
    """Command-line arguments to pass to the MCP server."""

    env: Sequence[EnvVariable] | MISSING = MISSING
    """Environment variables to set when launching the MCP server. Names SHOULD be unique.
    Agents MAY reject duplicates with ``-32602``, and otherwise the last entry wins."""

args class-attribute instance-attribute

args: Sequence[str] | MISSING = MISSING

Command-line arguments to pass to the MCP server.

command instance-attribute

command: AbsolutePath

Absolute path to the MCP server executable.

env class-attribute instance-attribute

env: Sequence[EnvVariable] | MISSING = MISSING

Environment variables to set when launching the MCP server. Names SHOULD be unique. Agents MAY reject duplicates with -32602, and otherwise the last entry wins.

name instance-attribute

name: str

Human-readable name identifying this MCP server.

:fa-brands-github: Show source on GitHub