Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_tool-gateway-mcp

Tool gateway and MCP servers (checked, audited tool calls)

13 COMPONENTS · 16 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[![Tool gateway and MCP servers (checked, audited tool calls) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_tool-gateway-mcp/opengraph-image)](https://archos.sageideas.dev/d/dgm_tool-gateway-mcp)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_tool-gateway-mcp)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_tool-gateway-mcp" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Tool gateway and MCP servers (checked, audited tool calls) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("Web Client")]
  alerting_1[("Alerting")]
  mcp_2["Resource server"]
  audit_3[("Audit log")]
  orch_4[("Agent orchestration runtime")]
  idp_5[("Identity provider (IdP)")]
  secrets_6[("Secrets manager")]
  pdp_7["Policy decision point (PDP)"]
  toolgw_8["Function calling"]
  guard_9["Guardrails"]
  tsdb_10[("Time-series database (TSDB)")]
  idem_11[("PostgreSQL")]
  capacity_12["Capacity Estimate"]
  client_0 -->|"1. Asks with JWT · HTTPS"| orch_4
  orch_4 -->|"2. Calls tool (mTLS) · HTTP/2"| toolgw_8
  toolgw_8 -->|"3. Asks policy (mTLS) · HTTP/2"| pdp_7
  pdp_7 -->|"4. Decision · HTTP/2"| toolgw_8
  toolgw_8 -->|"5a. Claims, marks key · SQL"| idem_11
  toolgw_8 -->|"5b. Calls; write retry needs key · HTTPS"| mcp_2
  mcp_2 -->|"6. Returns result · HTTPS"| toolgw_8
  toolgw_8 -->|"7. Sends result (mTLS) · HTTP/2"| guard_9
  guard_9 -->|"8. Returns verdict · HTTP/2"| toolgw_8
  toolgw_8 -->|"9. Returns result · HTTP/2"| orch_4
  orch_4 -->|"10. Relays result · HTTPS"| client_0
  secrets_6 -->|"Server credential · HTTPS"| toolgw_8
  toolgw_8 -->|"Audit record · HTTPS"| audit_3
  toolgw_8 -->|"Exports (OTLP) · OTLP"| tsdb_10
  tsdb_10 -->|"Notifies · HTTP"| alerting_1
  idp_5 -->|"Signing keys · HTTPS"| toolgw_8

COMPONENT STACK (12)

  • Web ClientSTATEFUL
    Staff member on an untrusted network
  • AlertingSTATEFUL
    On-call pager outside our boundary
  • Resource serverSTATELESS
    Vendor-run MCP ticket server outside our boundary
  • Audit logSTATEFUL
    Security-owned record of who called which tool
  • Agent orchestration runtimeSTATEFUL
    Holds the user JWT and sets a call key per step
  • Identity provider (IdP)STATEFUL
    Issues JWTs; publishes signing keys
  • Secrets managerSTATEFUL
    Holds the ticket server credential
  • Policy decision point (PDP)STATELESS
    Allows tools and arguments per user
  • Function callingSTATELESS
    Allow-list, schema check, rate limit, key claim
  • GuardrailsSTATELESS
    Scans tool results as untrusted text
  • Time-series database (TSDB)STATEFUL
    Stores latency, denials, retries, errors
  • PostgreSQLSTATEFUL
    Call keys and results, kept 7 days

REQUEST & DATA FLOW (16)

  1. Web Client → Agent orchestration runtime (Asks with JWT)[HTTPS]
  2. Agent orchestration runtime → Function calling (Calls tool (mTLS))[HTTP/2]
  3. Function calling → Policy decision point (PDP) (Asks policy (mTLS))[HTTP/2]
  4. Policy decision point (PDP) → Function calling (Decision)[HTTP/2]
  5. Function calling → PostgreSQL (Claims, marks key)[SQL]
  6. Function calling → Resource server (Calls; write retry needs key)[HTTPS]
  7. Resource server → Function calling (Returns result)[HTTPS]
  8. Function calling → Guardrails (Sends result (mTLS))[HTTP/2]
  9. Guardrails → Function calling (Returns verdict)[HTTP/2]
  10. Function calling → Agent orchestration runtime (Returns result)[HTTP/2]
  11. Agent orchestration runtime → Web Client (Relays result)[HTTPS]
  12. Secrets manager → Function calling (Server credential)[HTTPS]
  13. Function calling → Audit log (Audit record)[HTTPS]
  14. Function calling → Time-series database (TSDB) (Exports (OTLP))[OTLP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →