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

oap-mcp

v1.5.0

Published

MCP server for any OAP-compliant endpoint — exposes commands and queries as tools for LLM clients

Readme

oap-mcp

MCP server for any OAP-compliant endpoint. Exposes the OAP command and query surface as MCP tools so any LLM client (ChatGPT Desktop, Claude Desktop, GitHub Copilot, Cursor) can discover and interact with an OAP service.

Tools

| Tool | What it does | |---|---| | get_command_catalogue | List all commands this endpoint accepts | | get_command_schema | Fetch the full JSON Schema for a command type — learn the exact fields required | | send_command | Send a command (CloudEvent 1.0 envelope built automatically) | | get_query_catalogue | List all read queries this endpoint exposes | | get_query_schema | Fetch the JSON Schema for a query — learn parameters and response shape | | execute_query | Execute a query and return current state synchronously |

Intended LLM flow: get_command_catalogue → pick a command → get_command_schema → gather fields → send_command.

For commands that require existing IDs: get_query_catalogueget_query_schemaexecute_query to read current state first.

Setup

1. Install and build

cd mcp-server
npm install
npm run build

2. Configure

Set two environment variables:

| Variable | Required | Description | |---|---|---| | OAP_ENDPOINT | yes | Base URL of the OAP HTTP surface (see below) | | OAP_API_KEY | yes | API key — sent as Authorization: Bearer <key> | | MCP_TRANSPORT | no | stdio (default) or http | | MCP_HTTP_PORT | no | HTTP port when MCP_TRANSPORT=http (default: 3000) |

OAP_ENDPOINT should point at the root of the OAP HTTP surface — the base path from which /commands, /queries, etc. are resolved. Examples:

# Generic OAP service
OAP_ENDPOINT=https://api.example.com/oap

# Multi-tenant service (dotQuant example)
OAP_ENDPOINT=https://dotquant.io/api/oap/tenants/<your-tenant-id>

Transport options

stdio — VS Code Copilot, Cursor, Claude Desktop

MCP_TRANSPORT defaults to stdio. Add to your client's MCP config:

{
  "mcpServers": {
    "my-oap-service": {
      "command": "oap-mcp",
      "env": {
        "OAP_ENDPOINT": "https://api.example.com/oap",
        "OAP_API_KEY": "<your-api-key>"
      }
    }
  }
}

HTTP — ChatGPT Desktop

ChatGPT Desktop connects to MCP servers over HTTPS. Start in HTTP mode and expose via a tunnel for local development:

MCP_TRANSPORT=http MCP_HTTP_PORT=3001 \
  OAP_ENDPOINT=https://api.example.com/oap \
  OAP_API_KEY=<key> \
  node dist/index.js

# Expose via ngrok (or Cloudflare Tunnel)
ngrok http 3001

Then in ChatGPT Desktop: Settings → Apps & Connectors → Create

  • Connector URL: https://<your-ngrok-subdomain>.ngrok.app/mcp

CloudEvent source field

When sending a command, send_command requires a source value. Per OAP, source identifies the origin of the command. The required value for a given service is documented in the schema description returned by get_command_schema — always read it from there.

Publishing to npm

npm version patch   # or minor / major
npm run build
npm pkg fix
npm publish --access public