Skip to main content
Glama

# 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).

What It Catches

  • GR000 Syntax & stray fences: parse errors and stray Markdown code fences, even without tsc/cargo/ruff.

  • GR001 Money floats: f32/f64 on money and quantity identifiers.

  • GR002 Missing timeouts: fetch, axios, reqwest, requests, httpx, socket.socket(), HTTPServer, and C recv/connect calls without explicit timeouts.

  • GR004-GR005 Swallowed errors & stubs: empty catch/except: pass, ignored C returns, non-atomic state writes, todo!(), NotImplementedError, and placeholder comments.

  • GR006-GR007 Security & panics: hardcoded secrets (sk_live_, AKIA, ghp_, private keys), eval/exec/shell=True/strcpy, and non-test Rust .unwrap().

  • Link budgets & AST rules: budget computes the Shannon ceiling, MTU fragmentation, airtime, and BER loss; --link adds 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

gardawg-windows-x86_64.exe

gardawg-gui-windows-x86_64.exe

macOS (Apple Silicon)

gardawg-macos-arm64

gardawg-gui-macos-arm64

macOS (Intel)

gardawg-macos-x86_64

gardawg-gui-macos-x86_64

Linux

gardawg-linux-x86_64

gardawg-gui-linux-x86_64

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 --link

init --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 --link

init 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 mcp

gardawg 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-1m

AI 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 init wires Gardawg's stdio MCP server into your project and writes a 3-step AGENTS.md contract (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 init includes a commented Ollama "provider" template (http://127.0.0.1:11434/v1 with "tool_call": true) in opencode.json so you can uncomment it with any tool-capable ollama list tag.

  • Lightweight CLI Repair Helper (gardawg fix): for localized single-file fixes (such as adding missing timeout= arguments or moving hardcoded secrets to os.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-run

Tools

When run as an MCP server (gardawg mcp), Gardawg exposes the following four tools to AI coding agents:

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 (minimum 1).

  • hz (number, required): Transmit rate in Hz (minimum 0.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, default 10.0): Assumed transmit rate in Hz.

  • ast_only (boolean, optional, default false): Run only AST rules without external compiler/linter gates.

  • pedantic (boolean, optional, default false): 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): Target host:port to 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, default 4): Duration of the smoke test in seconds.

  • udp (boolean, optional, default false): 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):

  1. --license-key <key-or-path>

  2. GARDAWG_LICENSE_KEY (or LINKGUARD_LICENSE) environment variable

  3. ./gardawg.lic (or ./linkguard.lic) in the current working directory

  4. <exe_dir>/gardawg.lic (or <exe_dir>/linkguard.lic) next to the gardawg binary (global fallback across all repos)

  5. %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, custom profiles.toml, local --baseline ratchet, and gardawg-gui desktop 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 --check config drift gate, [agents].custom_rules enforcement, and offline 90-day contributor cap (<= 6 non-bot committers via git 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 tools
checkRun AST & Link-Aware Static AnalysisA
Read-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 BudgetA
Read-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).

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

    A4.2/5.0

    Scored across 4 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Local 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.
      16
      13
      Elastic 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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 npm
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Self-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).
      4
      42
      1
      MIT