Skip to content

Commit 12981a3

Browse files
committed
Clarify batching for stdio as well
1 parent 1de5822 commit 12981a3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/specification/draft/basic/transports.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ It is also possible for clients and servers to implement
2424
In the **stdio** transport:
2525

2626
- The client launches the MCP server as a subprocess.
27-
- The server receives JSON-RPC messages on its standard input (`stdin`) and writes
28-
responses to its standard output (`stdout`).
27+
- The server reads JSON-RPC messages from its standard input (`stdin`) and sends messages
28+
to its standard output (`stdout`).
29+
- Messages may be JSON-RPC requests, notifications, responses—or a JSON-RPC
30+
[batch](https://www.jsonrpc.org/specification#batch) containing one or more requests
31+
and/or notifications.
2932
- Messages are delimited by newlines, and **MUST NOT** contain embedded newlines.
3033
- The server **MAY** write UTF-8 strings to its standard error (`stderr`) for logging
3134
purposes. Clients **MAY** capture, forward, or ignore this logging.

0 commit comments

Comments
 (0)