httpstdio
How transport selection works
listen(3000)defaults to HTTPlisten({ port: ... })defaults to HTTPlisten({ transport: "stdio" })forces stdiolisten({ transport: "http" })forces HTTP
HTTP in practice
The HTTP transport gives you:- a network endpoint at
/mcp - session-aware client communication
- an optional health endpoint when enabled
- transport debug logs with
debug: true
stdio in practice
The stdio transport gives you:- a local command-based integration path
- no network port
- one strict rule: keep stdout clean for MCP messages