# 安装 Sentry

- 类型: MCP 工具
- 说明: 帮助开发与运维团队排查报错、管理问题并分析性能监控数据
- 仓库: https://github.com/getsentry/sentry-mcp
- ⚠ 安全: 该 Sentry MCP 工具来自官方开源仓库且有一定社区采用，整体未见明显高风险红旗。材料披露较少，但在无密钥、无已声明外部端点的前提下，主要风险点仍是 MCP 工具常见的本机执行能力与文档透明度不足，整体偏低到中等关注。

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

### Claude Code
```
请帮我安装 askskill 上的 "Sentry" MCP 服务：
执行：claude mcp add sentry -- npx -y @sentry/mcp-server
```

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

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

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

### Claude Code
```bash
claude mcp add sentry -- npx -y @sentry/mcp-server
```

### Codex
```bash
codex mcp add sentry -- npx -y @sentry/mcp-server
```
配置文件 ~/.codex/config.toml：
```toml
[mcp_servers.sentry]
command = "npx"
args = ["-y","@sentry/mcp-server"]
```

### Cursor
配置文件 .cursor/mcp.json：
```json
{
  "mcpServers": {
    "sentry": {
      "command": "npx",
      "args": [
        "-y",
        "@sentry/mcp-server"
      ]
    }
  }
}
```
一键安装：cursor://anysphere.cursor-deeplink/mcp/install?name=sentry&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzZW50cnkvbWNwLXNlcnZlciJdfQ
