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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@neuradex/mcp

v0.1.16

Published

CLI tool for managing Model Context Protocol in Neuradex (WIP)

Readme

@neuradex/mcp

LLMがメモリを参照・更新するために利用するMCPサーバーです。このサーバーを使用することで、ユーザーはaccessKeyを利用して自身が保存した情報(インスタンス)を取得・更新できます。

機能

  • インスタンス一覧取得: ユーザーが作成したインスタンス(記憶空間)の一覧を取得
  • MCP対応: Model Context Protocolに対応したサーバーとして実装
  • テーブル形式/JSON形式での出力対応

実行コマンド

# インストール済みの場合
npx @neuradex/mcp --access-key <your-access-key>

# 開発環境での実行
npm run dev -- --access-key <your-access-key>

# ビルド後の実行
npm run build
node dist/index.js --access-key <your-access-key>

コマンドラインオプション

| オプション | 短縮形 | 説明 | デフォルト値 | |------------|--------|------|-------------| | --access-key | -k | Neuradex APIアクセスキー | 環境変数 NEURADEX_ACCESS_KEY | | --api-url | -a | Neuradex API URL | 環境変数 NEURADEX_API または http://localhost:8000 | | --format | -f | 出力形式(json/table) | table |

セットアップ

1. 環境変数の設定

direnvの使用

このプロジェクトではdirenvを使用して開発環境の設定を管理しています。direnvは、特定のディレクトリに入ったときに自動的に環境変数を設定するツールです。

  1. プロジェクトディレクトリには既に .envrc ファイルが含まれています
  2. 初回またはファイルの変更時には以下のコマンドを実行して承認してください:
    direnv allow
  3. ディレクトリに入ると、自動的に以下の環境変数が設定されます:
    • NEURADEX_API: APIエンドポイント(デフォルト: http://localhost:8000)
    • NEURADEX_LOG_OUTPUT: ログ出力方式(console: コンソール出力, file: ファイル出力)

この設定により、プロジェクトディレクトリに入るだけで開発に必要な環境変数が自動的に設定されます。

accessKeyの設定

accessKeyは以下のいずれかの方法で設定できます:

  1. 環境変数 NEURADEX_ACCESS_KEY に設定

    export NEURADEX_ACCESS_KEY=<your-access-key>
  2. .envrc ファイルに追加

    export NEURADEX_ACCESS_KEY=<your-access-key>
  3. コマンドライン引数で指定

    npx @neuradex/mcp --access-key <your-access-key>

2. 開発環境のセットアップ

# 依存関係のインストール
npm install

# 開発モードで実行
npm run dev -- --access-key <your-access-key>

# ビルド
npm run build

MCPサーバーとしての使用

このプロジェクトはModel Context Protocol (MCP) に対応したサーバーとして実装されており、Claude等のLLMと連携して使用できます。

設定例(Claude Desktop用)

{
  "mcpServers": {
    "neuradex-memory": {
      "command": "node",
      "args": ["<path-to-@neuradex/mcp>/dist/index.js"],
      "env": {
        "NEURADEX_API": "http://localhost:8000",
        "NEURADEX_ACCESS_KEY": "<your-access-key>"
      }
    }
  }
}

提供するツールとリソース

  • ツール: list_instances - インスタンス一覧を取得
  • リソース: neuradex://instances - インスタンス一覧を提供するリソース

開発情報

このプロジェクトは以下の技術を使用しています:

  • TypeScript
  • @modelcontextprotocol/sdk
  • axios(APIリクエスト)
  • commander(CLIインターフェース)
  • chalk(出力の色付け)
  • table(テーブル形式出力)
  • nodemon(ファイル変更監視)

開発サーバー

このプロジェクトでは、MCP開発を効率的に行うための開発サーバーを提供しています。

開発サーバーの起動

# 通常の開発サーバー起動
yarn dev:server

# ファイル変更監視機能付き開発サーバー起動(自動再起動)
yarn dev:server:watch

ファイル変更監視機能(watch機能)を使用すると、src/ または scripts/ ディレクトリ内のファイルが変更されたときに自動的にサーバーが再起動します。これにより、開発中のコード変更がすぐに反映されるため、開発効率が向上します。

ツールの直接呼び出し

開発中にMCPツールを直接呼び出すには、以下のコマンドを使用します:

yarn dev:invoke '{\"name\":\"tool_name\",\"arguments\":{...}}'

例えば、list_instances ツールを呼び出す場合:

yarn dev:invoke '{\"name\":\"list_instances\",\"arguments\":{}}'

開発サーバーの仕様

  • デフォルトポート: 19731
  • エンドポイント: POST http://localhost:19731/
  • リクエスト形式: JSON形式 { "name": "tool_name", "arguments": {...} }
  • 認証: リクエストヘッダーに x-api-key を設定