Z User
phase7: MCP stdio smoke test (handshake + tools/list + get_roots 6:74) — 4/4 tests PASS
54a6341 Download node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts from bravesigma/quran-md-plugin: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/%40modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts
- Command line
-
hf download hf://datasets/bravesigma/quran-md-plugin/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts
-
curl -L -o stdio.d.ts https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/%40modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts
1.25 kB
| import { Readable, Writable } from 'node:stream'; | |
| import { JSONRPCMessage } from '../types.js'; | |
| import { Transport } from '../shared/transport.js'; | |
| /** | |
| * Server transport for stdio: this communicates with an MCP client by reading from the current process' stdin and writing to stdout. | |
| * | |
| * This transport is only available in Node.js environments. | |
| */ | |
| export declare class StdioServerTransport implements Transport { | |
| private _stdin; | |
| private _stdout; | |
| private _readBuffer; | |
| private _started; | |
| constructor(_stdin?: Readable, _stdout?: Writable, options?: { | |
| /** | |
| * Maximum size of the read buffer in bytes. If a single message exceeds | |
| * this size the transport will emit an error and close. | |
| * | |
| * Defaults to 10 MB. | |
| */ | |
| maxBufferSize?: number; | |
| }); | |
| onclose?: () => void; | |
| onerror?: (error: Error) => void; | |
| onmessage?: (message: JSONRPCMessage) => void; | |
| _ondata: (chunk: Buffer) => void; | |
| _onerror: (error: Error) => void; | |
| /** | |
| * Starts listening for messages on stdin. | |
| */ | |
| start(): Promise<void>; | |
| private processReadBuffer; | |
| close(): Promise<void>; | |
| send(message: JSONRPCMessage): Promise<void>; | |
| } | |
| //# sourceMappingURL=stdio.d.ts.map |