mooncake-troubleshoot

A troubleshooting guide for Mooncake, a distributed system that uses several services and machines to coordinate data movement.

In plain words
What is it for?
Use it to investigate deployment failures, startup problems, connection errors, metadata-server issues, port conflicts, and relevant log messages.
Why use it?
It provides a structured way to find whether failures come from stopped services, blocked connections, RDMA devices, settings, memory limits, or damaged objects.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/kvcache-ai/mooncake/mooncake-troubleshoot
Any agent
npx skills add kvcache-ai/Mooncake --skill mooncake-troubleshoot
Clone the repo
git clone --depth 1 https://github.com/kvcache-ai/Mooncake

Made for: Claude Code, Codex.

Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,483 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00134 $0.03483
Opus 5 $0.00067 $0.01741
Sonnet 5 $0.00027 $0.00697
Haiku 4.5 $0.00013 $0.00348

Measured yesterday against content hash 11954aa27aa0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mooncake-troubleshoot scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://127.0.0.1:2379/version
.claude/skills/mooncake-troubleshoot/SKILL.md · 384 lines

How it starts

The opening of the file, as written. The whole thing — 384 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mooncake Deployment Troubleshooting

You are a Mooncake deployment troubleshooting specialist. Your job is to systematically diagnose issues and provide actionable solutions based on the comprehensive troubleshooting knowledge from Mooncake documentation.

Diagnostic Strategy

Run checks systematically, reporting findings as you go. Start with simple checks (services, connectivity) before diving into complex issues (RDMA, memory registration).

1. Service Status Check

Check if critical services are running:

# Check mooncake_master
ps aux | grep mooncake_master | grep -v grep

# Check port usage
netstat -tuln | grep -E '(50051|8080|2379|9003)'

# If using etcd
ps aux | grep etcd | grep -v grep

Common issues:

  • bind address already in use → Port conflict, use different port with --rpc_port
  • Master not running → Check startup logs for errors

2. Metadata Server Connectivity

The metadata server is critical for node discovery and coordination.

# Test etcd connectivity
curl -s http://127.0.0.1:2379/version

# Or test custom metadata server
curl -s $MC_METADATA_SERVER

# Check for proxy interference
echo "http_proxy: $http_proxy"
echo "https_proxy: $https_proxy"

Common issues:

  • Error from etcd client → Metadata server unreachable
    • Fix: Ensure etcd is bound to 0.0.0.0 not 127.0.0.1:
      etcd --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://<your_ip>:2379
      
    • Fix: Disable HTTP proxy:
      unset http_proxy https_proxy
      

3. Environment Variables Check

Verify critical environment variables are set correctly:

# Display Mooncake variables
env | grep -E '^(MC_|MOONCAKE_STORE_CHECKSUM=)'

# Key variables to check:
echo "MC_METADATA_SERVER: $MC_METADATA_SERVER"
echo "MC_FORCE_TCP: $MC_FORCE_TCP"
echo "MC_LOG_LEVEL: $MC_LOG_LEVEL"
echo "MC_YLT_LOG_LEVEL: $MC_YLT_LOG_LEVEL"
echo "MC_MS_AUTO_DISC: $MC_MS_AUTO_DISC"
echo "MC_MS_FILTERS: $MC_MS_FILTERS"
echo "MC_GID_INDEX: $MC_GID_INDEX"
echo "MC_MTU: $MC_MTU"
echo "MC_IB_PORT: $MC_IB_PORT"
echo "MC_ENABLE_DEST_DEVICE_AFFINITY: $MC_ENABLE_DEST_DEVICE_AFFINITY"
echo "MOONCAKE_STORE_CHECKSUM: $MOONCAKE_STORE_CHECKSUM"

Read the full file on GitHub · 384 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 384 lines · 134 tokens per session scan A 11954aa27aa0

Subscribe to this mod's changes

mooncake-troubleshoot is a skill published in the GitHub repository kvcache-ai/Mooncake (6,438 stars, last pushed 2d ago), licensed Apache-2.0. It adds 134 tokens to every session and 3,483 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

code-standards

代码规范与完整开发工作流,涵盖 Python、PyTorch/深度学习、Shell 脚本、配置文件。贯穿始终的四条设计原则:易读直观、拒绝过度抽象、单一职责、命名自解释。强制三段式流程:(1)写代码前——在已有项目上开发时必须先了解项目全貌避免重复实现,然后先出 plan(思路+实现步骤)并获得用户批准才能开工;(2)写代码中——遵循命名/类型/docstring/张量操作/异常处理等规范,同时时刻守住四条设计原则;(3)写代码后——必须先补齐对应单元测试并本地跑通,再主动调用 simplify 简化新代码,最后调用 review 做审查。触发条件:用户要求写/生成/重构 Python 或 PyTorch…

Tencent-Hunyuan/UniRL · 238 tokens

add-model-bundle

Add or update UniRL model package support. Use when adding diffusion or autoregressive model pipelines, model config dataclasses, Bundle/Pipeline/Stage/Conditions implementations, LoRA targets, FSDP wrapping hints, Sample/Part plumbing, or multimodal text/image/video/audio conditioning.

Tencent-Hunyuan/UniRL · 62 tokens

pr-workflow

Create and repair UniRL pull requests. Use when creating a PR, editing a PR body, responding to PR Body or Semantic Pull Request CI failures, running gh pr create, or when the user mentions PR body, pull request template, body check, title check, or pull request formatting.

Tencent-Hunyuan/UniRL · 62 tokens

add-jit-kernel

Step-by-step tutorial for adding a new lightweight JIT CUDA kernel to sglang's jitkernel module.

sgl-project/sglang · 27 tokens

sglang-runtime-context

How SGLang's runtime configuration and process-global state are organized (RuntimeContext tiers, publish + namespace config bags, the pristine ServerArgs seed, override entry points, resource/stream/buffer leases, per-forward flags), the CI guardrails that enforce the design, and the idioms for developing and testing…

sgl-project/sglang · 93 tokens

sglang-diffusion-add-model

Use when adding a new diffusion model or Diffusers pipeline to SGLang.

sgl-project/sglang · 24 tokens