原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Kubernetes Ephemeral Job

作者:inhuman版本 0.7.1i★ 0i在你的电脑上运行代码仓库 ↗
注册名称io.github.inhuman/mcp-k8s-ephemeral-job

安装方法

What it does

Runs a command in a throwaway Kubernetes pod and returns exit code, output and artifacts.

  • Connects 在你的电脑上运行
  • Account or key Needs MCP_K8S_CLONE_SECRET, MCP_K8S_AUTH_TOKEN · 1 setting to fill in (MCP_K8S_ALLOWED_IMAGES)
  • Category 开发者工具

可搭配使用

教 AI 做这类工作的 Skill,可与本项一起使用

rea

Reverse engineer anything with agents, from app behavior down to native binaries.

作者:morluto★ 468,7331 个 skill

Skill · 操作手册

andrej-karpathy-skills

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

作者:multica-ai★ 234,3321 个 skill

Skill · 操作手册未注明许可证

graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

作者:Graphify-Labs★ 150,2871 个 skill

Skill · 操作手册

为什么排在这里

列表按使用分(满分 100)排序,由以下部分组成

热度0/80GitHub 星标或每周下载量:较大的计 60,较小的计 20
新鲜度3/1230 天内有发布或代码更新得满分
仍在响应0/8上次检查时云端端点有响应
使用分3/100

质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)

安装

选择你使用的 AI 应用,然后复制设置。

通过 3/3 项检查 · 在你的电脑上运行

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要 Kubernetes Ephemeral Job 的密钥(在开发者网站创建) · 需要填写 1 项设置(MCP_K8S_ALLOWED_IMAGES) · 需要先在电脑上安装 Docker(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

  1. 安装 Docker(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    docker --version
    • 显示版本号(例如 Docker version …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令

    打开 Docker 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version

    安装一次,所有需要 Docker 的工具都能用

  2. 注册并创建 Kubernetes Ephemeral Job 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    获取密钥的方法见下方开发者的 README

  3. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • MCP_K8S_ALLOWED_IMAGES 严格的镜像允许列表(CSV)。为空则会拒绝所有调用,因此必须设置。
      查看英文原文Strict image allowlist (CSV). Empty means every call is rejected, so this must be set.

    说明为自动翻译,变量名保持原样;不确定时请查看原文。

  4. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  5. 粘贴这些设置并保存文件

    正在检查命令 · 通过后才会显示复制按钮

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 退出 Claude 再重新打开

  7. 试一试

    用 Kubernetes Ephemeral Job 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Kubernetes Ephemeral Job,或回答中出现 Kubernetes Ephemeral Job 的工具名称,就表示连接成功

15 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • MCP_K8S_KUBECONFIG 容器内 kubeconfig 文件的路径。留空则使用集群内凭据。
    查看英文原文Path to the kubeconfig inside the container. Empty = use in-cluster credentials.
    · 默认值 /kube/config
  • MCP_K8S_NAMESPACE 临时 Pod 所在的命名空间。需要为 jobs 和 pods 配置 Role 和 RoleBinding。
    查看英文原文Namespace the ephemeral pods are created in. Needs a Role/RoleBinding for jobs and pods.
    · 默认值 mcp-ephemeral
  • MCP_K8S_TRANSPORT MCP 传输方式:stdio http sse。直接使用 docker/stdio 时必须为 'stdio'。
    查看英文原文MCP transport: stdio | http | sse. Must be 'stdio' for direct docker/stdio use.
    · 默认值 stdio
  • MCP_K8S_DEFAULT_TIMEOUT_S 每个作业的默认实际运行时间上限,单位为秒。
    查看英文原文Default wall-clock timeout per job, seconds.
    · 默认值 60
  • MCP_K8S_MAX_TIMEOUT_S 调用方可请求的最大挂钟超时时间,单位为秒。
    查看英文原文Maximum wall-clock timeout a caller may request, seconds.
    · 默认值 600
  • MCP_K8S_MAX_OUTPUT_BYTES 在截断之前,stdout/stderr 合计输出的上限。
    查看英文原文Cap on combined stdout/stderr before truncation.
    · 默认值 1048576
  • MCP_K8S_MAX_ARTIFACT_BYTES 返回工件的总大小上限。
    查看英文原文Cap on the total size of returned artifacts.
    · 默认值 10485760
  • MCP_K8S_MAX_CONCURRENT 同时运行的临时 Pod 最大数量。
    查看英文原文Maximum ephemeral pods running at the same time.
    · 默认值 10
  • MCP_K8S_DEFAULT_CPU Pod CPU 请求;限制值来自调用方或命名空间的 LimitRange。
    查看英文原文Pod CPU request; limits come from the caller or the namespace LimitRange.
    · 默认值 1
  • MCP_K8S_DEFAULT_MEMORY Pod 内存请求;限制值来自调用方或命名空间的 LimitRange。
    查看英文原文Pod memory request; limits come from the caller or the namespace LimitRange.
    · 默认值 512Mi
  • MCP_K8S_SIDECAR_IMAGE 用于注入输入文件和收集产物的辅助镜像
    查看英文原文Helper image used to inject input files and collect artifacts.
    · 默认值 busybox:1.36
  • MCP_K8S_CLONE_IMAGE 用于克隆初始化容器的、包含 git 的镜像。留空则禁用克隆字段。
    查看英文原文Image carrying git for the clone init container. Empty disables the clone field.
  • MCP_K8S_CACHE_PVC 现有的 PVC,挂载到每个作业 Pod 中作为共享缓存。为空表示不使用缓存。
    查看英文原文Existing PVC mounted into every job pod as a shared cache. Empty = no cache.
  • MCP_K8S_CACHE_MOUNT_PATH 缓存 PVC 的挂载位置,例如 /go/pkg/mod。为空表示不使用缓存。
    查看英文原文Where the cache PVC is mounted, e.g. /go/pkg/mod. Empty = no cache.
  • MCP_K8S_JOB_EXTRA_ENV JSON 对象,包含添加到每个作业 pod 的环境变量;发生冲突时,调用方提供的键优先。
    查看英文原文JSON object of env vars added to every job pod; caller keys win on collision.

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Kubernetes Ephemeral Job

Kubernetes Ephemeral Job 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 Kubernetes Ephemeral Job 的应用

  • 需要 Kubernetes Ephemeral Job 的密钥(在开发者网站创建) · 需要填写 1 项设置(MCP_K8S_ALLOWED_IMAGES) · 需要先在电脑上安装 Docker(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要 Kubernetes Ephemeral Job 的密钥(在开发者网站创建) · 需要填写 1 项设置(MCP_K8S_ALLOWED_IMAGES) · 需要先在电脑上安装 Docker(只需一次)
  • 需要 Kubernetes Ephemeral Job 的密钥(在开发者网站创建) · 需要填写 1 项设置(MCP_K8S_ALLOWED_IMAGES) · 需要先在电脑上安装 Docker(只需一次)
  • 需要 Kubernetes Ephemeral Job 的密钥(在开发者网站创建) · 需要填写 1 项设置(MCP_K8S_ALLOWED_IMAGES) · 需要先在电脑上安装 Docker(只需一次)

B · 开发者工具 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要 Kubernetes Ephemeral Job 的密钥(在开发者网站创建) · 需要填写 1 项设置(MCP_K8S_ALLOWED_IMAGES) · 需要先在电脑上安装 Docker(只需一次)

  1. 安装 Docker(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    docker --version
    • 显示版本号(例如 Docker version …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令

    打开 Docker 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version

    安装一次,所有需要 Docker 的工具都能用

  2. 注册并创建 Kubernetes Ephemeral Job 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    获取密钥的方法见下方开发者的 README

  3. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • MCP_K8S_ALLOWED_IMAGES 严格的镜像允许列表(CSV)。为空则会拒绝所有调用,因此必须设置。
      查看英文原文Strict image allowlist (CSV). Empty means every call is rejected, so this must be set.

    说明为自动翻译,变量名保持原样;不确定时请查看原文。

  4. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  5. 粘贴这条命令并按 Enter

    正在检查命令 · 通过后才会显示复制按钮

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 Claude Code 中输入 /mcp

    应能看到 Kubernetes Ephemeral Job 在列表中并显示已连接

  7. 试一试

    用 Kubernetes Ephemeral Job 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Kubernetes Ephemeral Job,或回答中出现 Kubernetes Ephemeral Job 的工具名称,就表示连接成功

15 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • MCP_K8S_KUBECONFIG 容器内 kubeconfig 文件的路径。留空则使用集群内凭据。
    查看英文原文Path to the kubeconfig inside the container. Empty = use in-cluster credentials.
    · 默认值 /kube/config
  • MCP_K8S_NAMESPACE 临时 Pod 所在的命名空间。需要为 jobs 和 pods 配置 Role 和 RoleBinding。
    查看英文原文Namespace the ephemeral pods are created in. Needs a Role/RoleBinding for jobs and pods.
    · 默认值 mcp-ephemeral
  • MCP_K8S_TRANSPORT MCP 传输方式:stdio http sse。直接使用 docker/stdio 时必须为 'stdio'。
    查看英文原文MCP transport: stdio | http | sse. Must be 'stdio' for direct docker/stdio use.
    · 默认值 stdio
  • MCP_K8S_DEFAULT_TIMEOUT_S 每个作业的默认实际运行时间上限,单位为秒。
    查看英文原文Default wall-clock timeout per job, seconds.
    · 默认值 60
  • MCP_K8S_MAX_TIMEOUT_S 调用方可请求的最大挂钟超时时间,单位为秒。
    查看英文原文Maximum wall-clock timeout a caller may request, seconds.
    · 默认值 600
  • MCP_K8S_MAX_OUTPUT_BYTES 在截断之前,stdout/stderr 合计输出的上限。
    查看英文原文Cap on combined stdout/stderr before truncation.
    · 默认值 1048576
  • MCP_K8S_MAX_ARTIFACT_BYTES 返回工件的总大小上限。
    查看英文原文Cap on the total size of returned artifacts.
    · 默认值 10485760
  • MCP_K8S_MAX_CONCURRENT 同时运行的临时 Pod 最大数量。
    查看英文原文Maximum ephemeral pods running at the same time.
    · 默认值 10
  • MCP_K8S_DEFAULT_CPU Pod CPU 请求;限制值来自调用方或命名空间的 LimitRange。
    查看英文原文Pod CPU request; limits come from the caller or the namespace LimitRange.
    · 默认值 1
  • MCP_K8S_DEFAULT_MEMORY Pod 内存请求;限制值来自调用方或命名空间的 LimitRange。
    查看英文原文Pod memory request; limits come from the caller or the namespace LimitRange.
    · 默认值 512Mi
  • MCP_K8S_SIDECAR_IMAGE 用于注入输入文件和收集产物的辅助镜像
    查看英文原文Helper image used to inject input files and collect artifacts.
    · 默认值 busybox:1.36
  • MCP_K8S_CLONE_IMAGE 用于克隆初始化容器的、包含 git 的镜像。留空则禁用克隆字段。
    查看英文原文Image carrying git for the clone init container. Empty disables the clone field.
  • MCP_K8S_CACHE_PVC 现有的 PVC,挂载到每个作业 Pod 中作为共享缓存。为空表示不使用缓存。
    查看英文原文Existing PVC mounted into every job pod as a shared cache. Empty = no cache.
  • MCP_K8S_CACHE_MOUNT_PATH 缓存 PVC 的挂载位置,例如 /go/pkg/mod。为空表示不使用缓存。
    查看英文原文Where the cache PVC is mounted, e.g. /go/pkg/mod. Empty = no cache.
  • MCP_K8S_JOB_EXTRA_ENV JSON 对象,包含添加到每个作业 pod 的环境变量;发生冲突时,调用方提供的键优先。
    查看英文原文JSON object of env vars added to every job pod; caller keys win on collision.

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要 Kubernetes Ephemeral Job 的密钥(在开发者网站创建) · 需要填写 1 项设置(MCP_K8S_ALLOWED_IMAGES) · 需要先在电脑上安装 Docker(只需一次)

  1. 安装 Docker(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    docker --version
    • 显示版本号(例如 Docker version …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令

    打开 Docker 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version

    安装一次,所有需要 Docker 的工具都能用

  2. 注册并创建 Kubernetes Ephemeral Job 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    获取密钥的方法见下方开发者的 README

  3. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • MCP_K8S_ALLOWED_IMAGES 严格的镜像允许列表(CSV)。为空则会拒绝所有调用,因此必须设置。
      查看英文原文Strict image allowlist (CSV). Empty means every call is rejected, so this must be set.

    说明为自动翻译,变量名保持原样;不确定时请查看原文。

  4. 点击这个按钮打开 Cursor

    正在检查命令 · 通过后才会显示复制按钮

  5. 填写你的密钥

    在 Kubernetes Ephemeral Job 的设置中,MCP_K8S_CLONE_SECRET, MCP_K8S_AUTH_TOKEN, MCP_K8S_ALLOWED_IMAGES 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 Cursor 中以 Agent 模式打开 AI 聊天

  7. 试一试

    用 Kubernetes Ephemeral Job 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Kubernetes Ephemeral Job,或回答中出现 Kubernetes Ephemeral Job 的工具名称,就表示连接成功

15 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • MCP_K8S_KUBECONFIG 容器内 kubeconfig 文件的路径。留空则使用集群内凭据。
    查看英文原文Path to the kubeconfig inside the container. Empty = use in-cluster credentials.
    · 默认值 /kube/config
  • MCP_K8S_NAMESPACE 临时 Pod 所在的命名空间。需要为 jobs 和 pods 配置 Role 和 RoleBinding。
    查看英文原文Namespace the ephemeral pods are created in. Needs a Role/RoleBinding for jobs and pods.
    · 默认值 mcp-ephemeral
  • MCP_K8S_TRANSPORT MCP 传输方式:stdio http sse。直接使用 docker/stdio 时必须为 'stdio'。
    查看英文原文MCP transport: stdio | http | sse. Must be 'stdio' for direct docker/stdio use.
    · 默认值 stdio
  • MCP_K8S_DEFAULT_TIMEOUT_S 每个作业的默认实际运行时间上限,单位为秒。
    查看英文原文Default wall-clock timeout per job, seconds.
    · 默认值 60
  • MCP_K8S_MAX_TIMEOUT_S 调用方可请求的最大挂钟超时时间,单位为秒。
    查看英文原文Maximum wall-clock timeout a caller may request, seconds.
    · 默认值 600
  • MCP_K8S_MAX_OUTPUT_BYTES 在截断之前,stdout/stderr 合计输出的上限。
    查看英文原文Cap on combined stdout/stderr before truncation.
    · 默认值 1048576
  • MCP_K8S_MAX_ARTIFACT_BYTES 返回工件的总大小上限。
    查看英文原文Cap on the total size of returned artifacts.
    · 默认值 10485760
  • MCP_K8S_MAX_CONCURRENT 同时运行的临时 Pod 最大数量。
    查看英文原文Maximum ephemeral pods running at the same time.
    · 默认值 10
  • MCP_K8S_DEFAULT_CPU Pod CPU 请求;限制值来自调用方或命名空间的 LimitRange。
    查看英文原文Pod CPU request; limits come from the caller or the namespace LimitRange.
    · 默认值 1
  • MCP_K8S_DEFAULT_MEMORY Pod 内存请求;限制值来自调用方或命名空间的 LimitRange。
    查看英文原文Pod memory request; limits come from the caller or the namespace LimitRange.
    · 默认值 512Mi
  • MCP_K8S_SIDECAR_IMAGE 用于注入输入文件和收集产物的辅助镜像
    查看英文原文Helper image used to inject input files and collect artifacts.
    · 默认值 busybox:1.36
  • MCP_K8S_CLONE_IMAGE 用于克隆初始化容器的、包含 git 的镜像。留空则禁用克隆字段。
    查看英文原文Image carrying git for the clone init container. Empty disables the clone field.
  • MCP_K8S_CACHE_PVC 现有的 PVC,挂载到每个作业 Pod 中作为共享缓存。为空表示不使用缓存。
    查看英文原文Existing PVC mounted into every job pod as a shared cache. Empty = no cache.
  • MCP_K8S_CACHE_MOUNT_PATH 缓存 PVC 的挂载位置,例如 /go/pkg/mod。为空表示不使用缓存。
    查看英文原文Where the cache PVC is mounted, e.g. /go/pkg/mod. Empty = no cache.
  • MCP_K8S_JOB_EXTRA_ENV JSON 对象,包含添加到每个作业 pod 的环境变量;发生冲突时,调用方提供的键优先。
    查看英文原文JSON object of env vars added to every job pod; caller keys win on collision.

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要 Kubernetes Ephemeral Job 的密钥(在开发者网站创建) · 需要填写 1 项设置(MCP_K8S_ALLOWED_IMAGES) · 需要先在电脑上安装 Docker(只需一次)

  1. 安装 Docker(如果还没有)

    已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter

    docker --version
    • 显示版本号(例如 Docker version …)= 已安装,可跳过这一步
    • 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
    怎么打开终端

    Mac:按 ⌘ + Space,输入 Terminal 后按 Enter

    Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”

    还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令

    打开 Docker 下载页 ↗

    装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version

    安装一次,所有需要 Docker 的工具都能用

  2. 注册并创建 Kubernetes Ephemeral Job 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    获取密钥的方法见下方开发者的 README

  3. 填写 1 项设置

    这些是程序设置,不是密钥,无需注册。按开发者的说明填写。

    • MCP_K8S_ALLOWED_IMAGES 严格的镜像允许列表(CSV)。为空则会拒绝所有调用,因此必须设置。
      查看英文原文Strict image allowlist (CSV). Empty means every call is rejected, so this must be set.

    说明为自动翻译,变量名保持原样;不确定时请查看原文。

  4. 点击这个按钮打开 VS Code

    正在检查命令 · 通过后才会显示复制按钮

  5. 填写你的密钥

    在 Kubernetes Ephemeral Job 的设置中,MCP_K8S_CLONE_SECRET, MCP_K8S_AUTH_TOKEN, MCP_K8S_ALLOWED_IMAGES 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  6. 在 VS Code 中以 Agent 模式打开 AI 聊天

  7. 试一试

    用 Kubernetes Ephemeral Job 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Kubernetes Ephemeral Job,或回答中出现 Kubernetes Ephemeral Job 的工具名称,就表示连接成功

15 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • MCP_K8S_KUBECONFIG 容器内 kubeconfig 文件的路径。留空则使用集群内凭据。
    查看英文原文Path to the kubeconfig inside the container. Empty = use in-cluster credentials.
    · 默认值 /kube/config
  • MCP_K8S_NAMESPACE 临时 Pod 所在的命名空间。需要为 jobs 和 pods 配置 Role 和 RoleBinding。
    查看英文原文Namespace the ephemeral pods are created in. Needs a Role/RoleBinding for jobs and pods.
    · 默认值 mcp-ephemeral
  • MCP_K8S_TRANSPORT MCP 传输方式:stdio http sse。直接使用 docker/stdio 时必须为 'stdio'。
    查看英文原文MCP transport: stdio | http | sse. Must be 'stdio' for direct docker/stdio use.
    · 默认值 stdio
  • MCP_K8S_DEFAULT_TIMEOUT_S 每个作业的默认实际运行时间上限,单位为秒。
    查看英文原文Default wall-clock timeout per job, seconds.
    · 默认值 60
  • MCP_K8S_MAX_TIMEOUT_S 调用方可请求的最大挂钟超时时间,单位为秒。
    查看英文原文Maximum wall-clock timeout a caller may request, seconds.
    · 默认值 600
  • MCP_K8S_MAX_OUTPUT_BYTES 在截断之前,stdout/stderr 合计输出的上限。
    查看英文原文Cap on combined stdout/stderr before truncation.
    · 默认值 1048576
  • MCP_K8S_MAX_ARTIFACT_BYTES 返回工件的总大小上限。
    查看英文原文Cap on the total size of returned artifacts.
    · 默认值 10485760
  • MCP_K8S_MAX_CONCURRENT 同时运行的临时 Pod 最大数量。
    查看英文原文Maximum ephemeral pods running at the same time.
    · 默认值 10
  • MCP_K8S_DEFAULT_CPU Pod CPU 请求;限制值来自调用方或命名空间的 LimitRange。
    查看英文原文Pod CPU request; limits come from the caller or the namespace LimitRange.
    · 默认值 1
  • MCP_K8S_DEFAULT_MEMORY Pod 内存请求;限制值来自调用方或命名空间的 LimitRange。
    查看英文原文Pod memory request; limits come from the caller or the namespace LimitRange.
    · 默认值 512Mi
  • MCP_K8S_SIDECAR_IMAGE 用于注入输入文件和收集产物的辅助镜像
    查看英文原文Helper image used to inject input files and collect artifacts.
    · 默认值 busybox:1.36
  • MCP_K8S_CLONE_IMAGE 用于克隆初始化容器的、包含 git 的镜像。留空则禁用克隆字段。
    查看英文原文Image carrying git for the clone init container. Empty disables the clone field.
  • MCP_K8S_CACHE_PVC 现有的 PVC,挂载到每个作业 Pod 中作为共享缓存。为空表示不使用缓存。
    查看英文原文Existing PVC mounted into every job pod as a shared cache. Empty = no cache.
  • MCP_K8S_CACHE_MOUNT_PATH 缓存 PVC 的挂载位置,例如 /go/pkg/mod。为空表示不使用缓存。
    查看英文原文Where the cache PVC is mounted, e.g. /go/pkg/mod. Empty = no cache.
  • MCP_K8S_JOB_EXTRA_ENV JSON 对象,包含添加到每个作业 pod 的环境变量;发生冲突时,调用方提供的键优先。
    查看英文原文JSON object of env vars added to every job pod; caller keys win on collision.

说明为自动翻译,变量名保持原样;不确定时请查看原文。

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Kubernetes Ephemeral Job 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

正在检查命令 · 通过后才会显示复制按钮

Claude Desktop (claude_desktop_config.json)

正在检查命令 · 通过后才会显示复制按钮

Cursor (~/.cursor/mcp.json)

正在检查命令 · 通过后才会显示复制按钮

VS Code (mcp.json)

正在检查命令 · 通过后才会显示复制按钮

需要你填写的值

  • MCP_K8S_ALLOWED_IMAGES 必填 env
    严格的镜像允许列表(CSV)。为空则会拒绝所有调用,因此必须设置。
    查看英文原文Strict image allowlist (CSV). Empty means every call is rejected, so this must be set.
  • MCP_K8S_KUBECONFIG env
    容器内 kubeconfig 文件的路径。留空则使用集群内凭据。
    查看英文原文Path to the kubeconfig inside the container. Empty = use in-cluster credentials.
  • MCP_K8S_NAMESPACE env
    临时 Pod 所在的命名空间。需要为 jobs 和 pods 配置 Role 和 RoleBinding。
    查看英文原文Namespace the ephemeral pods are created in. Needs a Role/RoleBinding for jobs and pods.
  • MCP_K8S_TRANSPORT env
    MCP 传输方式:stdio http sse。直接使用 docker/stdio 时必须为 'stdio'。
    查看英文原文MCP transport: stdio | http | sse. Must be 'stdio' for direct docker/stdio use.
  • MCP_K8S_DEFAULT_TIMEOUT_S env
    每个作业的默认实际运行时间上限,单位为秒。
    查看英文原文Default wall-clock timeout per job, seconds.
  • MCP_K8S_MAX_TIMEOUT_S env
    调用方可请求的最大挂钟超时时间,单位为秒。
    查看英文原文Maximum wall-clock timeout a caller may request, seconds.
  • MCP_K8S_MAX_OUTPUT_BYTES env
    在截断之前,stdout/stderr 合计输出的上限。
    查看英文原文Cap on combined stdout/stderr before truncation.
  • MCP_K8S_MAX_ARTIFACT_BYTES env
    返回工件的总大小上限。
    查看英文原文Cap on the total size of returned artifacts.
  • MCP_K8S_MAX_CONCURRENT env
    同时运行的临时 Pod 最大数量。
    查看英文原文Maximum ephemeral pods running at the same time.
  • MCP_K8S_DEFAULT_CPU env
    Pod CPU 请求;限制值来自调用方或命名空间的 LimitRange。
    查看英文原文Pod CPU request; limits come from the caller or the namespace LimitRange.
  • MCP_K8S_DEFAULT_MEMORY env
    Pod 内存请求;限制值来自调用方或命名空间的 LimitRange。
    查看英文原文Pod memory request; limits come from the caller or the namespace LimitRange.
  • MCP_K8S_SIDECAR_IMAGE env
    用于注入输入文件和收集产物的辅助镜像
    查看英文原文Helper image used to inject input files and collect artifacts.
  • MCP_K8S_CLONE_IMAGE env
    用于克隆初始化容器的、包含 git 的镜像。留空则禁用克隆字段。
    查看英文原文Image carrying git for the clone init container. Empty disables the clone field.
  • MCP_K8S_CLONE_SECRET 机密 必填 env
    包含 git 令牌的密钥,仅挂载到克隆器上。留空则禁用克隆字段。
    查看英文原文Secret with git tokens, mounted only on the cloner. Empty disables the clone field.
  • MCP_K8S_CACHE_PVC env
    现有的 PVC,挂载到每个作业 Pod 中作为共享缓存。为空表示不使用缓存。
    查看英文原文Existing PVC mounted into every job pod as a shared cache. Empty = no cache.
  • MCP_K8S_CACHE_MOUNT_PATH env
    缓存 PVC 的挂载位置,例如 /go/pkg/mod。为空表示不使用缓存。
    查看英文原文Where the cache PVC is mounted, e.g. /go/pkg/mod. Empty = no cache.
  • MCP_K8S_JOB_EXTRA_ENV env
    JSON 对象,包含添加到每个作业 pod 的环境变量;发生冲突时,调用方提供的键优先。
    查看英文原文JSON object of env vars added to every job pod; caller keys win on collision.
  • MCP_K8S_AUTH_TOKEN 机密 必填 env
    可选的 X-MCP-AUTH 令牌,每个请求都需要(仅适用于 http/sse 传输)。
    查看英文原文Optional X-MCP-AUTH token required on every request (http/sse transports only).

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
不在 npm/PyPI 上
连接方式
在你的电脑上运行
最新版本i
0.7.1
发布到注册中心i
2026年7月20日
代码最后更新i
2026年7月20日
作者
inhuman
软件包
oci: docker.io/idconstruct/mcp-k8s-ephemeral-job:v0.7.1
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 inhuman 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于4个月前

  • ✓ 通过

    有许可证

    使用 MIT

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

已公开的漏洞(OSV.dev)

未检查:只能检查标明版本的 npm 和 PyPI 包

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/inhuman-mcp-k8s-ephemeral-job.svg)](https://mcp.popnx.com/en/servers/inhuman-mcp-k8s-ephemeral-job)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 6202 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 6202 个服务器的 20% 更新
  • 基础检查结果等于或优于此分类中其他 6202 个服务器的 99%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Kubernetes Ephemeral Job 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:MCP_K8S_CLONE_SECRET, MCP_K8S_AUTH_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于4个月前,最新版本(0.7.1)于4个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。

有什么可以替代它?

同一分类中有:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitDiagram

Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

作者:ahmedkhaleel2004广泛使用★ 1.9万2个月前更新

在云端运行✓ 服务方 · gitdiagram.comPopNx 团队已实际试用

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

作者:Appllama广泛使用★ 52303个月前更新

在云端运行✓ 服务方 · appllama.io

Omnara

Deploy durable AI agents with Omnara, an open-source managed-agent platform.

作者:omnara-ai广泛使用★ 34172个月前更新

在云端运行✓ 服务方 · omnara.com

Repowise

Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.

作者:repowise-dev广泛使用↓ 6506/周★ 8180 整个仓库的星标6天前更新

电脑或云端✓ 服务方 · repowise.dev
与相似项目对比
本项
Kubernetes Ephemeral Job
GitDiagramAppllamaCloudflare MCPOmnaraRepowise
运行位置需要安装在电脑上在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装云端或安装在电脑上都可以
需要密钥是否否否否否
可在 Claude 中按 + 添加否否否是否否
基础检查3/34/44/44/44/45/5
许可证MITMITMITApache-2.0Apache-2.0AGPL-3.0
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

mcp-k8s-ephemeral-job

English | Русский

Public OSS MCP server (Go, MIT) that spawns an ephemeral Kubernetes Job/pod from a caller-chosen image, runs a command inside it, returns exit_code / stdout / artifacts, and deletes the pod. The server builds the pod manifest in code — the caller passes parameters only, never raw YAML.

It is the "operating room" counterpart to mcp-exec (the "scalpel"): where mcp-exec runs a single Python file in a locked-down, network-less sandbox in milliseconds, this one spins up a full pod with the toolchain/image you choose, controlled network (clone repos, pull deps), long tasks and file artifacts out. They complement each other.

Works over three transports — stdio / HTTP / SSE — with an identical tool set everywhere (official modelcontextprotocol/go-sdk).

Tools

run_job — run and wait

Input: { image (required), command (required), files?, env?, limits?, timeout_s?, workdir?, clone? } Output: { exit_code, stdout, stderr, duration_ms, status, artifacts, truncated }

  • status is one of succeeded / failed / timeout / error. A non-zero exit_code or a timeout is a normal result, not a tool error. Only invalid input (empty image/command, image not in the allowlist, bad file path) is a tool-call error.
  • stdout carries the container's combined stdout+stderr — Kubernetes merges the two streams in pod logs. stderr is reserved and always empty, so adding stream separation later stays backward-compatible.
  • Artifacts (files from the working directory) come back inline (base64) under a size cap. Exceeding a cap never loses data silently: the matching truncated flag is set.
  • The manifest is built deterministically by the server — no raw YAML from the caller.
submit_job / fetch_job — run in the background

submit_job takes the same arguments as run_job but returns a job_token immediately; fetch_job collects the result later. This is what lets an agent start a long job (a full test battery, a build) and keep working instead of idling inside one synchronous call for its whole wall-clock time.

  • fetch_job returns status=running while the job is in flight; pass wait_s (≤120) to long-poll instead of hammering. It answers as soon as the job is done rather than sitting out the full wait.
  • Results are retained for 60 minutes and can be fetched more than once.
  • Arguments are validated at submit time, so a bad image fails the submit while the caller can still fix it.
  • Handles live in memory (the server is single-replica by design): a restart drops pending tokens and the caller simply resubmits.
Cloning a repository

With clone: { repo_url, ref, subdir? } an init container checks the repo out into the working directory before the command runs. The caller never handles credentials: the server holds a secret with one token per git host, mounts it only on the cloner, and the token is masked in .git/config afterwards — the main container never sees it. The clone field is accepted only when the operator has configured MCP_K8S_CLONE_IMAGE + MCP_K8S_CLONE_SECRET.

Security model (invariants)

Per run: a fresh ephemeral pod, deleted afterwards (success / failure / timeout). The server's RBAC is namespace-scoped (Role/RoleBinding, never ClusterRole) — create/delete jobs,pods plus pods/log, pods/exec in one namespace. Spawned pods run with cap-drop=ALL, no-privilege-escalation, seccomp RuntimeDefault. The blast radius is that one namespace: LimitRange (per-pod default+max) + ResourceQuota (namespace ceiling) + wall-clock timeout (→ kill) + TTL/owner-reference GC + a concurrency cap. Images must pass a strict allowlist (MCP_K8S_ALLOWED_IMAGES; empty = nothing runs). Caller data (command / files / output / artifacts) is never persisted and never logged in full — only metadata.

run_job is the most powerful surface there is (it creates pods). When embedding it in an agent,

gate it behind that agent's tool-policy (trusted roles only).

Network note: the pod's network is not disabled (it's needed to clone repos / pull deps). Egress is controlled by a namespace NetworkPolicy (allowlist) as a deployment concern, not a right baked into the code. The invariant is ephemerality + deletion, not the absence of network.

Resources: the server's MCP_K8S_DEFAULT_CPU/MEMORY are pod requests (the scheduler's reservation). Limits are set only when the caller passes limits; otherwise the ceiling comes from the namespace LimitRange. Passing limits.memory also raises the memory request to match, since memory is incompressible and the pod must land on a node that actually has it.

Run

Published in the MCP Registry as io.github.inhuman/mcp-k8s-ephemeral-job; the image is on Docker Hub as idconstruct/mcp-k8s-ephemeral-job.

docker run --rm -i \

-v "$HOME/.kube:/kube:ro" \ -e MCP_K8S_KUBECONFIG=/kube/config \ -e MCP_K8S_NAMESPACE=ephemeral-dev \ -e MCP_K8S_ALLOWED_IMAGES=busybox:1.36,python:3.12-slim \ idconstruct/mcp-k8s-ephemeral-job:latest

From source, against a dev cluster, over stdio:

go build -o mcp-k8s-ephemeral-job ./cmd/mcp-k8s-ephemeral-job

export MCP_K8S_KUBECONFIG=$HOME/.kube/config export MCP_K8S_NAMESPACE=ephemeral-dev export MCP_K8S_ALLOWED_IMAGES=busybox:1.36,python:3.12-slim ./mcp-k8s-ephemeral-job

In production the server runs in-cluster as a Deployment with its own ServiceAccount + Role/RoleBinding on the ephemeral namespace + ResourceQuota/LimitRange (+ optional egress NetworkPolicy), usually on the http transport.

Example call (run_job)
{

"image": "python:3.12-slim", "command": ["python", "gen.py"], "files": [{ "path": "gen.py", "content_b64": " " }], "limits": { "cpu": "500m", "memory": "256Mi" }, "timeout_s": 30 }

Returns exit_code, captured output, and out.png inline in artifacts. Afterwards the pod is gone (kubectl get jobs,pods -n $NS is empty).

Optional auth (HTTP/SSE)

Set MCP_K8S_AUTH_TOKEN to require every HTTP/SSE request to carry a matching X-MCP-AUTH header (constant-time compare; 401 otherwise). Empty token disables it. Not applicable to stdio.

Configuration

Env varPurposeDefault
MCP_K8S_TRANSPORTstdio \http \ssestdio
MCP_K8S_ADDRlisten address for http/sse:8080
MCP_K8S_NAMESPACEnamespace where ephemeral pods are spawnedmcp-ephemeral
MCP_K8S_DEFAULT_TIMEOUT_Sdefault wall-clock timeout (s)60
MCP_K8S_MAX_TIMEOUT_Stimeout ceiling (s)600
MCP_K8S_MAX_OUTPUT_BYTEScombined stdout+stderr cap1048576
MCP_K8S_MAX_ARTIFACT_BYTEStotal artifacts size cap10485760
MCP_K8S_DEFAULT_CPUpod CPU request (scheduling reservation; limits come from the caller's limits or the namespace LimitRange)1
MCP_K8S_DEFAULT_MEMORYpod memory request (see above)512Mi
MCP_K8S_MAX_CONCURRENTmax concurrent ephemeral pods (over → queue/error)10
MCP_K8S_ALLOWED_IMAGESstrict image allowlist (CSV); empty = deny everything
MCP_K8S_SIDECAR_IMAGEhelper sidecar image for artifact collection (pinned)busybox:1.36
MCP_K8S_CLONE_IMAGEimage with git for the clone init container; empty = clone unavailable
MCP_K8S_CLONE_SECRETsecret holding one token per git host (key = host); mounted only on the cloner
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
MCP_K8S_JOB_EXTRA_ENVJSON object {"KEY":"value"} added to every job pod; caller keys win
MCP_K8S_KUBECONFIGpath to kubeconfig; empty = in-cluster
MCP_K8S_AUTH_TOKENif set, http/sse require X-MCP-AUTH header (constant-time); empty = off

Both cache variables must be set together for the cache to mount. The PVC itself is provisioned out-of-band (helm/manifest); the server only references it by name and fails fast at startup if it is missing.

Not implemented

PVC / object-storage delivery for artifacts too large to inline, multi-cluster support, and proxying other MCP servers into the pod.

License

MIT.