fix: account ID negotiation for multi-account OAuth users - #8
Closed
mattzcarey wants to merge 1 commit into
Closed
Conversation
6 tasks
For OAuth users with multiple Cloudflare accounts: - Auto-select account when user has only one account (no manual selection needed) - Show clear account picker when multiple accounts exist - Pass AuthProps through API token path to access account information Implementation details: - Updated createServer signature to accept optional AuthProps parameter - Modified execute tool schema to make account_id optional when single account - Clarified parameter description (removed misleading "remember" language) - Simplified account selection logic for better readability Closes #3
mattzcarey
force-pushed
the
fix/account-id-negotiation
branch
from
February 16, 2026 12:56
06bea43 to
72207ab
Compare
Contributor
Author
|
Changes incorporated into PR #11 |
5 tasks
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
account_idis provided, the execute tool now returns an error listing all available accounts so the user can pick oneaccount_idparameter neededAuthPropsthrough from the OAuth layer to the MCP server so it has access to the user's account listTest plan
account_idreturns error with list of available accountsaccount_idworks correctlyaccount_idparameterCloses #3