主题
Streamable MCP 接入指南
SuperUser 支持 Streamable MCP(Model Context Protocol),让您的 AI 工具能够直接操作 SuperUser 中的数据。
什么是 MCP?
MCP 是 Anthropic 提出的开放协议,允许 AI 模型安全地与外部工具和数据源交互。通过 SuperUser 的 MCP 接口,AI 助手(如 Claude Desktop、Cursor 等支持 MCP 的工具)可以:
- 查询和更新业务数据
- 创建工单、客户、运单等记录
- 触发业务流程
配置步骤
1. 获取 MCP 端点
在【设置 → API 访问 → MCP 配置】中获取您的 MCP 端点地址:
https://your-domain/api/mcp/stream2. 配置 Claude Desktop(示例)
在 claude_desktop_config.json 中添加:
json
{
"mcpServers": {
"superuser": {
"command": "node",
"args": ["/path/to/superuser-mcp-client/index.js"],
"env": {
"SUPERUSER_URL": "https://your-domain",
"SUPERUSER_TOKEN": "your-api-token"
}
}
}
}3. 可用工具列表
| 工具名 | 说明 |
|---|---|
list_records | 查询模型记录列表 |
create_record | 创建新记录 |
update_record | 更新记录字段 |
delete_record | 删除记录 |
get_models | 获取可用模型列表 |