AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Agentic Kubernetes CLI

mcp-tarique-b-devops-agentic-kubernetes-cli · by Tarique-B-DevOps

Agentic AI system that transforms natural language into kubectl commands via Strands Agent and MCP server integration.

No reviews yet
0 installs
25 views
0.0% view→install

Install

$ agentstack add mcp-tarique-b-devops-agentic-kubernetes-cli

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-tarique-b-devops-agentic-kubernetes-cli)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Agentic Kubernetes CLI? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Agentic Kubernetes CLI

[](https://www.python.org/downloads/) [](https://kubernetes.io/) [](https://aws.amazon.com/bedrock/) [](LICENSE)

> An intelligent Agentic Kubernetes CLI assistant that integrates your local MCP server with AWS Bedrock, enabling natural language control over kubectl commands, cluster management, and real-time Kubernetes insights.


🚀 Features

🗣️ Natural Language Kubernetes Operations

  • Conversational kubectl interface — execute commands in plain English
  • AI-powered command generation and validation
  • Context-aware management of clusters and namespaces
  • Real-time monitoring: pods, logs, resources, and events

⚙️ Advanced Capabilities

  • Resource Management — List, describe, and manage Kubernetes resources
  • 📊 Troubleshooting Assistant — Analyze logs and diagnose issues
  • 🔄 Context Switching — Move between clusters easily
  • Interactive CLI — Friendly prompt-driven interface

🎥 Demo

Below is an example interaction between the User and the Agentic Kubernetes CLI demonstrating real-time troubleshooting and remediation.


🧑‍💻 User: list all pods in the cluster 🤖 Agent: There are no running pods, but one pod nginx is showing an issue (ImagePullBackOff).

🧑‍💻 User: analyze the issue with nginx pod 🤖 Agent: Issue identified — the container image tag nginx:lt is incorrect and not found in the registry.

🧑‍💻 User: fix the image tag issue and make the pod running 🤖 Agent: Updated the image tag to nginx:latest, redeployed the pod, and verified that it is now Running successfully.


Your browser does not support the video tag.

🎥 Watch Full Demo Video


📚 Table of Contents

  • [Prerequisites](#-prerequisites)
  • [Installation](#-installation)
  • [Configuration](#-configuration)
  • [Usage](#-usage)
  • [Examples](#-examples)
  • [Architecture](#-architecture)
  • [MCP Tools](#-mcp-tools)

🔧 Prerequisites

Required Software

  • Python 3.12+
  • kubectl
  • Access to a running Kubernetes cluster
  • AWS account with Bedrock API access

AWS Bedrock Setup

  1. Enable Claude models in the AWS Bedrock console
  2. Configure AWS credentials with Bedrock access
  3. Ensure IAM permissions for bedrock:InvokeModel

📦 Installation

Quick Setup

# Clone the repository
git clone https://github.com/Tarique-B-DevOps/Agentic-Kubernetes-CLI.git
cd Agentic-Kubernetes-CLI

# Install dependencies
pip install -r requirements.txt

# Verify kubectl installation
kubectl version --client

# Run the agent
python3 agent.py

⚙️ Configuration

Environment Variables

Set or export the following variables before running the agent:

# AWS Bedrock Configuration
export BEDROCK_MODEL_REGION=us-east-1
export BEDROCK_MODEL_ID=apac.anthropic.claude-3-5-sonnet-20241022-v2:0

# AWS Credentials (optional if configured with AWS CLI)
export AWS_ACCESS_KEY_ID=your_access_key
export AWS_SECRET_ACCESS_KEY=your_secret_key
export AWS_REGION=us-east-1

🎯 Usage

Start the Agent

python3 agent.py

Example Interactive Commands

⎈ kubectl> list all pods in production namespace
⎈ kubectl> what's wrong with my nginx deployment?
⎈ kubectl> show me the last 100 logs from api-server
⎈ kubectl> switch to staging cluster

💡 Examples

List Pods

⎈ kubectl> show all pods in the cluster

AI Response:

✅ Command executed successfully:
NAME                     READY   STATUS    RESTARTS   AGE
nginx-7854ff8877-2kxq9   1/1     Running   0          5d
api-server-abc123        1/1     Running   2          3d

Troubleshoot a Pod

⎈ kubectl> why is my app-server pod failing?

AI Response:

Analyzing pod app-server...
Issue: ImagePullBackOff
Root Cause: Container exits with code 1
Last Error: Connection refused to database:5432
Suggestion: Check database service and credentials

View Logs

⎈ kubectl> get the last 50 lines of logs from nginx pod and summarize

Manage Contexts

⎈ kubectl> list all available clusters
⎈ kubectl> switch to production-cluster
⎈ kubectl> what's my current context?

Scale Deployments

⎈ kubectl> scale nginx deployment to 5 replicas

Namespace Operations

⎈ kubectl> show all resources in kube-system namespace
⎈ kubectl> get all deployments across all namespaces

🏗️ Architecture

System Components


🧩 MCP Tools

runkubectlcommand

{
  "command": "kubectl get pods -n default -o json",
  "return_code": 0,
  "stdout": "...",
  "success": true
}

kubectl_context

{
  "action": "list",
  "success": true,
  "output": "..."
}

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.