fastmcp.client.transports.stdio
Classes
StdioTransport
Base transport for connecting to an MCP server via subprocess with stdio.
This is a base class that can be subclassed for specific command-based
transports like Python, Node, Uvx, etc.
Methods:
connect_session
connect
disconnect
close
PythonStdioTransport
Transport for running Python scripts.
FastMCPStdioTransport
Transport for running FastMCP servers using the FastMCP CLI.
args are passed to the server script, not interpreted as FastMCP CLI options.