Skip to content

fix(den-api): preserve legacy MCP callback URLs - #4039

Merged
OmarMcAdam merged 2 commits into
devfrom
legacy-connections-callback-url
Aug 24, 2026
Merged

OmarMcAdam merged 2 commits into
devfrom
legacy-connections-callback-url

Conversation

@OmarMcAdam

Copy link
Copy Markdown
Member

Summary

  • Prefer each MCP OAuth client's stored registered redirect URI when reconnecting
  • Fall back old hosted MCP connections created before 2026-08-24T00:01Z to the app/proxy callback URL
  • Keep token exchange using the same callback URL and cover legacy app/proxy callback forwarding in Den Web tests

Tests

  • pnpm --filter @openwork-ee/den-web exec bun test --conditions development tests/den-api-origin.test.ts
  • pnpm --filter @openwork-ee/den-api build

Note: targeted Den API test could not run locally because the MySQL test database openwork_test_pr7 is not present in this environment.

@vercel

vercel Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview Aug 24, 2026 12:25pm
openwork-den Ready Ready Preview Aug 24, 2026 12:25pm
openwork-den-worker-proxy Ready Ready Preview Aug 24, 2026 12:25pm
openwork-landing Ready Ready Preview, v0 Aug 24, 2026 12:25pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openwork-diagnostics Skipped Skipped Aug 24, 2026 12:25pm

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (1de40da759cd3ca23785432ba241edf961f10e33). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@OmarMcAdam
OmarMcAdam merged commit 2c5fe3f into dev Aug 24, 2026
25 checks passed

This branch was successfully deployed

4 active and 1 inactive deployments
Preview – openwork-den-worker-proxy — 1de40da7 Deployed Aug 24, 2026 by vercel[bot]
Preview – openwork-landing — 1de40da7 Deployed Aug 24, 2026 by vercel[bot]
Preview – openwork-den — 1de40da7 Deployed Aug 24, 2026 by vercel[bot]
Preview – openwork-app — 1de40da7 Deployed Aug 24, 2026 by vercel[bot]
Preview – openwork-diagnostics — 1de40da7 Deployed Aug 24, 2026 by vercel[bot]
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