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

@mcp-com-ai/hapi

v1.3.1

Published

HAPI CLI — the core executable. Thin shell that discovers first-party and third-party plugins, routes commands, and provides a consistent UX across the HAPI stack.

Readme


HAPI CLI NPM Version

@mcp-com-ai/hapi provides the hapi command. Install it with the document plugin(s) you plan to use; HAPI detects whether --specs points to an OpenAPI or Arazzo document and starts the matching installed plugin.

Install and run

bun add -g \
  @mcp-com-ai/[email protected] \
  @mcp-com-ai/[email protected] \
  @mcp-com-ai/[email protected]

Note: The --headless flag runs the MCP server with a backend up and running (Brownfield) without the need to code (and duplicate) the business logic.

hapi serve --specs ./my-api.yaml --headless --port 3000

Scaffolding and serving a new project (Greenfield development)

# scaffolding a new project (new code/Greenfield) - ONLY if you want to implement the API code from scratch
hapi init --specs ./my-api.yaml
# Serve the API, both as MCP and RESTful API
hapi serve --specs ./my-api.yaml --mcp --port 3000

On Windows, --specs accepts drive-absolute paths such as C:\\Users\\x-user\\contracts\\my-api.yaml, paths relative to the current directory such as .\\contracts\\my-api.yaml, UNC paths, and Windows file: or path: URLs. Quote paths containing spaces. Drive-relative forms such as C:my-api.yaml are rejected because their resolution is process-dependent.

The MCP endpoint is http://localhost:3000/mcp.

# Test the MCP, list available tools
curl http://localhost:3000/mcp  \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \ \
  --header 'User-Agent: hapi' \
  --data '{
  "jsonrpc": "2.0",
  "method": "tools/list",
  "params": {},
  "id": 123
}'

# Test a traditional RESTful endpoint (in your OAS/Swagger document)
curl http://localhost:3000/my-rest-endpoint \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'User-Agent: hapi' \
  --data '{
  "key": "value"
}'

Choose a plugin

| You want to serve | Install | Start it | | ------------------------------------------ | ------------------------------- | -------------------------------------------------------------- | | An OpenAPI API | @mcp-com-ai/plugin-openapi | hapi serve --specs ./openapi.yaml --headless --url http://my-api.server.com | | An Arazzo workflow | @mcp-com-ai/plugin-arazzo | hapi serve --specs ./workflow.yaml --headless --url http://my-api.server.com | | Either document type on Cloudflare Workers | @mcp-com-ai/plugin-cloudflare | hapi cloudflare deploy --specs https://example.com/spec.yaml --headless --url http://my-api.server.com |

hapi openapi serve, hapi arazzo serve, and hapi workflows serve are also available when their corresponding plugin is installed. workflows and arazzo are aliases.

How the packages fit together

The CLI discovers installed plugins and presents one command experience. It installs its engine dependencies automatically; you normally do not install @mcp-com-ai/core, @mcp-com-ai/shared-utils, or @mcp-com-ai/plugin-sdk yourself. Keep the CLI and selected plugins on the same HAPI release version.

hapi plugins list
hapi doctor

Use hapi plugins list to confirm the capabilities available to this command. For a full quick start and security guidance, see the HAPI MCP README.