File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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 , {
You can’t perform that action at this time.
0 commit comments