feat: read-only MCP server (wodify mcp) and list mine
wodify mcp serves every CLI command over MCP stdio, stdlib-only. Tools run cli.main in-process, so the allowlist, write guard and SQLite cache are the CLI's by construction. list mine / the my_classes tool returns the account's reserved classes with roster and workout in one call, and says so plainly when none is reserved. Co-Authored-By: Claude Mythos 5.2 <[email protected]>
This commit is contained in:
1 parent
a15efa0874
commit
4ff4f22ac1
6 files changed
+886
-36
No files matched your search
@@ -55,6 +55,13 @@ Then feed an ID back in for the workout and the named attendee list:
|
||||
wodify list workout 190918189
|
||||
```
|
||||
|
||||
Your own classes for a day — roster and workout included — in one command:
|
||||
|
||||
```bash
|
||||
wodify list mine # today; "No class reserved on …" if there is none
|
||||
wodify list mine 2026-07-25 --days 7
|
||||
```
|
||||
|
||||
Other commands:
|
||||
|
||||
```bash
|
||||
@@ -71,6 +78,29 @@ A class ID carries neither its date nor its program — it is per-occurrence. `l
|
||||
indexes the day into SQLite; `list workout` resolves the ID from there. Ask for an ID on a day
|
||||
you never listed and it says so rather than guessing.
|
||||
|
||||
## MCP server
|
||||
|
||||
```bash
|
||||
wodify mcp
|
||||
```
|
||||
|
||||
serves the same commands over MCP (stdio), stdlib-only, for one user: whoever is logged
|
||||
in. Register it with any MCP client:
|
||||
|
||||
```json
|
||||
{"mcpServers": {"wodify": {"command": "wodify", "args": ["mcp"]}}}
|
||||
```
|
||||
|
||||
| Tool | What it answers |
|
||||
|------|-----------------|
|
||||
| `my_classes` | your reserved classes with roster + workout, in one call; says so plainly when nothing is reserved |
|
||||
| `list_date`, `list_workout` | a day's classes; one class's roster + workout |
|
||||
| `bookings`, `schedule`, `workout`, `attendees`, `classdetail`, `coach`, `waitlist`, `wodflags` | the raw read-only actions |
|
||||
| `doctor`, `prime` | status; re-capture the session after a Wodify redeploy |
|
||||
|
||||
Tools run the CLI in-process, so the read-only allowlist and write guard apply unchanged
|
||||
and the cache below is shared with the command line.
|
||||
|
||||
## Local SQLite cache
|
||||
|
||||
`~/.cache/wodify/wodify.db` (override with `WODIFY_DB`), created mode `600` because it holds
|
||||
|
||||
Reference in new issue
Block a user