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

@nebutra/mcp

v0.1.4

Published

Model Context Protocol primitives for Nebutra agent and tool surfaces.

Readme

@nebutra/mcp

Model Context Protocol primitives for Nebutra agent and tool surfaces.

This package provides a registry, client, middleware, consent store, debug helpers, and internal-server registration seams around the official @modelcontextprotocol/sdk runtime.

Status: WIP

Experimental public package. The package is published for reuse and contribution intake, but its package metadata still marks these production gaps explicitly:

  • no production app integrations yet
  • no production MCP transports beyond HTTP/local seams
  • no durable remote tool discovery or app-level integration layer

Use it for local tools, integration prototypes, and package development. Keep production deployments behind the application-level gateway and approval model.

Installation

pnpm add @nebutra/mcp

Exports

| Path | Description | | --- | --- | | @nebutra/mcp | Main registry, client, host, consent, debug, middleware, server, and type exports | | @nebutra/mcp/client | MCPClient and the shared mcpClient instance | | @nebutra/mcp/server | Internal server registration helpers | | @nebutra/mcp/middleware | Rate-limit, audit, access-control, and middleware composition helpers |

Usage

Register a local server

import { MCPClient, serverRegistry } from "@nebutra/mcp";

serverRegistry.register({
  id: "workspace",
  name: "Workspace tools",
  description: "Local workspace utility tools",
  endpoint: "local",
  transport: "local",
  tools: [
    {
      name: "echo",
      description: "Return the provided message",
      parameters: {
        message: { type: "string", required: true },
      },
      allowedPlans: ["PRO", "ENTERPRISE"],
    },
  ],
  handlers: {
    echo: (args) => ({ message: args.message }),
  },
  allowedPlans: ["PRO", "ENTERPRISE"],
});

const client = new MCPClient(serverRegistry);
const result = await client.executeTool(
  "workspace:echo",
  { message: "hello" },
  {
    requestId: "req_123",
    tenantId: "org_123",
    userId: "user_123",
    plan: "PRO",
  },
);

Register built-in servers

import { getInternalServerIds, registerInternalServers } from "@nebutra/mcp";

registerInternalServers();
const internalServerIds = getInternalServerIds();

Compose middleware

import {
  composeMCPMiddleware,
  createAccessControlMiddleware,
  createAuditMiddleware,
  createRateLimitMiddleware,
} from "@nebutra/mcp/middleware";

const middleware = composeMCPMiddleware([
  createRateLimitMiddleware({ maxRequests: 100, windowMs: 60_000 }),
  createAccessControlMiddleware({ blockedTools: [] }),
  createAuditMiddleware({ onLog: (entry) => auditSink.write(entry) }),
]);

Runtime Notes

  • HTTP execution uses StreamableHTTPClientTransport from the official MCP SDK.
  • Local execution resolves registered handlers directly.
  • WebSocket execution is not implemented in this package.
  • stdio execution is rejected for browser/serverless contexts.
  • Tool access is checked at both server and tool level for plan, tenant, and permission gates.

License

MIT