MCP Hot-Reloadのロゴ

MCP Hot-Reload

コミュニティ
neilopet

Hot Module Replacement (HMR) for MCP (Model Context Protocol) servers - instant reloading on file changes

公開者neilopet
リポジトリmcpmon
言語TypeScript
フォーク
2
スター
10
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    MCP Hot-Reloadは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには10件のスターと2件のフォークがあります。

mcpmon

Node.js License: MIT Tests Code Style

Hot-reload monitor for MCP servers - like nodemon but for Model Context Protocol

Make changes to your MCP server code and see them instantly without restarting your MCP client. Just like nodemon automatically restarts Node.js applications, mcpmon automatically restarts MCP servers.

What it is

mcpmon is a transparent proxy that sits between your MCP client (Claude Code, Claude Desktop, MCP Inspector, etc.) and your MCP server. When you modify your server code, mcpmon automatically restarts the server while keeping your client connected.

Key benefits:

  • Like nodemon, but for MCP - Simple command-line interface you already know
  • Zero configuration - Just wrap your server command with mcpmon
  • Non-disruptive development - Your MCP client stays connected while your server reloads
  • Zero message loss - Requests are buffered during server restart
  • Universal compatibility - Works with any MCP server (Node.js, Python, Deno, etc.)
  • Library support - Import as a dependency for custom monitoring solutions

Quick Start

  1. Install globally:

    bash
    npm install -g mcpmon
  2. Use with your MCP server:

    bash
    # Instead of: node server.js
    mcpmon node server.js
    
    # Instead of: python server.py  
    mcpmon python server.py
    
    # Instead of: deno run --allow-all server.ts
    mcpmon deno run --allow-all server.ts
  3. Use with MCP clients:

    bash
    # MCP Inspector
    npx @modelcontextprotocol/inspector mcpmon node server.js
    
    # For existing Claude Code/Desktop servers, use setup:
    mcpmon setup my-server

    Setup automatically configures your existing MCP servers for hot-reload! ✨

That's it! Your MCP server now has hot-reload enabled. Edit your server code and changes apply instantly.

Usage Examples

Basic Usage

bash
# Node.js server
mcpmon node server.js

# Python server
mcpmon python -m mcp_server

# Python with args
mcpmon python server.py --port 3000

# Deno server
mcpmon deno run --allow-all server.ts

# With debugging
mcpmon node --inspect server.js

With MCP Inspector

bash
# Direct command
npx @modelcontextprotocol/inspector mcpmon node server.js

# With environment variables
API_KEY=your-key npx @modelcontextprotocol/inspector mcpmon node server.js

With Claude Code or Claude Desktop

Easiest way: Use the automatic setup command for existing servers:

bash
# Setup hot-reload for an existing server
mcpmon setup my-server

# Setup all stdio servers for hot-reload
mcpmon setup --all

# List available servers
mcpmon setup --list

# Restore original config if needed
mcpmon setup --restore

The setup command automatically:

  • ✅ Backs up your original configuration
  • ✅ Detects and uses modern Node.js versions for compatibility
  • ✅ Wraps your server command with mcpmon
  • ✅ Preserves all environment variables and arguments
  • ✅ Enables hot-reload instantly
  • ✅ Idempotent - safe to run multiple times

🔥 Claude Desktop Hot-Reload Tips

After setting up hot-reload:

  • Code changes: Your server automatically restarts - no action needed!
  • Schema changes (new tools/resources): Toggle the MCP server off/on in Claude Desktop settings
    • Go to Claude Desktop Settings → Features → Model Context Protocol
    • Toggle your server off, then back on
    • No restart needed - just the toggle!
  • Config changes: Restart Claude Desktop only if you modify the configuration file directly

Pro tip: For the best development experience, make code changes first, then schema changes. Claude Desktop will pick up tool calls from the latest hot-reloaded code even after schema updates!

Manual configuration: You can also manually update your config:

Claude Code (~/.claude_code_config):

json
{
  "mcpServers": {
    "my-server": {
      "command": "mcpmon",
      "args": ["node", "server.js"],
      "env": {
        "API_KEY": "your-key"
      }
    }
  }
}

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

json
{
  "mcpServers": {
    "my-server": {
      "command": "/Users/username/.nvm/versions/node/v22.15.0/bin/node",
      "args": ["/usr/local/bin/mcpmon", "python", "server.py"],
      "env": {
        "PYTHONPATH": "/path/to/your/modules"
      }
    }
  }
}

Note: The setup command automatically detects your latest Node.js version and mcpmon path. The above shows what the generated config looks like - you rarely need to write this manually!

Configuration

mcpmon works out of the box with zero configuration. It automatically detects your server file and starts watching for changes.

To watch additional files:

bash
# Watch multiple files
MCPMON_WATCH="server.js,config.json" mcpmon node server.js

That's it! mcpmon is designed to work with zero configuration.

Environment Variables

  • MCPMON_WATCH - Override files/directories to watch (comma-separated)
  • MCPMON_DELAY - Restart delay in milliseconds (default: 1000)
  • MCPMON_VERBOSE - Enable verbose logging

How It Works

mcpmon acts as a transparent proxy between your MCP client and server, providing automatic hot-reload capabilities:

The magic: Your MCP client stays connected while your server reloads. No need to reconnect Claude Code or restart MCP Inspector!

FeatureWithout mcpmonWith mcpmon
File changesManual restart requiredAutomatic restart
Client connectionMust reconnectStays connected
Lost messagesPossibleNever (buffered)
Setup complexityManual config changesJust add mcpmon

Need Help?

Enable verbose logging to see what's happening:

bash
MCPMON_VERBOSE=1 mcpmon node server.js

Common issues:

  • "ReadableStream is not defined"? mcpmon requires Node.js 16+. Use mcpmon setup to auto-detect modern Node.js versions
  • Server won't start? Check the error messages for missing dependencies
  • No hot reload? Verify your server file is being detected in the logs
  • Schema changes not visible? Toggle your MCP server off/on in Claude Desktop settings
  • Need help? See our Troubleshooting Guide

Development

bash
# Run tests (includes clean and build)
npm test

# Development mode
npm run dev

See Contributing Guide for more details.

Installation

Requirements: Node.js 16+ (automatically detected by setup command)

bash
# Install globally (recommended)
npm install -g mcpmon

# Or use without installing
npx mcpmon node server.js

Contributing

We welcome contributions! See Contributing Guide for details.

Documentation

License

MIT License - see LICENSE file for details.


Like nodemon? You'll love mcpmon. Simple, fast, and reliable hot-reload for MCP development.

MCP Hot-ReloadのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度MCP Hot-Reloadに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

MCP Hot-Reloadをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. MCP Hot-ReloadのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "mcpmon": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてMCP Hot-ReloadのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. MCP Hot-ReloadのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
MCP Hot-Reloadを使ってこのタスクを手伝ってもらえますか?
MCP Hot-Reload
はい、読みました。
MCP Hot-Reloadで調べた結果をお伝えします。

よくある質問

MCP Hot-Reload MCPサーバーは何に使いますか?

MCP Hot-Reloadは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでMCP Hot-Reload MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでMCP Hot-Reloadを利用できます。

TypingMindでMCP Hot-Reload MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。MCP Hot-Reloadを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

MCP Hot-Reload MCPをTypingMindに接続するにはどうすればよいですか?

MCP Hot-ReloadはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでMCP Hot-Reload MCPのどのようなツールを利用できますか?

MCP Hot-ReloadはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

MCP Hot-Reload MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。MCP Hot-Reloadで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇