Skip to main content
Glama

๐Ÿ›ก๏ธ Agent-Blackbox MCP (v2.0 Titanium)

The Enterprise AI Agent Flight Recorder, Policy Engine & Autonomous Resilience Suite

License: Apache 2.0 Node.js Model Context Protocol npm version

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 (predicting fs.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 via driftguard.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

driftguard_dry_run_command

command: string

Predicts affected paths and system calls before execution.

driftguard_selective_rollback

targetFiles: string[], snapshotId?: string

Surgically restores only specified files, preserving good progress.

driftguard_policy_check

actionDescription: string, targetPath?: string

Enforces Policy-as-Code from driftguard.policy.json.

driftguard_auto_heal

errorLog: string

One-step autonomous resolution: terminates blocking zombies and applies fixes.

driftguard_clean_bloat

dryRun?: boolean

Prunes cache folders (.pytest_cache, .cache, .tmp) and orphan logs.

driftguard_audit_dependencies

none

Audits dependencies for known compromised packages and deprecations.

driftguard_health_score

none

Instant 0-100 health diagnostic covering secrets, ports, budgets, and snapshots.

driftguard_prompt_shield

text: string

Detects prompt injection, jailbreaks, and credential theft vectors.

driftguard_budget_status

none

Tracks session token usage, estimated USD costs, and threshold alerts.

driftguard_network_check

command: string

Blocks malicious piped shell scripts (| bash), raw IPs, and unverified domains.

driftguard_export_audit_report

none

Generates a signed compliance report with integrity hash for clients/security.

driftguard_circuit_breaker_check

command: string, exitCode: number

Trips when consecutive errors exceed threshold; halts runaway loops.

driftguard_compress_log

rawLog: string

Compresses noisy build/test logs, saving 85-90% token context.

driftguard_scan_secrets

textOnly?: string

Scans workspace/text for hardcoded API keys & database credentials.

driftguard_remediate_secret

finding: object

Automatically extracts a raw secret into .env and replaces it with process.env.

driftguard_git_shadow_checkpoint

label?: string

Creates a zero-interruption shadow Git checkpoint.

driftguard_safety_check

command: string

Evaluates command risk before running; blocks destructive shell commands.

driftguard_preview_rollback

snapshotId?: string

Displays line-by-line diff of pending changes before undoing.

driftguard_create_snapshot

label?: string

Creates a workspace checkpoint before risky edits.

driftguard_list_snapshots

none

Lists all recorded checkpoints with timestamps and file counts.

driftguard_rollback

snapshotId?: string

Restores workspace to a checkpoint (defaults to latest).

driftguard_diagnose_failure

errorOutput: string

Parses error output, finds root causes (ports, OOM, missing packages, env vars).

driftguard_inspect_ports

port?: number

Inspects open TCP listeners, showing PID, command, and owner.

driftguard_kill_process

pid: number, force?: boolean

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: npx

  • Args: -y agent-blackbox-mcp@2.0.0

๐Ÿ“Š Web Dashboard & Prometheus Metrics

Run the dashboard alongside the server:

npx -y agent-blackbox-mcp --ui

๐Ÿงช Testing

Run the automated test suite:

npm test

๐Ÿ“ฌ Contact, Support & Commercial Inquiries


๐Ÿ“„ License

Released under the Apache 2.0 License.
Copyright 2026 Franca Roscilli (francaroscillidev@gmail.com).

Available Tools

25 tools
driftguard_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

    B3.4/5.0

    Scored across 25 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count3/5

    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.

    Completeness4/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to turn local projects into persistent workspaces, providing file editing, command execution, Git integration, and cross-session history management.
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      -