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

@koinunopochi/danger-zone-mcp

v1.2.2

Published

MCP server for executing dangerous commands with safety checks

Readme

Danger Zone MCP

A Model Context Protocol (MCP) server that allows executing predefined commands with safety checks.

Features

  • Execute safe commands from configuration
  • Execute dangerous commands with native macOS confirmation dialog
  • Support for pre-authorized dangerous commands (skip confirmation)
  • JSONC support (JSON with comments)
  • Multiple configuration file formats supported (.jsonc and .json)
  • Fallback to global config in ~/.claude/ if project config not found
  • TypeScript implementation
  • Works with npx for easy execution

Installation

npm install -g @koinunopochi/danger-zone-mcp

Or use with npx (no installation required):

npx @koinunopochi/danger-zone-mcp

Configuration

Create a configuration file in your project root or home directory:

  1. Project-specific config (highest priority):

    • <project>/.claude/.danger-zone-exec.local.jsonc (recommended for comments)
    • <project>/.claude/.danger-zone-exec.local.json
  2. Global config (fallback):

    • ~/.claude/.danger-zone-exec.jsonc (recommended for comments)
    • ~/.claude/.danger-zone-exec.json
{
  // Safe commands that can be executed without confirmation
  "commands": [
    {
      "name": "build_project",
      "description": "Build the project",
      "command": "npm",
      "args": ["run", "build"]
    },
    {
      "name": "check_chrome_mcp",
      "description": "Check if MCP Chrome profile instances are running",
      "command": "ps aux | grep -E '(Google Chrome.*mcp-chrome-profile)' | grep -v grep | wc -l"
    }
  ],
  
  // Dangerous commands that require confirmation
  "dangerZone": [
    {
      "name": "clean_build",
      "description": "Clean all build artifacts",
      "command": "rm -rf dist"
      // Will show confirmation dialog (default behavior)
    },
    {
      "name": "kill_chrome_mcp",
      "description": "Kill all Chrome instances with MCP profile",
      "command": "pkill -f 'Google Chrome.*mcp-chrome-profile'",
      "preAuthorized": true  // Skip confirmation dialog
    }
  ]
}

Usage with Claude Desktop / Claude Code

Add to your Claude configuration:

{
  "mcpServers": {
    "danger-zone": {
      "command": "npx",
      "args": ["@koinunopochi/danger-zone-mcp"]
    }
  }
}

Note: When using Claude Code, the cwd is automatically set to your current project directory.

Development

# Install dependencies
npm install

# Build
npm run build

# Run in development mode
npm run dev

Configuration Options

Command Properties

  • name: Tool name (used as exec_<name>)
  • description: Description shown in Claude
  • command: Shell command to execute
  • args: Optional array of default arguments

DangerZone Properties

  • name: Tool name (used as danger_<name>)
  • description: Description shown in Claude
  • command: Shell command to execute
  • preAuthorized: Skip confirmation dialog if true (optional, defaults to false)

Safety Features

  • Dangerous commands show native macOS confirmation dialog by default
  • Pre-authorized commands can skip confirmation when explicitly configured
  • Commands are sandboxed to configured list
  • Clear separation between safe and dangerous operations