Skip to content

Commit 24d0034

Browse files
committed
revert some style
1 parent be3db0e commit 24d0034

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/server/streamableHttp.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const TEST_MESSAGES = {
5858
protocolVersion: '2025-11-25',
5959
capabilities: {}
6060
},
61-
6261
id: 'init-1'
6362
} as JSONRPCMessage,
6463

@@ -71,7 +70,6 @@ const TEST_MESSAGES = {
7170
protocolVersion: '2025-06-18',
7271
capabilities: {}
7372
},
74-
7573
id: 'init-1'
7674
} as JSONRPCMessage,
7775

@@ -106,13 +104,12 @@ async function sendPostRequest(
106104
const headers: Record<string, string> = {
107105
'Content-Type': 'application/json',
108106
Accept: 'application/json, text/event-stream',
109-
// Include protocol version header (best practice per spec)
110-
'mcp-protocol-version': '2025-11-25',
111107
...extraHeaders
112108
};
113109

114110
if (sessionId) {
115111
headers['mcp-session-id'] = sessionId;
112+
headers['mcp-protocol-version'] = '2025-11-25';
116113
}
117114

118115
return fetch(baseUrl, {

0 commit comments

Comments
 (0)