Skip to main content
Glama

🚀 直接 Node.js REPL エグゼキューター

バージョンノードライセンス

🧙‍♂️ 簡素化された JavaScript 実行環境

以下を完全にサポートし、シームレスなコード実行を可能にする、合理化された直接 Node.js 実行環境:

  • ESMモジュール- ネイティブのインポート/エクスポート構文

  • 動的インポート- await import() の完全サポート

  • CommonJS 互換性- require() から createRequire まで動作します

  • ネイティブ Node.js API アクセス- すべての Node.js 機能への直接アクセス

Related MCP server: MCP QuickJS Runner

🧩 設定

カーソルの場合は、 .cursor/mcp.json構成を更新します。

{
  "mcpServers": {
    "mcp-repl": {
      "command": "node",
      "args": [
        "path/to/direct-node-executor.js", "path/to/your/project"
      ],
      "env": {},
      "disabled": false,
      "autoApprove": ["execute"]
    }
  }
}

✨ 特徴

  • 🚀 Node.js の直接実行: VM サンドボックスなしで Node.js で直接コードを実行します

  • 📦完全なモジュールサポート:ESMおよびCommonJSモジュールのシームレスなサポート

  • ⏱️リアルタイムフィードバック: コード実行から即座に結果を取得

  • 🔍強化されたデバッグ:適切なエラー処理によるクリーンな出力

  • 🧠シンプルなアーキテクチャ: 複雑さを最小限に抑えた合理化された実装

  • 🔄ファイルシステムアクセス:実際のテストのためのファイルシステムへのフルアクセス

🛠️ 実装の詳細

この実装では、

  1. 実行ごとに一時的な.mjsファイルを作成します。

  2. 別のプロセスでNode.jsを使用してコードを直接実行します

  3. すべてのコンソール出力と実行結果をキャプチャします

  4. 一時ファイルを自動的にクリーンアップします

  5. 標準化された結果をMCPクライアントに返します

📝 使用例

// Dynamic imports
const fs = await import('fs/promises');
const path = await import('path');

// Reading files
const content = await fs.readFile('package.json', 'utf8');
console.log(JSON.parse(content));

// Using path utilities
console.log(path.join('folder', 'file.txt'));
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AnEntrypoint/mcp-repl'

If you have feedback or need assistance with the MCP directory API, please join our Discord server