MCP 使用说明
RunYay MCP Guide
让支持 MCP 协议的 AI 直接读取你的跑步数据、制定训练计划并推送到手表。
Connect your AI assistant to RunYay — read running data, generate training plans, and push them straight to your watch.
什么是 MCP?
What is MCP?
MCP(Model Context Protocol)是 Anthropic 推出的开放标准协议,让 AI 助手能够安全地连接外部数据源和工具。
MCP (Model Context Protocol) is an open standard by Anthropic that lets AI assistants securely connect to external data sources and tools.
MCP 服务地址
MCP Server URL
在 AI 工具的 MCP 设置中填入以下地址:
Enter this URL in your AI tool's MCP settings:
第一步:下载跑鸭 App
Step 1: Download RunYay
第二步:在 App 中开启连接
Step 2: Enable a Connection in RunYay
打开跑鸭 App → 设置 → 连接与授权,选择以下任意一种连接方式:
Open RunYay → Settings → Connections & Authorization, then choose a method:
方式二详细步骤
Method 2 — Step by Step
{
"mcpServers": {
"runyay": {
"url": "https://yayarun.cn/mcp",
"headers": {
"Authorization": "Bearer YOUR_ACCESS_KEY"
}
}
}
}
每个账号最多创建 5 个手动访问密钥,可随时在 App 中吊销。
Each account supports up to 5 manual API keys. Revoke any key at any time in the app.
查看完整配置教程 Full Configuration Guide支持的 AI 工具
Supported AI Tools
| AI 工具 | AI Tool | 推荐连接方式 | Recommended Method |
|---|---|---|---|
| Claude Desktop / claude.ai | 方式一(OAuth) | Method 1 (OAuth) | |
| ChatGPT(支持 MCP 的版本) | ChatGPT (MCP-enabled) | 方式一(OAuth) | Method 1 (OAuth) |
| Cursor, Windsurf | 方式一或方式二均可 | Either method | |
| 本地 Agent / 命令行工具 | Local agents / CLI tools | 方式二(访问密钥) | Method 2 (API Key) |
| 其他支持 MCP 协议的客户端 | Any MCP-compatible client | 视工具支持情况选择 | Depends on tool support |
工具能力一览
Available Tools
连接成功后,AI 可以调用以下工具:
Once connected, your AI can call the following tools:
示例提示词:「帮我分析一下我最近这次跑步的分段配速,看看我有没有前快后慢的问题」
Example: "Analyze the splits from my latest run — did I go out too fast and fade at the end?"
示例:「根据我最近的跑步数据,帮我制定下周的训练计划并推送到跑鸭」
Example: "Based on my recent data, build next week's training plan and push it to RunYay."
使用场景示例
Example Prompts
以下提示词可以直接发给 AI:
Copy and send any of these directly to your AI:
授权管理与用量
Managing Connections & Usage
在跑鸭 App 设置 → 连接与授权 页面可以:
In RunYay → Settings → Connections & Authorization, you can:
- 查看所有已连接的 AI 工具
- View all connected AI tools
- 修改每个连接的授权权限范围
- Edit permission scopes per connection
- 查看今日 / 本月 MCP 工具调用次数及额度
- Check today's and this month's API call counts against your quota
- 随时吊销任意连接
- Revoke any connection instantly
常见问题
FAQ
跑鸭 MCP 采用标准 OAuth2 协议授权,数据访问路径为「AI 工具 → 跑鸭官方服务器 → 你的账号数据」,不经过任何第三方。你可以随时在 App 中撤销授权,撤销后 AI 工具立即失去访问权限。AI 工具本身是否留存对话记录,取决于你使用的 AI 产品的隐私政策。
RunYay MCP uses standard OAuth2 authorization. Data flows directly between the AI tool and RunYay's official servers — no third parties involved. Revoke access at any time in the app; the AI tool loses access immediately. Whether the AI tool retains conversation history depends on that product's own privacy policy.
训练计划会先写入跑鸭 App,然后在 App 内操作即可同步到手表。目前已支持佳明(Garmin)、高驰(COROS)和 Apple Watch,其他品牌手表陆续接入中。
Plans are written to RunYay first, then synced to your watch from within the app. Garmin, COROS, and Apple Watch are currently supported, with more brands on the way.
访问密钥仅在创建时显示一次。如果丢失,请在 App「连接与授权」页吊销该密钥,再重新生成一个。
Keys are shown only once at creation. If lost, revoke it in the app under Connections & Authorization and generate a new one.
可以。告诉 AI 你想修改的内容,AI 可以查询到对应计划的 ID,覆盖更新。
Yes. Tell the AI what you'd like to change — it can look up the plan ID and overwrite it with the updated version.