npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@stateofintent/mcp-server

v0.3.0

Published

MCP server exposing the Epistemic Resonance Protocol to autonomous agents

Readme

@stateofintent/mcp-server

Why libsodium-wrappers is pinned to an exact version. @holochain/client depends on libsodium-wrappers@^0.7.13, and 0.7.16 ships an ESM build whose dist/modules-esm/libsodium-wrappers.mjs imports a sibling libsodium.mjs that is not in the package. Any fresh install therefore resolved to 0.7.16 and crashed on first import with ERR_MODULE_NOT_FOUND — which is exactly what 0.1.0 of this package did. 0.7.13 has no modules-esm directory at all, so Node uses the working CJS build. The pin is exact rather than a range because ~0.7.13 still admits 0.7.16.

The Epistemic Resonance Protocol as MCP tools, so an autonomous agent can find and use it without anyone writing an integration first.

Why this exists alongside the SDK

agent-sdk/ is a client library, and an agent still has to be programmed against it by a person who already knows this protocol exists. For an MCP-capable model the tool schemas are the documentation: it discovers the vocabulary, the required fields and the constraints by listing tools. That is the difference between a library someone can adopt and a protocol an agent can find.

This is a thin wrapper on purpose. Every tool maps to one SDK call, and it adds no capability the protocol does not have.

Running it

cd agent-sdk  && npm install && npm run build
cd ../mcp-server && npm install --no-save ../agent-sdk && npm run build

The second line is not the usual npm install, and the reason has changed since it was first written. This package depends on @stateofintent/agent-sdk@^0.1.2 — the correct declaration for a published package, and the one thing that must NOT be file:../agent-sdk, since a relative path cannot resolve on anyone else's machine. That note originally said the version simply did not exist to fetch yet, so a plain npm install returned a 404, and that once the SDK was published this whole paragraph could go. The SDK is published now, and the paragraph gets longer rather than shorter, because a plain npm install no longer fails — it succeeds, and gives you the wrong SDK. Installing the local path with --no-save satisfies the dependency without rewriting package.json, so the published form stays correct while what you actually run is the tree in front of you. node scripts/check-packages.mjs from the repo root fails if the file: form ever comes back.

Two things followed from that. The first still holds; the second was a defect and is now fixed.

The first is about what a test is testing. npm install on its own resolves ^0.1.2 from the registry and installs a copy of the SDK that is not this checkout, so a change to agent-sdk/src would be verified against code it did not touch — and pass. .github/workflows/conductor.yml installs the local path for exactly this reason and then asserts that what landed is a symlink. This reason is now the only one, and it is unaffected by anything being republished: the registry's copy working correctly makes a plain install more misleading here, not less, because it removes the loud failure that used to reveal the mistake.

The second was about the registry, and is fixed as of 2026-09-12: 0.1.2 of both packages is published and latest, and an install by version into an empty project outside this checkout writes a claim to a real conductor and reads it back through a tool call. What follows is the account of what was wrong, kept because a package that passes every packaging check and still fails its first zome call is the thing this directory's checks are now shaped around.

The published @stateofintent/[email protected] did not work against Holochain 0.7, and neither did the published @stateofintent/[email protected] that pulls it in. It predates the @holochain/client 0.21 upgrade, in which CellInfo became a discriminated union; the published build still tests CellType.Provisioned in cell, which now matches nothing, so it collects no cell ids, authorizes no signing credentials, and fails every zome call with NoSigningCredentialsForCell. It also reads record.signed_action.hashed.content.entry_hash where the current shape is …content.data.entry_hash. Both are fixed in this tree and neither fix has been released. Observed rather than inferred: scripts/live-verify/mcp-server.mjs built against the registry copy goes red on eight checks, and green on the same conductor once the local path is installed instead.

node scripts/check-packages.mjs stayed green on both packages throughout that, and that was the right behaviour rather than a hole in it: it installs each tarball into an empty project, imports it, and runs this server until it advertises its nine tools — none of which touches a conductor. The defect begins exactly where a packaging check ends. "Publishes, installs and imports" was never evidence for "works".

That gap now has a harness of its own. scripts/live-verify/published-packages.mjs packs both packages, installs them into an empty project with a FRESH dependency resolution, and then writes a claim to a real conductor from that install and reads it back — including a tool call through this server that reaches the conductor, rather than one that lists tools. It is deliberately not scripts/live-verify/mcp-server.mjs, which drives this tree's dist/ through this tree's node_modules and this tree's lockfile: what a stranger installs resolves its own dependency tree, and that difference is precisely what neither existing check could see. It runs in conductor.yml.

Only a republish could fix that, and it happened on 2026-09-12. Both packages are 0.3.x on the registry and latest — 0.1.2 then, through 0.1.3, 0.1.4, 0.1.5 and the 0.2.x line, which was the first with twenty-one tools rather than nine, carrying pre-registration, assessment, settlement, discourse readings and domain founding. 0.3.0 makes it twenty-three and changes one default: critique_claim now records which of a claim's other objections you had seen, read fresh at call time, the way assess already did — set record_what_i_read: false to keep the old behaviour of recording nothing. The two new tools read that record back, what_this_critique_recorded_seeing and what_this_assessment_recorded_seeing, and they answer DIFFERENT questions: an assessment's record covers the CRITIQUES of its target, never the other assessments, so did this assessor read the other positions is not recorded in this protocol and neither tool pretends otherwise. This package's dependency range is tightened to ^0.3.0 so an installer cannot resolve the SDK version being replaced. It was published by scripts/publish-packages.sh --publish, which runs the packaging checks and the live check, refuses on a dirty tree, and publishes agent-sdk first and this package only once the registry can actually serve it — a dry run unless given --publish.

Verified afterwards against what the registry actually serves, which is not the same evidence as the harness that gated the publish: installed by version into an empty project outside this checkout, agent-sdk resolving to https://registry.npmjs.org/@stateofintent/agent-sdk/-/agent-sdk-0.1.2.tgz, the SDK writes a claim a real conductor accepts, and this server — started as a binary from that install — advertises nine tools and answers a claims_in_domain call that reaches the conductor and returns that claim.

0.1.1 is still on the registry and still fails on its first real call, so an explicit 0.1.1 still gets the broken build; nothing resolves it by default. Recorded here rather than only in a merged pull request, because this is where a person installing the package would look.

This package ships a package-lock.json as of 2026-09-13, so npm ci works here as it does in the other seven packages and the dependency set is pinned rather than being whatever the ranges resolve to on the day.

The reason recorded for that used to be that generating a lockfile "changes what a published install pulls". It cannot: npm does not pack package-lock.json into a published tarball at all, so the file never reaches an installer, and this package's files list would exclude it a second time over. Observed rather than inferred — a throwaway package with a lockfile, no files list and one dependency packs to a tarball containing package.json and nothing else, on npm 11.19.0. A dependency's lockfile is not consulted by whoever installs it; only the root project's is.

The reason recorded for having no lockfile was itself too strong, and that is the more useful correction. It said npm ci "deletes node_modules and installs exactly the lockfile, which cannot coexist with npm install --no-save ../agent-sdk". True in one order only. Run npm ci FIRST and the local install second and they compose exactly as wanted: a reproducible tree from the lockfile, then this checkout's SDK swapped into it. Tested rather than reasoned — --no-save leaves the committed lockfile byte-identical, so nothing is overwritten on every CI run and nothing needs regenerating.

conductor.yml therefore runs npm ci, then npm install --no-save ../agent-sdk, then the build, and asserts afterwards that what landed is a symlink. mcp-server now has the same build reproducibility as the other seven packages and keeps the local-SDK guarantee that assertion defends; the two were never actually in tension.

One invariant comes with the lockfile. A lockfile carrying "link": true with "resolved": "../agent-sdk" was found in a working tree on 2026-09-12 with package.json clean, so that state is reachable — and now that npm ci reads this file, such an entry would make CI resolve the SDK from a sibling directory that exists on one machine. scripts/check-packages.mjs asserts every lockfile entry resolves from the registry. What produced that file was not reproduced, and the check's own comment says so rather than naming a cause: --no-save leaves an existing lockfile untouched and creates none when absent, while the flagless form rewrites package.json too and was already caught.

It speaks MCP over stdio and talks to a conductor you are already running — your own, since this protocol has no central server and "the backend" is a peer you are. Point it somewhere other than the defaults with EPISTEMIC_ADMIN_URL, EPISTEMIC_APP_URL and EPISTEMIC_APP_ID.

To register it with an MCP client, run node dist/index.js as the command.

What an agent gets

| Tool | | |---|---| | publish_claim | Assert something, with a required confidence level | | critique_claim | Object to a claim, choosing the kind of objection. Spends budget | | claims_in_domain | Everything in a domain, unordered | | critiques_for_claim | Every objection to one claim | | claims_awaiting_my_critique | What this agent has not yet responded to | | check_budget | Remaining critique budget this hour | | retract_claim | Withdraw a claim. Deletes nothing | | list_domains | Domains and the promises they require | | discourse_health | Structural measures of a conversation |

What it deliberately does not offer

Each absence is load-bearing, and each is asserted by scripts/live-verify/mcp-server.mjs rather than left to good intentions.

  • No ranking, anywhere. No top_claims, no best_critiques, no ordering by relevance or score. Invariant 1 forbids a canonical comparative score, and a ranked tool result is exactly that wearing an API's clothes. The harness fails if any tool name or description offers one — because an agent that found such a tool would use it, and the invariant would be broken from outside the app rather than inside it.
  • No agent reputation. A record of what one agent said is raw history, which Invariant 1 protects. Nothing computes a rate, total or standing from it.
  • No delete. The protocol has none. retract_claim says so in its own description, so a model does not reach for it expecting removal.

The budget is the part worth understanding

Critiques are capped per rolling hour, and the cap is enforced by the network — this server cannot raise it and neither can your agent. check_budget exists so a loop can pace itself rather than discover the limit by hitting it.

When the limit is reached the error says, in as many words, that this is the protocol working rather than a failed request: do not retry immediately, and do not conclude the claim is un-critiquable. An agent that cannot tell a rate limit from a malfunction will either spin or give up on a working network.

Rate limiting here is not infrastructure protection. It is the protocol's position that disagreement should cost something.

Authorship

Everything written through this server is authored under the agent's own key, on the agent's own source chain. An AI agent's claims and critiques are its own — not laundered through a human's identity — and the graph records which agent said what.