Heddle logo

Heddle

Content-addressed contracts, dependency blast-radius analysis, and cached verification for agent-driven code regeneration.

Install Heddle

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": {
    "heddle": {
      "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 heddle -- 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

The Heddle MCP server exposes content-addressed software contracts and verification results to agents over stdio. It serves compact context packets, tracks dependency changes, identifies affected dependents, and reruns tests only when verification cache keys change. Use it for contract-first projects where agents regenerate implementations and need precise invalidation and test status. The project was previously distributed as heddle-mcp and is now named hashloom.

Use cases

  • Generate compact context for a contract-backed software unit
  • Identify direct or transitive dependents after a contract change
  • Reuse passing verification results when cache keys are unchanged
  • Review inferred contracts before enabling strict provenance

Key features

  • Content-addressed YAML contracts
  • Compact contract and dependency context packets
  • Direct and transitive blast-radius queries
  • Cached verification keyed to code, tests, dependencies, and toolchain
  • Inferred-contract provenance flags
  • Verification status and cache metrics

Tools5

What Heddle 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 Heddle works

What the Heddle MCP server does

The Heddle MCP server gives an agent a contract-centered view of a software project instead of requiring it to reread complete specification, source, and test files. Each unit is represented by a YAML contract in contracts/, with a signature, dependencies, invariants, examples, test node IDs, and an implementation reference.

Contracts are content-addressed. Their hashes let the system determine whether a unit or one of its dependencies has changed. Implementations are treated as replaceable code behind a more durable contract, which fits workflows where an agent regenerates code while preserving reviewed interfaces.

The Heddle MCP server also records whether contracts were inferred from existing code or reviewed. Inferred contracts are reported in dependency and verification results; strict provenance mode can make verification refuse units that rely on them.

How it works

Run the server from a project containing .hashloom/ and contracts/. The server finds the project by walking upward from its working directory until it reaches the nearest .hashloom/ directory. It communicates through the stdio transport.

A contract hash is calculated from a canonical representation of contract content. Implementation hashes use a normalized abstract syntax tree, so formatting and comment-only edits do not invalidate verification. A verification cache key combines the contract, implementation, test-source, toolchain, and transitive dependency hashes. A cache miss runs the relevant tests; a matching key can return the previous result.

Dependency relationships also support direct or transitive blast-radius queries. When a contract changes, dependents can be identified by name and hash rather than inferred from file conventions. Context retrieval combines the target contract with dependency signatures and callers in a small packet.

Setup and configuration

Install the package with pip install hashloom, or install it directly from the repository. In a project directory, run hashloom init to create .hashloom/ and contracts/, then run hashloom index to build the store.

Claude Code can register the stdio server with claude mcp add hashloom -- hashloom serve. The repository also documents a getting-started workflow for building and reviewing contracts with an agent.

Strict provenance is enabled in .hashloom/config.json with {"strict_provenance": true}. Without that setting, inferred contracts are flagged but do not generally block reads, writes, or verification.

Tools and capabilities

The Heddle MCP server exposes these MCP tools:

  • get_contract returns a roughly 300-token packet containing a contract, its hash, one-line dependency signatures, and callers.
  • put_contract validates and writes contracts/<name>.yaml, then reports the new hash, a semantic change summary, and invalidated dependents.
  • get_dependents finds direct or transitive dependents and returns their names and hashes, marking inferred contracts.
  • verify reports cached-pass, pass, or fail for each unit and an overall ok gate. With radius=true, it verifies each requested name's full blast radius. Failures are summarized in up to 40 tokens rather than returning a traceback.
  • status reports dirty contracts, stale verification results, cache hit rate, the resolved verification interpreter, and cumulative token counters.

Limitations and notes

Contracts are intended for stable seams that other units depend on, not every internal implementation detail. Invariants document intended behavior but are not themselves machine-enforced; tests provide the actual verification check. A wrong contract can therefore mislead later regeneration.

The documented benchmark measures token reduction on example projects, but results vary with dependency depth and project structure. The material does not establish support for arbitrary languages beyond the listed example projects in Python, Go, TypeScript, Java, and C#.

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 Heddle

Heddle is an MCP server that connects an agent to a hashloom project’s content-addressed software contracts and verification cache. Its main tools retrieve compact contract context, write and validate contracts, find direct or transitive dependents, verify units with cached test results, and report project status.

Install it with `pip install hashloom`, or install from the Git repository. In a project, run `hashloom init` and then `hashloom index` to create the project metadata and build the contract store.

Add it as a stdio server with `claude mcp add hashloom -- hashloom serve`. Run the command from the project context so the server can locate the nearest `.hashloom/` directory by walking upward from its working directory.

Yes, Heddle caches verification results using contract, implementation, test-source, toolchain, and transitive dependency hashes. Tests run on cache misses, while unchanged verification keys can return cached passes.

Heddle uses the dependency names and hashes recorded for contracts to return direct or transitive dependents. The `get_dependents` tool reports names and hashes, while `put_contract` returns invalidated dependents after a contract update.

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