Skip to content

feat(mcp): bind OAuth consent to workspaces - #1595

Merged
realcodesiman merged 3 commits into
mainfrom
feat/mcp-oauth-workspace-consent
Oct 30, 2026
Merged

realcodesiman merged 3 commits into
mainfrom
feat/mcp-oauth-workspace-consent

Conversation

@realcodesiman

@realcodesiman realcodesiman commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Bind OAuth consents and tokens to the workspace selected during consent.
  • Remove workspace IDs from MCP connection URLs and document the marketplace-safe flow.
  • Add the database migration and OAuth consent regression coverage.

Migration note

  • Existing access tokens whose client has no given consent row now return invalidToken; those clients must reconnect.

Verification

  • pnpm lint
  • pnpm --filter builder exec vitest run tests/mcp-oauth-connect-snippets.test.ts tests/oauth-consent-form.test.tsx tests/oauth-consent-action.test.ts
  • pnpm --filter @chatbotx.io/business test -- mcp-oauth.service.test.ts

@github-actions github-actions Bot added the feature New feature or request label Oct 30, 2026
Resolve the consent client from the signed request before workspace binding.
@realcodesiman
realcodesiman merged commit c06d2ba into main Oct 30, 2026
14 checks passed
@realcodesiman
realcodesiman deleted the feat/mcp-oauth-workspace-consent branch October 30, 2026 13:11
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
* feat(mcp): bind OAuth consent to workspaces

* fix(mcp): validate OAuth consent client binding

Resolve the consent client from the signed request before workspace binding.

* fix(mcp): bind workspace selection to OAuth consent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant