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 |
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 grants and access tokens to the canonical Cloudflare MCP endpoint.
cloudflare/workers-oauth-provider#256MCP_RESOURCEfor local, staging, and production deploymentsresourceMetadata.resourceissvalue in successful authorization responsesCanonical resources:
http://localhost:2529/mcphttps://staging.mcp.cloudflare.com/mcphttps://mcp.cloudflare.com/mcpDependency and release sequencing
The provider change merged in:
510b20c66a7b9679c73a249ef5e7117aecd9a41aThere is intentionally no npm release yet. This PR keeps the pkg.pr.new URL so the consumer can merge first. After this PR merges, release
workers-oauth-provider, then replace the preview dependency with the released npm version.The lockfile pins the preview artifact integrity. I also built and packed the exact merged provider commit; its installed
dist/oauth-provider.jswas byte-identical to the locked preview artifact (sha1 2a02d433ad03a91e7f661a496134d05d267d3a60).Tests
Merged provider tree:
npm cinpm run check(566 tests)npm run buildnpx prettier --check .This consumer, against both the locked preview and a package packed from provider merge commit
510b20c:npm cinpm run check(292 tests)The OAuth integration suite verifies:
/mcpresourceauthorization_response_iss_parameter_supported: trueiss=https://mcp.cloudflare.comStaging
Deployed the consumer branch with a package packed from the exact merged provider commit:
cloudflare-api-mcp-staginghttps://staging.mcp.cloudflare.com97f9f0b3-6b46-410a-af40-43d4a3467c28Deployed checks passed:
https://staging.mcp.cloudflare.com/mcphttps://staging.mcp.cloudflare.comauthorization_response_iss_parameter_supported: true/mcpreturns the bare 401 bearer challenge with the path-specificresource_metadataresource=https://staging.mcp.cloudflare.com/mcpreaches consent