History

Serve every MCP endpoint as a projection of one executor

Rhys Sullivan committed 2 months ago

Commit 971b3f41 parent 5e4da2a41 files · +1406 −728Browse files

Showing the changes to apps/cloud/src/engine/execution-stack.ts (1 of 41 files). Show all

Unified · Split

apps/cloud/src/engine/execution-stack.ts+1−4
@@ -63,21 +63,18 @@ const cloudPluginFactory = executorConfig.plugins as (deps: { · 62 unmodified lines
6363 readonly clientId: string;
6464 readonly apiUrl?: string;
6565 };
66− readonly activeToolkitSlug?: string;
6766 }) => readonly AnyPlugin[];
6867
6968 // Fresh plugin instances per request, carrying the Worker env's WorkOS Vault
7069 // credentials. Matches the old `createScopedExecutor`'s `orgPlugins()`.
7170 export const CloudPluginsProvider: Layer.Layer<PluginsProvider> = Layer.succeed(PluginsProvider)({
72− plugins: (context) =>
71+ plugins: () =>
7372 cloudPluginFactory({
7473 workosCredentials: {
7574 apiKey: env.WORKOS_API_KEY,
7675 clientId: env.WORKOS_CLIENT_ID,
7776 apiUrl: env.WORKOS_API_URL,
7877 },
79− activeToolkitSlug:
80− context?.mcpResource?.kind === "toolkit" ? context.mcpResource.slug : undefined,
8178 }),
8279 });
8380