export THEO_API_KEY=theo_sk_...
- Cursor
- Claude Code
- Warp
- Windsurf
- VS Code
- 所有 IDE
在项目根目录的 或运行:
.cursor/mcp.json 中添加:{
"mcpServers": {
"theo": {
"command": "npx",
"args": ["-y", "@hitheo/mcp"],
"env": {
"THEO_API_KEY": "${env:THEO_API_KEY}"
}
}
}
}
theo mcp install --ide cursor
在终端中运行:或运行:
claude mcp add theo npx -y @hitheo/mcp
theo mcp install --ide claude-code
在项目根目录的 或运行:
.warp/mcp.json 中添加:{
"mcpServers": {
"theo": {
"command": "npx",
"args": ["-y", "@hitheo/mcp"],
"env": {
"THEO_API_KEY": "${env:THEO_API_KEY}"
}
}
}
}
theo mcp install --ide warp
添加到 或运行:
~/.codeium/windsurf/mcp_config.json:{
"mcpServers": {
"theo": {
"command": "npx",
"args": ["-y", "@hitheo/mcp"],
"env": {
"THEO_API_KEY": "${env:THEO_API_KEY}"
}
}
}
}
theo mcp install --ide windsurf
在项目根目录的 或运行:
.vscode/mcp.json 中添加:{
"mcpServers": {
"theo": {
"command": "npx",
"args": ["-y", "@hitheo/mcp"],
"env": {
"THEO_API_KEY": "${env:THEO_API_KEY}"
}
}
}
}
theo mcp install --ide vscode
自动检测并一次性配置所有已安装的 IDE:该命令会检测 Cursor、Claude Code、Warp、Windsurf 和 VS Code,为每个 IDE 写入正确的配置,并创建一个用于项目级设置的
npm install -g @hitheo/sdk
theo init
theo.config.json。