Skip to content

Commit 8b09303

Browse files
committed
transport: force utf-8 for transports
We have silently assumed that JSON-RPC will be using UTF-8 encoding. This is usually true, but technically the JSON specification allows for any other encoding and only asks for UTF-8, UTF-16 or UTF-32. For MCP we want to reduce complexity in encoding negotiation and will only allow utf-8.
1 parent 3d4877e commit 8b09303

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/specification/draft/basic/transports.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ weight: 10
66

77
{{< callout type="info" >}} **Protocol Revision**: draft {{< /callout >}}
88

9-
MCP currently defines two standard transport mechanisms for client-server communication:
9+
MCP uses JSON-RPC to encode messages. JSON-RPC messages **MUST** be UTF-8 encoded.
10+
11+
The protocol currently defines two standard transport mechanisms for client-server
12+
communication:
1013

1114
1. [stdio](#stdio), communication over standard in and standard out
1215
2. [HTTP with Server-Sent Events](#http-with-sse) (SSE)

0 commit comments

Comments
 (0)