Skip to content

Require explicit access level and team scope on the MCP consent screen - #8419

Merged
cstns merged 1 commit into
mainfrom
8417-mcp-consent-no-preselect
Sep 7, 2026
Merged

Require explicit access level and team scope on the MCP consent screen#8419
cstns merged 1 commit into
mainfrom
8417-mcp-consent-no-preselect

Conversation

@cstns

@cstns cstns commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Closes #8417

The MCP OAuth consent page preselected "Full access" and "All teams", so the quickest path through was to blindly click Allow and hand the agent read/write access to everything.

Now both radio groups start with nothing selected, and the Allow button stays disabled until the user has picked an access level and a team scope (the existing "specific teams needs at least one team" guard still applies on top).

Added unit tests for the page covering the no-preselection state and the button gating.

Screenshot

@cstns cstns self-assigned this Sep 4, 2026
@cstns
cstns requested a review from n-lark September 4, 2026 07:35
@cstns
cstns enabled auto-merge (squash) September 4, 2026 07:36
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.76%. Comparing base (865573c) to head (639f2eb).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8419   +/-   ##
=======================================
  Coverage   76.76%   76.76%           
=======================================
  Files         459      459           
  Lines       24689    24689           
  Branches     6567     6567           
=======================================
  Hits        18953    18953           
  Misses       5736     5736           
Flag Coverage Δ
backend 76.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cstns
cstns force-pushed the 8417-mcp-consent-no-preselect branch from a57aee5 to b6dcfaa Compare September 4, 2026 08:08
@cstns
cstns disabled the stack merge September 4, 2026 10:35
…t screen

The consent page preselected "Full access" and "All teams", so the path of
least resistance was to blindly click Allow. Both radio groups now start
unselected and Allow stays disabled until the user has made both choices.

Closes #8417
@cstns
cstns force-pushed the 8417-mcp-consent-no-preselect branch from b6dcfaa to 639f2eb Compare September 7, 2026 07:20
@cstns
cstns disabled the stack merge September 7, 2026 08:04
@cstns
cstns merged commit ac9dc15 into main Sep 7, 2026
29 checks passed
@cstns
cstns deleted the 8417-mcp-consent-no-preselect branch September 7, 2026 08:04
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.

Don't preselect access level and team scope on the MCP consent screen

2 participants