名称: civic-nexus
描述: "连接至 Civic Nexus MCP,支持 100 多种集成服务。"
元数据: {"openclaw":{"requires":{"env":["NEXUS_URL","NEXUS_TOKEN"],"anyBins":["mcporter","npx"]},"primaryEnv":"NEXUS_TOKEN"}}
⚠️ 免责声明:请自行承担使用风险。官方文档请访问 docs.civic.com。
连接至 Civic Nexus,可接入包括 Gmail、PostgreSQL、MongoDB、Box 等在内的 100 多种集成服务。
将以下内容添加到 ~/.openclaw/openclaw.json:
{
"skills": {
"entries": {
"civic-nexus": {
"enabled": true,
"env": {
"NEXUS_URL": "https://nexus.civic.com/hub/mcp?accountId=YOUR_ACCOUNT_ID&profile=YOUR_PROFILE",
"NEXUS_TOKEN": "your-access-token"
}
}
}
}
}
如果已安装 mcporter(通过 npm install -g mcporter),请将以下内容添加到 ~/.openclaw/workspace/config/mcporter.json:
{
"mcpServers": {
"nexus": {
"baseUrl": "https://nexus.civic.com/hub/mcp?accountId=YOUR_ACCOUNT_ID&profile=YOUR_PROFILE",
"headers": {
"Authorization": "Bearer YOUR_TOKEN",
"User-Agent": "openclaw/1.0.0"
}
}
}
}
当用户要求通过 Nexus 与外部服务交互时,请优先尝试使用 mcporter。如果失败,则回退到 TypeScript 脚本。
# 列出所有工具
mcporter list nexus
# 搜索工具
mcporter list nexus | grep gmail
# 调用工具
mcporter call 'nexus.google-gmail-search_gmail_messages(query: "is:unread")'
# 列出所有工具
npx tsx {baseDir}/nexus-tool-runner.ts --list
# 搜索工具
npx tsx {baseDir}/nexus-tool-runner.ts --search gmail
# 获取工具架构
npx tsx {baseDir}/nexus-tool-runner.ts --schema google-gmail-search_gmail_messages
# 调用工具
npx tsx {baseDir}/nexus-tool-runner.ts --call google-gmail-search_gmail_messages --args '{"query": "is:unread"}'
部分工具首次使用时需要 OAuth 授权。当看到授权 URL 时:
# 脚本方式
npx tsx {baseDir}/nexus-tool-runner.ts --call continue_job --args '{"job_id": "JOB_ID"}'
```