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

box-and-box

v0.1.0

Published

box-and-box — reference MCP server for the [&] Protocol. Validates ampersand.json agent declarations, composes capability manifests, generates MCP and A2A runtime configuration, and inspects the capability registry. One of four MCP servers in the [&] thre

Downloads

131

Readme

box-and-box

Reference MCP server for the [&] Protocol.

One of four MCP servers in the [&] three-protocol stack:

| Package | Role | Install | |----------------|------------------------------------------|------------------------------------------------------------------| | box-and-box | [&] Protocol validator / composer (this) | npx -y box-and-box --db ~/.box-and-box/specs.db | | graphonomous | Memory loop (5 machines) | npx -y graphonomous --db ~/.graphonomous/knowledge.db | | os-prism | Diagnostic loop (6 machines) | npx -y os-prism --db ~/.os-prism/benchmarks.db | | os-pulse | PULSE manifest registry | npx -y os-pulse --db ~/.os-pulse/manifests.db |

What box-and-box does

  • Validates *.ampersand.json agent declarations against ampersand.schema.json (JSON Schema draft 2020-12).
  • Validates capability contracts against capability-contract.schema.json and the bundled registry against registry.schema.json.
  • Composes N specs into one (ACI / idempotent capability merging with conflict detection).
  • Checks pipelines declared with |> against a spec's capability set.
  • Generates MCP server configuration (zed or generic format) and A2A agent cards from a spec.
  • Persists registered specs and validation history in an embedded SQLite database.
  • Exposes 12 MCP tools and 3 resources over stdio.

MCP tools

| Tool | Description | |----------------------|---------------------------------------------------------------| | validate | Validate a spec; optionally persist it. | | validate_contract | Validate a capability contract. | | validate_registry | Validate a capability registry. | | compose | Compose N specs into one; detect conflicts. | | check | Check a pipeline against a spec's capabilities. | | generate_mcp | Emit MCP server configuration from a spec. | | generate_a2a | Emit an A2A agent card from a spec. | | inspect_spec | Return a structured capability graph. | | diff | Diff two specs (added / removed / changed capabilities). | | registry_list | List primitive capabilities in the bundled registry. | | registry_providers | List providers for a given capability id. |

MCP resources

| URI | Returns | |-------------------------------------|----------------------------------------| | ampersand://runtime/health | Server health + counts. | | ampersand://specs/recent | Recently registered specs. | | ampersand://registry/capabilities | Full bundled registry snapshot. |

Install

npx -y box-and-box --db ~/.box-and-box/specs.db

Or in .mcp.json:

{
  "mcpServers": {
    "ampersand": {
      "command": "npx",
      "args": ["-y", "box-and-box", "--db", "~/.box-and-box/specs.db"]
    }
  }
}

One-shot CLI mode

The same binary runs as a plain CLI for scripts and CI — it bypasses the MCP server and prints JSON to stdout:

npx box-and-box validate ./examples/infra-operator.ampersand.json
npx box-and-box compose ./examples/infra-operator.ampersand.json \
                        ./examples/fleet-manager.ampersand.json
npx box-and-box check ./examples/infra-operator.ampersand.json \
                      --pipeline incident_triage
npx box-and-box generate mcp ./examples/infra-operator.ampersand.json
npx box-and-box generate a2a ./examples/infra-operator.ampersand.json
npx box-and-box inspect ./examples/infra-operator.ampersand.json

Flags

| Flag | Default | |----------------------|-------------------------------| | --db <path> | ~/.box-and-box/specs.db | | --transport | stdio (only; HTTP planned) | | --port | 4711 (ignored for stdio) | | --schema-version | v0.1.0 | | --log-level | info |

Build from source

git clone https://github.com/c-u-l8er/AmpersandBoxDesign
cd AmpersandBoxDesign/box-and-box
npm install
npm run build
node bin/box-and-box.js --help

Parity with the Elixir reference

The Elixir ampersand escript in AmpersandBoxDesign/reference/elixir/ampersand_core/ remains the authoritative reference during protocol development. box-and-box shares the exact same JSON Schema artifacts and test fixtures under examples/*.ampersand.json. Any divergence is a bug in box-and-box, not a protocol change.

Spec

License

Apache-2.0