Why it matters

For local integration, stdio is often the right answer. Simple, fast, no auth complexity. Understanding when it fits saves complexity.

Advertisement

The architecture

Setup: client spawns server process with command line args + env. Client writes to server stdin, reads from server stdout.

Framing: newline-delimited JSON messages.

stdio transportSpawn serverchild processstdin / stdoutmessage framingSame machineno networkingFast and simple; can't cross machine boundaries; inherits parent env for auth
stdio flow.
Advertisement

How it works end to end

Auth: server inherits parent's env vars. Credentials from environment.

Fast: no network overhead. Ideal for CLI tools invoking local integrations.

Limits: same machine, single client per server process.