5 分钟接入 Claude Code
步骤 1:获取 API Key
前往 idcd 控制台 创建 API Key。
步骤 2:安装 MCP server
go install github.com/kite365/idcd/apps/mcp/cmd/mcp@latest
步骤 3:添加到 Claude Code
claude mcp add idcd -- /path/to/mcp --api-key sk_live_xxx
或设置环境变量后:
export IDCD_API_KEY=sk_live_xxx
claude mcp add idcd -- /path/to/mcp
步骤 4:在对话中使用
你: 检测一下 google.com 的全球 Ping 延迟
Claude: [调用 ping tool]
PING google.com
节点: Tokyo JP — 32ms ✓
节点: Singapore SG — 45ms ✓
平均: 38ms | 丢包: 0%
Cursor IDE 集成
在 Cursor 设置中添加 MCP server 配置:
{
"mcpServers": {
"idcd": {
"command": "/path/to/mcp",
"args": ["--api-key", "sk_live_xxx"]
}
}
}