Repository navigation
feat(mcp): advertise the six area read scopes - #133
Merged
Merged
Conversation
commerce:read, calendar:read, files:read, campaigns:read, money:read and automations:read, appended after messaging:read to match libs/oauth/scopes.ts in Schedule-Posts-API (#10954), each with a relink purpose. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A token narrowed to an area's :read that calls a write tool is refused on the tool's first declared scope, the :write, which had no purpose. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Review (code-review high --fix)
Tests / QA
Metrics
Pending post-deploy check: once #10954 is on zernio.com, rerun |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The Zernio authorization server added six read-only scopes (Schedule-Posts-API #10954). MCP clients request exactly the scopes
/mcpadvertises, so without them no MCP user can get read-only access to these areas.What
OAUTH_SCOPES: appendcommerce:read,calendar:read,files:read,campaigns:read,money:read,automations:readaftermessaging:read. The strings and order must matchlibs/oauth/scopes.tsin Schedule-Posts-API (#10954)._SCOPE_PURPOSE: a relink purpose for each new scope and for its:writesibling (a read-narrowed token calling a write tool is refused on the:write).automations:readcovers contacts and webhooks, not workflows.Merge only once zernio.com has deployed #10954:
test_metadata_scopes_match_the_live_authorization_servercompares against the live issuer and fails until then, and before it an authorize request with the new scopes getsinvalid_scope.🤖 Generated with Claude Code