fix: surface API error details in client, CLI and MCP #1
Loading…
Reference in a new issue
No description provided.
Delete branch "devel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MCP
schedulecalls that failed validation (e.g. ascript_pathoutside the roster host's[scripts]allowlist) surfaced as a bare "Error executing tool schedule" — the FastAPI{"detail": ...}body was swallowed byhttpx.HTTPStatusError. This makes validation feedback impossible to debug from an MCP client.client.py: newRosterAPIErrorraised on >=400 with the API'sdetail(falls back to raw text); replaces all tenraise_for_status()call sitescli.py: API errors and unreachable-API errors print one cleanerror: ...line instead of tracebacksmcp_server.py:scheduledescription now states that jobs run on the machine hosting the roster API and thatscript_path/gatemust be executables inside that host's[scripts]dirREADME.md: new "Where jobs run" section;roster.toml.example: allowlist commenttests/test_client.py: regression test that a 422detailreachesRosterAPIErrorAfter this, the same failure reads:
error: roster API 422: script path '/tmp/x.sh' is outside the allowlist dir '/home/.../.config/roster/scripts'.