Skip to content

Conversation

feiskyer
Copy link
Member

This PR integrates Kubernetes tools (kubectl, helm, cilium) from the mcp-kubernetes project into aks-mcp, enabling
unified management of both Azure AKS resources and Kubernetes operations through a single MCP server.

Changes Made

  • Added mcp-kubernetes dependency to reuse kubectl, helm, and cilium packages
  • Created config adapter (internal/k8s/adapter.go) to bridge between aks-mcp and mcp-kubernetes configurations
  • Extended configuration with Kubernetes-specific fields:
    • --additional-tools flag to enable helm/cilium tools
    • --allow-namespaces flag for namespace access control
    • --k8s-readonly flag for read-only Kubernetes operations
  • Updated server registration to include Kubernetes tools with proper access level controls

Benefits

  • Provides kubectl, helm, and cilium tools alongside existing Azure tools
  • Maintains separate security models for Azure (readonly/readwrite/admin) and Kubernetes operations
  • Avoids code duplication by reusing battle-tested mcp-kubernetes implementations
  • Enables AI assistants to manage both Azure infrastructure and Kubernetes workloads seamlessly

Usage Example

  # Enable all Kubernetes tools with namespace restrictions
  ./aks-mcp --additional-tools=helm,cilium --allow-namespaces=default,kube-system --access-level=readwrite

Copy link
Member

@gossion gossion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@feiskyer feiskyer merged commit d6b94de into main Jul 22, 2025
9 checks passed
@feiskyer feiskyer deleted the k8s-tools branch July 22, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants