- stdio, communication over standard in and standard out
- Streamable HTTP (draft proposal in progress)
stdio
In the stdio transport:- The client launches the agent as a subprocess.
- The agent reads JSON-RPC messages from its standard input (
stdin) and sends messages to its standard output (stdout). - Messages are individual JSON-RPC requests, notifications, or responses.
- Messages are delimited by newlines (
\n), and MUST NOT contain embedded newlines. - The agent MAY write UTF-8 strings to its standard error (
stderr) for logging purposes. Clients MAY capture, forward, or ignore this logging. - The agent MUST NOT write anything to its
stdoutthat is not a valid ACP message. - The client MUST NOT write anything to the agent’s
stdinthat is not a valid ACP message.