@@ -3,10 +3,11 @@ import type http from "http";
33import { randomUUID } from "crypto" ;
44import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js" ;
55import { isInitializeRequest } from "@modelcontextprotocol/sdk/types.js" ;
6- import { TransportRunnerBase } from "./base .js" ;
7- import { LogId } from "../common/logger .js" ;
6+ import { LogId , type LoggerBase } from "../common/logger .js" ;
7+ import { type UserConfig } from "../common/config .js" ;
88import { SessionStore } from "../common/sessionStore.js" ;
99import type { MCPConnectParams } from "../common/connectionManager.js" ;
10+ import { type CreateConnectionManagerFn , TransportRunnerBase } from "./base.js" ;
1011
1112const JSON_RPC_ERROR_CODE_PROCESSING_REQUEST_FAILED = - 32000 ;
1213const JSON_RPC_ERROR_CODE_SESSION_ID_REQUIRED = - 32001 ;
@@ -18,6 +19,14 @@ export class StreamableHttpRunner<ConnectParams extends MCPConnectParams> extend
1819 private httpServer : http . Server | undefined ;
1920 private sessionStore ! : SessionStore ;
2021
22+ constructor (
23+ userConfig : UserConfig ,
24+ createConnectionManager : CreateConnectionManagerFn < ConnectParams > ,
25+ additionalLoggers : LoggerBase [ ] = [ ]
26+ ) {
27+ super ( userConfig , createConnectionManager , additionalLoggers ) ;
28+ }
29+
2130 public get serverAddress ( ) : string {
2231 const result = this . httpServer ?. address ( ) ;
2332 if ( typeof result === "string" ) {
0 commit comments