Hashloom logo

Hashloom

Hashloom caches verification and maps contract dependencies to reduce agent context and rerun only affected tests.

Install Hashloom

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "hashloom": {
      "command": "uvx",
      "args": [
        "hashloom",
        "serve"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio hashloom -- uvx hashloom serve

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

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx hashloom serve

Process exited before answering initialize.

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

Hashloom MCP server exposes content-addressed software contracts, dependency relationships, cached verification, and project status through MCP tools. It reads YAML contracts from a project, hashes contracts and implementations, and uses dependency and test changes to decide when verification can be reused. The stdio server finds the project by walking upward from its working directory to the nearest `.hashloom/` directory. Reach for it when agents repeatedly regenerate code and need compact context, precise invalidation, or cached test results.

Use cases

  • Retrieve compact context for regenerating a software unit
  • Trace the transitive impact of a contract change
  • Reuse verification results when dependencies remain unchanged
  • Review inferred contracts before enabling strict verification

Key features

  • Content-addressed contract hashing
  • Cached verification keyed by implementation and dependencies
  • Direct and transitive dependency analysis
  • Compact contract context packets
  • Inferred-contract provenance flags
  • Project status and cache metrics

Tools5

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

Self-reported~191 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.

15/15 checks healthy over the last 79d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · hashloom (PyPI)

Adoption & maintenance

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

GitHub stars3Stargazers on the source repository.
Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed5Callable tools this server registers over MCP.

How Hashloom works

What Hashloom MCP server does

Hashloom MCP server treats software units as YAML contracts rather than relying on source files as the primary durable description. Each contract can define a signature, dependencies, invariants, examples, pytest node IDs, and the implementation location. The implementation remains replaceable, while the contract provides a stable interface for agents and dependency analysis.

The server exposes four main areas of operation. get_contract returns a compact packet containing a contract, its hash, dependency signatures, and callers. put_contract validates and writes a contract, reports its new hash and semantic changes, and identifies dependent contracts invalidated by the update. get_dependents reports direct or transitive impact with names and hashes. verify checks units using cached results when possible and returns per-unit states such as cached-pass, pass, or fail, along with a top-level success flag. status reports dirty contracts, stale verification, cache statistics, the selected verification interpreter, and cumulative token counts.

How it works

Contracts are stored under contracts/, with subdirectories acting as namespaces. Their canonical content is hashed with normalized keys and whitespace; comments and selected operational fields do not affect the contract hash. Implementations are hashed from normalized ASTs, so formatting, comments, and docstring changes do not invalidate that part of the cache.

A verification result is keyed by the contract, implementation, test-source, toolchain identity, and transitive dependency contract hashes. A changed contract, implementation, test source, declared dependency digest, or toolchain identity causes a verification miss. Tests run only for misses. Failure responses contain a short assertion summary rather than a traceback.

Dependency changes can be examined as a direct or transitive blast radius. Passing radius=true to verification expands each requested unit to that radius. Contracts marked status: inferred are surfaced in dependency and verification results. With strict provenance enabled, verification refuses units whose closure contains inferred contracts until those contracts are reviewed.

Setup and configuration

Install the package with pip install hashloom, or install it from the Git repository. In a project directory, run hashloom init to create .hashloom/ and contracts/, then run hashloom index to build the store. Start the MCP server with hashloom serve over stdio.

Claude Code can register it with claude mcp add hashloom -- hashloom serve. The process resolves its project by walking upward from the working directory until it finds .hashloom/. Strict provenance is configured in .hashloom/config.json with {"strict_provenance": true}; without that setting, inferred contracts are flagged but do not normally block reads, writes, or verification.

Tools and capabilities

  • Retrieve compact regeneration context with get_contract.
  • Write validated contracts and inspect semantic changes with put_contract.
  • Find direct or transitive dependents with get_dependents.
  • Run or reuse verification with verify, including optional blast-radius expansion.
  • Inspect dirty state, stale results, cache hit rate, interpreter selection, and token counters with status.
  • Use namespaced contracts such as billing/invoice when matching files exist below contracts/.

Limitations and notes

Contract invariants are documentation, while tests provide the actual verification check. A contract should represent a stable interface that other units depend on, and inferred contracts may require human review before strict verification is allowed.

The documented setup uses Python packaging and pytest node IDs, while toolchain identity can also account for Go, Node, Java, or .NET projects. The server uses stdio transport in the documented quickstart.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Hashloom

Hashloom is an MCP server that connects an agent to a local project’s YAML contracts, implementations, dependencies, and tests. Its main tools are get_contract, put_contract, get_dependents, verify, and status, providing compact context, change impact, cached verification results, and project state over stdio.

Install it with `pip install hashloom`, then run `hashloom init` and `hashloom index` inside the project. Start the stdio server with `hashloom serve`; installation from the Git repository is also documented.

Add it with `claude mcp add hashloom -- hashloom serve`. Claude Code starts the stdio process, which locates the project by walking upward from its working directory to the nearest `.hashloom/` directory.

Hashloom caches a result using contract, implementation, test-source, toolchain, and transitive dependency hashes. It reruns tests when any of those inputs change and returns `cached-pass` when an existing result remains valid.

Yes, inferred contracts are supported and flagged in dependency and verification results. If strict provenance is enabled in `.hashloom/config.json`, verification refuses units whose dependency closure contains an inferred contract until it is reviewed.

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 PreviewHashloom AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hashloom?style=directory)](https://allmcps.com/mcp/hashloom)
HTML Embed
<a href="https://allmcps.com/mcp/hashloom"><img src="https://allmcps.com/api/badge/hashloom?style=directory" alt="Hashloom on AllMCPs" /></a>