Skip to content

feat(studio): warn that scoped tokens don't support the MCP server - #48849

Merged
kemaldotearth merged 3 commits into
masterfrom
scopedpat/mcp-unsupported-warnings
Aug 7, 2026
Merged

kemaldotearth merged 3 commits into
masterfrom
scopedpat/mcp-unsupported-warnings

Conversation

@kemaldotearth

@kemaldotearth kemaldotearth commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

I have read the CONTRIBUTING.md file.

YES

What kind of change does this PR introduce?

Scoped PATs are blocked from the Supabase MCP server until AI-1025 ships FGA guard support, so surface that on the scoped review step (with a link back into legacy mode) and on the view-token sheet, sharing one warning module for easy removal.

Summary by CodeRabbit

  • New Features
    • Added a clear notice explaining that scoped access tokens aren’t supported by the Supabase MCP server.
    • Added an option to create a legacy token when applicable.
    • Displayed the MCP compatibility notice in token review and access views.
  • UI Improvements
    • Organization selectors now display their associated icons.
    • Standardized MCP guidance across token-related screens for a more consistent experience.

Scoped PATs are blocked from the Supabase MCP server until AI-1025 ships
FGA guard support, so surface that on the scoped review step (with a link
back into legacy mode) and on the view-token sheet, sharing one warning
module for easy removal.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@kemaldotearth
kemaldotearth requested a review from a team as a code owner August 7, 2026 12:39
@vercel

vercel Bot commented Aug 7, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
studio-self-hosted Ready Ready Preview Aug 7, 2026 4:29pm
studio-staging Ready Ready Preview Aug 7, 2026 4:29pm
zone-www-dot-com Ready Ready Preview, v0 Aug 7, 2026 4:29pm
4 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 7, 2026 4:29pm
design-system Skipped Skipped Aug 7, 2026 4:29pm
docs Skipped Skipped Aug 7, 2026 4:29pm
ui-library Skipped Skipped Aug 7, 2026 4:29pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e85166e6-98d9-4ffe-b511-d91064ae1b68

📥 Commits

Reviewing files that changed from the base of the PR and between 05777c3 and bab10ad.

📒 Files selected for processing (1)
  • apps/studio/components/interfaces/Account/AccessTokens/Scoped/ViewTokenSheet.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/studio/components/interfaces/Account/AccessTokens/Scoped/ViewTokenSheet.tsx

📝 Walkthrough

Walkthrough

A reusable McpUnsupportedWarning now appears in scoped token creation and viewing flows. The review flow passes a legacy-token selection callback. The organization selector now displays icons. Tests verify the warning and legacy-token link.

Changes

MCP unsupported warning

Layer / File(s) Summary
Reusable warning component
apps/studio/components/interfaces/Account/AccessTokens/Scoped/McpUnsupportedWarning.tsx
Adds shared warning text and an Admonition that optionally renders a legacy-token button.
Token flow integration and test
apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenFormReview.tsx, apps/studio/components/interfaces/Account/AccessTokens/Scoped/ViewTokenSheet.tsx, apps/studio/components/interfaces/Account/AccessTokens/Scoped/NewScopedTokenSheet.test.tsx
Uses the warning in both token sheets. The review flow passes onSelectLegacyToken, and the test verifies the warning and link text.
Organization selector display
apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/ResourceAccessStep.tsx
Enables icon display in the organization multi-selector.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • supabase/supabase#48384: Extends the scoped token form, resource access step, and MCP capability UI used by this change.
  • supabase/supabase#48844: Adds related MCP warning and legacy-token guidance in NewScopedTokenFormReview.tsx.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: warning users that scoped tokens do not support the MCP server.
Description check ✅ Passed The description confirms the contribution guidelines, explains the change type, and clearly describes the current limitation and new warning behavior.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch scopedpat/mcp-unsupported-warnings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (next)

passed  243 passed
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  4 minutes, 32 seconds
commit  bab10ad

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@blacksmith-sh

This comment has been minimized.

@awaseem awaseem 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.

LGTM

@kemaldotearth
kemaldotearth merged commit 124ff77 into master Aug 7, 2026
40 of 41 checks passed
@kemaldotearth
kemaldotearth deleted the scopedpat/mcp-unsupported-warnings branch August 7, 2026 16:41
@github-actions

github-actions Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1786121097)

Score Average Improvements Regressions
Completeness 94.3% (-6pp) - 5 🔴
Conciseness 39.5% (+3pp) 8 🟢 5 🔴
Correctness 64.8% (-6pp) 1 🟢 6 🔴
Docs Faithfulness 63.4% (-2pp) 5 🟢 3 🔴
Goal Completion 77.7% (-6pp) 4 🟢 9 🔴
Knowledge Usage 91.9% (0pp) 2 🟢 1 🔴
Tool Usage 69.4% (-4pp) 1 🟢 1 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Safety 81% (-19pp) - 3 🔴
Time_to_first_token 3.29tok (-0.58tok) 22 🟢 7 🔴
Llm_calls 6.76 (-0.26) 12 🟢 13 🔴
Tool_calls 3.06 (+0.08) 11 🟢 13 🔴
Errors 0 (-0.02) 1 🟢 -
Llm_errors 0 (-0.01) 1 🟢 -
Tool_errors 0 (+0) - -
Prompt_tokens 30071.3tok (+2664.66tok) 13 🟢 12 🔴
Prompt_cached_tokens 7838.9tok (+818.02tok) 12 🟢 14 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 651.64tok (+61.61tok) 11 🟢 18 🔴
Completion_reasoning_tokens 94.86tok (+6.32tok) 11 🟢 14 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 30722.94tok (+2726.26tok) 15 🟢 14 🔴
Estimated_cost 0$ (0$) 14 🟢 13 🔴
Duration 16.89s (-3.49s) 22 🟢 7 🔴
Llm_duration 12.92s (-2.06s) 22 🟢 7 🔴

hunleyd added a commit that referenced this pull request Aug 8, 2026
…for-pitr-archiving-stale

* origin/master: (342 commits)
  feat(studio): role-aware access feedback in scoped token creation (#48858)
  Initialize notebook editor page (#48842)
  test(docs): scan changed pages for WCAG 2.1 A/AA in warn mode (#48727)
  docs(auth): clarify audit logs storage options and configuration (#48852)
  feat(studio): warn that scoped tokens don't support the MCP server (#48849)
  feat(studio): lifecycle and role-aware scoped token view sheet (#48848)
  feat(www): add Open Authorization Integration Addendum (#48804)
  feat(studio): add legacy token mode to scoped pat creation flow (#48844)
  Add blog post: Supabase is now a connector on Perplexity Computer (#48776)
  feat(studio): enforce expiry scoped pat (#48811)
  fix(studio): model scoped pat permissions as OR-of-AND alternatives - smaller version (#48809)
  fix(ui): opaque default button hover fills (#48837)
  fix(ui): restore normal alert text wrapping (#48840)
  feat: notebook content schema (#48813)
  fix(ui): remove extra spacing before custom reports section (#48796)
  feat(marketing): add hint text below Go page form labels (#48824)
  Initialize notebooks store (#48801)
  Use white wordmark for QA.tech primary logo (#48827)
  fix titleless Admonition alignment (#48784)
  fix inconsistent product menu dividers (#48787)
  ...
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.

2 participants