feat: token-protected HTTP transport for the MCP server
wodify mcp --http HOST:PORT serves MCP streamable HTTP at /mcp, stdlib only. A bearer token of 32+ chars is mandatory and checked before the path; prime is not offered over HTTP; tool calls are serialized. Co-Authored-By: Claude Mythos 5.2 <[email protected]>
This commit is contained in:
1 parent
7be931a712
commit
3909c35565
5 files changed
+324
-4
No files matched your search
@@ -98,6 +98,17 @@ in. Register it with any MCP client:
|
||||
| `bookings`, `schedule`, `workout`, `attendees`, `classdetail`, `coach`, `waitlist`, `wodflags` | the raw read-only actions |
|
||||
| `doctor`, `prime` | status; re-capture the session after a Wodify redeploy |
|
||||
|
||||
To reach it over the network, serve HTTP instead (MCP streamable HTTP at `/mcp`):
|
||||
|
||||
```bash
|
||||
umask 077; python3 -c 'import secrets; print(secrets.token_urlsafe(48))' > ~/.config/wodify/mcp-token
|
||||
wodify mcp --http 127.0.0.1:8765
|
||||
```
|
||||
|
||||
A bearer token is mandatory — it will not start without one of at least 32 characters, and
|
||||
every request without it gets `401`. `prime` is not offered over HTTP. Put TLS in front
|
||||
of it (a reverse proxy); the server itself speaks plain HTTP.
|
||||
|
||||
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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user