摘要
Exercise.com 健身房与教练软件:会员和员工、预约和课程、排期场次和名单、到访和签到、日历、服务、场馆、可预约时段、候补名单、评估、群组和已记录的训练。在您自己的平台主机上使用 Tenant API v4。
引导式设置
2 分钟将 Exercise.com 连接到 Microsoft Copilot
开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Exercise.com,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。
无需信用卡 · 7 天试用 · 提供自托管方案
试试这样问
Exercise.com 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Exercise.com、粘贴凭证、生成 MCP API key — 完成。无 Docker、无
git clone、无本地服务器。
Exercise.com + Microsoft Copilot
Exercise.com 健身房与教练软件:会员和员工、预约和课程、排期场次和名单、到访和签到、日历、服务、场馆、可预约时段、候补名单、评估、群组和已记录的训练。在您自己的平台主机上使用 Tenant API v4。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
EXERCISE_HOST, EXERCISE_API_KEY, EXERCISE_ACCESS_TOKEN
步骤 1 — 获取凭证
该连接器读取您自己平台主机上的 Exercise.com Tenant API v4,并可预订和取消到访。API 访问是付费附加功能,需要先由 Exercise.com 客户代表为您开通。
- 将平台主机名(不带
https://和路径)填入EXERCISE_HOST(例如train.yourgym.com)。 - 在 Account > Customize Platform > Developers > Add 创建 API 密钥并立即复制,它只显示一次。将其填入
EXERCISE_API_KEY(通过API-TOKEN请求头发送)。 - 将 API 所代表账号的 bearer 令牌填入
EXERCISE_ACCESS_TOKEN,不要带 Bearer 字样:可以是在产品中签发的 Personal API Token,或开通 API 访问时提供的令牌。要看到所有会员,请使用所有者或管理员的令牌。如果两项凭据没有同时设置,排期、评估模板和已记录训练会返回 401。 - 先用
exercise_com_list_users获取会员和员工 ID,再用带affinity=schedule和 Unix 时间范围的exercise_com_get_calendar查看预约。
注意事项:
exercise_com_list_appointments需要在filter中给出日期范围(q[start_time_gteq]和q[start_time_lt]);查询全部历史会以 HTTP 500 失败。- 过滤条件是 Ransack 谓词,例如
q[status_eq]=completed。分页使用per和page(从 1 开始);不设置时,部分列表会返回全部数据。 - 401
Access denied表示主机错误、令牌错误或已撤销,或 API 访问未开通。 - 套餐、发票和收费不属于 Tenant API v4,因此该连接器不涵盖这些内容。
exercise_com_book_visit可能向会员收费或使用其套餐,exercise_com_cancel_visit可能产生迟取消费用并通知会员。
步骤 2 — 安装 adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
步骤 3 — 在 Microsoft Copilot 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Microsoft Copilot 通过在 Copilot Studio 中构建的智能体使用 MCP 服务器:把 AnythingMCP 作为工具添加到智能体,然后把智能体发布到 Microsoft 365 Copilot 和 Teams。Copilot Studio 从 Microsoft 的云端通过 Streamable HTTP 连接,AnythingMCP 支持这种方式。
- 在 Copilot Studio 中打开你的智能体(或新建一个),进入 Tools,选择 Add a tool → New tool → Model Context Protocol。
- 填写 Server name(例如
AnythingMCP)、说明连接器用途的 Server description,以及 Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。Copilot Studio 根据描述决定何时调用该服务器。 - 身份验证选择 API key,把 Type 设为 Header,请求头名称填
X-API-Key,然后选择 Create。 - 在 Add tool 中选择 Create a new connection,粘贴 AnythingMCP 的 MCP API 密钥(MCP Servers → 你的服务器 → API keys),然后选择 Add to agent。
- 在智能体的 Test 窗格中试一试:提出需要用到
Exercise.com的工具的请求。 - 选择 Publish,然后进入 Channels → Microsoft 365 and Microsoft Teams,保持勾选 Make agent available in Microsoft Copilot,再选择 Add channel。See agent in Teams 会为你安装该智能体;在 Microsoft 365 Copilot 中输入 @ 并选择该智能体。
希望每个用户各自登录?请选择 OAuth 2.0 → Dynamic discovery 代替 API 密钥:每个用户会在智能体首次调用时登录 AnythingMCP。
自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Copilot Studio 从 Microsoft 的云端连接,因此 localhost 无法使用。
可用工具
| Tool | What it does |
|---|---|
exercise_com_list_users | List the platform's users (members, clients and staff) with name, e-mail, phone, head trainer and sign-up dates |
exercise_com_get_user | Return one user by id with profile, contact details, head trainer, membership and sign-up information |
exercise_com_list_visits | List visits (bookings and check-ins of a member for an appointment or class) with status, registered, completed, no-show and cancelled… |
exercise_com_get_visit | Return one visit by id with member, appointment, status timestamps, check-in and check-out, payment and booking details |
exercise_com_list_appointments | List appointments (booked sessions and class occurrences) with service, trainers, location, start and end time, status and capacity |
exercise_com_get_appointment | Return one appointment by id with its service, trainer, location, times, capacity, price and booking rules |
exercise_com_list_scheduled_appointments | List scheduled appointments: the dated occurrences of recurring classes and sessions, with start and end, trainer, location and capacity |
exercise_com_get_scheduled_appointment | Return one scheduled appointment (one occurrence of a recurring class or session) by id |
exercise_com_list_scheduled_appointment_members | List the members booked into scheduled appointments (class rosters) |
exercise_com_get_calendar | Return calendar events between two Unix timestamps: appointments and trainer availability (affinity schedule), scheduled workouts (logger)… |
exercise_com_list_services | List the services offered (session and class types) with name, duration, price and booking settings |
exercise_com_get_service | Return one service by id with duration, price, packages that cover it and booking rules |
exercise_com_list_locations | List the business locations with name and address |
exercise_com_list_schedules | List trainers' availability schedules (the time windows in which services can be booked) |
exercise_com_list_waitlist_entries | List waitlist entries for full appointments with member and position |
exercise_com_list_assessments | List assessment templates (fitness tests, questionnaires, intake forms) with name and questions |
exercise_com_list_user_assessments | List completed or assigned assessments of members, with answers, scores and dates |
exercise_com_get_user_assessment | Return one member's assessment by id with every answer and score |
exercise_com_list_groups | List groups (teams, classes or communities; type 1 free, 2 paid) with name, members and privacy |
exercise_com_list_workouts | List completed (logged) workouts with date, user and summary |
exercise_com_book_visit | Book a member into an appointment by creating a visit |
exercise_com_cancel_visit | Delete (cancel) a visit by id |
exercise_com_list_appointment_packages | List the packages (class packs, memberships with visit credits) that can be used to book one appointment: id, name, price options, number… |
exercise_com_get_assessment | Return one assessment template by id: name, description, its questions and fields, scoring formula and assignment settings |
exercise_com_list_group_calendars | List the group calendars: the calendars attached to groups, used for group events and classes |
exercise_com_list_user_workout_exercises | Return a member's logged history of workout exercises (sets, reps, weights), oldest first, paginated |
exercise_com_list_purchased_items | List what a member has bought: per item its type and id (package, workout plan, group...) and the payment option used (purchase or… |
FAQ
这适用于哪个 Copilot? 适用于工作中的 Microsoft 365 Copilot,通过 Copilot Studio 的智能体实现。面向个人账户的 Microsoft Copilot 应用无法添加自己的 MCP 服务器。
我需要什么? 一个可以使用 Copilot Studio 的工作账户(许可证或试用版),用于构建智能体。在 Microsoft 365 Copilot 或 Teams 中使用它的人需要拥有该智能体的访问权限:把它共享给他们,或请管理员为整个组织发布。如果你的组织对 Power Platform 连接器设置了数据策略,这些策略同样适用于 MCP 服务器。
智能体不调用工具。 检查请求头名称是否正好是 X-API-Key,密钥是否属于与 URL 相同的 MCP 服务器,并把 Server description 写得具体:Copilot Studio 根据它决定何时调用服务器。每次修改后重新发布智能体;在已打开的对话中输入 "start over" 即可使用新版本。
下一步
这份指南对你有帮助吗?