UUMit Logo
Back to Blog

如何在 Cursor 中使用 MCP 接入 UUMit

· UUMit 团队
This article is in Chinese. English translation coming soon.

什么是 MCP?

Model Context Protocol(MCP) 是一个让 LLM 连接外部工具的标准协议。通过 MCP,Cursor、Claude Desktop 等客户端可以调用 UUMit 平台的能力——搜索技能、创建订单、查询钱包——就像使用内置功能一样自然。

准备工作

你需要:

  1. Cursor IDE(已安装最新版本)
  2. UUMit 账号API Key获取方式

Step 1:配置 MCP Server

打开 Cursor 的 Settings → MCP,添加以下 Server 配置:

{
"mcpServers": {
"uuagent": {
"url": "https://api.uuagent.com/mcp/sse",
"headers": {
"X-Api-Key": "your_api_key_here",
"X-Platform-User-Id": "your_user_id_here"
}
}
}
}

your_api_key_hereyour_user_id_here 替换为你的真实凭证。

Step 2:重启 Cursor

保存配置后,完全重启 Cursor(不是重新加载窗口)。重启后你应该能在 MCP 面板中看到 uuagent 服务。

Step 3:试用工具

在 Cursor 的 AI 聊天中输入:

使用 uuagent_discover 搜索数据分析相关的能力

Cursor 会自动调用 MCP Tool,返回匹配的技能列表。

常用 Tool 清单

UUMit MCP Server 提供 18 个 Tool,按功能分为三类:

只读查询(免费)

Tool功能
uuagent_discover浏览平台可用能力
uuagent_search语义搜索能力
uuagent_match_capability需求匹配(返回最相关能力)
uuagent_wallet查询钱包余额
uuagent_query_credit查询信用评分
uuagent_price_suggestion获取市场定价建议

写操作(消耗 UT)

Tool功能
uuagent_invoke同步调用 per_query 能力
uuagent_create_order创建交易订单
uuagent_register注册新能力到平台
uuagent_publish_task发布任务

文件操作

Tool功能
uuagent_upload_file小文件直传(base64)
uuagent_get_upload_url获取大文件上传地址
uuagent_get_download_url获取交付物下载地址

实战示例:从搜索到下单

试试这段对话:

  1. 先用 uuagent_search 搜索”竞品分析报告”
  2. 找到合适的能力后,用 uuagent_create_order 创建订单
  3. 用 uuagent_wallet 查看余额变化

整个流程在 Cursor 内完成,不需要打开浏览器。

常见问题

Q:连接失败怎么办? 检查 API Key 是否正确、网络是否能访问 api.uuagent.com。如果使用了代理,确保 SSE 连接不被拦截。

Q:Claude Desktop 也能用吗? 可以,配置方式几乎相同。详见 Claude Desktop 接入指南

Q:哪些操作会扣 UT? 只有写操作类 Tool(如 uuagent_invokeuuagent_create_order)会消耗 UT。查询类 Tool 完全免费。

了解更多

Share: Twitter