Gardawg
Gardawg is a fully offline MCP server for link-aware static analysis, physical-layer airtime budgeting, and seeded chaos testing.
List link profiles (
list_link_profiles): enumerate built-in RF/serial profiles such aslora-sf12,ble-1m,wifi-24g-congested,leo-sat,uart-9600, plus licensed custom profiles.Budget first (
evaluate_payload): compute Shannon ceiling, protocol goodput, MTU fragmentation, safe byte limit, and BER loss for a givenprofile,payload_bytes, andhzbefore writing wire framing code.Check every edit (
check): run unified single-pass AST rules (GR000–GR007: syntax, money floats, missing timeouts, swallowed errors, secrets, panics, etc.) plus physical-layer link rules and external compiler/linter gates, withpath,profile,hz,ast_only, andpedanticoptions.Verify runtime (
verify_runtime): execute a shell command and smoke-test it through a seeded impairment/chaos proxy (TCP/HTTP or UDP), returning structured diagnostics with configurableupstream,probe_path, andduration_secs.Agent guardrails: supports a three-step
evaluate_payload→check→verify_runtimeworkflow wired intoAGENTS.md,.mcp.json, andopencode.jsonbygardawg init.Privacy: all analysis and tooling run locally with zero LLM dependencies and no code leaving the machine.
# Gardawg
Link-aware static analysis, physical-layer airtime budgets, and seeded chaos proxies in one offline-first binary.
Gardawg is a 100% offline-first Rust CLI and MCP server by Oceans Niagara, LLC. It enforces deterministic AST rules and quality gates on your code, checks payloads against real physical-layer limits (LoRa, BLE, Wi-Fi, LEO satellite, UART), and runs seeded chaos/impairment proxies - with zero LLM dependencies inside Gardawg and zero code leaving your machine. AST rules cover Python, Rust, TypeScript, JavaScript, C and C++ (including Arduino .ino).
Website, WASM sandbox & licensing: https://oceans-niagara.github.io/gardawg/
Interactive sandbox: https://oceans-niagara.github.io/gardawg/sandbox.html
What It Catches
GR000Syntax & stray fences: parse errors and stray Markdown code fences, even withouttsc/cargo/ruff.GR001Money floats:f32/f64on money and quantity identifiers.GR002Missing timeouts:fetch,axios,reqwest,requests,httpx,socket.socket(),HTTPServer, and Crecv/connectcalls without explicit timeouts.GR004-GR005Swallowed errors & stubs: emptycatch/except: pass, ignored C returns, non-atomic state writes,todo!(),NotImplementedError, and placeholder comments.GR006-GR007Security & panics: hardcoded secrets (sk_live_,AKIA,ghp_, private keys),eval/exec/shell=True/strcpy, and non-test Rust.unwrap().Link budgets & AST rules:
budgetcomputes the Shannon ceiling, MTU fragmentation, airtime, and BER loss;--linkadds loop-send batching, framing, and timeout checks.Chaos, verify & SARIF: seeded TCP/UDP/HTTP impairment proxies,
gardawg verify, and OASIS SARIF 2.1.0 output (--format sarif).
init detects your stack and generates gardawg.toml, AGENTS.md, .mcp.json, and opencode.json. Re-sync them after editing gardawg.toml with gardawg sync.
Related MCP server: jev-harness
Install & Multi-Project Quickstart
Prebuilt binaries (no Rust required): download from GitHub Releases. Headless builds suit CI and servers; -gui builds add the desktop dashboard.
OS | Headless | GUI |
Windows |
|
|
macOS (Apple Silicon) |
|
|
macOS (Intel) |
|
|
Linux |
|
|
Option 1: Global PATH Install (Recommended for Multiple Repos)
Run gardawg install (alias install-path) to copy the binary + adjacent gardawg.lic into %LOCALAPPDATA%\Programs\gardawg (Windows) or ~/.local/bin (macOS/Linux) and add it to your user PATH - or move gardawg.exe + gardawg.lic there manually:
# Windows (PowerShell)
.\gardawg-windows-x86_64.exe install
# In ANY repo root (new terminal):
gardawg init --link
gardawg check --format text# macOS / Linux
chmod +x ./gardawg-macos-arm64
./gardawg-macos-arm64 install
gardawg init --linkinit --link defaults to wifi-24g-congested (for general networked apps). Pass --link-profile ble-1m or --link-profile lora-sf12 for constrained RF/serial links, or edit [link] profile = "..." in gardawg.toml anytime.
Option 2: Point at Any Project Without Modifying PATH (-w)
.\gardawg-windows-x86_64.exe -w C:\path\to\project init --linkinit automatically writes the binary's full path into .mcp.json and opencode.json, so MCP works from your AI tools even without gardawg on PATH.
Build from Source & Core Commands
cargo install --git https://github.com/Oceans-Niagara/gardawg
cargo install --git https://github.com/Oceans-Niagara/gardawg --features gui
gardawg check --format sarif
gardawg budget --profile lora-sf12 --bytes 64 --hz 10
gardawg proxy --listen 127.0.0.1:9000 --target 127.0.0.1:9001 --profile ble-1m --seed 42
gardawg verify --profile wifi-24g-congested --udp --listen 127.0.0.1:9000 --upstream 127.0.0.1:9001 --cmd "python client.py"
gardawg resilience --openapi openapi.yaml
gardawg mcpgardawg resilience example: pass --openapi openapi.yaml (requires schemathesis on PATH) or set [resilience] openapi_spec / keploy_cmd in gardawg.toml. Start your API on 127.0.0.1:8080 (or set [resilience] upstream), then run gardawg resilience --openapi openapi.yaml.
Desktop GUI (gardawg-gui)
Download the -gui binary (or build with --features gui). Launch it with no arguments (gardawg-gui) and use the top toolbar Mode switcher to toggle anytime between Standalone Simulator and Live Proxy (with editable Listen/Target endpoints and TCP/UDP selection), or pass --target on the CLI to start directly in live proxy mode:
# Standalone simulator & interactive payload calculator (no --target needed)
.\gardawg-gui-windows-x86_64.exe
# Live UDP impairment proxy + real-time throughput/drop plots
.\gardawg-gui-windows-x86_64.exe gui --udp --listen 127.0.0.1:9000 --target 127.0.0.1:9001 --profile ble-1mAI Agents (MCP) & Local Models
Gardawg itself is 100% offline - your host coding CLI (OpenCode, Claude Code, Cursor, Windsurf, etc.) chooses which LLM runs.
Primary Workflow - Agentic MCP Guardrails (
AGENTS.md+.mcp.json/opencode.json):gardawg initwires Gardawg's stdio MCP server into your project and writes a 3-stepAGENTS.mdcontract (evaluate_payload->gardawg_check->verify_runtime). Pair it with OpenCode's built-in models or any tool-capable coding model so your agent checks link budgets before designing frames, fixes AST findings after every edit, and smoke-tests through the impairment proxy automatically.100% Local Ollama in
opencode.json:gardawg initincludes a commented Ollama"provider"template (http://127.0.0.1:11434/v1with"tool_call": true) inopencode.jsonso you can uncomment it with any tool-capableollama listtag.Lightweight CLI Repair Helper (
gardawg fix): for localized single-file fixes (such as adding missingtimeout=arguments or moving hardcoded secrets toos.environ) using small local Ollama models (1.5B-3B) without full agentic overhead:
gardawg fix --model ollama/qwen2.5-coder:3b
gardawg fix --model ollama/qwen2.5-coder:1.5b --file src/client.py --dry-runTools
When run as an MCP server (gardawg mcp), Gardawg exposes the following four tools to AI coding agents:
list_link_profiles
List physical-layer RF/serial link profiles (lora-sf12, ble-1m, wifi-24g-congested, leo-sat, uart-9600, plus licensed custom profiles).
Parameters: None
evaluate_payload
Step 1 (Budget first): Compute Shannon ceiling, protocol goodput, MTU fragmentation, safe byte limit, and BER loss before writing wire framing code.
profile(string, required): Physical link profile ID (e.g.,lora-sf12,ble-1m,wifi-24g-congested,leo-sat,uart-9600).payload_bytes(integer, required): Payload size in bytes (minimum1).hz(number, required): Transmit rate in Hz (minimum0.001).
check
Step 2 (Check every edit): Run unified single-pass AST + physical-layer link rules + external compiler/linter gate (alias: gardawg_check).
path(string, optional): Subpath or file to scan.profile(string, optional): RF/serial link profile ID (e.g.,lora-sf12).hz(number, optional, default10.0): Assumed transmit rate in Hz.ast_only(boolean, optional, defaultfalse): Run only AST rules without external compiler/linter gates.pedantic(boolean, optional, defaultfalse): Enable pedantic rule checks.
verify_runtime
Step 3 (Verify runtime): Run an automated black-box smoke test through the impairment/chaos proxy and return structured runtime diagnostics (alias: smoke_test).
command(string, required): Shell command to run (e.g.,"python app.py").profile(string, optional): Physical link profile ID (e.g.,lora-sf12,ble-1m).upstream(string, optional): Targethost:portto proxy to (e.g.,127.0.0.1:8080).probe_path(string, optional): HTTP path to probe through the chaos proxy (e.g.,/health).duration_secs(integer, optional, default4): Duration of the smoke test in seconds.udp(boolean, optional, defaultfalse): Use UDP proxy mode instead of TCP/HTTP.
See BENCHMARKS.md for latency measurements (45 ms median check) and a 46-run controlled agent evaluation (0/5 -> 5/5 bilateral CRC-16/CCITT-FALSE and binary framing on constrained UART/LoRa tasks).
Licensing
Gardawg is dual-licensed: the open-source codebase is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only), while commercial licenses (Pro, Team, and Enterprise) without AGPL-3.0 copyleft obligations are available from Oceans Niagara, LLC at oceansniagara.com.
Offline Ed25519-signed keys (LG1...), verified locally with zero network calls. Perpetual, one-time purchase.
License lookup order (first match wins):
--license-key <key-or-path>GARDAWG_LICENSE_KEY(orLINKGUARD_LICENSE) environment variable./gardawg.lic(or./linkguard.lic) in the current working directory<exe_dir>/gardawg.lic(or<exe_dir>/linkguard.lic) next to thegardawgbinary (global fallback across all repos)%APPDATA%\gardawg\license.lic(Windows) or~/.config/gardawg/license.lic(macOS/Linux)
Verify anytime with gardawg license.
Free ($0): core CLI, AST rules, quality gates, SARIF output, built-in link profiles, seeded proxy/chaos/verify,
gardawg fix --model ollama/<tag>, stdio MCP server, and browser sandbox.Pro ($19.99 one-time - Local Workstations): everything in Free, plus
gardawg resilience, customprofiles.toml, local--baselineratchet, andgardawg-guidesktop dashboard with CSV/JSON export (ci_allowed: false- local workstations only).Team ($59.99 one-time - Up to 6 Seats + CI): everything in Pro, plus CI/CD runner support (
ci_allowed: true),gardawg sync --checkconfig drift gate,[agents].custom_rulesenforcement, and offline 90-day contributor cap (<= 6non-bot committers viagit shortlog).Enterprise ($299+ - Unlimited Seats & CI): everything in Team with
max_seats: null(unlimited developers & CI runners), multi-profile matrix sweeps (gardawg check --profile-matrix ble-1m,wifi-24g-congested,lora-sf12), and organization-stamped SARIF audit headers (Licensed to <Org> - Enterprise).
© 2026 Oceans Niagara, LLC • connect@oceansniagara.com
MCP Registry: mcp-name: io.github.Oceans-Niagara/gardawg
Available Tools
4 toolscheckRun AST & Link-Aware Static AnalysisARead-onlyIdempotent
Scan source code files (Python, Rust, TypeScript, JavaScript, C, and C++/Arduino) using single-pass deterministic AST guardrails, physical-layer link rules, and optional external compiler or linter gates, returning structured findings and SARIF-compatible diagnostics. Use this after creating or editing code to catch missing timeouts, swallowed errors, money floats, hardcoded secrets, and link-budget violations without executing the program.
Inputs: hz, path, profile, ast_only, +1 more.
evaluate_payloadEvaluate Payload Link BudgetARead-onlyIdempotent
Calculate physical-layer link budget metrics—including Shannon channel capacity ceiling, protocol goodput, MTU fragmentation count, safe maximum payload byte limit, airtime, and bit-error-rate (BER) packet loss—for a given payload size and transmission frequency. Use this before designing wire framing or serialization formats to verify that message sizes fit within link constraints; do not use this to scan source code files (use check instead).
Inputs: hz (required), profile (required), payload_bytes (required).
list_link_profilesList Physical-Layer Link ProfilesARead-onlyIdempotent
Retrieve all available physical-layer RF and serial link profiles (including built-in profiles such as lora-sf12, ble-1m, wifi-24g-congested, leo-sat, and uart-9600, plus any licensed custom profiles) along with their bandwidth, MTU, latency, and bit-error-rate parameters. Use this tool when you need valid profile IDs or physical link specifications before calling evaluate_payload, check, or verify_runtime.
Inputs: no named parameters.
verify_runtimeVerify Runtime Through Chaos ProxyA
Execute a local command inside an isolated, time-bounded loopback impairment and chaos proxy that simulates packet loss, jitter, bandwidth caps, and latency for a target link profile, returning structured runtime diagnostics and pass/fail telemetry. Use this to smoke-test networked or serial client behavior under realistic link degradation; use check instead for static code analysis without execution.
Inputs: command (required), udp, profile, upstream, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a clearly distinct phase: profile discovery, static link-budget math, static source scanning, and dynamic runtime execution. The descriptions even include explicit 'do not use this, use X instead' guidance (evaluate_payload vs check, check vs verify_runtime), eliminating boundary confusion.
Three of four tools follow a clean verb_noun pattern (evaluate_payload, list_link_profiles, verify_runtime). The bare 'check' is a minor deviation but is unambiguous in context and its semantics are reinforced in every other tool's description.
Four tools map neatly onto a single coherent workflow (discover profile → budget the payload → lint the code → smoke-test at runtime), with no redundancy. The surface is small and focused, though slightly austere for a full link-simulation platform.
The core lifecycle is covered end-to-end, including profile enumeration feeding both the budget calculator and the runtime verifier. Gaps exist around profile management (no create/update/delete for custom or licensed profiles) and chaos-scenario configuration, but these are workable omissions rather than dead ends.
Maintenance
Related MCP Connectors
Zero-signup OTLP, webhook HMAC, HTTP/SSE chaos, and causal /diff blackbox for coding agents.
Autonomous agent guardrails, bash sandboxing, MCP rugpull diffing & prompt firewalls.
Zero-secret AI sandbox, ACTA CSOR memory, atomic x402 spend caps & RFC 6962 audit proofs.
Persistent deterministic MCP commons where AI swarms run WASM JS, craft artifacts & legislate laws.
Related MCP Servers
AlicenseAqualityBmaintenanceLocal guardrails for AI coding agents. Checks each tool call from Claude Code, Cursor, Codex and MCP servers, and stops or asks before destructive ones run (DROP TABLE, rm -rf, force-push, unscoped UPDATE/DELETE). Free, runs on your machine, source-available under the Elastic License 2.0.1613Elastic 2.0- AlicenseAqualityBmaintenanceZero-dependency token optimizer, test-failure triage gate, and System 1.5 semantic guardrail for AI coding agents. Intercepts compiler errors, missing dependencies, and doom loops in < 500µs.633 PyPI12MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to bootstrap isolated QA projects, explore unfamiliar multi-tier systems from 0→1, keep a living code map, and execute deterministic Playwright suites with three-layer anti-fake-green audits over stdio, Streamable HTTP, or legacy SSE. It also exposes read-only hubs for observability, databases, CDP/API performance budgets, and OpenAPI contracts so agents can triage failures while blocking production targets, writes, and leaked credentials.1,959 npm1MIT
- AlicenseAqualityBmaintenanceSelf-hosted multi-account Telegram MCP server in Rust (MTProto) with 68 tools, isolated /mcp/ routing, an embedded EN/RU /settings web panel with live QR onboarding, OAuth 2.1, and deterministic Rust guardrails (hard_ceiling, send_whitelist, read_blacklist, kill switch, rate limits, audit).4421MIT