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

@aroha-sdk/mcp-server

v1.0.0

Published

MCP server for Aroha Hub — lets Claude and any MCP agent discover and call Aroha vendor agents

Readme

@aroha-sdk/mcp-server

MCP stdio server that exposes the Aroha Hub to Claude Desktop and any other MCP-compatible personal agent. Once configured, Claude can search the Hub for registered vendor agents, issue task and spending mandates, call those agents directly, and retrieve the full audit receipt — all through natural conversation, without any corporate agreement or bespoke integration.


Installation — Claude Desktop

Add the following block to your claude_desktop_config.json (on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "aroha": {
      "command": "npx",
      "args": ["-y", "@aroha-sdk/mcp-server"],
      "env": {
        "AROHA_API_KEY": "sk-aroha-..."
      }
    }
  }
}

Restart Claude Desktop. The five aroha_* tools will appear in the tool list automatically.

Optional environment variables

| Variable | Default | Purpose | |---|---|---| | AROHA_API_KEY | "" | Bearer token for authenticated Hub calls | | AROHA_REGISTRY_URL | https://aroha-registry.aroha-labs.workers.dev | Override the Hub registry endpoint |


Tools

aroha_discover

Search the Aroha Hub registry for agents by capability ID or free-text query. Returns up to 10 matching agents with their DIDs, names, capabilities, reputation scores, and endpoints.

aroha_discover(capability?: string, query?: string)

aroha_call

Call a vendor agent. Automatically packages a spending mandate intent in the request so the agent knows its authorised budget. Returns a receiptId for later audit retrieval.

aroha_call(agentDid, capability, params, spendLimitUsd?, purpose?, taskDescription?)

aroha_issue_task_mandate

Issue a fine-grained task mandate specifying exactly which capabilities the agent may invoke, how many times, whether they must be reversible, and which require a human gate before execution.

aroha_issue_task_mandate(agentDid, allowed[], blocked[]?, actionLimits?, reversibleOnly?, humanGates[]?, maxLlmTokens?, maxWebRequests?, ttlMinutes?)

aroha_issue_spending_mandate

Issue a monetary spending mandate capping the agent at a specified USD amount for a single capability. Optionally restrict to a list of approved merchant DIDs.

aroha_issue_spending_mandate(agentDid, capability, spendLimitUsd, allowedMerchants[]?, ttlMinutes?)

aroha_get_receipt

Retrieve the task receipt for a completed aroha_call. Shows the full audit trail: actions taken, resources consumed, mandate bounds check, and agent outputs.

aroha_get_receipt(receiptId)

Worked example — Book a flight via Air NZ agent

User: Find an Air New Zealand agent that can book flights, then book me on the cheapest Auckland to Wellington flight tomorrow.

Step 1 — Claude calls aroha_discover

{ "capability": "book-flight", "query": "Air New Zealand" }

Result (truncated):

[{
  "did": "did:aroha:airnz-booking-agent",
  "name": "Air NZ Booking Agent",
  "capabilities": ["book-flight", "check-flight-status", "cancel-booking"],
  "reputation": 4.9,
  "endpoint": "https://agents.airnz.co.nz/aroha"
}]

Step 2 — Claude calls aroha_issue_spending_mandate

{
  "agentDid": "did:aroha:airnz-booking-agent",
  "capability": "book-flight",
  "spendLimitUsd": 150,
  "ttlMinutes": 10
}

Result:

{
  "mandateId": "spend-mandate-1749123456-abc123",
  "summary": "Spending mandate: up to $150 USD for book-flight with did:aroha:airnz-booking-agent",
  "validUntil": "2026-07-13T09:30:00.000Z"
}

Step 3 — Claude calls aroha_call

{
  "agentDid": "did:aroha:airnz-booking-agent",
  "capability": "book-flight",
  "params": {
    "origin": "AKL",
    "destination": "WLG",
    "date": "2026-07-14",
    "cabin": "economy",
    "passengers": 1,
    "preferCheapest": true
  },
  "spendLimitUsd": 150,
  "purpose": "Book cheapest AKL-WLG flight for user"
}

Result:

{
  "success": true,
  "result": {
    "bookingRef": "NZ-X9K3M",
    "flight": "NZ409",
    "departure": "07:00",
    "arrival": "08:05",
    "fareUsd": 89.00,
    "confirmationEmail": "sent"
  },
  "receiptId": "rcpt-aroha-mcp-1749123456-xyz789",
  "durationMs": 1243
}

Step 4 — Retrieve audit receipt

{ "receiptId": "rcpt-aroha-mcp-1749123456-xyz789" }

The receipt confirms the agent stayed within the $150 mandate, made 1 web request, and produced a confirmed booking reference.


License

MIT — Copyright (c) 2026 Aroha Labs