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

@integrity-labs/xero-broker

v0.1.4

Published

Xero Broker — MCP server that routes money- and ledger-touching Xero writes through approval-core (HITL). Sibling to cloud-broker / channel-broker; the only write path for an agent once the vendor xero-mcp-server's write tools are stripped. ENG-4922.

Readme

@integrity-labs/xero-broker

Xero Broker — an MCP server that routes money- and ledger-touching Xero writes through @augmented/approval-core so a human approves them before they hit the books. Sibling to cloud-broker and channel-broker.

Why

Vendor MCP servers like @integrity-labs/xero-mcp-server run on the agent host and talk to Claude Code over stdio. Their tool calls never transit the central Augmented API, so the generic HITL resolver can't gate them (ENG-6029). For read-only Xero that's fine; for writes that move money or mutate the ledger it isn't.

This broker is the per-vendor mitigation. When an agent is provisioned with the xero-broker integration, the provisioner launches the vendor Xero server read-only (XERO_WRITES_VIA_BROKER=true strips its Create/Update/Delete tools), making this broker the only path the agent has to a Xero write — there is no ungated lane to the same operation.

Gated verbs

| Verb | Risk tier | Why | | -- | -- | -- | | xero.payment.create | write_high_risk | Moves money out — irreversible at the bank layer | | xero.bill.create | write | Creates a payable obligation | | xero.bill.approve | write_high_risk | Draft → approved is the gate before payment | | xero.invoice.void | write_destructive | Cannot be undone in Xero | | xero.contact.merge | write_destructive | Irreversible | | xero.bank_transaction.delete | write_destructive | Audit-trail loss |

Tools

  • xero_preview_request({ verb, payload }) — dry-run: auto_approve / route_to_approver / hard_deny plus the resolved risk_tier. No side effects.
  • xero_request_approval({ verb, payload, reason, ttl_seconds?, source_context? }) — submit. On approval the broker executes the Xero REST call server-side and returns the result. status is auto_approve / active (done), pending (human paged), or denied.
  • xero_poll_decision({ request_id }) — single-shot status check (escape hatch; resolution is normally pushed via direct-chat).
  • xero_await_decision({ request_id, max_wait_seconds? }) — long-poll fallback.

Always include payload.tenant_id (the Xero organisation the write lands in — the Xero-Tenant-Id header value, not the Augmented team).

Env contract

Spawned as a stdio child by the runtime adapter. Same env as the other brokers:

| Var | Purpose | | -- | -- | | AGT_HOST | Augmented API base URL | | AGT_AGENT_ID | Agent UUID (defaulted into xero_request_approval) | | AGT_RUN_ID | Run UUID (defaulted into xero_request_approval) | | AGT_TOKEN | Initial JWT (preferred) | | AGT_API_KEY | tlk_… — refresh path when AGT_TOKEN expires |

All calls route under /xero-broker on the API; the team is derived server-side from agent_id.