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

@openaisdk/amb-mcp

v1.3.2

Published

MCP server and CLI for Agent Message Bus — use from Cursor, Codex, Claude Code, or any MCP client; list agents, threads, send messages

Downloads

1,894

Readme

@openaisdk/amb-mcp

MCP server and CLI for Agent Message Bus (AMB).

Works with Cursor, Codex, Claude Code, and other MCP clients.

Docs:

  • English: https://github.com/bizmedia/amb#readme
  • Russian: https://github.com/bizmedia/amb/blob/main/README.md
  • Repository: https://github.com/bizmedia/amb

What This Package Does

@openaisdk/amb-mcp helps your AI client talk to AMB.

It provides:

  • an MCP server for Cursor, Codex, Claude Code, and other MCP clients
  • CLI commands to register agents from your project
  • a fast setup command for first-time onboarding
  • access to AMB tools for agents, threads, messages, inbox, tasks, epics, and sprints

Requirements

Before using this package, make sure you have:

  • a running AMB instance
  • Node.js 20+
  • pnpm or npm
  • MESSAGE_BUS_URL (base URL of the AMB API, e.g. http://localhost:4334 for the default published compose API port)
  • MESSAGE_BUS_PROJECT_ID
  • MESSAGE_BUS_ACCESS_TOKEN (or MESSAGE_BUS_TOKEN) when the API requires JWT

If you need the full product quick start, see the main AMB repository (README, QUICKSTART).

Install

With pnpm:

pnpm add -D @openaisdk/amb-mcp

With npm:

npm install -D @openaisdk/amb-mcp

Fastest Setup

Run this in your own project:

MESSAGE_BUS_URL=http://localhost:4334 \
MESSAGE_BUS_PROJECT_ID=<PROJECT_ID> \
MESSAGE_BUS_ACCESS_TOKEN=<PROJECT_TOKEN> \
pnpm exec amb-mcp setup

setup will:

  • look for .cursor/agents/registry.json
  • if it is missing, infer agents from .cursor/agents/*.md or .agents/*.md
  • register agents in AMB
  • create default threads

This is the recommended first command for new users.

MCP Config

All MCP clients should point to the same AMB API base URL, the same MESSAGE_BUS_PROJECT_ID, and the same access token when JWT is enabled. amb-mcp resolves variables in this order: process environment.cursor/mcp.env.env.local.env.

Cursor (recommended: gitignored env file)

  1. Copy .cursor/mcp.env.example to .cursor/mcp.env in your project (see the main AMB repo; .cursor/mcp.env is gitignored).
  2. Set MESSAGE_BUS_URL, MESSAGE_BUS_PROJECT_ID, and MESSAGE_BUS_ACCESS_TOKEN in that file.
  3. Create .cursor/mcp.json:
{
  "mcpServers": {
    "message-bus": {
      "command": "pnpm",
      "args": ["exec", "amb-mcp"],
      "env": {
        "AMB_MCP_BOOTSTRAP_LOG": "1"
      }
    }
  }
}

No envFile, shell wrapper, or absolute cwd is required as long as .cursor/mcp.env exists in the project root.

Codex

Create .codex/config.toml:

[mcp_servers.message-bus]
command = "pnpm"
args = ["exec", "amb-mcp"]

Keep secrets in .cursor/mcp.env (recommended), .env.local, .env, or your shell environment.

Claude Code

Add the server to your Claude MCP config:

{
  "mcpServers": {
    "message-bus": {
      "command": "pnpm",
      "args": ["exec", "amb-mcp"],
      "env": {
        "MESSAGE_BUS_URL": "http://localhost:4334",
        "MESSAGE_BUS_PROJECT_ID": "<YOUR_PROJECT_ID>",
        "MESSAGE_BUS_ACCESS_TOKEN": "<paste token from Dashboard>"
      }
    }
  }
}

Replace IDs and tokens with values from your Dashboard, then restart the client.

Example Agent Files

A minimal project can work with agent markdown files like:

.cursor/agents/orchestrator.md
.cursor/agents/po.md
.cursor/agents/architect.md
.cursor/agents/dev.md
.cursor/agents/qa.md

If registry.json is missing, setup can infer agents from these files automatically.

CLI Commands

amb-mcp
amb-mcp server
amb-mcp setup [path]
amb-mcp seed agents [path]
amb-mcp seed threads [path]
amb-mcp seed all [path]

What they do:

  • amb-mcp or amb-mcp server: run the MCP server
  • amb-mcp setup [path]: fastest onboarding for the current project
  • amb-mcp seed agents [path]: register agents only
  • amb-mcp seed threads [path]: create default threads only
  • amb-mcp seed all [path]: register agents and create threads

Epic tools (MCP)

Project-scoped epic management (same MESSAGE_BUS_PROJECT_ID / projectId as tasks):

  • list_epics — optional status, limit, summary
  • create_epictitle, optional description, status
  • get_epicepicId, optional limit, summary (nested tasks trimmed in summary mode)
  • update_epicepicId plus at least one of title, description, status
  • archive_epicepicId (sets status to ARCHIVED)

Sprint tools (MCP)

  • list_sprints — optional status, limit, summary
  • create_sprintname, optional goal, startDate, endDate (ISO strings)
  • get_sprintsprintId, optional limit, summary
  • update_sprintsprintId plus at least one field (name, goal, startDate, endDate, status)
  • start_sprintsprintId (PLANNED → ACTIVE; one active sprint per project)
  • complete_sprintsprintId → COMPLETED
  • delete_sprintsprintId (PLANNED only)

Token-Efficient Usage

This package is optimized to avoid wasting model tokens:

  • heavy list/read tools return compact summary objects by default
  • limit defaults to 20
  • full payloads are opt-in with summary=false

Recommended usage pattern:

  • start with small list calls
  • fetch detailed data only for one specific object
  • use summary=false only for targeted inspection

Examples:

get_inbox({ agentId, limit: 10 })
get_thread_messages({ threadId, limit: 50, summary: false })

Environment Variables

  • MESSAGE_BUS_URL — base URL of the AMB HTTP API (not necessarily the Dashboard UI port). Default in code: http://localhost:3333; published compose typically exposes the API on host port 4334.

  • MESSAGE_BUS_PROJECT_ID — required for setup; recommended for seed commands.

  • MESSAGE_BUS_ACCESS_TOKEN or MESSAGE_BUS_TOKEN — required when the API enforces JWT (project token from the Dashboard).

Troubleshooting

MCP tools do not appear

Check that:

  • @openaisdk/amb-mcp is installed in your project
  • your MCP config uses pnpm exec amb-mcp
  • you restarted the client after editing config

setup cannot reach AMB

Check that:

  • AMB is running
  • MESSAGE_BUS_URL points at the API (try curl $MESSAGE_BUS_URL/api/health)
  • MESSAGE_BUS_ACCESS_TOKEN is set if the API returns 401 without it
  • Dashboard is reachable in the browser

setup cannot find agents

Check that your project contains one of these:

  • .cursor/agents/registry.json
  • .cursor/agents/*.md
  • .agents/*.md

Agents do not appear in the Dashboard

Check that:

  • MESSAGE_BUS_PROJECT_ID is correct
  • you are viewing the same project in the Dashboard
  • setup completed without errors

Links

  • Full AMB docs: https://github.com/bizmedia/amb#readme
  • Russian docs: https://github.com/bizmedia/amb/blob/main/README.md
  • GitHub repository: https://github.com/bizmedia/amb