inspektor-gadget

Inspektor Gadget MCP Server

Community inspektor-gadget
Updated

Debug your Container and Kubernetes workloads with an AI interface

Inspektor Gadget MCP Server

AI-powered debugging and inspection for Kubernetes clusters using Inspektor Gadget.

https://github.com/user-attachments/assets/86367982-c0aa-455c-ac9e-ca43348899df

Features

  • AI-powered interface for Kubernetes troubleshooting and monitoring
  • One-click Inspektor Gadget deployment and removal
  • Intelligent output summarization and analysis
  • Automatic gadget discovery from Artifact Hub

Quick Start

  1. Ensure you have Docker and a valid kubeconfig file
  2. Configure the MCP server in VS Code (see INSTALL.md)
  3. Start using AI commands in VS Code Copilot Chat
  4. Try: "Show me DNS traffic" or "Deploy Inspektor Gadget"
code --add-mcp '{
  "name": "inspektor-gadget",
  "command": "docker",
  "args": [
    "run",
    "-i",
    "--rm",
    "--mount",
    "type=bind,src=${env:HOME}/.kube/config,dst=/kubeconfig",
    "ghcr.io/inspektor-gadget/ig-mcp-server:latest",
    "-gadget-discoverer=artifacthub"
  ]
}'

or with specific network gadgets:

code --add-mcp '{
  "name": "inspektor-gadget",
  "command": "docker",
  "args": [
    "run",
    "-i",
    "--rm",
    "--mount",
    "type=bind,src=${env:HOME}/.kube/config,dst=/kubeconfig",
    "ghcr.io/inspektor-gadget/ig-mcp-server:latest",
    "-gadget-images=trace_dns:latest,trace_tcp:latest,snapshot_process:latest,snapshot_socket:latest"
    ]
}'

Available Tools

Management Tools

  • deploy_inspektor_gadget: Installs Inspektor Gadget in your cluster
  • undeploy_inspektor_gadget: Removes Inspektor Gadget from your cluster

Gadget Discovery

Gadget Tools

  • Automatic: Uses Artifact Hub (-gadget-discoverer=artifacthub)
  • Manual: Specify gadgets directly (-gadget-images=trace_dns:latest)

See INSTALL.md for configuration options.

Security Notes

  • Requires read-only access to your kubeconfig file
  • Needs network access for Artifact Hub discovery
  • Ensure appropriate RBAC policies in your cluster

Resources

Related Projects

License

Apache License 2.0 - see LICENSE for details.

MCP Server ยท Populars

MCP Server ยท New