ArchGuard MCP
v1.0.0Architecture drift auditor (Tarjan SCC), zero-downtime SQL guardian & distributed-systems math.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
audit_code_snippet
Audit source files for circular dependencies (Tarjan SCC), coupling metrics (Ca/Ce/I), and 12 production reliability/security/SOLID anti-patterns (N+1 loops, missing HTTP timeouts, unbounded caches, check-then-act races, missing idempotency keys, SQL/command injection). Returns health score + Mermaid graph.
| Parameter | Type | Description |
|---|---|---|
files * | array | |
maxFileLines | integer |
check_migration_safety
Audit PostgreSQL/MySQL/SQLite DDL migrations for production table locks and rolling-deploy breaks, generating a 3-phase Expand-Contract plan.
| Parameter | Type | Description |
|---|---|---|
sql * | string | |
dialect | string |
estimate_system_capacity
Compute exact distributed systems capacity math: avg/peak QPS, storage, bandwidth Gbps, Redis RAM, shard count & bottleneck, Little's Law concurrency. Supports Big Tech presets or custom inputs.
| Parameter | Type | Description |
|---|---|---|
avgLatencyMs | number | |
avgReadBytes | number | |
avgWriteBytes | number | |
cacheHitRatio | number | |
dau | number | |
mediaBytesPerWrite | number | |
peakMultiplier | number | |
preset | string | |
readWriteRatio | number | |
replicationFactor | number | |
retentionYears | number | |
writesPerUserPerDay | number |
simulate_quorum_and_tail_latency
Verify Dynamo quorum (W+R>N), Raft fault tolerance, and Jeff Dean fanout tail-latency amplification (1-(1-p)^K) with hedged RPC comparison.
| Parameter | Type | Description |
|---|---|---|
fanoutCount | integer | |
readQuorum | integer | |
replicationFactor | integer | |
singleNodeP50Ms | number | |
singleNodeP99Ms | number | |
singleNodeSlowProbability | number | |
writeQuorum | integer |
simulate_consistent_hashing
Run deterministic FNV-1a+fmix32 consistent hashing ring simulation measuring load skew & scale-out key remapping % vs modulo hashing.
| Parameter | Type | Description |
|---|---|---|
nodeCount | integer | |
sampleKeys | integer | |
virtualNodes | integer |
recommend_architecture
Generate a Staff-level distributed system architecture blueprint from workload traits (consistency, R/W ratio, contention, real-time need, latency SLO).
| Parameter | Type | Description |
|---|---|---|
consistency | string | |
contentionLevel | string | |
dataModel | string | |
latencySloMs | number | |
readWriteProfile | string | |
realtimeNeed | string | |
scaleTier | string |