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。