Repository navigation
Releases
airgap v0.2.0: 1-Shot Remote PR Verification & Security Boundary
airgap v0.2.0 — 1-Shot Remote PR Verification, Streamable HTTP Hosting & Hardened Security Boundary
airgap is a 100% Rust Model Context Protocol (MCP) server that puts a remote execution boundary between AI coding agents (Claude Code, Cursor, Factory Droid, Windsurf) and your workstation. Untrusted builds, test suites, and pull request checks run inside disposable GMI Cloud AgentBox v2 microVMs (gmi.sandbox.medium: 2 vCPU, 4 GiB RAM, 20 GiB root disk) while secrets are scrubbed locally before logs or untrusted text leave the host.
Highlights in v0.2.0
1-Shot Remote PR Verification (airgap_verify_pr)
- Single-turn GitHub PR verification: Pass a PR URL (or
owner/repo+ PR number) with zero local file reads or manual JSON snapshotting. - Parallel host security gates: Runs
airgap_scan_injectionon PR metadata and manifest supply-chain auditing concurrently before provisioning compute. - Native in-sandbox shallow checkout: Clones directly inside the microVM (
git fetch --depth 1), auto-detects build steps when needed, and executes tests.
Sub-25s Warm Execution via Template Reuse
- Reuses warm GMI AgentBox deployment templates (
airgap-{image}-{instance_type}) with detail-endpoint verification (GET /deployments/{slug}) and in-process mutex deduplication to avoid duplicate cold builds. - Cuts real PR verification runs from multi-minute cold image builds down to ~23 seconds on warm templates.
Native Streamable HTTP / SSE Hosting & Multi-Tenant BYOK (airgap serve)
- Cloud-ready remote MCP server: Run
airgap serve --host 0.0.0.0 --port 8080to expose/mcp(Streamable HTTP / SSE) and/healthzwith fail-closed constant-time Bearer auth,Hostallowlisting, and RFC 6454Origin/CORS protection. - Multi-tenant isolation: Supports Bring-Your-Own-Key headers (
X-GMI-AgentBox-Key,X-GMI-MaaS-Key,X-GMI-API-Key,X-GitHub-Token), strict--require-byokmode, per-tenant concurrency semaphores, per-tenantairgap_configurestate, and isolated BYOK template build locks. - Ready-to-deploy configs: Ships a multi-stage, non-root
Dockerfile(compatible with Glama / NodeFlare stdio hosting by default and HTTP override viaserve) plus a scale-to-zerofly.tomland hosting guide.
OpenTUI Terminal Dashboards & Universal Test Parsers
- Box-drawn status cards (
╭─,│,├─,╰─) with ANSI stripping, safe output wrapping, and Unicode test pass-rate meters (████████████████████ 60/60). - Automatically parses and aggregates multi-suite test summaries across Vitest, Jest, Node built-in (
node --test), AVA, Cargo, and Pytest.
Security & Hardening
- Pre-Checkout TOCTOU Force-Push Protection: Verifies
git rev-parse pr-verifymatches the auditedhead_shabeforegit checkout --detach, hardened withcore.hooksPath=/dev/null,core.fsmonitor=false,submodule.recurse=false, andprotocol.file.allow=never. - Scoped Claude Code Permissions (
C-1):airgap setupadds onlymcp__airgap__*topermissions.allowwithout modifyingpermissions.defaultMode(explicit--claude-bypass-permissionsopt-in available). Strips leaked credentials from workspace MCP configs. - Fail-Closed PR Manifest Auditing (
H-1,M-1): Paginates up to 300 changed files, fails closed above 300 files or 10 manifests, percent-encodes manifest path segments, fails closed on fetch/size/encoding errors, and surfaces actionable GitHub rate-limit errors. - Workspace
.envIsolation (H-2): Untrusted repository.envfiles cannot override provider base URLs, container images, compute SKUs, regions, or models; process credentials (GMI_API_KEY,GH_TOKEN) always take precedence. - Package-Manager & Script Hardening (
H-3,M-2): Enforces--ignore-scripts --ignore-pnpmfilefor pnpm andYARN_ENABLE_SCRIPTS=falsefor Yarn, flags risky hook/config files (.pnpmfile.cjs,.yarnrc.yml,.npmrc,.cargo/config.toml,setup.py,build.rs), rejects NUL bytes in commands, and inserts--before targeted JS test paths. - Immediate Cleanup on Cancelled Calls (
H-4): Per-job TokioCancellationTokendrop guards immediately abort execution, delete/tasks/{id}, and release concurrency slots when an MCP caller cancels.
Quick Install
Linux / macOS:
curl -fsSL https://raw.githubusercontent.com/dhruvil-codes/airgap/main/scripts/install.sh | bashWindows (PowerShell):
irm https://raw.githubusercontent.com/dhruvil-codes/airgap/main/scripts/install.ps1 | iexFrom Source (Rust 1.89+):
cargo install --git https://github.com/dhruvil-codes/airgap --lockedSelf-Hosted Remote HTTP (Docker / Fly.io):
export AIRGAP_AUTH_KEY="$(openssl rand -hex 32)"
airgap serve --host 0.0.0.0 --port 8080 --require-byok --allowed-hosts mcp.airgap.devVerification & Checksums
- Offline Test Suite: 100 passing unit and integration tests across stdio MCP, Streamable HTTP / multi-tenant BYOK isolation, AgentBox/MaaS mocks, scanners, setup idempotency, doctor, and installers.
- Quality Gates:
cargo fmt --check,cargo clippy --locked --all-targets -- -D warnings, Rust 1.89 MSRV, and cross-platform release builds (Linux x86_64/ARM64, macOS x86_64/ARM64, Windows x86_64/ARM64). - All release archives ship with verified
.sha256checksums. SeeCHANGELOG.mdfor the complete list of changes.
airgap v0.1.0: Seamless MCP Sandboxing for AI Coding Agents
airgap v0.1.0: Seamless MCP Sandboxing for AI Coding Agents
airgap is a 100% Rust Model Context Protocol (MCP) server that isolates untrusted AI code execution inside ephemeral GMI AgentBox v2 microVMs. It prevents untrusted code from accessing local developer credentials, host sockets, and filesystem resources while preserving full editor ergonomics.
Highlights in v0.1.0
- Zero-Friction Setup: One-line interactive setup with
airgap setuporairgap initthat automatically detects and configures Cursor, Claude Desktop, and VS Code. - Universal Single-Line Installers:
- Linux / macOS:
curl -fsSL https://raw.githubusercontent.com/dhruvil-codes/airgap/main/scripts/install.sh | bash - Windows (PowerShell):
irm https://raw.githubusercontent.com/dhruvil-codes/airgap/main/scripts/install.ps1 | iex
- Linux / macOS:
- Managed Prompt Routing Rules: Injects
.cursorrulesandCLAUDE.mdto steer AI agents to route risky operations, untrusted bash, dependency executions, and scratch tests throughairgapremote sandbox tools. - Environment Diagnostics: Built-in
airgap doctorchecks platform capability, configuration integrity, API tokens, and sandbox connectivity. - Strict MCP Protocol Safety: Stdout is strictly reserved for MCP JSON-RPC protocol transport; diagnostic and operator messages go cleanly to stderr.
- 7 MCP Security & Sandbox Tools:
execute_sandbox: Run untrusted code in isolated AgentBox v2 microVMs with timeout control.verify_patch: Apply unified diffs safely inside remote sandboxes and run tests before merging.classify_prompt_injection: Inspect prompts for adversarial injection attempts via GMI MaaS models.redact_secrets: Detect and redact API keys, tokens, and credentials from payloads.review_manifest: Scan manifests (Cargo.toml,package.json,requirements.txt, etc.) for suspicious dependencies and typosquatting.get_runtime_config: Inspect runtime sandbox configurations, limits, and provider endpoints.audit_repository: Execute high-confidence defensive repository hygiene audits.
- Evidence Receipts: Cryptographic SHA-256 execution audit receipts for provenance and compliance.
- Cross-Platform Precompiled Binaries: Official SHA256-verified release archives for Linux (x86_64, aarch64), macOS (Apple Silicon, Intel), and Windows (x86_64, ARM64).