You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Doc Gap] acr_registry_list and acr_registry_repository_list — global options table incorrectly claims --auth-method applies to all comman
[Content truncated due to length] #2845
PR #2825 migrated the ACR tools to the new tool design. RegistryListCommand and RegistryRepositoryListCommand were changed from extending BaseAcrCommand (which extended the old single-type-parameter SubscriptionCommand → GlobalCommand) to extending the new two-type-parameter SubscriptionCommand<TOptions, TResult> (which extends AuthenticatedCommand → BaseCommand). This is a breaking change that removed --auth-method from both acr_registry_list and acr_registry_repository_list.
The changelog entry added by the PR states:
changes:
- section: "Breaking Changes"description: "Removed auth mode from acr_registry_list and acr_registry_repository_list tools as they don't use that parameter."
Gaps Found
azmcp-commands.md Global Options table states "The following options are available for all commands" and lists --auth-method. However acr_registry_list and acr_registry_repository_list are now exceptions that do not accept --auth-method. The global options section needs a note (similar to what is needed for cloudarchitect_design, see [Doc Gap] cloudarchitect_design tool — docs show removed global options and wrong --state parameter #2827) clarifying which commands do not support this option.
Files to Update
servers/Azure.Mcp.Server/docs/azmcp-commands.md
Context
Before the migration, the option inheritance chain was:
The new RegistryListOptions and RegistryRepositoryListOptions explicitly declare only: Tenant, Subscription, ResourceGroup, RetryPolicy, Registry.
The current global options section in azmcp-commands.md:
## Global Options
The following options are available for all commands:
| Option | Required | Default | Description ||-----------|----------|---------|-------------||`--subscription`| No | Environment variable `AZURE_SUBSCRIPTION_ID`| ... ||`--tenant-id`| No | - | ... ||`--auth-method`| No | 'credential' | Authentication method ('credential', 'key', 'connectionString') |
...
📐 Implementation Guide
This section contains step-by-step instructions for a coding agent to implement the changes described above.
After the Global Options table, add a note listing commands that do not support --auth-method. If a note already exists from the CloudArchitect fix (#2827), extend it to include the ACR tools:
Note: The following commands do not support --auth-method (and other global options where noted):
cloudarchitect design — does not support --subscription, --tenant-id, --auth-method, or any --retry-* options
acr registry list and acr registry repository list — do not support --auth-method
The Global Options section note lists acr registry list and acr registry repository list as exceptions to --auth-method
The ACR Operations section command signatures remain accurate (they already correctly show --subscription, --resource-group, --registry)
Step 3: Validate
Run these commands in order:
dotnet build servers/Azure.Mcp.Server/ — confirms the server project compiles cleanly
dotnet build tools/Azure.Mcp.Tools.Acr/src/ — confirms the ACR toolset compiles
.\eng\common\spelling\Invoke-Cspell.ps1 — checks spelling in modified documentation
Next Steps
Tip
Ready for automated implementation? Assign this issue to @copilot to have Copilot coding agent implement the changes described in the Implementation Guide above
Documentation Gap
Server:
Azure.Mcp.ServerTool directory:
tools/Azure.Mcp.Tools.AcrTriggered by: commit be352cf / PR #2825 by
@alzimmermsftChanged files:
tools/Azure.Mcp.Tools.Acr/src/Commands/Registry/RegistryListCommand.cstools/Azure.Mcp.Tools.Acr/src/Commands/Registry/RegistryRepositoryListCommand.cstools/Azure.Mcp.Tools.Acr/src/Options/Registry/RegistryListOptions.cstools/Azure.Mcp.Tools.Acr/src/Options/Registry/RegistryRepositoryListOptions.cstools/Azure.Mcp.Tools.Acr/src/Commands/BaseAcrCommand.cs(deleted)tools/Azure.Mcp.Tools.Acr/src/Options/AcrOptionDefinitions.cs(deleted)tools/Azure.Mcp.Tools.Acr/src/Options/BaseAcrOptions.cs(deleted)What Changed
PR #2825 migrated the ACR tools to the new tool design.
RegistryListCommandandRegistryRepositoryListCommandwere changed from extendingBaseAcrCommand(which extended the old single-type-parameterSubscriptionCommand→GlobalCommand) to extending the new two-type-parameterSubscriptionCommand<TOptions, TResult>(which extendsAuthenticatedCommand→BaseCommand). This is a breaking change that removed--auth-methodfrom bothacr_registry_listandacr_registry_repository_list.The changelog entry added by the PR states:
Gaps Found
azmcp-commands.mdGlobal Options table states "The following options are available for all commands" and lists--auth-method. Howeveracr_registry_listandacr_registry_repository_listare now exceptions that do not accept--auth-method. The global options section needs a note (similar to what is needed forcloudarchitect_design, see [Doc Gap] cloudarchitect_design tool — docs show removed global options and wrong--stateparameter #2827) clarifying which commands do not support this option.Files to Update
servers/Azure.Mcp.Server/docs/azmcp-commands.mdContext
Before the migration, the option inheritance chain was:
After the migration:
The new
RegistryListOptionsandRegistryRepositoryListOptionsexplicitly declare only:Tenant,Subscription,ResourceGroup,RetryPolicy,Registry.The current global options section in
azmcp-commands.md:📐 Implementation Guide
This section contains step-by-step instructions for a coding agent to implement the changes described above.
Step 1: Modify files
File:
servers/Azure.Mcp.Server/docs/azmcp-commands.mdAfter the Global Options table, add a note listing commands that do not support
--auth-method. If a note already exists from the CloudArchitect fix (#2827), extend it to include the ACR tools:Step 2: Verify documentation structure
servers/Azure.Mcp.Server/docs/azmcp-commands.md— confirm:acr registry listandacr registry repository listas exceptions to--auth-method--subscription,--resource-group,--registry)Step 3: Validate
Run these commands in order:
dotnet build servers/Azure.Mcp.Server/— confirms the server project compiles cleanlydotnet build tools/Azure.Mcp.Tools.Acr/src/— confirms the ACR toolset compiles.\eng\common\spelling\Invoke-Cspell.ps1— checks spelling in modified documentationNext Steps
Tip
Ready for automated implementation? Assign this issue to
@copilotto have Copilot coding agent implement the changes described in the Implementation Guide above