
SisRUN Training Plan
io.github.cdutr由 GitHub 账号 cdutr 发布v0.1.0更新于 Oct 24, 2026
Read your SisRUN (appsisrun.com.br) training plan: prescribed workouts, pace/HR windows, structure
概览
非官方本地 MCP 服务器,读取你的 SisRUN 训练计划,向 AI 助手返回规定训练、配速/心率区间和课表结构。
- 可以做什么
- 获取本周训练行,含状态、项目、距离、配速与心率区间、教练课表结构、备注,以及 SisRUN 从 Garmin/Strava 导入后匹配的完成数据(get_current_week)。获取包含指定 ISO 日期的整周训练(get_week)。获取从今天起已规定但未完成的训练(get_upcoming)。估算计划距离,展开重复组,并标记按假定配速换算的计时步骤。
- 适用场景
- 适合教练在 SisRUN 中布置训练计划的跑者,用来向助手询问本周安排、查询过去某一周或查看接下来的训练,而无需打开网站。
- 运行要求
- 以 Python 包形式在本地运行(Python 3.10 及以上),可通过 uvx 或 pipx 安装。需要你自己的 SisRUN 登录账号,通过 SISRUN_EMAIL 和 SISRUN_PASSWORD 环境变量或主目录下的凭据文件提供。需要访问 SisRUN 网站的网络连接;该站没有公开 API,服务器读取的是与浏览器相同的网页。
安装
在 SourceWeft 中
- 打开 控制台中的 SisRUN Training Plan,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
sisrun-mcp
Unofficial MCP server that exposes your SisRUN (appsisrun.com.br) training plan to AI assistants like Claude, so you can ask "what did my coach prescribe this week?" and get a structured answer.
SisRUN has no public API, so this reads the same web pages you see in your browser, with your own credentials, and parses them into structured workout data. It is read-only: it never writes anything to SisRUN.
Tools
Each workout row carries: date, status (Proposto = prescribed, Feito = done, Feito Avulso = auto-imported, not prescribed), modality, prescribed distance, pace and HR windows, the coach's structured session (warm-up, repeats, recoveries), the coach's note, and what SisRUN matched as delivered (date, distance, time, avg HR, kcal; SisRUN auto-imports your Garmin/Strava activities).
planned_km vs distance_km: SisRUN's own Distância field is empty for every interval, hill and time-based session, and on interval days it counts the reps only. Summing that column undercounts the real prescription by ~35% (SisRUN's own "Evolução Semanal" panel has the same bug). planned_km derives the honest number from the coach's structured session, expanding Repetir Nx blocks; planned_km_is_est: "yes" marks rows where a timed step had to be converted at an assumed pace.
Install
Credentials
Your own SisRUN login (the one your coach gave you). Either environment variables:
or a credentials file:
⚠️ The password is stored in plain text. SisRUN offers no token or OAuth mechanism, so there is no better option. Keep the file chmod 600, and never commit it.
Claude Desktop / Claude Code config
Debugging
Fetch and print your current week without any MCP client:
If a result ever contains a warning about missing detail panels, the JSF form-state accumulation regressed. Please open an issue with the output (it contains no credentials).
How it works (for the curious)
SisRUN is JSF + PrimeFaces 8.0. Every request carries a javax.faces.ViewState token, and all widget ids are server-generated: they change on any redeploy, so nothing here hardcodes them. Buttons are located by their stable, human-authored title attributes, and the ViewState is re-read from every response. The non-obvious part is that the day detail panels are accordions the server only renders when the request carries their expanded state, accumulated across navigation hops, together with javax.faces.partial.execute=@all. Without that you silently get summary rows with no prescriptions. See the comments in client.py.
The client is deliberately polite: one week per request, spaced 0.6 s apart, and week HTML is cached per process.
Contributing
Bug reports, feature suggestions and PRs are welcome, in English or Portuguese. See CONTRIBUTING.md.
Status & disclaimers
- Unofficial. Not affiliated with, endorsed by, or supported by SisRUN. It may break whenever SisRUN changes their site; issues and PRs welcome.
- Your data only. This accesses your own training plan with your own credentials, the same data portability the LGPD grants you. Don't use it against accounts that aren't yours, and respect SisRUN's terms of service.
- Tested against real accounts since 2026-07. Python ≥ 3.10, single dependency (
mcp).
Em português (pt-BR)
Servidor MCP não oficial que expõe sua planilha de treinos do SisRUN (appsisrun.com.br) para assistentes de IA como o Claude. Com ele você pergunta "o que o treinador prescreveu essa semana?" e recebe os treinos estruturados: status (Proposto / Feito / Feito Avulso), distância, faixas de ritmo e FC, a estrutura da sessão (aquecimento, tiros, recuperações), a observação do treinador e o que o SisRUN associou como realizado (o SisRUN importa suas atividades do Garmin/Strava automaticamente).
O SisRUN não tem API pública, então o servidor lê as mesmas páginas que você vê no navegador, com as suas próprias credenciais. É somente leitura: nunca escreve nada no SisRUN.
Ferramentas: get_current_week() (semana atual), get_week(date) (semana de uma data), get_upcoming(weeks_ahead) (treinos propostos daqui pra frente).
Instalação:
Credenciais: seu próprio login do SisRUN, por variáveis de ambiente (SISRUN_EMAIL / SISRUN_PASSWORD) ou pelo arquivo ~/.sisrun/credentials:
⚠️ A senha fica em texto puro. O SisRUN não oferece token nem OAuth, então não existe opção melhor. Mantenha o arquivo com chmod 600 e nunca faça commit dele.
Sobre planned_km: o campo Distância do próprio SisRUN fica vazio em todo treino intervalado, de subida ou por tempo, e em dias de tiro conta só as repetições. Somar essa coluna subestima a prescrição real em ~35% (o painel "Evolução Semanal" do próprio SisRUN tem esse mesmo bug). O planned_km deriva o número honesto a partir da sessão estruturada do treinador, expandindo os blocos Repetir Nx.
Avisos: projeto não afiliado, não endossado e não suportado pelo SisRUN. Pode quebrar quando o site mudar (issues e PRs são bem-vindos). Ele acessa apenas os seus dados, com as suas credenciais, a mesma portabilidade de dados que a LGPD garante a você. Não use contra contas que não são suas e respeite os termos de uso do SisRUN.
Para depurar sem cliente MCP: python -m sisrun_mcp selftest imprime a semana atual em JSON.
License
MIT
来源:README.md,提交 f713420
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分