MCPcopy Create free account
hub / github.com/modelcontextprotocol/typescript-sdk / streamableHttp.test.ts

File streamableHttp.test.ts

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

Source from the content-addressed store, hash-verified

1import { createServer, type Server, IncomingMessage, ServerResponse } from 'node:http';
2import { AddressInfo, createServer as netCreateServer } from 'node:net';
3import { randomUUID } from 'node:crypto';
4import { EventStore, StreamableHTTPServerTransport, EventId, StreamId } from '../../src/server/streamableHttp.js';

Callers

nothing calls this directly

Calls 15

createTestServerFunction · 0.85
stopTestServerFunction · 0.85
sendPostRequestFunction · 0.85
expectErrorResponseFunction · 0.85
readSSEEventFunction · 0.85
createTestAuthServerFunction · 0.85
readWithTimeoutFunction · 0.85
createServerFunction · 0.85
createStatelessHandlerFunction · 0.85
listenOnRandomPortFunction · 0.85
getFreePortFunction · 0.85

Tested by

no test coverage detected