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
PR #2954 migrated Search tools to the new two-generic option pattern. As part of this, IndexQueryCommand was changed from a SubscriptionCommand to an AuthenticatedCommand, and IndexQueryOptions was refactored to a flat POCO with [Option] attributes containing only: Query, Service, Index, and RetryPolicy. The Subscription property was removed.
Gaps Found
azmcp-commands.md still documents --subscription <subscription> as a parameter for azmcp search index query, but this parameter no longer exists in IndexQueryOptions and the command no longer extends SubscriptionCommand.
publicsealedclassIndexQueryOptions{[Option(Description="The search query to execute against the Azure AI Search index.")]publicrequiredstringQuery{get;set;}[Option(Description=SearchOptionDescriptions.Service)]publicrequiredstringService{get;set;}[Option(Description=SearchOptionDescriptions.Index)]publicrequiredstringIndex{get;set;}[OptionContainer(Prefix="retry")]publicRetryPolicyOptions?RetryPolicy{get;set;}}
📐 Implementation Guide
This section contains step-by-step instructions for a coding agent to implement the changes described above.
servers/Azure.Mcp.Server/docs/azmcp-commands.md — must include:
A global options table at the top (subscription, resource-group, tenant, retry-max-retries, retry-delay)
One ## azmcp <service> <resource> <operation> section per command, containing a description, parameters table, and example usage block
Step 3: Validate
Run these commands in order:
dotnet build servers/Azure.Mcp.Server/ — confirms the server project compiles cleanly
.\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.SearchTriggered by: commit
ec2f45a8(PR #2954) by@alzimmermsftChanged files:
tools/Azure.Mcp.Tools.Search/src/Commands/Index/IndexQueryCommand.cs(modified)tools/Azure.Mcp.Tools.Search/src/Options/Index/IndexQueryOptions.cs(modified)What Changed
PR #2954 migrated Search tools to the new two-generic option pattern. As part of this,
IndexQueryCommandwas changed from aSubscriptionCommandto anAuthenticatedCommand, andIndexQueryOptionswas refactored to a flat POCO with[Option]attributes containing only:Query,Service,Index, andRetryPolicy. TheSubscriptionproperty was removed.Gaps Found
azmcp-commands.mdstill documents--subscription <subscription>as a parameter forazmcp search index query, but this parameter no longer exists inIndexQueryOptionsand the command no longer extendsSubscriptionCommand.Files to Update
servers/Azure.Mcp.Server/docs/azmcp-commands.mdContext
Current (incorrect) docs:
New
IndexQueryOptions(noSubscription):📐 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.mdEdit the
azmcp search index queryexample. Remove--subscription <subscription> \from the command example so it reads:Step 2: Verify documentation structure
servers/Azure.Mcp.Server/docs/azmcp-commands.md— must include:## azmcp <service> <resource> <operation>section per command, containing a description, parameters table, and example usage blockStep 3: Validate
Run these commands in order:
dotnet build servers/Azure.Mcp.Server/— confirms the server project compiles cleanly.\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