
Blast Scope
io.github.Atharva-JayappaPublished by GitHub account Atharva-Jayappav0.6.1Updated Oct 24, 2026
Contextual blast-radius scoring for shell commands an AI agent is about to run
The publisher's own server: Scope (AEC) - Preview
Overview
Scores shell commands for destructive blast radius before an AI agent runs them, returning severity, evidence, and undo snapshots.
- What you can do
- Blast Scope is a consequence engine for shell commands. It parses a command, triages whether it is a destructive candidate, then runs safe read-only probes (git status/reflog, docker inspect, lockfile reads, SQLite SELECT counts) to estimate what the command would actually affect. It returns a score, severity band, rationale, evidence, recoverability, affected dependency-graph nodes, and a per-segment chain breakdown. Tools include assess_command, index_project, list_snapshots, and restore_snapshot; a PreToolUse hook can advise and snapshot critical commands.
- When to use it
- Use it when an agent or developer runs shell commands that can delete files, rewrite git history, remove Docker volumes, uninstall packages, or drop SQL tables, and you want an advisory risk score before execution. It is most useful in projects with a dependency graph where the same command can be low or critical depending on context.
- Requirements
- Runs locally over stdio, typically via uvx blast-scope or a pinned checkout with uv. No authentication, environment variables, or headers are declared. Some probes need local tooling or state (git repository, Docker daemon, SQLite file, lockfiles); when a probe cannot run it falls back to a labeled estimate.
Installation
In SourceWeft
- Open Blast Scope in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Blast Scope
A consequence engine for shell commands. Blast Scope scores what a command would actually do — before an AI agent (or you) runs it. It doesn't pattern-match syntax into a blocklist; it figures out the command's real target, observes that target with a safe, read-only probe, and returns a structured risk score with evidence.
The whole point is contextual blast radius. The same command gets a completely different score depending on what it would actually hit:
Two commands can be byte-identical and score four bands apart. That gap is the product.
Not a blocklist. Not a replacement for Shellfirm. Not a syscall monitor. It scores structural consequence — advisory, never blocking — and for the rare critical command it captures an undo snapshot first.
How it works
A command flows through a cheap funnel: almost everything is recognized as non-destructive in microseconds and exits silent. Only a flagged destructive candidate pays for a probe.
The eligibility filter is the design boundary. A command class earns a live probe only when both hold: (1) its impact is observable by a strictly side-effect-free read (HTTP-GET sense — never mutate state to assess state), and (2) its undo story is well-known enough to encode in a static table. When a probe can't run here and now (no docker daemon, no DB driver, no creds), the tool degrades to a labeled estimate — it never guesses silently, and it never blocks.
See docs/heuristics.md for the per-class tables, the exact filesystem formula, and calibration.
The five command classes
New classes drop in behind one protocol (triage / assess)
in src/blast_scope/classes/; each class confines
assess to strictly side-effect-free reads.
Status
Calibrated multi-class guardrail with command resolution and a precise dependency graph.
Calibration. Two harnesses, both run-it-yourself:
- In-repo corpus (
tests/fixtures/eval_corpus.jsonl, 58 cases spanning every recoverability category, git working-tree state, infra/config,rm -rf .git, a graph-indexed central module, the git/docker/pip/SQL classes, and the resolution layer — unset-var collapses, glob/env-var targets,sh -cpayloads, npm pre-hooks, opaque wrappers, mass destruction of tracked source) — 58/58 exact severity, gate F1 1.00, pinned bytests/test_eval.pywith headroom so changes can't silently regress. - SABER — 716 real coding-agent
workspaces. Against ~1725 safe commands, blast-scope's false-positive rate is
0.58%; on its core competency (
data_destruction) it catches 82.4% of injected attacks on realistic workspaces — on the fast hook path, no graph required, thanks to command resolution (env/glob binding + script transparency). Wrapper transparency also liftscode_tamperingfrom ~0% to 50%. The per-category recall is deliberately uneven, and the table says so: blast-scope scores destructive consequence — filesystem/data loss plus git/docker/pip/SQL state. Network exfiltration and persistence are a different threat model, out of scope by design — not an unfinished corner. That's the boundary, drawn on purpose. Seebench/.
Installation
The fastest path for any MCP client is zero-install via uvx (no clone, no venv):
Claude Code users — one line wires up both the MCP tools and the advisory hook:
For development, or to pin a checkout:
Usage
As an MCP server
Add to your MCP client config (e.g. Claude Code settings.json):
Tools exposed:
As a hook (tiered advice + auto-snapshot)
Intercept Bash commands before they run — advisory, never blocking. Volume scales with stakes: silent on low/medium, advise on high, advise + snapshot on critical. The snapshot skips what's already recoverable (git-clean, regenerable) and warns rather than tars anything over a hard size cap, so the undo net stays fast and trustworthy.
The hooks also keep the dependency graph alive on their own — no MCP call
needed: SessionStart cold-builds it in a detached background process, and
every PreToolUse refreshes it incrementally before scoring (a ~20 ms stat
sweep when nothing changed), so verdicts track the current tree even after a
burst of agent edits. Add to .claude/settings.json:
Full details and the undo flow: docs/hook.md.
Example output
A filesystem command, scored against the dependency graph:
A command class that couldn't probe — note the labeled estimate (no Postgres driver, server possibly remote, so the tool refuses to guess silently):
Development
Project structure
Roadmap
- Lift recall on the destruction classes (glob targets over tracked files,
find-based deletion variants) — the SABER per-category table is the worklist. - Optional live probes for Postgres/MySQL (in-process, read-only) once a driver policy is settled — today those engines degrade to labeled estimates.
- PowerShell-shell awareness in the hook path (the MCP tool already supports it).
- Optional richer interception modes beyond advisory.
See CLAUDE.md for the full spec, contracts, and design rules.
License
Apache 2.0 (versions ≤ 0.3.1 were MIT). The vendored code-review-graph sources remain MIT under their upstream notice — see NOTICE.
Source: README.md at commit c73f4b5
Tools
0Version history
1- v0.6.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Scope integrations

Scope (AEC) - Preview
bid.scopeOfficial publisher
Preview Scope (AEC) server for checking a subcontractor procurement layer's status, listing planned categories, joining a waitlist, and rescheduling awarded…

Scope (Legal)
bid.scopeOfficial publisher
Scope (Legal) lets an AI assistant browse legal-services professionals, dispatch matters, and manage the resulting engagements through Scope.bid.

Scope (Claims) - Preview
bid.scopeOfficial publisher
Preview Scope server for claims-side professional procurement: check V2 status and categories, join a waitlist, and reschedule awarded claims projects.

MintScope — NFT collection analysis
Published by GitHub account ert1981
MintScope — NFT collection analysis's hosted MCP server; no sign-in required; Streamable HTTP; 2 tools.

FedScope MCP
Published by GitHub account CYAN-ECLIPSE-TECHNOLOGIES-LLC
FedScope MCP lets an assistant search federal and state contracting opportunities, with fit and newcomer scoring and plain-language summaries.