Agentsnap logo

Agentsnap

Snapshot tests for AI tool-call traces: diff, validate, and catch silent regressions.

Install Agentsnap

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "agentsnap": {
      "command": "npx",
      "args": [
        "-y",
        "@mukundakatta/agentsnap-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio agentsnap -- npx -y @mukundakatta/agentsnap-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @mukundakatta/agentsnap-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Tools3

What Agentsnap lets your agent do. Expand a tool for its parameters.

Self-reported~64 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

22/26 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · @mukundakatta/agentsnap-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads212Package downloads in the last 30 days.
Last commit4mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed3Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

agentsnap-mcp

npm tests mcp

An MCP server that gives AI assistants the ability to inspect, normalize, diff, and validate agent tool-call traces.

Built on top of @mukundakatta/agentsnap. Works with Claude Desktop, Cursor, Cline, Windsurf, Zed, and any other MCP client.

Tools exposed

normalize_trace

Coerce a raw tool-call trace into the canonical agentsnap Trace shape and compute a deterministic SHA-256 fingerprint hash. Use this to compare runs cheaply or feed downstream diff tools.

config.json
{
  "trace": [
    { "name": "search", "args": { "q": "cats" } },
    { "name": "fetch",  "args": "https://example.com" }
  ],
  "input": "find cats",
  "model": "claude-opus-4-7"
}

→

config.json
{
  "normalized": {
    "version": 1,
    "model": "claude-opus-4-7",
    "input": "find cats",
    "output": null,
    "tools": [
      { "name": "search", "args": { "q": "cats" } },
      { "name": "fetch",  "args": "https://example.com" }
    ],
    "error": null,
    "fingerprint": { "node": "v22.0.0", "agentsnap": "0.1.0" }
  },
  "hash": "sha256:..."
}

diff_traces

Diff a baseline trace against a current run. Returns a uniform additions / removals / changes vocabulary plus the agentsnap status code (PASSED, OUTPUT_DRIFT, TOOLS_REORDERED, TOOLS_CHANGED, REGRESSION). Use ignore_paths to silence noisy fields before classification.

config.json
{
  "baseline": { "version": 1, "tools": [{ "name": "search", "args": { "q": "cats" }, "result_hash": "sha256:aaa" }], "error": null, "fingerprint": {...} },
  "current":  { "version": 1, "tools": [{ "name": "search", "args": { "q": "cats" }, "result_hash": "sha256:bbb" }], "error": null, "fingerprint": {...} },
  "ignore_paths": ["tools[].result_hash"]
}

→ { "same": true, "status": "PASSED", "additions": [], "removals": [], "changes": [] }

validate_snapshot

Sanity-check a snapshot against the agentsnap Trace schema. Verifies required fields, tool-entry shape, and surfaces actionable issues. Returns valid=true on success or a list of human-readable problems.

Install

Claude Desktop

Add to claude_desktop_config.json:

config.json
{
  "mcpServers": {
    "agentsnap": {
      "command": "npx",
      "args": ["-y", "@mukundakatta/agentsnap-mcp"]
    }
  }
}

Cursor / Cline / Windsurf / Zed

Same shape, in the appropriate mcp.json for your client. Most clients auto-discover via npx -y @mukundakatta/agentsnap-mcp.

Local install

Terminal
npm install -g @mukundakatta/agentsnap-mcp
mcp-agentsnap        # listens on stdio

Why this matters

Agents that call tools drift silently. A tool argument changes shape, a nondeterministic result flips a downstream branch, an extra tool sneaks in between releases — none of it shows up in unit tests. agentsnap captures the trace; this MCP server lets your assistant inspect and reason about traces directly: normalize one, diff two, or validate a saved snapshot, all from the model's tool-use surface.

License

MIT.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agentsnap

agentsnap is an MCP server that lets AI assistants inspect, normalize, diff, and validate agent tool-call traces. It converts raw traces into a canonical shape, computes deterministic SHA-256 fingerprints, compares baseline and current runs, and checks snapshots against the agentsnap Trace schema to help catch silent regressions.

The server provides normalize_trace, diff_traces, and validate_snapshot. normalize_trace canonicalizes a raw trace and computes a fingerprint hash; diff_traces compares baseline and current traces; validate_snapshot checks required fields, tool-entry shape, and other Trace schema requirements.

Use diff_traces with a baseline trace and a current trace. The tool returns additions, removals, changes, a same indicator, and an agentsnap status code such as PASSED, OUTPUT_DRIFT, TOOLS_REORDERED, TOOLS_CHANGED, or REGRESSION. You can provide ignore_paths to exclude noisy fields from classification.

Use normalize_trace with the raw trace and optional input and model values. It coerces the trace into the canonical agentsnap Trace shape and returns the normalized trace together with a deterministic SHA-256 hash for comparing runs or passing data to diff tools.

Run the server through npx with @mukundakatta/agentsnap-mcp in your MCP client configuration. Claude Desktop uses a command of npx with args ["-y", "@mukundakatta/agentsnap-mcp"], and Cursor, Cline, Windsurf, and Zed use the same configuration shape in their appropriate mcp.json files.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgentsnap AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agentsnap?style=directory)](https://allmcps.com/mcp/agentsnap)
HTML Embed
<a href="https://allmcps.com/mcp/agentsnap"><img src="https://allmcps.com/api/badge/agentsnap?style=directory" alt="Agentsnap on AllMCPs" /></a>