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

nice-paw

v2.0.0

Published

MCP server for nicehms.com healthcare authentication

Readme

nice-paw

An MCP (Model Context Protocol) server for https://www.nicehms.com healthcare systems, providing authentication tools for integration with Claude Code and other MCP clients.

⚠️ Currently includes a demo login tool with hardcoded credentials (for development/testing only).


🚀 Features

  • 🔐 Enhanced Login tool with multiple authentication modes
  • 🔒 Password encryption with master key support
  • 🏥 Hospital profile management with encrypted storage
  • ⚡ MCP stdio-based server
  • 🧠 Zod-based input validation
  • 🧪 Jest test coverage
  • 📦 CLI support via nice-paw command
  • 🧩 Easy integration with Claude Code
  • 💾 SQLite database for local credential storage
  • 🔑 AES-256-GCM encryption with PBKDF2 key derivation

📦 Installation

1. Global Install (Recommended)

npm install -g nice-paw

This makes the nice-paw CLI available system-wide.


2. Run Without Installing (npx)

npx nice-paw

3. From Source (Development)

git clone https://github.com/umeshramya/nice-paw.git
cd nice-paw

npm install
npm run build

4. Local CLI Testing

npm install -g .

🔌 Connecting to Claude Code

After installation, configure MCP in Claude Code.

✅ Global Installation

Add to:

~/.config/claude-code/config.json
{
  "mcpServers": {
    "nice-paw": {
      "command": "nice-paw"
    }
  }
}

🛠 Local Development

{
  "mcpServers": {
    "nice-paw": {
      "command": "node",
      "args": ["/absolute/path/to/nice-paw/bin/nice-paw.js"]
    }
  }
}

⚡ Using npx

{
  "mcpServers": {
    "nice-paw": {
      "command": "npx",
      "args": ["nice-paw"]
    }
  }
}

🧪 Usage

Once connected, Claude Code will expose available tools.

🔐 Enhanced Login Tool

The login tool now supports three authentication modes with encrypted password storage:

1. Plain Login (Backward Compatibility)

Authenticate using email and password directly.

{
  "email": "[email protected]",
  "password": "userPassword123"
}

2. Add New Hospital with Encryption

Store hospital credentials with encrypted password using a master key.

{
  "action": "add_hospital",
  "email": "[email protected]",
  "password": "adminPassword456",
  "encryptionKey": "MyMasterKey@2024!Secure",
  "hospitalName": "General Hospital",
  "serverUrl": "https://api.hospital.com"
}

3. Login with Stored Hospital Profile

Authenticate using stored hospital credentials (password is decrypted with master key).

{
  "hospitalId": "1",
  "encryptionKey": "MyMasterKey@2024!Secure"
}

Example Response

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "user": {
    "id": 123,
    "email": "[email protected]",
    "role": "admin",
    "name": "John Doe",
    "username": "johndoe",
    "organizationId": 456,
    "organizationName": "General Hospital",
    "mobile": "+1234567890",
    "professionalAccess": "full",
    "uuid": "550e8400-e29b-41d4-a716-446655440000"
  },
  "hospitalProfile": {
    "id": 1,
    "name": "General Hospital",
    "serverUrl": "https://api.hospital.com",
    "email": "[email protected]"
  },
  "keyValidated": true
}

🔒 Encryption & Security Features

  • Master Key Encryption: Single encryption key for all hospital passwords
  • Key Validation: SHA-256 fingerprint ensures consistent key usage
  • AES-256-GCM: Military-grade encryption with authentication
  • PBKDF2: 100,000 iterations for key derivation
  • Unique Salt/IV: Each password encrypted with unique parameters
  • Local Storage: SQLite database (nice-paw.db) stores encrypted credentials
  • No Key Storage: Master key is never stored, only its fingerprint

🏥 Hospital Profile Management

  • Store multiple hospital credentials securely
  • Each profile includes: name, server URL, email, encrypted password
  • Automatic key validation when adding new hospitals
  • Backward compatible with plain login mode

🏗 Project Structure

nice-paw/
├── src/
│   ├── index.ts          # MCP server entry point
│   ├── login.ts          # Enhanced login tool with encryption
│   ├── encryption.ts     # AES-256-GCM encryption utilities
│   ├── storage.ts        # SQLite database for hospital profiles
│   ├── test-encryption.ts # Encryption/storage test script
│   ├── test-login-integration.ts # Integration test examples
│   └── __tests__/        # Jest test files
│
├── examples/
│   └── enhanced-login-example.js # Usage examples
│
├── bin/
│   └── nice-paw.js       # CLI entry (executes compiled server)
│
├── dist/                 # Compiled output (generated)
├── jest.config.mjs       # Jest configuration (ESM)
├── tsconfig.json         # TypeScript config
└── package.json

⚙️ Requirements

  • Node.js 18+
  • npm

🧠 MCP Architecture

This project uses:

  • @modelcontextprotocol/server
  • Transport: stdio
  • Tool registration via:
server.registerTool(...)

The server communicates with MCP clients (like Claude Code) over standard input/output.


➕ Adding New Tools

  1. Create a tool file:

    src/new-tool.ts
  2. Define a Zod schema:

    z.object({ ... })
  3. Register the tool in:

    src/index.ts
  4. Add tests:

    src/__tests__/new-tool.test.ts

🛠 Development

Install Dependencies

npm install

Build

npm run build

Watch Mode

npm run dev

Run Server (Compiled)

npm start

Run Without Build (Dev)

npx tsx src/index.ts

🧪 Testing

# Run tests
npm test

# Watch mode
npm run test:watch

# Coverage
npm run test:coverage

# Test encryption module
npm run build && node dist/test-encryption.js

# View integration examples
node dist/test-login-integration.js

📦 Publishing

npm run build
npm publish

Before publishing:

  • Update version in package.json
  • Ensure dist/ is generated

🛠 Troubleshooting

❌ Server Not Starting

node dist/index.js

If this fails → fix build/runtime first.


❌ Claude Code Not Detecting Server

  • Restart Claude Code
  • Validate config JSON
  • Verify command path
  • Use absolute paths in dev mode

❌ ESM Errors

Ensure:

"type": "module"

And imports use .js:

import { server } from './index.js';

❌ Tests Failing

npm test -- --config jest.config.mjs

🔐 Production Notes

This project currently uses mock authentication.

To make production-ready:

  • Replace login logic with API call
  • Add JWT handling
  • Secure credential flow
  • Add refresh tokens

📄 License

ISC