Connect an AI app
Use your training data in Claude, Codex and more
Connect an AI app to your plan, recovery and progress over the Model Context Protocol (MCP). It can read your training but not change it.
1. Create a token
In Settings, open Agent access. Name the token after the app (for example "Claude Code") and select the Today, Week and Context scopes. The token is shown once. Settings then shows these same instructions with your token already filled in.
2. Connect your app
Easiest: let your coding agent do it
Connect yourself to my training app's MCP server so you can read my training plan, recovery and progress.
- Server URL: https://training.cjarhodes.com/api/mcp (Streamable HTTP, remote)
- Auth header: Authorization: Bearer tra_live_YOUR_TOKEN
- Server name: training
If you are Claude Code, run:
claude mcp add --transport http --scope user training https://training.cjarhodes.com/api/mcp --header "Authorization: Bearer tra_live_YOUR_TOKEN"
If you are Codex, add a [mcp_servers.training] table to ~/.codex/config.toml with url = "https://training.cjarhodes.com/api/mcp" and bearer_token_env_var = "TRAINING_AGENT_TOKEN", then add export TRAINING_AGENT_TOKEN="tra_live_YOUR_TOKEN" to my shell profile.
Keep the token out of project files and git. Tell me if I need to restart you. Once the server is connected, call get_today and summarize my plan for today to confirm it works.Or set it up by hand
Terminal
claude mcp add --transport http --scope user training \
https://training.cjarhodes.com/api/mcp \
--header "Authorization: Bearer tra_live_YOUR_TOKEN"- 1.Run this once in a terminal. --scope user makes the server available in every project.
- 2.Start Claude Code and run /mcp to check that "training" is connected.
Claude.ai on the web and ChatGPT need a sign-in flow to connect, which isn't available yet. Once connected, try asking: "How is my recovery today, and does my plan still make sense?"
3. Ask about your training
The app picks the right tool for your question. Answers come from the plan and data this app built, and the app also sends its coaching rules so advice stays consistent with your plan.
get_todayToday's sessions, the coach's reasoning, fueling, and whether you've checked in.
get_weekA Monday-to-Sunday week of planned and completed training.
get_training_statusFitness, fatigue and form with their trend, your coaching phase, thresholds and targets.
get_recoveryToday's Garmin, Oura or WHOOP recovery with recent check-ins and soreness.
list_activitiesCompleted activities by date and discipline.
get_activityOne activity with the coach's analysis.
get_racesUpcoming races and days to go.
get_training_contextEverything at once, for longer reviews.
Troubleshooting
401 Invalid bearer token
The token was mistyped, revoked or has expired. Create a new one in Settings.
403 Missing scope
The token has no read scope. Create a token with Today, Week or Context selected.
402 Subscription required
The account needs an active subscription or trial.
Connected but few tools
The agent only sees tools for the scopes on its token. Context unlocks most of them.
Keep your token safe
Treat the token like a password: don't commit it or share it in a chat with other people. Revoke it from Settings at any time, and Settings shows when each token was last used. Developers can find the endpoint details in the Agent API reference.