Skip to main content
Glama

dsh-rep-mcp

Verify a sealed REP record from any MCP client — without the harness.

rep_verify re-hashes the manifest seal and the file, rep_inspect lists every claim verdict, rep_list scans a directory: three read-only tools over newline-delimited JSON-RPC on stdio. No network, no write path, no DSH runtime.

简体中文 · Español · Português · हिन्दी

License Node


Tools

Tool

Input

Output

rep_verify

path, optional objectsDir

manifest seal, file hash, snapshot checks, anchor quote checks, issues

rep_inspect

path

record id, counts, manifest summary, every claim's verdict

rep_list

dir (default .)

*.rep.json files (cap 200) with id/counts

All three are read-only. There is no network access and no write path.

Structure: transport → verify → report; ok and issues[] are the result, and snapshot bytes are not_checked unless objectsDir is supplied. The token labels inside the diagram are the real tool and field names, so the same picture serves all five languages.

Related MCP server: Hive Radar MCP

Run it

# from a checkout
node lib/bin.js

# or from npm (after publish)
npx -y dsh-rep-mcp

The transport is MCP over stdio: one JSON-RPC message per line.

Use it from DSH

DSH's MCP panel accepts any stdio server. Add:

{
  "mcpServers": {
    "rep": {
      "command": "npx",
      "args": ["-y", "dsh-rep-mcp"]
    }
  }
}

Then ask the agent to rep_verify the report it just produced. The same server works in any other MCP client (editor, desktop app, CI wrapper).

Example

{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"rep_verify","arguments":{"path":"report.rep.json","objectsDir":".research-rep/objects"}}}

rep_verify without objectsDir still checks the manifest seal and anchor quotes; snapshot bytes are reported as not checked.

What it does not do

  • No writing, sealing or repairing. It verifies and reports.

  • No network. No Crossref, no Zotero, no telemetry.

  • No semantic checking. Claim support is dsh-claim-check; this server reports what the record says.

  • No DSH plugin row. It is a standard MCP server; DSH consumes it through the MCP panel.

Development

dsh-rep-mcp gates: a clean build, then vitest verifying the seal of the committed sealed fixture and the stdio loop, then the package check confirming the three read-only tools

Animated: the repository's own gate after pnpm install --ignore-scripts && pnpm run build — pnpm test --reporter=verbose and pnpm run verify:package (re-run 2026-11-21). The seal test drives test/fixtures/valid-sealed.rep.json through the same handler the MCP server exposes.

pnpm install
pnpm run check:lockfile
pnpm run typecheck
pnpm test
pnpm run build
pnpm run verify:package

The lockfile is committed exactly as pnpm install --lockfile-only writes it (two documents: pnpm's own package-manager document, then the project document), so a local install does not rewrite it. pnpm run check:lockfile fails when the lockfile drifts from package.json or loses that form.

Tests drive the handler directly and also exercise the newline-delimited stdio loop; the fixture is a sealed REP record from dsh-research-core.

License

Apache-2.0. See LICENSE.

Available Tools

3 tools
rep_inspectB

Summarize a REP v1 record: ids, counts, claim verdicts and manifest summary. Read-only.

Inputs: path (required).

rep_listA

List *.rep.json records in one directory (cap 200), newest name order. Read-only.

Inputs: dir.

rep_verifyA

Verify a REP v1 record: manifest seal, snapshot hashes and anchor quotes. Read-only.

Inputs: path (required), objectsDir.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 3 tools

    Disambiguation4/5

    The three tools have mostly distinct purposes: listing records, inspecting summaries, and verifying integrity. However, rep_verify and rep_inspect both read and analyze a REP record, so an agent may briefly hesitate between them despite the clear description differences.

    Naming Consistency5/5

    All tools use the same rep_verb convention: rep_verify, rep_inspect, and rep_list. The naming is predictable and easy to scan.

    Tool Count5/5

    Three tools are well-scoped for a read-only REP record inspection server. Each tool maps to a distinct operation: listing, summarizing, and verifying.

    Completeness3/5

    The core read-only audit workflow is covered by list, inspect, and verify. However, there is no tool to retrieve the raw record or filter/search across records, which may limit agents that need deeper access than summaries and verification results.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      F
      maintenance
      Read-only ProofRelay MCP verifier for non-confidential evidence bundles. Exposes 22 public-safe tools, 11 resources, and 11 prompts for bundle integrity checks, receipt-chain review, checkpoint recommendations, MCP risk metadata review, and real-estate closing proof-pack readiness.
      5
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides read-only MCP tools to list archived snapshots, retrieve methodology and proof bundles, and verify supplied evidence bundles.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides read-only access to VeriLock document metadata and cryptographic evidence, enabling clients to list, retrieve, verify, and audit documents through the Model Context Protocol.
      8
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables verification of MCP tool definitions against a signed public transparency log, and querying of historical changes and server metadata.
      3
      499 PyPI
      MIT