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/cjs/inMemory.d.ts from bravesigma/quran-md-plugin: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/%40modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts
- Command line
-
hf download hf://datasets/bravesigma/quran-md-plugin/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts
-
curl -L -o inMemory.d.ts https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/%40modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts
1.16 kB
| import { Transport } from './shared/transport.js'; | |
| import { JSONRPCMessage, RequestId } from './types.js'; | |
| import { AuthInfo } from './server/auth/types.js'; | |
| /** | |
| * In-memory transport for creating clients and servers that talk to each other within the same process. | |
| */ | |
| export declare class InMemoryTransport implements Transport { | |
| private _otherTransport?; | |
| private _messageQueue; | |
| onclose?: () => void; | |
| onerror?: (error: Error) => void; | |
| onmessage?: (message: JSONRPCMessage, extra?: { | |
| authInfo?: AuthInfo; | |
| }) => void; | |
| sessionId?: string; | |
| /** | |
| * Creates a pair of linked in-memory transports that can communicate with each other. One should be passed to a Client and one to a Server. | |
| */ | |
| static createLinkedPair(): [InMemoryTransport, InMemoryTransport]; | |
| start(): Promise<void>; | |
| close(): Promise<void>; | |
| /** | |
| * Sends a message with optional auth info. | |
| * This is useful for testing authentication scenarios. | |
| */ | |
| send(message: JSONRPCMessage, options?: { | |
| relatedRequestId?: RequestId; | |
| authInfo?: AuthInfo; | |
| }): Promise<void>; | |
| } | |
| //# sourceMappingURL=inMemory.d.ts.map |