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

mcp-testing-nfc

v1.0.9

Published

This is mcp tester

Readme

MCP Compass NFC Server

A Model Context Protocol (MCP) server implementation for NFC-related operations with sample client.

Features

  • MCP Server: Implements tools for user management and NFC operations
  • Sample Client: Demonstrates how to connect to and interact with the MCP server
  • TypeScript Support: Full TypeScript implementation with proper type definitions

Available Tools

  1. get_all_user: Get all user data from the database
  2. Owner Name: Get the owner name information
  3. get_single_user: Get a single user by email address

Installation

npm install

Building

npm run build

Running the Server

npm start

Running the Sample Client

Basic Demo Mode

Runs all sample tool calls automatically:

npm run client

Interactive Mode

Allows you to interactively test tools:

npm run client:interactive

In interactive mode, you can use these commands:

  • list - List all available tools
  • call <tool_name> [args] - Call a tool with arguments
  • help - Show help message
  • exit - Exit interactive mode

Example Interactive Usage

> list
Available tools:
1. get_all_user
   Description: Get all user data on database
   Input Schema: {"type":"object","properties":{}}

2. Owner Name
   Description: This is owner name
   Input Schema: {"type":"object","properties":{}}

3. get_single_user
   Description: Get single user by email
   Input Schema: {"type":"object","properties":{"email":{"type":"string","description":"E-mail user for query"}},"required":["email"]}

> call get_single_user {"email": "[email protected]"}
🔧 Calling tool: get_single_user
Arguments: {"email": "[email protected]"}
✅ Tool response:
Response 1:
Hello

> exit
👋 Goodbye!

Development

For development with auto-reload:

npm run dev

Project Structure

├── src/                    # TypeScript source files
│   ├── config/            # Database configuration
│   ├── model/             # Data models
│   └── index.ts           # Main server file
├── build/                 # Compiled JavaScript files
├── sample-client-mcp.js   # Sample MCP client
└── package.json           # Project configuration

MCP Client Features

The sample client (sample-client-mcp.js) demonstrates:

  • Connection Management: How to connect to an MCP server
  • Tool Discovery: How to list available tools
  • Tool Execution: How to call tools with different arguments
  • Error Handling: Proper error handling and cleanup
  • Interactive Mode: Command-line interface for testing
  • Resource Cleanup: Proper cleanup of connections and processes

Environment Variables

Create a .env file in the root directory with your database configuration:

MONGODB_URI=mongodb://localhost:27017/your-database

License

ISC

Author

Laskar Ksatria Satika