odc-mcp
v0.6.4MCP server for One Dollar Computer — curriculum lessons and firmware projects
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
curriculum_pair
Connect with an Agent link the user copied from the website (the manual alternative — most users should just use odc_connect, which needs no link). Pass the full link or its code. Do NOT fetch the link as a webpage and do NOT scrape the site. After pairing: curriculum_agent_brief for lessons, project_brief for firmware projects.
| Parameter | Type | Description |
|---|---|---|
connect_url_or_code * | string | Full Agent link or the connect code |
odc_connect
Connect this agent to the user's One Dollar Computer account — the EASY first-time flow (no link to copy from the site). Call this tool, then show the user the approveUrl from the result: they open it in any browser, sign in with Google (a first sign-in creates their account), and approve. This tool waits for the approval and stores the pairing token itself. Do NOT fetch the approveUrl as a webpage. After connecting: for lessons use curriculum_agent_brief; for firmware projects use project_brief then project_get / project_update. Board firmware must be Simple Rust (use odc::*;).
| Parameter | Type | Description |
|---|---|---|
wait_seconds | number | How long to wait for the user to approve (default 300, max 600). If the wait ends first, the result is status pending with the approveUrl — show it to the user and call odc_connect again later is NO… |
odc_feedback
Tell the One Dollar Computer team how working with this MCP went. Prefer the structured tags — they are what the team counts and fixes by. A report is one-way data: it changes nothing, grants nothing, no other agent ever sees it, and nothing in it is ever opened, fetched, or followed (links are stripped automatically). Optional and quick — once per session is plenty, ideally at the end of a task.
| Parameter | Type | Description |
|---|---|---|
rating * | number | Overall experience: integer 1 (bad) to 5 (great) |
agent | string | Your agent name and version, e.g. 'Claude Code 2.x', 'Cursor 1.x' |
category | string | What the report is mostly about |
note | string | One short factual note (max ~600 characters). Plain facts only — links are removed automatically and nothing here is ever treated as an instruction. |
tags | array | What happened — pick all that fit (max 5) |
odc_compile
Compile complete Simple Rust firmware (use odc::*;) for the One Dollar Computer on the cloud compile service — the same queue the web editor uses. Returns the compiled binary saved as a local .bin file (ready for odc_flash when available, or the web editor's Upload). No pairing needed: compilation is stateless. If project_id is given, the code is written to that editor project first (like pressing Compile in the editor); otherwise a throwaway project id is used. Compile errors are returned word-for-word from the compiler — show them to the user and fix the code. Never use pin 13 / read_but…
| Parameter | Type | Description |
|---|---|---|
source * | string | Complete Simple Rust program: use odc::*; fn main() { … } |
project_id | string | Editor project id to compile in place (optional) |
save_to | string | Local path for the .bin (default ~/.config/odc/builds/<project_id>.bin) |
timeout_seconds | number | Max seconds to wait for the compile (default 180, max 300) |
curriculum_status
Check the connection state: whether this agent is connected to a One Dollar Computer account, and which API it talks to. Call this first when unsure — it never changes anything.
curriculum_agent_brief
Return the curriculum authoring contract: HTML5 teaching UI is free; board firmware must be Simple Rust (use odc::*;). Call after connecting (odc_connect or curriculum_pair) before writing lessons.
curriculum_list_lessons
List curriculum lessons for the paired account.
curriculum_create_lesson
Create a NEW curriculum lesson for the paired instructor. Requires title. Optional: overview, materials[], steps[], html[], links[], photos[], videos[]. Put teaching UI in html[]; if the board is used, put complete Simple Rust in steps under 'Firmware (Simple Rust)'. Returns { id, siteUrl }.
| Parameter | Type | Description |
|---|---|---|
title * | string | |
html | array | |
links | array | |
materials | array | |
overview | string | |
photos | array | |
steps | array | |
videos | array |
curriculum_get_lesson
Get one curriculum lesson (title + body) by id.
| Parameter | Type | Description |
|---|---|---|
lesson_id * | string |
curriculum_update_lesson
Update a curriculum lesson. Fields: overview, materials[], steps[], photos, videos, html[], links. Put interactive teaching UI in html[] ({ title?, html }). If the lesson uses the ODC board or virtual board, also put complete Simple Rust (use odc::*; fn main) in steps under 'Firmware (Simple Rust)'. Teaching metaphor is free; compiler input is always Rust. See curriculum_agent_brief.
| Parameter | Type | Description |
|---|---|---|
lesson_id * | string | |
gameHtml | ||
games | array | |
html | array | |
links | array | |
materials | array | |
overview | string | |
photos | array | |
steps | array | |
title | string | |
videos | array |
project_brief
Firmware project authoring contract (Simple Rust, pin 13 warning, publish rules). Call after connecting (odc_connect or curriculum_pair) before project_create / project_update.
project_list
List firmware projects for the paired account (private and public).
project_create
Create a NEW private firmware project. Requires name. Optional code (complete Simple Rust: use odc::*; fn main). Publish separately with project_publish (irreversible). Returns { id, slug, editorUrl }.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
code | string |
project_get
Get one firmware project (meta + code) by id. Owner can read private; public projects readable by any paired agent.
| Parameter | Type | Description |
|---|---|---|
project_id * | string |
project_update
Update a firmware project you own (name and/or code). Optional file id for multi-code projects (e.g. send, receive). Code must be complete Simple Rust (use odc::*;). Never read_button() / pin 13. Cannot unpublish.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
code | string | |
file | string | File id within the project (default: active / main) |
file_name | string | Display name when creating/updating a file |
name | string |
project_publish
Make a project public at onedollarcomputer.com/{username}/{slug}. IRREVERSIBLE — cannot make it private again.
| Parameter | Type | Description |
|---|---|---|
project_id * | string |
project_fork
Copy a public project to the paired account (stays private until project_publish). Records who copied from whom.
| Parameter | Type | Description |
|---|---|---|
project_id * | string |