MCPcopy Index your code
hub / github.com/modelcontextprotocol/typescript-sdk / TestServerConfig

Interface TestServerConfig

test/server/streamableHttp.test.ts:29–37  ·  view source on GitHub ↗

* Test server configuration for StreamableHTTPServerTransport tests

Source from the content-addressed store, hash-verified

27 * Test server configuration for StreamableHTTPServerTransport tests
28 */
29interface TestServerConfig {
30 sessionIdGenerator: (() => string) | undefined;
31 enableJsonResponse?: boolean;
32 customRequestHandler?: (req: IncomingMessage, res: ServerResponse, parsedBody?: unknown) => Promise<void>;
33 eventStore?: EventStore;
34 onsessioninitialized?: (sessionId: string) => void | Promise<void>;
35 onsessionclosed?: (sessionId: string) => void | Promise<void>;
36 retryInterval?: number;
37}
38
39/**
40 * Helper to stop test server

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…