Agent-Blackbox MCP
Agent-Blackbox MCP is an AI-agent flight recorder, policy engine, and resilience toolkit for safely operating coding agents in a workspace.
Simulate commands before execution and predict affected files/system calls.
Block destructive commands, malicious network calls, prompt injections, and policy violations.
Scan and remediate hardcoded secrets into environment variables.
Create, list, preview, and roll back snapshots, including selective file rollback and Git shadow checkpoints.
Diagnose failures, auto-heal zombie processes, inspect/kill ports, clean workspace bloat, audit dependencies, and score workspace health.
Compress logs, track token/cost budgets, stop runaway loops with a circuit breaker, export signed audit reports, and generate reproducibility recipes.
Provide dashboard and Prometheus metrics for observability.
Emits standardized agent metrics that can be shipped to Datadog for observability and monitoring of agent sessions.
Extracts hardcoded secrets found by secret scanning into a local .env file, ensures .env is added to .gitignore, and rewrites the source value as process.env..
Creates native Git 'shadow' checkpoints of the workspace without moving HEAD or touching working branches, enabling zero-interruption restore points alongside snapshot-based rollback tools.
Publishes standardized metrics via its /metrics endpoint so they can be visualized and monitored in Grafana dashboards.
Provides standardized observability metrics through an OpenTelemetry-style metrics endpoint, suitable for external monitoring pipelines.
Exposes a Prometheus-compatible /metrics scrape endpoint from the built-in HTTP dashboard, publishing agent observability metrics for scraping and alerting.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Agent-Blackbox MCP diagnose why port 3000 is in use and fix it"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ก๏ธ Agent-Blackbox MCP (v2.0 Titanium)
The Enterprise AI Agent Flight Recorder, Policy Engine & Autonomous Resilience Suite
The premier enterprise standard for autonomous coding agents (Claude Desktop, Cursor, Antigravity, Windsurf): policy-as-code enforcement, predictive dry-run simulation, selective precision rollbacks, and OpenTelemetry / Prometheus metrics.
Lead Architect & Maintainer: Franca Roscilli (@francaroscillidev-gif)
๐ What's New in v2.0 Titanium
๐งช Predictive Dry-Run Simulation (
driftguard_dry_run_command): Evaluates potential shell impacts (predictingfs.unlink,mkdir, and affected file paths) before real execution.๐ฏ Selective Precision Rollback (
driftguard_selective_rollback): Surgically restores only specific damaged files from snapshots while preserving good modifications.๐ฆ Real-Time Policy Engine (
driftguard_policy_check): Enforces organization-wide rules viadriftguard.policy.json, protecting sensitive directories (.env,credentials/,production/) and restricting unauthorized commands.๐ OpenTelemetry & Prometheus Metrics Endpoint (
/metrics): Standardized observability metrics exposed directly by the internal HTTP dashboard for Datadog, Prometheus, and Grafana.๐ฆบ Transactional Auto-Healing (
driftguard_auto_heal): One-step resolution for zombie TCP ports and environment bottlenecks.๐งน Workspace Bloat Cleaner (
driftguard_clean_bloat): Automatically prunes cache directories and rogue debug logs.๐ก๏ธ Dependency Vulnerability Auditor (
driftguard_audit_dependencies): Scans package manifests for compromised and deprecated dependencies.๐ Prompt Injection Shield (
driftguard_prompt_shield): Neutralizes indirect prompt injections, DAN jailbreaks, and credential theft vectors.๐ฉบ Workspace Health Score Index (
driftguard_health_score): Real-time 0-100 diagnostic index.
Related MCP server: agentvc
๐ ๏ธ Complete MCP Toolset (24 Tools)
Tool Name | Parameters | Description |
|
| Predicts affected paths and system calls before execution. |
|
| Surgically restores only specified files, preserving good progress. |
|
| Enforces Policy-as-Code from |
|
| One-step autonomous resolution: terminates blocking zombies and applies fixes. |
|
| Prunes cache folders (.pytest_cache, .cache, .tmp) and orphan logs. |
| none | Audits dependencies for known compromised packages and deprecations. |
| none | Instant 0-100 health diagnostic covering secrets, ports, budgets, and snapshots. |
|
| Detects prompt injection, jailbreaks, and credential theft vectors. |
| none | Tracks session token usage, estimated USD costs, and threshold alerts. |
|
| Blocks malicious piped shell scripts ( |
| none | Generates a signed compliance report with integrity hash for clients/security. |
|
| Trips when consecutive errors exceed threshold; halts runaway loops. |
|
| Compresses noisy build/test logs, saving 85-90% token context. |
|
| Scans workspace/text for hardcoded API keys & database credentials. |
|
| Automatically extracts a raw secret into |
|
| Creates a zero-interruption shadow Git checkpoint. |
|
| Evaluates command risk before running; blocks destructive shell commands. |
|
| Displays line-by-line diff of pending changes before undoing. |
|
| Creates a workspace checkpoint before risky edits. |
| none | Lists all recorded checkpoints with timestamps and file counts. |
|
| Restores workspace to a checkpoint (defaults to latest). |
|
| Parses error output, finds root causes (ports, OOM, missing packages, env vars). |
|
| Inspects open TCP listeners, showing PID, command, and owner. |
|
| Gracefully or forcefully terminates stuck processes. |
๐ Instant Usage (via npx)
Run directly with npx:
๐ฃ Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"agent-blackbox": {
"command": "npx",
"args": ["-y", "agent-blackbox-mcp@2.0.0"]
}
}
}โก Cursor / Antigravity / Windsurf
Add via the MCP settings tab:
Command:
npxArgs:
-y agent-blackbox-mcp@2.0.0
๐ Web Dashboard & Prometheus Metrics
Run the dashboard alongside the server:
npx -y agent-blackbox-mcp --uiDashboard UI: http://localhost:4200
Prometheus Scrape Target: http://localhost:4200/metrics
๐งช Testing
Run the automated test suite:
npm test๐ฌ Contact, Support & Commercial Inquiries
Lead Developer & Maintainer: Franca Roscilli
Email: francaroscillidev@gmail.com
GitHub: @francaroscillidev-gif
Bug Reports & Feature Requests: Open an issue on GitHub
๐ License
Released under the Apache 2.0 License.
Copyright 2026 Franca Roscilli (francaroscillidev@gmail.com).
Available Tools
25 toolsdriftguard_audit_dependenciesB
Ispettore di sicurezza delle dipendenze: scansiona package.json per rilevare pacchetti compromessi noti, malware supply-chain o librerie deprecate.
Inputs: no named parameters.
driftguard_auto_healB
Auto-riparazione transazionale in un unico passaggio: diagnostica l'errore, killa i processi zombie e ripristina la disponibilitร delle risorse.
Inputs: errorLog (required).
driftguard_budget_statusA
Monitora la telemetria di spesa e token consumati della sessione corrente, avvisando prima di superare il budget limite.
Inputs: no named parameters.
driftguard_circuit_breaker_checkB
Registra l'esito di un comando ed evita loop infiniti di allucinazione, bloccando l'agente se ripete lo stesso errore per 3 volte consecutive.
Inputs: command (required), exitCode (required), errorSnippet.
driftguard_clean_bloatC
Spazzino intelligente del workspace: rimuove in sicurezza file temporanei, directory di cache (.pytest_cache, .cache, .tmp) e file di log orfani.
Inputs: dryRun.
driftguard_compress_logA
Comprime log di compilazione prolissi e stack trace (rimuovendo ANSI colors, boilerplate di node_modules e rumore interno), risparmiando fino all'85-90% di token di contesto.
Inputs: rawLog (required).
driftguard_create_snapshotA
Crea un checkpoint (snapshot) leggero dello stato del workspace prima di eseguire modifiche rischiose a file o configurazioni.
Inputs: label.
driftguard_diagnose_failureA
Analizza errori e stack trace per diagnosticare problemi di sistema (porte bloccate, OOM heap overflow, pacchetti Node/Python mancanti, env vars mancanti) con relativa soluzione prescrittiva.
Inputs: errorOutput (required).
driftguard_dry_run_commandA
Simulatore predittivo di esecuzione: predice le chiamate di sistema (unlink, mkdir, network) e i file impattati prima di lanciare il comando.
Inputs: command (required).
driftguard_export_audit_reportB
Genera e firma digitalmente un Report di Conformitร & Audit Trail completo (zero-secrets, checkpoint, modifiche effettuate e telemetria token).
Inputs: no named parameters.
driftguard_get_recipeC
Genera il Reproducibility Blueprint: un estratto pulito dei soli comandi riusciti ed essenziali.
Inputs: no named parameters.
driftguard_git_shadow_checkpointB
Crea un checkpoint ombra nativo Git (senza spostare l'HEAD dell'utente nรฉ sporcare i branch di lavoro attivi).
Inputs: label.
driftguard_health_scoreA
Calcola lo Score di Salute complessivo (0-100) del workspace: verifica segreti esposti, processi zombie, budget token e checkpoint pronti.
Inputs: no named parameters.
driftguard_inspect_portsA
Mostra i processi attivi in ascolto su una porta specifica o su tutte le porte TCP locali.
Inputs: port.
driftguard_kill_processC
Termina un processo di sistema identificato dal suo PID.
Inputs: pid (required), force.
driftguard_list_snapshotsA
Elenca tutti i checkpoint/snapshot creati nella sessione corrente.
Inputs: no named parameters.
driftguard_network_checkB
Ispeziona comandi shell con chiamate di rete (curl, wget, npm, pip) per bloccare script malevoli piped (| bash), IP grezzi o domini non verificati.
Inputs: command (required).
driftguard_policy_checkB
Verifica di conformitร Policy as Code aziendale: controlla se l'azione o il percorso violano le policy di driftguard.policy.json o protezioni di cartelle critiche.
Inputs: actionDescription (required), targetPath.
driftguard_preview_rollbackA
Mostra un diff dettagliato riga per riga di ciรฒ che cambierร , verrร ripristinato o cancellato PRIMA di eseguire il rollback effettivo.
Inputs: snapshotId.
driftguard_prompt_shieldB
Scansiona testi, file o issue esterne per rilevare e bloccare attacchi di Prompt Injection, tentativi di jailbreak o furto di credenziali.
Inputs: text (required).
driftguard_remediate_secretA
Sposta un segreto trovato in chiaro nel file .env locale, assicurando l'inserimento di .env in .gitignore e sostituendo il valore con process.env..
Inputs: finding (required).
driftguard_rollbackB
Esegue un rollback immediato (Undo) ripristinando il workspace allo snapshot precedente.
Inputs: snapshotId.
driftguard_safety_checkB
Valuta preventivamente il rischio di un comando shell prima di eseguirlo, bloccando comandi distruttivi (rm -rf /, drop database, esposizione chiavi, fork bomb).
Inputs: command (required).
driftguard_scan_secretsB
Scansiona il workspace o un testo per rilevare chiavi API hardcoded (OpenAI, Anthropic, Google, AWS, Stripe, GitHub, DB URI) per prevenire leak accidentali.
Inputs: textOnly.
driftguard_selective_rollbackB
Rollback di precisione: ripristina esclusivamente un elenco mirato di file specifici dallo snapshot, preservando i file sani creati nel frattempo.
Inputs: targetFiles (required), snapshotId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 25 tools
Most tools target a clearly distinct action (snapshot creation, secret scanning, port inspection, log compression), and overlapping families like rollback/selective_rollback/preview_rollback are differentiated by their descriptions. However, the pre-execution guard cluster (safety_check, dry_run_command, policy_check, network_check, circuit_breaker_check) and the diagnostics pair (diagnose_failure vs auto_heal) share enough surface that an agent could pick the wrong one without careful reading.
All 25 tools use a consistent driftguard_ prefix and snake_case, making the family immediately recognizable. The verb/noun ordering is not uniform, though: create_snapshot and kill_process are verb_noun, while safety_check, health_score, budget_status, and prompt_shield are noun-first or noun-only, which slightly breaks the predictable pattern.
At 25 tools this is at the upper edge of what an agent can reasonably hold in context, and the domain (workspace safety, rollback, security scanning, diagnostics, telemetry) is broad enough that most tools earn a place. Still, the set is heavy and several guard-style checks could plausibly be merged or exposed as options on a single preflight tool.
The lifecycle is well covered: snapshot creation, listing, preview, full and selective rollback, plus policy, security, diagnostics, and audit reporting, so no obvious dead ends for the core drift-guard workflow. Minor gaps exist, such as no tool to delete/prune snapshots or list active policies, which an agent would have to work around.
Maintenance
Related MCP Connectors
Persistent cloud workspaces for AI agents: run commands, edit files, use git and a browser.
Shared control plane for AI coding agents โ tasks, memory, decisions, file locks. 12 tools.
Create, run and manage Homemade dev VMs and projects from your AI agent.
Coding agents build full-stack apps in persistent workspaces and share them by link.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to turn local projects into persistent workspaces, providing file editing, command execution, Git integration, and cross-session history management.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to checkpoint workspace state, branch parallel attempts, inspect diffs, and roll back to known-good states mid-task through MCP tools, with automatic safety checkpoints to prevent data loss.14 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to work in a persistent, isolated Linux workspace with file management, Bash execution, SSH/SFTP access, and durable storage while keeping workloads contained from the host and private networks.MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI coding agents to run shell commands, spawn persistent background tasks, and read/write files inside isolated remote container sandboxes on a VPS. It also provides project workspace listing, task attach/kill controls, and a searchable knowledge graph for memory continuity across sessions.-