Skip to content

kubernetes_object

MCP tools › Containers and Kubernetes

One Kubernetes object through kubectl: yaml (read as JSON, written as YAML; secret data, a secret's last-applied annotation and secret-looking env values masked) or describe (kubectl describe with secret-looking NAME: value lines masked). Read only.

Its results carry text from process: the client is told to treat that as data, never as instructions.

Capabilitycontainers.kubernetes_object
AreaContainers and Kubernetes
Accessreads only
Reachesprocess, network
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
actionrequiredstringyaml or describe.
kindrequiredstringKind as kubernetes_resources names it, e.g. Pod, Deployment, Secret.
namerequiredstringObject name.
contextstringContext (default: the current one).
namespacestringNamespace (default: the context's).

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project kubernetes_object '{"action":"<string>","kind":"<string>","name":"<string>"}'
Input schema as JSON
{
"properties": {
"action": {
"description": "`yaml` or `describe`.",
"type": "string"
},
"kind": {
"description": "Kind as `kubernetes_resources` names it, e.g. `Pod`, `Deployment`, `Secret`.",
"type": "string"
},
"name": {
"description": "Object name.",
"type": "string"
},
"context": {
"description": "Context (default: the current one).",
"type": [
"string",
"null"
]
},
"namespace": {
"description": "Namespace (default: the context's).",
"type": [
"string",
"null"
]
}
},
"required": [
"action",
"kind",
"name"
],
"additionalProperties": false,
"type": "object"
}