
ontrack
Give your AI agent access to OnTrack.
Check task status, read task sheets, download resources, follow up in task chats, and submit work. Works with OnTrack and Doubtfire, for students and teaching staff.
For Claude on the web, ChatGPT or your phone, ontrack mcp deploy runs a private MCP server on your own Cloudflare account. See Remote MCP.

🦄 Part of unicorn. Live tools answer what is there now; unicorn answers what changed.
📖 Read the docs
Set up
Ask your agent (Claude Code, Codex, or anything with a terminal):
Read https://unicorn.tuuhub.com/docs/ontrack/agent-setup.md and set up ontrack for me.
Or by hand:
npm install -g ontrack
export ONTRACK_BASE_URL="https://ontrack.example.edu"
ontrack auth login
ontrack courses
Set ONTRACK_BASE_URL to your institution's OnTrack site.
Tick "Remember me" when you sign in. OnTrack only issues the renewal cookie then, and the CLI needs it to renew your session in the background.
Study Boooooooooost
Ask in plain language, or run the command yourself:
| Ask your agent | Command |
|---|
| “What are my units?” | ontrack courses |
| “Where am I with the tasks in UNIT?” | ontrack tasks UNIT |
| “Read me the task sheet for TASK.” | ontrack tasks read UNIT TASK |
| “Any new tutor feedback?” | ontrack chats UNIT |
| “Download everything for UNIT.” | ontrack courses get UNIT --dest unit.zip |
| “Submit my report for TASK.” | ontrack tasks submit UNIT TASK --file report.pdf |
UNIT is the unit's code or name as OnTrack shows it. courses, units and projects are interchangeable. TASK is the task abbreviation. Writes always show a plan and ask first.
Remote MCP
Use OnTrack from Claude on the web, ChatGPT or your phone. ontrack mcp deploy puts a private MCP server on your own Cloudflare account (the free plan covers it). It signs in to OnTrack through Okta by itself and renews the session before it lapses, so you set it up once.
Ask your agent:
Read https://unicorn.tuuhub.com/docs/ontrack/agent-setup.md and set up remote MCP for ontrack.
It runs the commands; you do three things in your browser: save your Okta password and authenticator secret on the page okta-auth setup opens, approve Cloudflare, and type a pairing code when your AI app asks.
Or by hand:
npm install -g okta-auth-cli
okta-auth setup
npx wrangler login
ontrack mcp deploy
deploy prints a URL and an eight-character pairing code. Add the URL as a custom connector in Claude, ChatGPT or another MCP client; the approval page it opens asks for the code. A code lasts ten minutes and approves one client; ontrack mcp pair prints a new one. ontrack mcp status shows when the session renews.
The server reads your units, tasks, task sheets and chats. It submits nothing. Reading a task's comments marks them read, as the website does. Task sheets come back as Markdown: Workers AI on your Cloudflare account converts the PDF, which the free plan covers. A server deployed before 0.6.0 needs ontrack mcp deploy again for that.
OnTrack keeps one renewal token per user, so the Worker and this CLI share it. When the Worker renews, the CLI signs in through Okta once on its next run, and the other way round.
Learn more
Contributing
See CONTRIBUTING.md.
🦄 Part of unicorn
Live tools answer what is there now; unicorn answers what changed.