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

@axtary/mcp

v0.1.0

Published

MCP tool provenance helpers and fail-closed handler wrappers for Axtary.

Readme

@axtary/mcp

MCP tool provenance helpers for Axtary's local runtime plane.

Early 0.x release: the runtime path is real and tested, but the API is not stable yet and may change between minor versions.

npm install @axtary/mcp

This package keeps transport execution behind Axtary's policy and ledger path. It normalizes MCP tool definitions and calls into Axtary actions, then provides local JSON-RPC HTTP/stdio invokers and fixture handlers that execute only after the proxy has evaluated policy, issued an ActionPass, written the ledger, and rechecked the tool definition hash.

What It Does

  • Normalizes MCP tool definitions with server identity, schema version, name, description, and input schema.
  • Computes deterministic sha256: definition hashes.
  • Creates mcp.tool.call normalized Axtary actions with toolDefinition provenance.
  • Wraps MCP-style tool invokers as Axtary proxy handlers.
  • Calls local MCP-compatible HTTP endpoints with JSON-RPC tools/call requests.
  • Calls local stdio MCP-style processes with one JSON-RPC request per invocation.
  • Provides fixture-backed handlers for deterministic demos and tests.
  • Fails closed if the action's tool name, server identity, schema version, or definition hash no longer matches the registered tool.

Quickstart

This example runs as-is with Node 20+:

import { createMcpToolDefinition, createMcpAction } from "@axtary/mcp";

// Pin the tool definition: server identity, schema version, name, description,
// and input schema all hash together into one definition hash.
const definition = createMcpToolDefinition({
  serverIdentity: "mcp://internal/payments",
  schemaVersion: "2026-03-26",
  name: "refund_customer",
  description: "Issues a refund for an order.",
  inputSchema: { type: "object", properties: { orderId: { type: "string" } } },
});
console.log(definition.definitionHash);

// Every call becomes a normalized action carrying that provenance, so a
// mutated tool definition (tool poisoning) breaks the hash and is denied.
const action = createMcpAction({
  definition,
  call: { toolName: "refund_customer", arguments: { orderId: "ord_123" } },
  actor: {
    agentId: "agent:claude-code",
    humanOwner: "user:[email protected]",
    runtime: "claude-code",
    tenant: "org:example",
  },
  intent: { taskId: "TASK-1", declaredGoal: "Refund duplicate charge" },
});
console.log(action.capability.tool, action.toolDefinition.definitionHash === definition.definitionHash);

Design Notes

MCP tool poisoning and schema drift are runtime authorization problems, not just connection setup problems. Axtary records the tool definition hash in the action and checks it again at execution time, so a changed tool schema requires a fresh policy/approval path.