-
Notifications
You must be signed in to change notification settings - Fork 285
Add AKS tool for listing nodepools #360
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 an AKS nodepool list tool that allows users to list all node pools for a specific Azure Kubernetes Service (AKS) cluster. The tool returns key node pool details including sizing, count, OS type, mode, and autoscaling settings.
Key changes:
- Added
NodepoolListCommandfor listing node pools in an AKS cluster - Extended
IAksServiceandAksServicewithListNodePoolsmethod - Added comprehensive unit and live tests for the new functionality
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
tools/Azure.Mcp.Tools.Aks/src/Commands/Nodepool/NodepoolListCommand.cs |
Implements the main command for listing AKS node pools |
tools/Azure.Mcp.Tools.Aks/src/Services/AksService.cs |
Adds ListNodePools method with caching and error handling |
tools/Azure.Mcp.Tools.Aks/src/Services/IAksService.cs |
Extends interface with ListNodePools method |
tools/Azure.Mcp.Tools.Aks/src/Models/NodePool.cs |
Defines NodePool model with comprehensive properties |
tools/Azure.Mcp.Tools.Aks/src/Options/Nodepool/NodepoolListOptions.cs |
Options class for nodepool list command parameters |
tools/Azure.Mcp.Tools.Aks/tests/Azure.Mcp.Tools.Aks.UnitTests/Nodepool/NodepoolListCommandTests.cs |
Unit tests for the nodepool list command |
tools/Azure.Mcp.Tools.Aks/tests/Azure.Mcp.Tools.Aks.LiveTests/NodepoolCommandTests.cs |
Live integration tests for nodepool functionality |
tools/Azure.Mcp.Tools.Aks/src/Commands/AksJsonContext.cs |
Adds JSON serialization context for NodePool types |
tools/Azure.Mcp.Tools.Aks/src/AksSetup.cs |
Registers the new nodepool command group and list command |
servers/Azure.Mcp.Server/README.md |
Updates documentation with nodepool list example |
servers/Azure.Mcp.Server/CHANGELOG.md |
Documents the new feature addition |
docs/e2eTestPrompts.md |
Adds test prompts for the nodepool list functionality |
docs/azmcp-commands.md |
Updates command documentation with nodepool list usage |
...Azure.Mcp.Tools.Aks/tests/Azure.Mcp.Tools.Aks.UnitTests/Nodepool/NodepoolListCommandTests.cs
Outdated
Show resolved
Hide resolved
e457343 to
233458f
Compare
|
/azp run mcp - pullrequest - live |
|
Azure Pipelines successfully started running 1 pipeline(s). |
68ccf2b to
84f2fa7
Compare
|
/azp run mcp - pullrequest - live |
|
Azure Pipelines successfully started running 1 pipeline(s). |
84f2fa7 to
7dd6278
Compare
|
/azp run mcp - pullrequest - live |
|
Commenter does not have sufficient privileges for PR 360 in repo microsoft/mcp |
|
/azp run mcp - pullrequest - live |
|
Azure Pipelines successfully started running 1 pipeline(s). |
25ba917 to
43de144
Compare
43de144 to
e016dcd
Compare
What does this PR do?
Simlilar existing aks cluster tools, this PR adds nodepool list tool for AKS managed cluster (a nodepool get tool would be added later in a following PR).
GitHub issue number?
Pre-merge Checklist
servers/Azure.Mcp.Server/CHANGELOG.mdand/orservers/Fabric.Mcp.Server/CHANGELOG.mdfor product changes (features, bug fixes, UI/UX, updated dependencies)servers/Azure.Mcp.Server/README.mdand/orservers/Fabric.Mcp.Server/README.mddocumentation/docs/azmcp-commands.mdand/or/docs/fabric-commands.mdToolDescriptionEvaluatorand obtained a score of0.4or more and a top 3 ranking for all related test prompts/docs/e2eTestPrompts.mdcrypto mining, spam, data exfiltration, etc.)/azp run mcp - pullrequest - liveto run Live Test Pipeline