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
[](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_8COMPONENT STACK (12)
- Web ClientSTATEFULStaff member on an untrusted network
- AlertingSTATEFULOn-call pager outside our boundary
- Resource serverSTATELESSVendor-run MCP ticket server outside our boundary
- Audit logSTATEFULSecurity-owned record of who called which tool
- Agent orchestration runtimeSTATEFULHolds the user JWT and sets a call key per step
- Identity provider (IdP)STATEFULIssues JWTs; publishes signing keys
- Secrets managerSTATEFULHolds the ticket server credential
- Policy decision point (PDP)STATELESSAllows tools and arguments per user
- Function callingSTATELESSAllow-list, schema check, rate limit, key claim
- GuardrailsSTATELESSScans tool results as untrusted text
- Time-series database (TSDB)STATEFULStores latency, denials, retries, errors
- PostgreSQLSTATEFULCall keys and results, kept 7 days
REQUEST & DATA FLOW (16)
- Web Client → Agent orchestration runtime (Asks with JWT)[HTTPS]
- Agent orchestration runtime → Function calling (Calls tool (mTLS))[HTTP/2]
- Function calling → Policy decision point (PDP) (Asks policy (mTLS))[HTTP/2]
- Policy decision point (PDP) → Function calling (Decision)[HTTP/2]
- Function calling → PostgreSQL (Claims, marks key)[SQL]
- Function calling → Resource server (Calls; write retry needs key)[HTTPS]
- Resource server → Function calling (Returns result)[HTTPS]
- Function calling → Guardrails (Sends result (mTLS))[HTTP/2]
- Guardrails → Function calling (Returns verdict)[HTTP/2]
- Function calling → Agent orchestration runtime (Returns result)[HTTP/2]
- Agent orchestration runtime → Web Client (Relays result)[HTTPS]
- Secrets manager → Function calling (Server credential)[HTTPS]
- Function calling → Audit log (Audit record)[HTTPS]
- Function calling → Time-series database (TSDB) (Exports (OTLP))[OTLP]