mcp¶
Functions¶
mcp.connect_http(spec) -> McpClient— Connect to an MCP server over streamable HTTP. Raises on a connect failure or the handshake failing.mcp.connect_stdio(spec) -> McpClient— Spawnspec.commandand connect over its stdin/stdout. Raises on a connect failure (the program is missing, or the handshake fails).