Set Mcp-Protocol-Version in client requests after init, and warn when it doesn't match negotiated version (it SHOULD match)
This commit is contained in:
parent
1878143f1a
commit
84971c83ea
1 changed files with 243 additions and 19 deletions
|
|
@ -18,6 +18,7 @@ export class SSEServerTransport implements Transport {
|
|||
private _sseResponse?: ServerResponse;
|
||||
private _sessionId: string;
|
||||
|
||||
protocolVersion?: string;
|
||||
onclose?: () => void;
|
||||
onerror?: (error: Error) => void;
|
||||
onmessage?: (message: JSONRPCMessage, extra?: { authInfo?: AuthInfo }) => void;
|
||||
|
|
|
|||
Loading…
Reference in a new issue