sisrun-mcp
sisrun-mcp
🇧🇷 葡萄牙语版本见下文
非官方 MCP 服务器,将你的 SisRUN(appsisrun.com.br)训练计划暴露给 Claude 等 AI 助手,这样你就可以问"我的教练这周给我安排了什么?"并获得结构化答案。
SisRUN 没有公开 API,因此本工具使用你自己的凭据,读取你在浏览器中看到的相同网页,并将其解析为结构化的训练数据。它是只读的:绝不会向 SisRUN 写入任何内容。
工具
工具 | 返回内容 |
| 当前周的每一行训练记录 |
| 包含某个 ISO 日期( |
| 从今天起已安排但尚未完成的训练 |
每行训练记录包含:日期、状态(Proposto = 已安排,Feito = 已完成,Feito Avulso = 自动导入、非教练安排)、运动类型、计划距离、配速和心率区间、教练的结构化训练内容(热身、间歇、恢复)、教练备注,以及 SisRUN 匹配到的实际完成数据(日期、距离、时间、平均心率、千卡;SisRUN 会自动导入你的 Garmin/Strava 活动)。
planned_km 与 distance_km 的区别: SisRUN 自带的 Distância 字段在间歇、爬坡和计时训练中均为空,而且在间歇日只计算重复次数。对该列求和会低估实际计划量约 35%(SisRUN 自己的"每周进展"面板也有同样的 bug)。planned_km 从教练的结构化训练内容中推导出真实数值,展开 Repetir Nx 块;planned_km_is_est: "yes" 标记那些需要按假定配速转换计时步骤的行。
Related MCP server: garmin-mcp
安装
uvx sisrun-mcp # zero-install run from PyPI
# or
pipx install sisrun-mcp
# or straight from GitHub
uvx --from git+https://github.com/cdutr/sisrun-mcp sisrun-mcp凭据
使用你自己的 SisRUN 登录信息(教练给你的那个)。可以通过环境变量:
export SISRUN_EMAIL=you@example.com
export SISRUN_PASSWORD=yourpassword或凭据文件:
mkdir -p ~/.sisrun
cat > ~/.sisrun/credentials <<'EOF'
email=you@example.com
password=yourpassword
EOF
chmod 600 ~/.sisrun/credentials⚠️ 密码以明文存储。 SisRUN 不提供令牌或 OAuth 机制,因此没有更好的选择。请将文件权限设为 chmod 600,并且永远不要提交到版本库。
Claude Desktop / Claude Code 配置
{
"mcpServers": {
"sisrun": {
"command": "uvx",
"args": ["sisrun-mcp"]
}
}
}调试
无需任何 MCP 客户端即可获取并打印当前周:
python -m sisrun_mcp selftest如果结果中包含关于缺失详情面板的 warning,说明 JSF 表单状态累积出现了回归。请提交一个 issue 并附上输出内容(其中不包含任何凭据)。
工作原理(供好奇者参考)
SisRUN 基于 JSF + PrimeFaces 8.0。每个请求都携带一个 javax.faces.ViewState 令牌,所有组件 id 都是服务器生成的:任何重新部署都会导致它们变化,因此这里没有硬编码任何 id。按钮通过其稳定的人工编写的 title 属性来定位,ViewState 则从每个响应中重新读取。不太直观的部分在于:日期详情面板是手风琴组件,服务器只有在请求携带其展开状态(在多次导航跳转中累积)以及 javax.faces.partial.execute=@all 时才会渲染它们。否则你会静默地得到没有训练计划的摘要行。详见 client.py 中的注释。
客户端刻意保持礼貌:每个请求只获取一周,间隔 0.6 秒,并且每周的 HTML 会在进程内缓存。
贡献
欢迎提交 bug 报告、功能建议和 PR,可以使用英文或葡萄牙文。参见 CONTRIBUTING.md。
状态与免责声明
非官方。 与 SisRUN 无关联、未获其认可或支持。只要 SisRUN 更改其网站,本工具就可能失效;欢迎提交 issue 和 PR。
仅限你自己的数据。 本工具使用你自己的凭据访问你自己的训练计划,这是 LGPD 赋予你的数据可移植性。不要将其用于不属于你的账户,并遵守 SisRUN 的服务条款。
自 2026-07 起已针对真实账户进行测试。Python ≥ 3.10,单一依赖(
mcp)。
葡萄牙语版本 (pt-BR)
非官方 MCP 服务器,将你的 SisRUN(appsisrun.com.br)训练计划暴露给 Claude 等 AI 助手。有了它,你可以问"教练这周安排了什么?"并获得结构化的训练内容:状态(Proposto / Feito / Feito Avulso)、距离、配速和心率区间、训练结构(热身、间歇、恢复)、教练备注,以及 SisRUN 匹配到的实际完成数据(SisRUN 会自动导入你的 Garmin/Strava 活动)。
SisRUN 没有公开 API,因此服务器使用你自己的凭据,读取你在浏览器中看到的相同页面。它是只读的:绝不会向 SisRUN 写入任何内容。
工具: get_current_week()(当前周)、get_week(date)(某日期所在周)、get_upcoming(weeks_ahead)(从今天起的已安排训练)。
安装:
uvx sisrun-mcp
# ou
pipx install sisrun-mcp凭据: 你自己的 SisRUN 登录信息,通过环境变量(SISRUN_EMAIL / SISRUN_PASSWORD)或 ~/.sisrun/credentials 文件:
email=voce@exemplo.com
password=suasenhachmod 600 ~/.sisrun/credentials⚠️ 密码以明文存储。 SisRUN 不提供令牌或 OAuth,因此没有更好的选择。请将文件权限设为 chmod 600,并且永远不要提交到版本库。
关于 planned_km: SisRUN 自带的 Distância 字段在间歇、爬坡和计时训练中均为空,而且在间歇日只计算重复次数。对该列求和会低估实际计划量约 35%(SisRUN 自己的"每周进展"面板也有同样的 bug)。planned_km 从教练的结构化训练内容中推导出真实数值,展开 Repetir Nx 块。
声明: 本项目与 SisRUN 无关联、未获其认可或支持。网站变更时可能失效(欢迎提交 issue 和 PR)。它只使用你自己的凭据访问你自己的数据,这是 LGPD 赋予你的数据可移植性。不要将其用于不属于你的账户,并遵守 SisRUN 的服务条款。
无需 MCP 客户端即可调试:python -m sisrun_mcp selftest 会以 JSON 格式打印当前周。
许可证
MIT
Available Tools
3 toolsget_current_weekA
The current week's training plan: every workout with status (Proposto = prescribed / Feito = done / Feito Avulso = auto-imported, not prescribed), modality, prescribed distance (planned_km is the honest number; the raw distance_km field is blank on interval days), pace/HR windows, the coach's structured session, and what SisRUN matched as delivered.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of behavioral disclosure. It does this exceptionally well: it explains the status vocabulary, warns that planned_km is the reliable number and raw distance_km may be blank on interval days, and clarifies what the coach's session vs. SisRUN-matched delivered data means.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single structured enumeration with no filler words, and all listed items are meaningful. It is slightly long and runs the items together in one sentence, so a bulleted or shorter phrasing would be improve readability without losing content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a parameterless read tool, the description is almost complete: it covers the data included, notable field quirks, and status meanings. It does not specify things like timezone, but that is a minor omission given the output schema exists and the intended meaning is clear.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
There are no parameters, so the schema covers everything needed. The description adds value by focusing on the output structure, which is appropriate given the zero-parameter context.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the resource by saying 'The current week's training plan' and enumerates what it contains. It is more than a tautology and distinguishes from siblings by the 'current week' qualifier, though it lacks an explicit retrieval verb and does not directly compare to siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not explicitly say when to use this tool versus get_week or get_upcoming. The 'current week' phrasing implies the usage context, but there is no direct guidance about alternatives or when not to use it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_upcomingA
Prescribed workouts (status Proposto) from today forward, across the
current week plus weeks_ahead future weeks (default 1, max 8).
| Name | Required | Description | Default |
|---|---|---|---|
| weeks_ahead | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
There are no annotations, so the description carries the burden of behavioral disclosure. It explains the status filter, exclusion of past workouts, and the configurable future-week window, which are the key behavioral characteristics needed by an agent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single, tight sentence covers purpose, status filter, time window, default, and max. No filler or redundant restating of the tool name.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-parameter getter with an output schema, the description provides enough information to understand what the tool returns and how the parameter behaves. It could be improved by acknowledging the sibling tools and clarifying ordering, but nothing critical is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema only provides the type and default, but the description adds semantic meaning: weeks_ahead controls the number of future weeks beyond the current week, with a default of 1 and max of 8. This makes the parameter's effect clear.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description identifies a specific resource (prescribed workouts) and a specific status filter (Proposto) with a clear time window (today forward through future weeks). It does not explicitly mention sibling tools, but the 'today forward' scope differentiates it from get_current_week and get_week well enough.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The time window implies the intended use: retrieving upcoming proposed workouts. However, it does not give explicit guidance on when to choose this over get_current_week or get_week, nor when not to use it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_weekA
The training plan for the week containing date (YYYY-MM-DD).
Navigating far from the current week costs one request per week hop.
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the burden. It discloses a non-obvious behavioral trait: each week hop away from the current week costs an extra request. It does not discuss edge cases or invalid dates, but it gives the agent useful insight beyond the schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, front-loaded purpose, no filler. It states what the tool does and then adds the cost caveat efficiently.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has only one required parameter, an output schema exists, and the description covers parameter format and an important behavioral cost. It could be more complete by explicitly naming which sibling to use for current or upcoming weeks, but the essentials for invoking it correctly are present.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema only says date is a string, so the description's 'YYYY-MM-DD' format and statement that the week contains that date add critical meaning. With 0% schema coverage, the description compensates well for the tool's one parameter.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool returns 'the training plan for the week containing date', making the resource and action identifiable. It does not explicitly distinguish itself from get_current_week or get_upcoming, but the purpose is unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The cost note ('Navigating far from the current week costs one request per week hop') implies that dates far from the current week should be avoided when possible, but it never says when to use this tool rather than get_current_week or get_upcoming. The usage context is implied, not explicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
3 tool updates
v0.1.0- First observed
get_current_week - First observed
get_upcoming - First observed
get_week
TDQS
Scored across 3 tools
Each tool addresses a clearly different temporal scope: the current week, an arbitrary week by date, and the rolling set of upcoming prescribed workouts. While get_current_week and get_week could both return the current week in some cases, their intended use cases are distinct and visible from the descriptions.
All tools follow a get_ prefix and use temporal terms, which creates a predictable pattern. get_upcoming is slightly less noun-like than get_current_week and get_week, but the naming style is still consistent and readable.
Three tools is a well-scoped size for a read-only training-plan retrieval server. Each tool serves a distinct need and none feels redundant or padding.
The server covers the primary retrieval needs for a training plan: current week, any specific week, and upcoming planned workouts. Minor gaps like direct workout-level detail or historical summaries are not obviously required for the stated scope.
Maintenance
Related MCP Connectors
Your endurance training data in your AI assistant: activities, recovery, plan, workout edits.
Your own cycling data for your AI assistant: rides, power, climbs and routes. Read-only.
AI coach for Garmin: builds training plans and structured workouts, synced straight to your watch.
Your strength-training data for any AI assistant: workouts, progress, muscle volume, routines.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to read Garmin activities and create/schedule structured workouts and multi-week training plans on Garmin Connect, syncing to the user's watch.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to read Garmin activities and create/schedule structured workouts and multi-week training plans directly on Garmin Connect, syncing to your watch with guided prompts.1MIT
- AlicenseAqualityBmaintenanceProvides AI assistants with read-only access to an athlete's Intervals.icu training data, including activities, wellness metrics, zones, and planned events, for use with MCP clients like ChatGPT and Claude.15MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to read your Strava training data and answer plain-language questions about activities, splits, and totals across sports like running, skiing, and hiking.47 npmMIT