Common Transports
Stdio
Use stdio for local MCP servers launched as child processes.Streamable HTTP
Use streamable HTTP for remote MCP servers that expose an HTTP endpoint.streamableHttp(...) is the stable high-level helper for remote MCP upstreams. Use the lower-level HttpTransport only when you need a custom HTTP adapter surface such as explicit environment-to-header mapping.
HTTP-family upstream transports block loopback, link-local, private, and metadata URLs by default. Allow internal endpoints only when they are part of your deployment boundary: