# 安装 com.shiftinbits/constellation

- 类型: MCP 工具
- 说明: 为 AI 编码代理提供代码理解、检索与上下文分析能力，提升开发效率。
- 仓库: https://github.com/ShiftinBits/constellation-mcp

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

### Claude Code
```
请帮我安装 askskill 上的 "com.shiftinbits/constellation" MCP 服务：
执行：claude mcp add 'com-shiftinbits-constellation' -- npx -y @constellationdev/mcp
```

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

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

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

### Claude Code
```bash
claude mcp add --env CONSTELLATION_ACCESS_KEY=YOUR_VALUE --transport stdio com-shiftinbits-constellation -- npx -y @constellationdev/mcp
```
需要环境变量：CONSTELLATION_ACCESS_KEY

### Codex
```bash
codex mcp add --env CONSTELLATION_ACCESS_KEY=YOUR_VALUE com-shiftinbits-constellation -- npx -y @constellationdev/mcp
```
配置文件 ~/.codex/config.toml：
```toml
[mcp_servers.com-shiftinbits-constellation]
command = "npx"
args = ["-y","@constellationdev/mcp"]

[mcp_servers.com-shiftinbits-constellation.env]
CONSTELLATION_ACCESS_KEY = "YOUR_VALUE"
```
需要环境变量：CONSTELLATION_ACCESS_KEY

### Cursor
配置文件 .cursor/mcp.json：
```json
{
  "mcpServers": {
    "com-shiftinbits-constellation": {
      "command": "npx",
      "args": [
        "-y",
        "@constellationdev/mcp"
      ],
      "env": {
        "CONSTELLATION_ACCESS_KEY": "YOUR_VALUE"
      }
    }
  }
}
```
一键安装：cursor://anysphere.cursor-deeplink/mcp/install?name=com-shiftinbits-constellation&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjb25zdGVsbGF0aW9uZGV2L21jcCJdLCJlbnYiOnsiQ09OU1RFTExBVElPTl9BQ0NFU1NfS0VZIjoiWU9VUl9WQUxVRSJ9fQ
需要环境变量：CONSTELLATION_ACCESS_KEY
