Download node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts from pgits/mcp-jokes: direct link, hf CLI and curl.
- Browser
- Download file 990 Bytes
-
https://huggingface.co/spaces/pgits/mcp-jokes/resolve/main/node_modules/%40modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts
- Command line
-
hf download hf://spaces/pgits/mcp-jokes/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts
-
curl -L -o stdio.d.ts https://huggingface.co/spaces/pgits/mcp-jokes/resolve/main/node_modules/%40modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts
990 Bytes
| import { Readable, Writable } from "node:stream"; | |
| import { JSONRPCMessage } from "../types.js"; | |
| import { Transport } from "../shared/transport.js"; | |
| /** | |
| * Server transport for stdio: this communicates with a 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); | |
| 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 |