← Package Index
mcp-kubernetes mcp
v1.0.1 · MCP Tool · devops · registry.pascalai.org
Kubernetes cluster management via the Kubernetes REST API. Manage pods, deployments, services and namespaces.
kubernetes k8s containers devops orchestration
Input Parameters
Parameter Type Description
operationrequired
string
Operation to perform. One of: list_pods, get_pod, delete_pod, list_deployments, get_deployment, scale_deployment, list_services, list_namespaces, get_events, apply.
apiServerrequired
string
Kubernetes API server URL (e.g. https://k8s.example.com:6443).
tokenrequired
string
Bearer token for authentication.
namespaceoptional
string
Namespace to operate in (default: default). Default: default.
skipTLSoptional
boolean
Skip TLS certificate verification (default: false). Default: False.
nameoptional
string
Resource name. Required for: get_pod, delete_pod, get_deployment, scale_deployment.
bodyoptional
string
JSON body of the resource to apply (for apply operation).
replicasoptional
integer
Number of replicas (for scale_deployment).
labelSelectoroptional
string
Label selector to filter resources (e.g. app=myapp).
Output Fields
Field Type Description
ok
boolean
data
object
raw
string
error
string
Examples
List pods in namespace
// Input
{
"operation": "list_pods",
"apiServer": "https://k8s.example.com:6443",
"token": "eyJ...",
"namespace": "production"
}
// Output
{
"ok": true
}
Scale deployment
// Input
{
"operation": "scale_deployment",
"apiServer": "https://k8s.example.com:6443",
"token": "eyJ...",
"name": "web",
"replicas": 3
}
// Output
{
"ok": true
}
Install & Discovery
Install
ppm install mcp-kubernetes
Get JSON Schema
GET /v1/packages/mcp-kubernetes/1.0.1/schema
Discover by keyword
GET /v1/mcp/discover?q=kubernetes
Discovery hint: Install with ppm install mcp-kubernetes or invoke remotely via POST /v1/invoke/mcp-kubernetes on the MCP Service.
PascalAI Usage
uses toolslib;
var Tool := LoadTool('mcp-kubernetes');
var R := Tool.Call(JsonObj(['operation','list_pods','apiServer','https://k8s.example.com:6443','token','eyJ...']));
Writeln(R.ToJSON);