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

semantic-id-generator-mcp

v1.3.1

Published

Command line MCP server and client wrapping semantic-id-generator.

Downloads

7

Readme

Semantic ID Generator MCP Companion

This companion package exposes the semantic-id-generator library through the Model Context Protocol (MCP). It ships two command line entry points:

  • semantic-id-generator-mcp-server – a stdio MCP server that publishes Semantic ID Generator tools.
  • semantic-id-generator-mcp-client – a lightweight stdio client inspired by the official build-client tutorial for quick manual testing without an AI assistant.

ℹ️ The core semantic-id-generator library stays lightweight. MCP-specific dependencies live inside this companion package so app developers only install them when they actually need MCP integrations.

Installation

git clone https://github.com/yannickhuchard/semantic-id-generator.git
cd semantic-id-generator
npm install                       # installs root deps (semantic-id-generator library)

cd packages/semantic-id-generator-mcp
npm install                       # installs MCP-specific deps

After installing you can invoke the bins locally with npx (note: when calling the published package you must specify the package name explicitly):

npx --package semantic-id-generator-mcp semantic-id-generator-mcp-server --list-presets
npx --package semantic-id-generator-mcp semantic-id-generator-mcp-client --list-tools

When the package is published to npm you can run the same commands from anywhere via npx --package semantic-id-generator-mcp semantic-id-generator-mcp-server.

Quick start

  1. Start the MCP server (stdio mode, default preset dataset):
    npx --package semantic-id-generator-mcp semantic-id-generator-mcp-server --default-preset dataset
  2. (Optional) Drive it locally with the companion CLI client:
    npx semantic-id-generator-mcp-client
  3. Register the server with your MCP host (Cursor, Claude Desktop, etc.) using one of the JSON snippets in examples/.
  4. Call tools (generate-semantic-id, inspect-semantic-id, list-semantic-id-presets) from the MCP host exactly as you would any other tool.
  5. Run tests at any time to verify the server:
    npm test

Server Usage

Run the server on stdio (ideal for Cursor, Claude Desktop, or any MCP client):

npx --package semantic-id-generator-mcp semantic-id-generator-mcp-server --default-preset product

Published tools:

| Tool | Description | Arguments | | ---- | ----------- | --------- | | generate-semantic-id | Generates a fresh Semantic ID. | dataConceptName (string), optional preset, optional configuration, optional includeMetadata. | | inspect-semantic-id | Validates an existing Semantic ID. | semanticId (string), optional preset, optional configuration. | | list-semantic-id-presets | Lists preset metadata (optionally including configurations). | Optional includeConfiguration boolean. |

The server also publishes a resource at semantic-id-generator://preset-catalog with the resolved preset catalog so AI agents can ingest the schema definitions without asking the tools.

Client Usage

The client starts a server command (defaults to semantic-id-generator-mcp-server), performs the MCP handshake, and then lets you trigger tools manually:

npx semantic-id-generator-mcp-client

Interactive shell commands:

  • list – refresh the tool list.
  • <toolName> { "json": "args" } – call a tool with JSON arguments.
  • exit – quit the session.

You can also execute a single tool without entering the shell:

npx semantic-id-generator-mcp-client --tool generate-semantic-id --args '{"dataConceptName":"contract","preset":"contract"}'

Integrating with AI Assistants

Register the stdio server command (npx --package semantic-id-generator-mcp semantic-id-generator-mcp-server) inside Cursor AI, Claude Desktop, or any MCP-compatible assistant. The assistant receives rich structured responses (semantic IDs, inspection diagnostics, preset catalogs) and can use them during reasoning or code generation. Because the server follows the MCP specification, it is automatically discoverable by clients that implement standard tool discovery.

JSON configuration examples

Two ready-to-use MCP client snippets live under examples/:

  • mcp-client-published.json – points to the published npm package via npx --package semantic-id-generator-mcp semantic-id-generator-mcp-server.
  • mcp-client-local.json – launches the server from the local workspace using node ./packages/semantic-id-generator-mcp/bin/server.js (make sure the client replaces ${workspaceFolder} with its checkout path).

The samples match Cursor’s current configuration format ({ "mcpServers": { ... } }) but can be adapted to other hosts easily. Drop the relevant JSON into your MCP client’s configuration to immediately expose the Semantic ID Generator tools.

Automated testing

The MCP companion includes two mocha suites:

| Suite | Description | | --- | --- | | test/server-client.test.js | Uses the SDK’s in-memory transport to exercise tool discovery, generation + inspection flows, configuration overrides, error handling, and the preset catalog resource. | | test/server-stdio.test.js | Spawns the actual CLI server via stdio and performs the MCP handshake plus a generate/inspect round trip, ensuring the published semantic-id-generator-mcp-server command initializes correctly. |

Run npm test inside packages/semantic-id-generator-mcp to execute both suites. Every test runs automatically in CI to guard against protocol regressions.