-
Notifications
You must be signed in to change notification settings - Fork 191
Add azmcp sql server list
command and unit tests
#503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new command azmcp sql server list
that lists Azure SQL servers within a resource group, including comprehensive unit tests and documentation updates.
Key changes:
- Implements a new list command for SQL servers with proper input validation and error handling
- Adds comprehensive unit test coverage including success scenarios, error cases, and edge conditions
- Updates documentation and command registration to include the new functionality
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
ServerListCommandTests.cs | Comprehensive unit tests covering validation, success scenarios, error handling, and edge cases |
SqlSetup.cs | Registers the new ServerListCommand in the command structure |
SqlService.cs | Implements ListServersAsync method with proper error handling and resource group validation |
ISqlService.cs | Adds interface definition for the ListServersAsync method |
ServerListOptions.cs | Defines options class extending SubscriptionOptions for the list command |
SqlJsonContext.cs | Adds JSON serialization support for ServerListResult |
ServerListCommand.cs | Main command implementation with validation, execution logic, and error handling |
e2eTestPrompts.md | Adds test prompts for the new list command functionality |
azmcp-commands.md | Documents the new command usage and syntax |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
/azp run mcp - pullrequest - live |
Azure Pipelines successfully started running 1 pipeline(s). |
What does this PR do?
Add
azmcp sql server list
command and unit testsGitHub issue number?
#126
Pre-merge Checklist
servers/Azure.Mcp.Server/CHANGELOG.md
and/orservers/Fabric.Mcp.Server/CHANGELOG.md
for product changes (features, bug fixes, UI/UX, updated dependencies
)servers/Azure.Mcp.Server/README.md
and/orservers/Fabric.Mcp.Server/README.md
documentation/docs/azmcp-commands.md
and/or/docs/fabric-commands.md
ToolDescriptionEvaluator
and obtained a score of0.4
or more and a top 3 ranking for all related test prompts/docs/e2eTestPrompts.md
crypto mining, spam, data exfiltration, etc.
)/azp run mcp - pullrequest - live
to run Live Test Pipeline