Module 4 — Transports & Deployment

By — 7+ years building ML / AI agent systems, founder of agent-engineering.dev & sandx.ai.
Published: Last updated:
mcp server deploymentmcp transportsstreamable httpcreate mcp handlerdns rebinding protection

Module 4 — Transports & Deployment

stdio (local/IDE) vs Streamable HTTP (remote/multi-client)

createMcpHandler + framework adapters (Express, Hono, Fastify, web-standard / Workers)

Sessions, state, scaling (stateless modern era vs sessionful legacy)

Host/origin validation, DNS rebinding protection

Production checklist (logging to stderr, graceful shutdown, etc.)

Official anchors: Serving guides (stdio, HTTP, Express/Hono/Fastify)
Outcome: The same server runnable both locally and as a remote HTTP endpoint.

Get new posts by Nelson Lin

Subscribe to receive email notifications when a new article is published.