feat: pin OAuth tokens to the canonical MCP resource - #183
Open
mattzcarey wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
Post-merge provider verification complete. I built and packed the exact Staging was redeployed using the package packed from the merged provider:
This validates the intended sequence: merge this consumer PR, release |
mattzcarey
force-pushed
the
feat/strict-oauth-resource
branch
from
August 4, 2026 19:49
ebbe694 to
bacf749
Compare
mattzcarey
force-pushed
the
feat/strict-oauth-resource
branch
from
August 4, 2026 21:09
bacf749 to
0254956
Compare
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.
Summary
Pin OAuth authorization grants, provider-issued access tokens, and direct Cloudflare OAuth credentials to the canonical Cloudflare MCP endpoint.
MCP_RESOURCEfor local, staging, and productionresourceMetadata.resourceiss) behaviorCanonical resources:
http://localhost:2529/mcphttps://staging.mcp.cloudflare.com/mcphttps://mcp.cloudflare.com/mcpValidation
npm cinpm run check— 19 test files, 256 tests; formatting, lint, types, and tests all passThe OAuth integration coverage verifies:
/mcpresourceissStaging
Deployed to
cloudflare-api-mcp-staging:https://staging.mcp.cloudflare.com/mcpe0adfb78-5dd9-46cb-928e-9e91f60d7bb3Deployed metadata, bearer challenge, exact-resource authorization, and rejection of omitted/broader resources were smoke-tested successfully.
Live MCP client E2E
Each client completed browser OAuth against staging, connected to the MCP server, and made a real
searchtool call that returned{ "exists": true }:pi-mcp-adapter2.11.0Temporary test registrations, credentials, sessions, and local client configuration were removed after the runs.
Client ID Metadata Documents remain disabled in this PR and are handled in a separate stacked follow-up.