Skip to main content
Glama

CapsuleKit (open core)

Ship your code as a capsule, and any AI can know exactly what it is, what it says, and what it does, and prove it.

Your buyers are agents now, and agents choose from prose. Your README says what your code does. Their agent reads it, guesses, and either trusts you or moves on. Neither of you can check the claim.

A capsule is the fix: a package your codebase ships that states, in exact structured terms, what it is, what it does, what it refuses to do, how to call it, and what it needs, with the statements bound to the exact bytes by content hashes, and the headline claims carried by executable proof checks that a verifier re runs before it believes a word.

The format is defined in SPEC.md (capsule format 1.0). It is machine first and, deliberately, human auditable: an artifact an AI can verify and a human can audit is worth more than one locked to either reader.

What this repo is

The free, open core of CapsuleKit, in Python standard library only:

  • Verify any capsule: structure validated, digest and every file hash recomputed, bundled proof checks re run in separate processes, one verdict object out: VERIFIED, FAILED, or INVALID.

  • Inspect any capsule in one read: identity, purpose, capabilities with typed inputs and outputs, interfaces, requirements, provenance. Nothing executes.

  • Seal a capsule you authored: recompute file hashes and the manifest digest after edits.

  • Serve inspection and verification as MCP tools (capsule_inspect, capsule_verify), so any agent can understand and verify a capsule before touching it.

PYTHONPATH=src python3 -m capsulekit verify examples/tiny-capsule
PYTHONPATH=src python3 -m capsulekit inspect examples/tiny-capsule
PYTHONPATH=src python3 -m capsulekit serve

examples/tiny-capsule is a complete, sealed, working capsule of a two function calculator. Change one byte in it and verify again: the verdict flips to FAILED and names the file.

Related MCP server: yotta-verify-mcp

Tests

54 tests ship in this repo, covering the model, schema, verifier, MCP server, and CLI (the full package's suite is 62, including the packer):

PYTHONPATH=src python3 -m unittest discover -s tests -t .

What it does not claim

No token savings. No new agent language. The research on those is public and it is not kind; this kit claims instant exact understanding with proof, and its own demo is the evidence.

The full package

This repo is the free tool layer. The complete CapsuleKit package adds the packer (draft a capsule from an existing Python codebase by static analysis, with a confirmation worklist), the worked capsules of two real products with their full proof suites, and the integration guides:

License

MIT for this open core repository. The full CapsuleKit package is sold under its own license terms.

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      MCP server for offline verification of signed artifacts — receipts, manifests, and audit bundles. MIT licensed, works without accounts or API calls. Tools: self_test, verify_receipt, verify_bundle, explain_artifact.
      4
      6
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides a deterministic pre-install security scan for Agent skills, plugins, and MCP servers via stdio, returning verdicts, audited badges, CI gates, and reports without executing code or making network calls.
      141 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Verifies blockchain-anchored timestamp proofs entirely on the user's machine, with five tools: hash a file, verify a file against a proof, verify a known hash against inline proof data, explain what a proof asserts, and create a new proof through ProofLedger. Verification recomputes the SHA-256 and walks the Merkle path locally instead of asking the issuer; only create uses the network.
      5
      74 PyPI
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Verification for agent-produced artifacts: schema contract, emptiness, generation provenance and mandate authority. An MCP server (Model Context Protocol over Streamable HTTP) exposing verify_artifact, verify_artifact_batch and bridge_check tools. Deterministic, Ed25519-signed, verifiable offline.
      2
      Apache 2.0