Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@feiskyer
Copy link
Contributor

@feiskyer feiskyer commented Sep 8, 2025

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

  • Required for All PRs
    • Read contribution guidelines
    • PR title clearly describes the change
    • Commit history is clean with descriptive messages (cleanup guide)
    • Added comprehensive tests for new/modified functionality
    • Updated servers/Azure.Mcp.Server/CHANGELOG.md and/or servers/Fabric.Mcp.Server/CHANGELOG.md for product changes (features, bug fixes, UI/UX, updated dependencies)
  • For MCP tool changes:
    • One tool per PR: This PR adds or modifies only one MCP tool for faster review cycles
    • Updated servers/Azure.Mcp.Server/README.md and/or servers/Fabric.Mcp.Server/README.md documentation
    • Updated command list in /docs/azmcp-commands.md and/or /docs/fabric-commands.md
    • For new or modified tool descriptions, ran ToolDescriptionEvaluator and obtained a score of 0.4 or more and a top 3 ranking for all related test prompts
  • Extra steps for Azure MCP Server tool changes:
    • Updated test prompts in /docs/e2eTestPrompts.md
    • 👉 For Community (non-Microsoft team member) PRs:
      • Security review: Reviewed code for security vulnerabilities, malicious code, or suspicious activities before running tests (crypto mining, spam, data exfiltration, etc.)
      • Manual tests run: added comment /azp run mcp - pullrequest - live to run Live Test Pipeline

Copilot AI review requested due to automatic review settings September 8, 2025 06:07
@feiskyer feiskyer requested review from a team and jongio as code owners September 8, 2025 06:07
@feiskyer feiskyer requested a review from hallipr September 8, 2025 06:07
@github-project-automation github-project-automation bot moved this to Untriaged in Azure MCP Server Sep 8, 2025
Copy link
Contributor

Copilot AI left a 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 NodepoolListCommand for listing node pools in an AKS cluster
  • Extended IAksService and AksService with ListNodePools method
  • 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

@joshfree
Copy link
Member

joshfree commented Sep 8, 2025

/azp run mcp - pullrequest - live

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@feiskyer
Copy link
Contributor Author

feiskyer commented Sep 8, 2025

@joshfree @jongio rebased to resolve the conflicts. Could you have a look again?

@joshfree
Copy link
Member

/azp run mcp - pullrequest - live

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@feiskyer
Copy link
Contributor Author

/azp run mcp - pullrequest - live

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 360 in repo microsoft/mcp

@joshfree joshfree enabled auto-merge (squash) September 10, 2025 02:39
@github-project-automation github-project-automation bot moved this from Untriaged to In Progress in Azure MCP Server Sep 10, 2025
@joshfree
Copy link
Member

/azp run mcp - pullrequest - live

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@joshfree joshfree merged commit 9ce07c1 into microsoft:main Sep 11, 2025
26 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Azure MCP Server Sep 11, 2025
@feiskyer feiskyer deleted the aks-nodepool-list branch September 11, 2025 00:41
colbytimm pushed a commit to colbytimm/microsoft-mcp that referenced this pull request Sep 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants