Follow steps at: https://docs.meshagent.com/cli/getting_started 3. Launch the MCP Kubernetes Server agent in a test Room:
- Starts a Meshagent Room with a test MCP server available for tools/chatbots in the Room.
- Rooms close automatically if left inactive.
- Brings a chatbot into the Room using the Kubernetes toolkit.
- Run multiple toolkits in the same Room if desired.
- The Meshagent CLI will output a link to your Room.
Interact with your MCP Kubernetes agent and tools by sending chat messages.
Project-Level Deployment: Persistent Agents for Every Room
To ensure the MCP server tools and chatbot appear in every Meshagent Room within a project (ideal for production): 1. Create a persistent MCP Kubernetes service:Tools Available
The MCP Kubernetes Server toolkit provides the following tools:Tool Name | Description |
---|---|
cleanup | Cleanup all managed resources. |
exec_in_pod | Execute a command in a Kubernetes pod or container and return the output. |
explain_resource | Get documentation for a Kubernetes resource or field. |
install_helm_chart | Install a Helm chart. |
kubectl_apply | Apply a Kubernetes YAML manifest from a string or file. |
kubectl_context | Manage Kubernetes contexts—list, get, or set the current context. |
kubectl_create | Create Kubernetes resources by various methods. |
kubectl_delete | Delete Kubernetes resources by type, name, labels, or manifest. |
kubectl_describe | Describe Kubernetes resources. |
kubectl_generic | Execute any kubectl command with provided args and flags. |
kubectl_get | List Kubernetes resources. |
kubectl_logs | Get logs from Kubernetes resources. |
kubectl_patch | Update fields using strategic merge, JSON merge, or JSON patch. |
kubectl_rollout | Manage the rollout of a resource. |
kubectl_scale | Scale a Kubernetes deployment. |
list_api_resources | List available API resources in the cluster. |
ping | Verify the connection and responsiveness. |
port_forward | Forward a local port to a Kubernetes resource. |
stop_port_forward | Stop a port-forward process. |
uninstall_helm_chart | Uninstall a Helm release. |
upgrade_helm_chart | Upgrade a Helm release. |
Tool Details
exec_in_pod
Execute a command in a Kubernetes pod or container and return the output
command
: Command to execute in the pod (string or array of args)name
: Pod namecontainer
: (optional) Container name if multiplenamespace
: (optional) Namespaceshell
: (optional) Shell to use for command executiontimeout
: (optional) Timeout in milliseconds (default: 60000)
explain_resource
Get documentation for a Kubernetes resource or field
resource
: Resource name or field pathapiVersion
: (optional) API versionoutput
: (optional) Output formatrecursive
: (optional) Recursively print fields
install_helm_chart
Install a Helm chart
chart
: Chart namename
: Release namenamespace
: Namespacerepo
: Repository URLvalues
: (optional) Chart values
kubectl_apply
Apply a Kubernetes YAML manifest
dryRun
: (optional) Only validate, don’t applyfilename
: (optional) Path to YAML fileforce
: (optional) Force applymanifest
: (optional) YAML manifest datanamespace
: (optional) Namespace
kubectl_context
List, get, or set Kubernetes contexts
operation
: list, get, or setname
,output
,detailed
,showCurrent
: optional details
kubectl_create
Create Kubernetes resources
- Provides many parameters for creating resources, see detailed documentation.
kubectl_delete
Delete Kubernetes resources
- By type, name, label, or manifest
- Supports force, gracePeriodSeconds, allNamespaces
kubectl_describe
Describe Kubernetes resources
- By type, name, and (optionally) namespace
kubectl_generic
Run arbitrary kubectl commands
command
,args
,flags
, and more.
kubectl_get
Get/list resources
- By type, name, namespace, with optional fieldSelector, labelSelector, sortBy, etc.
kubectl_logs
Get logs from pods, deployments, or jobs
- Filtered by name, type, namespace, etc.
kubectl_patch
Patch a resource
- By type, name, patchType, with patch data or file
kubectl_rollout
Manage resource rollout
- Supports subcommands, watching, revisions, and timeouts
kubectl_scale
Scale deployments or other objects
- By name, namespace, replicas
list_api_resources
List available cluster API resources
- Filterable by group, namespaced, verbs
ping
Test connection
port_forward
Forward local port to Kubernetes resource
- Requires localPort, resourceName, resourceType, targetPort, (optionally namespace)
stop_port_forward
Stop a previously started port-forward
- By ID
uninstall_helm_chart
Remove a Helm release
- By name and namespace
upgrade_helm_chart
Upgrade a Helm release
- Requires chart, name, namespace, repo, (optional values)
Related Links
- Meshagent: https://www.meshagent.com/
- Read The Docs: https://docs.meshagent.com
- Meshagent MCP Tool Image: https://hub.docker.com/r/meshagent/mcp-kubernetes