History

Revert the outbound MCP SDK v2 migration (#1697)

* Revert the outbound MCP SDK v2 migration * Drop the v2 MCP packages from the lockfile

Rhys Sullivan committed 2 months ago

Commit a5800a11 parent 54cde5e91 files · +5838 −10032Browse files

Showing the changes to apps/cloud/src/auth (1 of 91 files). Show all

Unified · Split

apps/cloud/src/auth/handlers.ts+0−6
@@ -631,9 +631,6 @@ export const CloudSessionAuthHandlers = HttpApiBuilder.group( · 630 unmodified lines
631631 Effect.gen(function* () {
632632 const owner = yield* requireSelectedOrganization;
633633 const stub = getMcpSessionStub(params.mcpSessionId);
634− if (!stub) {
635− return yield* new McpExecutionNotFoundError({ executionId: params.executionId });
636− }
637634 const result = yield* Effect.promise(() =>
638635 stub.getPausedExecutionForApproval(params.executionId, {
639636 accountId: owner.accountId,
@@ -655,9 +652,6 @@ export const CloudSessionAuthHandlers = HttpApiBuilder.group( · 15 unmodified lines
655652 Effect.gen(function* () {
656653 const owner = yield* requireSelectedOrganization;
657654 const stub = getMcpSessionStub(params.mcpSessionId);
658− if (!stub) {
659− return yield* new McpExecutionNotFoundError({ executionId: params.executionId });
660− }
661655 const result = yield* Effect.promise(() =>
662656 stub.resumeExecutionForApproval(
663657 params.executionId,