Source:
09_mcp_stdio.py · 09-mcp-stdio.ts · Applied: daily_digest_agent.pyStdio (local process)
Streamable HTTP / SSE (remote)
Both SDKs also acceptMCPStreamableHTTPConfig (MCPSSEConfig for legacy SSE) for remote servers. Useful for hosted MCPs like Composio or Smithery:
Python
daily_digest_agent example wires four remote MCP servers (Gmail, Hacker News, Notion, Search) into a single agent.
Multiple servers
Pass multiplemcp(...) providers in the same tools=[...] list — the agent merges all of their tools. Tool name collisions are resolved with the server name as a prefix.