Require MCP registry for V2 provider sessions

This commit is contained in:
Julius Marminge authored and Julius Marminge committed 2026-08-07 13:18:41 +02:00
1 parent 14abe0feb7
commit ec79eb1411
10 files changed
+100 -37

No files matched your search

+4 -10
View File
@@ -430,14 +430,8 @@ export const makeRoutesLayer = Layer.mergeAll(
staticAndDevRouteLayer,
websocketRpcRouteLayer,
),
McpHttpServer.layer.pipe(Layer.provide(McpSessionRegistry.layer)),
).pipe(
Layer.provide(PreviewAutomationBroker.layer),
Layer.provide(ServerSelfUpdate.layer),
Layer.provide(commandReadinessLayer),
Layer.provide(browserApiCorsLayer),
Layer.provide(httpCompressionLayer),
);
McpHttpServer.layer,
).pipe(Layer.provide(browserApiCorsLayer));
export const makeServerLayer = Layer.unwrap(
Effect.gen(function* () {
@@ -641,8 +635,8 @@ export const makeServerLayer = Layer.unwrap(
);
return serverApplicationLayer.pipe(
Layer.provideMerge(runtimeServicesLive),
Layer.provide(activationLayer),
Layer.provideMerge(RuntimeServicesLive),
Layer.provideMerge(McpSessionRegistry.layer.pipe(Layer.provide(ServerEnvironment.layer))),
Layer.provideMerge(serverRelayBrokerTracingLayer),
Layer.provideMerge(HttpServerLive),
Layer.provide(ApplicationObservabilityLive),