sync_mcp_venv runs in the main shell, so its RETURN trap outlived the
function and fired again when main returned, with $log unset: set -u
turned a passing deploy into exit 1. Remove the temp log explicitly.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWWuLpGVY9MnowhTNcM
The MCP venv went a month without a resync and the server crashed on
import (missing leisure_watch) while setup_mcp.sh still passed, because
it imported only the bare package.
- setup_mcp.sh now imports steam_backlog_enforcer._mcp, the module
.mcp.json runs, and exits 1 with a FAIL line when it cannot.
- deploy.sh resyncs the MCP venv on every deploy and adds check 5:
the server must answer an initialize request over stdio.
- scripts/mcp_probe.py is that probe (stdlib, typed).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWWuLpGVY9MnowhTNcM
Pulls ~/src/steam-backlog-enforcer, syncs units only on difference,
restarts the web unit every run and the daemon only when it predates
the last package commit, then runs four health checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>