apply_resource
Applies (creates or updates) a Kubernetes resource.
How to use it
apply_resource is exposed by the Mkp MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the apply_resource tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL MKP LISTINGOther tools in Mkp (27)
(required): Body to post to the resource
(required): Command to execute, either as a string or an array of
Specify which container to get logs from
List of annotation keys to exclude from output
Get a Kubernetes resource or its subresource.
API group (e.g., apps, networking.k8s.io)
List of annotation keys to include in output (if
Whether to include annotations in the output (default:
Kubernetes label selector for filtering resources (optional)
Maximum number of bytes to return
Lists Kubernetes resources of a specific type.
(required): Resource manifest
(required): Name of the resource to get
Namespace (required for namespaced resources)
Optional parameters for the request (see examples below)
Posts to a Kubernetes resource or its subresource, particularly useful for
Get logs from previous container instance (true/false)
(required): Resource name (e.g., deployments, services)
(required): Type of resource to get (clustered or namespaced)
When specified, shows the resource at that particular
Only return logs newer than a relative duration in seconds
Only return logs after a specific time (RFC3339 format)
Subresource to get (e.g., status, scale, logs)
Number of lines to return from the end of the logs
(optional): Timeout in seconds (defaults to 15 seconds, maximum 60
Include timestamps on each line (true/false)
(required): API version (e.g., v1, v1beta1)