概览
Mirobody Health 可作为 支持 OAuth 的 MCP Server,把你的所有 Tools 暴露给 Claude Desktop、Cursor 以及自定义 MCP clients 等 AI 客户端。Model Context Protocol(MCP)是 AI 应用访问 Tools、resources 与上下文的标准接口。
MCP 配置
For Claude Desktop & Cursor
将 Mirobody Health 添加到你的 MCP 配置中:~/Library/Application Support/Claude/claude_desktop_config.json
- macOS/Linux
- Windows
Configuration file location:For Cursor:
Restart Your Client
更新配置后:1
保存配置文件
确保对 MCP 配置文件的修改已保存
2
重启 Claude/Cursor
完全关闭并重新打开 Claude Desktop 或 Cursor
3
验证连接
MCP server 应出现在客户端的 MCP servers 列表中在 Claude Desktop:点击 MCP 图标查看已连接 servers在 Cursor:在 settings 中查看 MCP 状态
4
测试一个 Tool
尝试使用你的某个 Tool:“Can you show me my health profile?”Agent 应调用
get_user_health_profile Tool。你应该能在 AI 客户端中看到可用的 Mirobody Health Tools!
认证流程
通过 MCP clients 使用 Tools 时,OAuth 认证会自动处理:OAuth token 由 Mirobody Health 管理。用户只需认证一次,Tools 即可安全访问其数据。
可用 Endpoints
MCP server 暴露以下 endpoint: Base URL:http://localhost:18080/mcp
Protocol: JSON-RPC 2.0
Methods:
tools/list: 列出所有可用 Toolstools/call: 执行指定 Toolresources/list: 列出可用 resourcesresources/read: Read a resource
面向 ChatGPT
Mirobody Health 也可以作为 GPT app 运行,在 ChatGPT 内启用相关能力。ChatGPT 集成文档即将发布。GPT app 将允许 ChatGPT 用户通过对话访问其健康数据。