Skip to content

Use saved OAuth apps for MCP connections - #2069

Draft
RhysSullivan wants to merge 4 commits into
mainfrom
fix/connection-saved-mcp-app
Draft

RhysSullivan wants to merge 4 commits into
mainfrom
fix/connection-saved-mcp-app

Conversation

@RhysSullivan

@RhysSullivan RhysSullivan commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Connect can register another OAuth app even when a suitable app is already saved. Reuse the app linked to the MCP integration, or one whose exact endpoints and resource match discovery. Preserve the app’s integration in the API response and keep the app owner separate from the connection owner.

The recording uses the same synthetic setup and one Connect click. Before, provider consent names the newly registered Executor app. After, it names the existing Saved app. Browser trace frames are aligned at Connect; the consent view is enlarged and its final frame held.

saved-mcp-app-comparison.mp4

Validation: 91 unit tests pass. Both saved-app browser cases pass through consent and persistence on self-host, with the existing client ID, a personal connection, and no new registration. The default-tab check passes after waiting for async selection. The resource-indicator regression also passes, including omitted resource parameters and an empty field after reopening the saved app. React, API, and e2e type checks, lint, and formatting pass.

The published MCP emulator form omits its selected username, so the fixture forwards that username in the real form POST. Provider responses and the token exchange are not mocked. Chrome independently verified the existing client ID and consent page. Local cloud startup timed out; cloud coverage and release gates are running in CI.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 18, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud 262c76c Sep 18 2026, 08:48 PM

@github-actions

github-actions Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Console https://executor-preview-pr-2069.executor-e2e.workers.dev
MCP https://executor-preview-pr-2069.executor-e2e.workers.dev/mcp
Deployed commit 262c76c

Sign-in is Cloudflare Access (one-time PIN to an allowed email). The preview has its own database and encryption key; it is destroyed when this PR closes.

@pkg-pr-new

pkg-pr-new Bot commented Sep 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@2069

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@2069

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@2069

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@2069

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@2069

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@2069

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@2069

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@2069

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@2069

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@2069

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@2069

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@2069

executor

npm i https://pkg.pr.new/executor@2069

commit: 262c76c

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 262c76c Commit Preview URL

Branch Preview URL
Sep 18 2026, 08:46 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant