Files
ops-bridge/.claude/rules/session-protocol.md
tegwick 4f3c8646b3 feat(mcp): SSE/HTTP mode, workplan OPS-WP-0002 done
- Add --http flag to MCP server for SSE transport on port 8002
- Add make mcp-http / mcp-stop targets
- Pin fastmcp<3.1.0 to stabilize dependency
- Update session-protocol: Step 0 tunnel health check before orient
- Mark OPS-WP-0002 and all its tasks done

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 14:10:49 +01:00

39 lines
769 B
Markdown

## Custodian State Hub Integration
State Hub: http://127.0.0.1:8000
### Session Protocol
**Step 0 — Tunnel health**
Before anything else:
```bash
bridge status
```
Bring up any stopped or stale tunnels before accessing remote services.
**Step 1 — Orient**
Read the offline-safe brief first:
```bash
cat .custodian-brief.md
```
Then call the MCP tool for richer context (skip if unreachable):
```
get_domain_summary("custodian")
```
**Step 2 — Scan workplans**
```
ls workplans/
```
**During work:** use `record_decision()`, `add_progress_event()`, `resolve_decision()`.
**Session close:** `add_progress_event()` with workstream_id.
If workplan files were modified, run from `~/the-custodian/state-hub/`:
```bash
make fix-consistency REPO=ops-bridge
```