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
631 Effect.gen(function* () {631 Effect.gen(function* () {
632 const owner = yield* requireSelectedOrganization;632 const owner = yield* requireSelectedOrganization;
633 const stub = getMcpSessionStub(params.mcpSessionId);633 const stub = getMcpSessionStub(params.mcpSessionId);
634 if (!stub) {
635 return yield* new McpExecutionNotFoundError({ executionId: params.executionId });
636 }
637 const result = yield* Effect.promise(() =>634 const result = yield* Effect.promise(() =>
638 stub.getPausedExecutionForApproval(params.executionId, {635 stub.getPausedExecutionForApproval(params.executionId, {
639 accountId: owner.accountId,636 accountId: owner.accountId,
@@ -655,9 +652,6 @@ export const CloudSessionAuthHandlers = HttpApiBuilder.group( · 15 unmodified lines
655 Effect.gen(function* () {652 Effect.gen(function* () {
656 const owner = yield* requireSelectedOrganization;653 const owner = yield* requireSelectedOrganization;
657 const stub = getMcpSessionStub(params.mcpSessionId);654 const stub = getMcpSessionStub(params.mcpSessionId);
658 if (!stub) {
659 return yield* new McpExecutionNotFoundError({ executionId: params.executionId });
660 }
661 const result = yield* Effect.promise(() =>655 const result = yield* Effect.promise(() =>
662 stub.resumeExecutionForApproval(656 stub.resumeExecutionForApproval(
663 params.executionId,657 params.executionId,