@@ -3,10 +3,11 @@ import type http from "http";
3
3
import { randomUUID } from "crypto" ;
4
4
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js" ;
5
5
import { 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" ;
8
8
import { SessionStore } from "../common/sessionStore.js" ;
9
9
import type { MCPConnectParams } from "../common/connectionManager.js" ;
10
+ import { type CreateConnectionManagerFn , TransportRunnerBase } from "./base.js" ;
10
11
11
12
const JSON_RPC_ERROR_CODE_PROCESSING_REQUEST_FAILED = - 32000 ;
12
13
const JSON_RPC_ERROR_CODE_SESSION_ID_REQUIRED = - 32001 ;
@@ -18,6 +19,14 @@ export class StreamableHttpRunner<ConnectParams extends MCPConnectParams> extend
18
19
private httpServer : http . Server | undefined ;
19
20
private sessionStore ! : SessionStore ;
20
21
22
+ constructor (
23
+ userConfig : UserConfig ,
24
+ createConnectionManager : CreateConnectionManagerFn < ConnectParams > ,
25
+ additionalLoggers : LoggerBase [ ] = [ ]
26
+ ) {
27
+ super ( userConfig , createConnectionManager , additionalLoggers ) ;
28
+ }
29
+
21
30
public get address ( ) : string {
22
31
const result = this . httpServer ?. address ( ) ;
23
32
if ( typeof result === "string" ) {
0 commit comments