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

@yinuo-ngm/mcp-server

v0.1.6

Published

Local MCP stdio server for ng-manager core capabilities.

Readme

@yinuo-ngm/mcp-server

Local MCP Server for ng-manager.

Provides MCP tools that expose ng-manager capabilities to AI Agents such as Codex, OpenCode, Claude Code, Cursor, and other MCP-compatible clients.

The MCP server is an adapter layer only. Business logic belongs in packages/core.


Architecture

AI Agent
    ↓
MCP Client
    ↓
packages/mcp-server
    ↓
ToolContext.services
    ↓
packages/core
    ↓
Local Services

Principles:

  • MCP tools are thin adapters
  • No duplicated business logic
  • No Fastify dependency
  • No Electron dependency
  • Reuse the same core services as CLI, UI, and Local Server

Quick Start

Repository root:

npm run mcp:dev
npm run mcp:build
npm run mcp:start

Workspace commands:

npm run dev -w @yinuo-ngm/mcp-server
npm run build -w @yinuo-ngm/mcp-server
npm run start -w @yinuo-ngm/mcp-server

CLI:

ngm mcp

Diagnostics:

ngm mcp doctor

Environment Variables

| Variable | Description | |-----------|-------------| | NGM_DATA_DIR | ng-manager data directory | | NGM_MCP_ALLOW_WRITE | Enable write tools | | NGM_MCP_ALLOW_EXECUTE | Enable execute tools | | NGM_MCP_ALLOW_DANGEROUS | Enable dangerous tools | | NGM_MCP_ALLOW_HUB | Enable Hub V2 write operations | | NGM_MCP_MAX_RESULT_CHARS | MCP response size limit |


MCP Client Example

{
  "mcpServers": {
    "ng-manager": {
      "command": "node",
      "args": [
        "packages/mcp-server/lib/index.js"
      ],
      "env": {
        "NGM_DATA_DIR": "~/.ng-manager"
      }
    }
  }
}

Tool Categories

Workspace

  • Workspace discovery
  • Package metadata
  • Capability routing
  • Context generation

Project

  • Project metadata
  • Package.json access
  • Script discovery
  • Task status and logs

Runtime

  • Node runtime discovery
  • Runtime resolution
  • Project runtime configuration

Nginx

  • Status inspection
  • Configuration validation
  • Proxy management

Git

  • Status and diff
  • Commit message generation
  • Review assistance

Frontend Workflow

  • Standards validation
  • Review scanning
  • Task planning
  • Delivery reports

Hub V2

  • Documents
  • Issues
  • RD workflows
  • File uploads

Safety Model

Risk levels:

read
write
execute
dangerous

Default policy:

read      allowed
write     blocked
execute   blocked
dangerous blocked

Write and execute operations require:

  • confirm=true
  • Matching environment flag enabled
  • Policy validation passed

The MCP server does not provide:

  • Arbitrary shell execution
  • Arbitrary file system access
  • System environment mutation
  • Remote client command execution

Documentation

Detailed documentation is maintained under:

packages/mcp-server/docs/

Recommended structure:

docs/
├─ architecture.md
├─ security.md
├─ configuration.md
└─ tools/
   ├─ ngm-workspace.md
   ├─ ngm-project.md
   ├─ ngm-runtime.md
   ├─ ngm-nginx.md
   ├─ ngm-git.md
   └─ hub-v2.md

Design Goal

ng-manager MCP Server is the unified AI integration layer for local-first engineering workflows.

AI Agent
    ↓
MCP
    ↓
ng-manager Core
    ↓
Local Control Plane