Revert "feat: support extending McpServer with authorization"
This commit is contained in:
parent
fbdeb06a41
commit
8027ae1593
1 changed files with 42 additions and 419 deletions
|
|
@ -21,7 +21,6 @@ export class StdioServerTransport implements Transport {
|
|||
onclose?: () => void;
|
||||
onerror?: (error: Error) => void;
|
||||
onmessage?: (message: JSONRPCMessage) => void;
|
||||
user?: unknown;
|
||||
|
||||
// Arrow functions to bind `this` properly, while maintaining function identity.
|
||||
_ondata = (chunk: Buffer) => {
|
||||
|
|
@ -74,7 +73,7 @@ export class StdioServerTransport implements Transport {
|
|||
// This prevents interfering with other parts of the application that might be using stdin
|
||||
this._stdin.pause();
|
||||
}
|
||||
|
||||
|
||||
// Clear the buffer and notify closure
|
||||
this._readBuffer.clear();
|
||||
this.onclose?.();
|
||||
|
|
|
|||
Loading…
Reference in a new issue