diff --git a/src/gateway/server-runtime-state.ts b/src/gateway/server-runtime-state.ts index c087754cb3f0..f98b247835ac 100644 --- a/src/gateway/server-runtime-state.ts +++ b/src/gateway/server-runtime-state.ts @@ -25,7 +25,7 @@ import type { HooksConfigResolved } from "./hooks.js"; import type { AuthorizedGatewayHttpRequest } from "./http-auth-utils.js"; import { createSandboxHostHttpServer } from "./mcp-app-sandbox-http.js"; import { isLoopbackHost, resolveGatewayListenHosts } from "./net.js"; -import { createGatewayPortalService } from "./portals/portal-service.js"; +import { createGatewayPortalService, type GatewayPortalService } from "./portals/portal-service.js"; import { MAX_PREAUTH_PAYLOAD_BYTES } from "./server-constants.js"; import { attachGatewayUpgradeHandler, @@ -131,6 +131,7 @@ export async function createGatewayHttpTransport(params: { startListening: () => Promise; wss: WebSocketServer; preauthConnectionBudget: PreauthConnectionBudget; + portalService: GatewayPortalService; getWorkerIngressEndpoint: () => { host: "127.0.0.1"; port: number } | undefined; getMcpAppSandboxPort: () => number | undefined; ensureSandboxHostPort: () => Promise;