Kubernetes Ephemeral Job
by github.com/inhuman · v0.7.1 · updated Jul 20, 2026
Runs a command in a throwaway Kubernetes pod and returns exit code, output and artifacts.
Run it locally
Install the package and point your AI client at it.
Docker
docker run -i --rm docker.io/idconstruct/mcp-k8s-ephemeral-job:v0.7.1Environment variables
MCP_K8S_ALLOWED_IMAGESrequiredStrict image allowlist (CSV). Empty means every call is rejected, so this must be set.
MCP_K8S_KUBECONFIGPath to the kubeconfig inside the container. Empty = use in-cluster credentials.
MCP_K8S_NAMESPACENamespace the ephemeral pods are created in. Needs a Role/RoleBinding for jobs and pods.
MCP_K8S_TRANSPORTMCP transport: stdio | http | sse. Must be 'stdio' for direct docker/stdio use.
MCP_K8S_DEFAULT_TIMEOUT_SDefault wall-clock timeout per job, seconds.
MCP_K8S_MAX_TIMEOUT_SMaximum wall-clock timeout a caller may request, seconds.
MCP_K8S_MAX_OUTPUT_BYTESCap on combined stdout/stderr before truncation.
MCP_K8S_MAX_ARTIFACT_BYTESCap on the total size of returned artifacts.
MCP_K8S_MAX_CONCURRENTMaximum ephemeral pods running at the same time.
MCP_K8S_DEFAULT_CPUPod CPU request; limits come from the caller or the namespace LimitRange.
MCP_K8S_DEFAULT_MEMORYPod memory request; limits come from the caller or the namespace LimitRange.
MCP_K8S_SIDECAR_IMAGEHelper image used to inject input files and collect artifacts.
MCP_K8S_CLONE_IMAGEImage carrying git for the clone init container. Empty disables the clone field.
MCP_K8S_CLONE_SECRETsecretSecret with git tokens, mounted only on the cloner. Empty disables the clone field.
MCP_K8S_CACHE_PVCExisting PVC mounted into every job pod as a shared cache. Empty = no cache.
MCP_K8S_CACHE_MOUNT_PATHWhere the cache PVC is mounted, e.g. /go/pkg/mod. Empty = no cache.
MCP_K8S_JOB_EXTRA_ENVJSON object of env vars added to every job pod; caller keys win on collision.
MCP_K8S_AUTH_TOKENsecretOptional X-MCP-AUTH token required on every request (http/sse transports only).
More from github.com/inhuman
More MCP servers
Init
github.com/init-computer
Init is the backend engineer for your coding agent.
INITE Brain
github.com/inite-ai
Long-term memory for AI agents: a bitemporal knowledge graph with cited answers.
Agentstack Mcp
github.com/inity13
Deterministic reasoning stack for AI agents: simulate, decide & compute, plus cross-domain tools.
Decisionmatrix Mcp
github.com/inity13
Deterministic multi-criteria decision analysis for AI agents — score, rank & explain options.
Precisioncalc Mcp
github.com/inity13
High-precision finance & business calculations for AI agents — exact decimals, never floats.
Scenariosim Mcp
github.com/inity13
Deterministic what-if & scenario simulation for AI agents: projections, sensitivity & break-even.