fix(mcp,start): JSON-RPC notifications return 202; no tmux attach

- mcp_post: notifications (no `id` field) → HTTP 202 with empty body,
  per streamable-HTTP MCP transport spec. Fixes rmcp 'transport channel
  closed' on codex's notifications/initialized.
- start.sh: don't attach to tmux; print URL only. Backend + tmux session
  run in background. UI is the only viewing surface.
- scripts/stop.sh: convenience teardown.
This commit is contained in:
ai-chess
2026-05-14 23:41:11 +03:00
parent e48f01dcb5
commit 4c5b306a9a
4 changed files with 54 additions and 8 deletions
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# scripts/stop.sh — tear down the tmux session and backend
tmux kill-session -t chess 2>/dev/null && echo "[ai-chess] tmux session 'chess' killed" || true
pkill -f 'python -m ai_chess' 2>/dev/null && echo "[ai-chess] backend stopped" || true