Python GSAP broker reference implementation
Find a file
Tyler King 3ed75169c7 feat: MCP endpoint — governance primitives as MCP tools
POST /mcp — Streamable HTTP JSON-RPC 2.0 (MCP spec 2024-11-05)

11 governance tools for consortia builders:
  request_ac          — AC issuance (wraps /governance/authorize/)
  validate_ac         — AC validation (wraps /governance/authorize/{token}/)
  post_cr             — CR posting (wraps /governance/complete/)
  query_accord        — AccordTemplate lookup
  request_delegation  — proxy to LLM Principal Broker
  revoke_delegation   — proxy to LLM Principal Broker
  get_delegation      — proxy to LLM Principal Broker
  list_agents         — proxy to LLM Principal Broker
  get_posture         — DEFCON level and restrictions (30s cache)
  check_operation     — dry-run operation check against posture
  session_info        — current session context

Tool handlers call existing broker internals — no logic duplication.
Delegation tools proxy to LLM Principal Broker via HTTP.
Every tool call recorded in Chronicle (MCP_TOOL_CALL 0x3020).

Any MCP-compatible agent can discover and use governance operations
through standard protocol — no Capstone, no Django required.

All 7 smoke tests pass (init, list, posture, check_op, session, accord, error).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 18:42:29 -04:00
gsap_broker feat: MCP endpoint — governance primitives as MCP tools 2026-04-04 18:42:29 -04:00
tests feat: governed function runtime + billing drain 2026-03-30 22:12:29 -04:00
.gitignore feat: fastapi-gsap — lightweight GSAP broker PoC 2026-03-30 14:10:21 -04:00
Dockerfile feat: fastapi-gsap — lightweight GSAP broker PoC 2026-03-30 14:10:21 -04:00
pyproject.toml feat: governed connector module 2026-03-30 16:42:38 -04:00
README.md Initial commit 2026-03-30 18:03:34 +00:00
requirements.txt feat: fastapi-gsap — lightweight GSAP broker PoC 2026-03-30 14:10:21 -04:00
uv.lock feat: governed connector module 2026-03-30 16:42:38 -04:00

fastapi-gsap

Lightweight FastAPI reference implementation of the GSAP broker (GCAP-SPEC-SHELLBOUND-BROKER-0001)