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

@chkp/mcp-utils

v1.1.0

Published

Shared utilities for Check Point MCP servers

Readme

@chkp/mcp-utils

Shared utilities for Check Point MCP servers.

Features

Configuration-Driven MCP Server Launcher

The launchMCPServer function provides a configuration-driven approach to launching MCP servers, eliminating boilerplate code and making CLI options maintainable through JSON configuration files.

Usage

1. Create a Server Configuration File

Create a server-config.json file in your server package:

{
  "name": "My MCP Server",
  "description": "Description of my MCP server",
  "options": [
    {
      "flag": "--api-key <key>",
      "description": "API key for authentication",
      "env": "API_KEY",
      "type": "string"
    },
    {
      "flag": "--host <host>",
      "description": "Server host",
      "env": "SERVER_HOST",
      "default": "localhost",
      "type": "string"
    },
    {
      "flag": "--verbose",
      "description": "Enable verbose output",
      "env": "VERBOSE",
      "type": "boolean"
    }
  ]
}

2. Update Your Server's Main Function

Replace your manual CLI setup with the launcher:

import { launchMCPServer } from '@chkp/mcp-utils';
import { join, dirname } from 'path';
import { fileURLToPath } from 'url';

// Your existing server, Settings, and pkg imports...

const main = async () => {
  await launchMCPServer(
    join(dirname(fileURLToPath(import.meta.url)), 'server-config.json'),
    { server, Settings, pkg }
  );
};

main().catch((error) => {
  console.error('Fatal error in main():', error);
  process.exit(1);
});

3. Add Dependency

Add @chkp/mcp-utils to your package.json:

{
  "dependencies": {
    "@chkp/mcp-utils": "*"
  }
}

Configuration Schema

ServerConfig

  • name (string): Display name for the server
  • description (string, optional): Description shown in help text
  • options (CliOption[]): Array of CLI options

CliOption

  • flag (string): Commander.js-style flag definition (e.g., --api-key <key>, --verbose)
  • description (string): Help text for the option
  • env (string, optional): Environment variable name to read default from
  • default (string, optional): Default value if not provided via CLI or env
  • type ('string' | 'boolean', optional): Option type (defaults to 'string')

Benefits

  • Zero Boilerplate: Reduces main function from ~15 lines to ~5 lines
  • Configuration-Driven: All CLI options in maintainable JSON files
  • Environment Variable Support: Automatic mapping of env vars to options
  • Type Safety: TypeScript interfaces for all configuration
  • Consistent Help: Automatic help text generation
  • Easy Maintenance: Change options without touching code

Migration Example

Before:

const main = async () => {
  const program = new Command();
  program
    .option('--api-key <key>', 'API key')
    .option('--host <host>', 'Server host', process.env.SERVER_HOST || 'localhost')
    .option('--verbose', 'Enable verbose output', process.env.VERBOSE === 'true');
  program.parse(process.argv);
  const options = program.opts();
  Settings.setSettings(Settings.fromArgs(options));
  const transport = new StdioServerTransport();
  await server.connect(transport);
  console.error('Server running...');
};

After:

const main = async () => {
  await launchMCPServer(
    join(dirname(fileURLToPath(import.meta.url)), 'server-config.json'),
    { server, Settings, pkg }
  );
};