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.
| Capability | containers.kubernetes_object |
|---|---|
| Area | Containers and Kubernetes |
| Access | reads only |
| Reaches | process, network |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
actionrequired | string | yaml or describe. |
kindrequired | string | Kind as kubernetes_resources names it, e.g. Pod, Deployment, Secret. |
namerequired | string | Object name. |
context | string | Context (default: the current one). |
namespace | string | Namespace (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.
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"}