# 安装 io.github.rm-rf-prod/groundtruth

- 类型: MCP 工具
- 说明: 提供实时库文档、代码审计与示例片段，帮助开发者快速查阅并改进代码。
- 仓库: https://github.com/rm-rf-prod/GroundTruth-MCP
- ⚠ 安全: 该 MCP 工具来自官方 Registry 且开源、近期有维护，供应链透明度相对较好；但其声明包含 code audit、dispatch tool、telemetry，并需要 GitHub token 且具备执行代码能力，因此整体更适合在最小权限和隔离环境下谨慎使用。

## 方式一 · 一键代装（复制提示词让 AI 代劳）

### Claude Code
```
请帮我安装 askskill 上的 "io.github.rm-rf-prod/groundtruth" MCP 服务：
执行：claude mcp add 'io-github-rm-rf-prod-groundtruth' -- npx -y @groundtruth-mcp/gt-mcp
```

### Codex
```
请帮我安装 askskill 上的 "io.github.rm-rf-prod/groundtruth" MCP 服务：
在 ~/.codex/config.toml 中添加：
[mcp_servers.io-github-rm-rf-prod-groundtruth]
command = "npx"
args = ["-y","@groundtruth-mcp/gt-mcp"]
然后重启 Codex 生效
```

### Cursor
```
请帮我安装 askskill 上的 "io.github.rm-rf-prod/groundtruth" MCP 服务：
在 .cursor/mcp.json 的 "mcpServers" 中添加：
"io-github-rm-rf-prod-groundtruth": { "command": "npx", "args": ["-y","@groundtruth-mcp/gt-mcp"] }
然后在 Cursor 设置 > MCP 中启用
```

## 方式二 · 命令行安装（原生命令与配置）

### Claude Code
```bash
claude mcp add --env GT_GITHUB_TOKEN=YOUR_VALUE --transport stdio io-github-rm-rf-prod-groundtruth -- npx -y @groundtruth-mcp/gt-mcp
```
需要环境变量：GT_GITHUB_TOKEN

### Codex
```bash
codex mcp add --env GT_GITHUB_TOKEN=YOUR_VALUE io-github-rm-rf-prod-groundtruth -- npx -y @groundtruth-mcp/gt-mcp
```
配置文件 ~/.codex/config.toml：
```toml
[mcp_servers.io-github-rm-rf-prod-groundtruth]
command = "npx"
args = ["-y","@groundtruth-mcp/gt-mcp"]

[mcp_servers.io-github-rm-rf-prod-groundtruth.env]
GT_GITHUB_TOKEN = "YOUR_VALUE"
```
需要环境变量：GT_GITHUB_TOKEN

### Cursor
配置文件 .cursor/mcp.json：
```json
{
  "mcpServers": {
    "io-github-rm-rf-prod-groundtruth": {
      "command": "npx",
      "args": [
        "-y",
        "@groundtruth-mcp/gt-mcp"
      ],
      "env": {
        "GT_GITHUB_TOKEN": "YOUR_VALUE"
      }
    }
  }
}
```
一键安装：cursor://anysphere.cursor-deeplink/mcp/install?name=io-github-rm-rf-prod-groundtruth&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBncm91bmR0cnV0aC1tY3AvZ3QtbWNwIl0sImVudiI6eyJHVF9HSVRIVUJfVE9LRU4iOiJZT1VSX1ZBTFVFIn19
需要环境变量：GT_GITHUB_TOKEN
