Repository navigation
Conversation
…ls route and the createWithWriteTools permission
…the permission declaration and use the v2 auth cache prefix
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.
writeTools, empty = read only), fixed at creation; the management API (omitted ornull= read only),PersonalAccessTokenFacade::create()andanzu:personal-access-token:create --write-tool=<name>(repeatable) accept them. Names are validated against the common-bundle MCP configuration (PersonalAccessTokenWriteToolsconstraint), a repeated name answers 422.auth_personalAccessToken_createWithWriteToolspermission and answers 403 for a tool whose MCP tool permission the creator does not hold; the newGET personal-access-token/write-toolsroute lists the tools the user may grant.PersonalAccessTokenWriteToolResolvertakesMcpToolAccessCheckeroptionally, so applications without MCP keep working (read-only tokens only). The "Personal access token created." log carries the granted write tools. The README shows how a host declares the token permissions inpermissions.config.PersonalAccessTokenAuthenticatorcopies the list onto the security token;McpToolWriteVotergrants the common-bundlemcp_tool_writeattribute only for a tool listed on the token (not to a JWT/session, a super admin included).pat_auth_token_v2.Requires anzusystems/common-bundle#114 (
^11.9 || dev-mcp_create_quizuntil it is tagged). Hosts add a migration:ALTER TABLE personal_access_token ADD write_tools JSON DEFAULT NULL(nullable, because MySQL fillsJSON NOT NULLwith JSON null for existing rows). BC changes are listed in the CHANGELOG.