fastapi-gsap/gsap_broker
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
..
chronicle feat: fastapi-gsap — lightweight GSAP broker PoC 2026-03-30 14:10:21 -04:00
connectors feat: governed connector module 2026-03-30 16:42:38 -04:00
drivers feat: fastapi-gsap — lightweight GSAP broker PoC 2026-03-30 14:10:21 -04:00
functions feat: governed function runtime + billing drain 2026-03-30 22:12:29 -04:00
models feat: on_behalf_of — Bascule asserts operator identity in AC requests 2026-04-03 09:06:45 -04:00
routers feat: on_behalf_of — Bascule asserts operator identity in AC requests 2026-04-03 09:06:45 -04:00
__init__.py feat: fastapi-gsap — lightweight GSAP broker PoC 2026-03-30 14:10:21 -04:00
app.py feat: MCP endpoint — governance primitives as MCP tools 2026-04-04 18:42:29 -04:00
db.py feat: session-scoped ACs — multiple CRs per session 2026-04-03 02:06:15 -04:00
db_models.py feat: session-scoped ACs — multiple CRs per session 2026-04-03 02:06:15 -04:00
mcp.py feat: MCP endpoint — governance primitives as MCP tools 2026-04-04 18:42:29 -04:00
settings.py feat: fastapi-gsap — lightweight GSAP broker PoC 2026-03-30 14:10:21 -04:00