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

@atlasprotocol/agent-tools

v0.2.3

Published

Agent-side ATLAS Protocol tooling for LangChain and MCP. Speak ATLAS from any agent runtime.

Downloads

936

Readme

@atlasprotocol/agent-tools

Agent-side ATLAS Protocol tooling. Drop these helpers into any LangChain agent or Model Context Protocol server and your runtime can discover events, fetch ticket types, drive the HTTP 402 purchase flow, and read receipts against any ATLAS Registry — without writing a line of protocol glue. The package is runtime-agnostic, has no implicit process.env reads, and pushes payment signing back to the caller's wallet layer where it belongs.

Install

pnpm add @atlasprotocol/agent-tools
# Pick the runtimes you actually use:
pnpm add @langchain/core            # for LangChain bindings
pnpm add @modelcontextprotocol/sdk  # for MCP server bindings
pnpm add zod                        # always required (peer dep)

@langchain/core and @modelcontextprotocol/sdk are optional peer dependencies — install only the ones your agent uses.

Quickstart — LangChain

import { buildAtlasLangChainTools } from '@atlasprotocol/agent-tools';

const atlasTools = buildAtlasLangChainTools({
  config: {
    registryUrl: 'https://registry.example.com',
    backendUrl: 'https://api.example.com',
    agentId: 'agent:my-app',
  },
  getAuthHeader: () => `Bearer ${currentUserToken}`,
});

const agent = createReactAgent({ model, tools: atlasTools });

Quickstart — MCP

import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import {
  registerAtlasMcpTools,
  registerAtlasMcpResources,
  registerAtlasMcpPrompts,
} from '@atlasprotocol/agent-tools';

const server = new McpServer({ name: 'atlas', version: '0.1.0' });
const config = { registryUrl: '…', backendUrl: '…', agentId: 'agent:my-app' };

registerAtlasMcpTools(server, config);
registerAtlasMcpResources(server, { config });
registerAtlasMcpPrompts(server, config);

Configuration

AtlasToolsConfig:

| Field | Type | Required | Description | | ------------- | -------- | -------- | --------------------------------------------------------------------------- | | registryUrl | string | yes | Base URL of an ATLAS Registry (federated event search). | | backendUrl | string | yes | Base URL of the ATLAS Backend (purchases, holds, receipts). | | agentId | string | yes | Stable identifier for this agent (sent as Atlas-Agent-Id). | | apiKey | string | no | Pre-shared API key. If set, sent as Authorization: Bearer <apiKey>. | | apiVersion | string | no | Override the Atlas-Version header. Defaults to "1.0". | | logger | Logger | no | Optional {debug, info, warn, error}. Compatible with pino, winston, etc. |

End-user authentication (e.g. session tokens) is passed through the getAuthHeader callback in LangChain mode, or read from the MCP request's authorization header in MCP mode. The package never stores user credentials.

Tools

The four canonical ATLAS Protocol tools are exposed identically across both runtimes:

| Tool | Description | | ----------------------- | ---------------------------------------------------------- | | atlas_search | Federated search across registries. | | atlas_compare_tickets | Parallel fetch of 2–5 events for side-by-side comparison. | | atlas_purchase | Start a purchase. Surfaces a 402 challenge for paid events.| | atlas_get_receipt | Poll a hold's purchase receipt by hold_id. |

Payment handling (x402)

When the backend returns HTTP 402 with an atlas:challenge payload, the package surfaces the challenge to the caller — it does NOT sign payments. That deliberately keeps the package free of any wallet, network, or chain dependency. Plug your own wallet / x402 client into the atlas_purchase flow when handling a pending_payment result.

See also