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

@povio/mcp

v0.1.2

Published

NestJS MCP kernel: Streamable HTTP, OAuth authorization server, tool loader, and endpoint auto-registration

Readme

@povio/mcp

NestJS kernel for Model Context Protocol servers: Streamable HTTP transport, OAuth authorization server, tool loading, and REST endpoint auto-registration.

The package is developed in this monorepo. Release artifacts are produced only by its version-tag publishing workflow. The host application supplies McpConfig and McpAuthorizer (plus OAuth persistors) through McpModule.forRoot plugins.

Installation

bun add @povio/mcp

Peer dependencies (install in the host app):

  • @nestjs/common, @nestjs/core, @nestjs/jwt, @nestjs/swagger ^11
  • nestjs-zod ^5
  • zod ^3 or ^4
  • rxjs ^7
  • express >= 4
  • fastify >= 4 (optional; required when { httpAdapter: 'fastify' })

Inside this monorepo, consume the package through the workspace:

{
  "dependencies": {
    "@povio/mcp": "workspace:*"
  }
}

Usage

import { McpModule } from "@povio/mcp";

McpModule.forRoot([McpPlugin, McpOAuthClientsPersistorPlugin, McpOAuthSessionPersistorPlugin], {
  httpAdapter: "fastify",
});

forRoot plugins must provide:

  • { provide: McpConfig, useValue/useFactory: ... } — parsed MCP configuration
  • { provide: McpAuthorizer, useClass: ... } — authorization port
  • persistors for OAuth clients and sessions (memory plugins ship with this package; Prisma adapters live in the host)

Mount a resource with McpModule.forResource({ resource, path, authCheck }) from a feature module. Default httpAdapter is 'express'. Pass { httpAdapter: 'fastify' } on Fastify hosts — the Express OAuth handlers assign req.url, which is readonly on Fastify.

Publishing

Release builds and publishing follow the same package workflow as the UI Kit:

VERSION=v1.0.0-mcp bun run lib:build
bun run lib:publish

Stable tags use v<version>-mcp and publish under the npm latest tag. Release candidates use v<version>-rc.<number>-mcp and publish under next. Do not create a GitHub Release for RCs.

The GitHub Actions workflow (.github/workflows/publish-mcp.yml) publishes tagged releases through npm trusted publishing. There is no NPM_TOKEN.

Before the first publish, an @povio org admin must configure a trusted publisher on npmjs.com:

  1. Create a pending trusted publisher for @povio/mcp (the package is unpublished until the first tag succeeds).
  2. Set the GitHub repository to povio/monorepo-template and the workflow filename to publish-mcp.yml.
  3. Confirm the publisher has rights on the @povio org.

If pending publishers are unavailable, first publish with a one-time granular npm token, then switch to trusted publishing. Do not push a release tag until the publisher is configured — the workflow will fail authentication.

Example:

git tag v0.1.0-rc.1-mcp
git push origin v0.1.0-rc.1-mcp