Skip to main content
Glama

MCP-REPL

by AnEntrypoint

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

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

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

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

  • ESMモジュール- ネイティブのインポート/エクスポート構文
  • 動的インポート- await import() の完全サポート
  • CommonJS 互換性- require() から createRequire まで動作します
  • ネイティブ Node.js API アクセス- すべての Node.js 機能への直接アクセス

🧩 設定

カーソルの場合は、 .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'));

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

メモリ保護、タイムアウト処理、包括的なエラー レポートを備えたサンドボックス環境でコード スニペットを実行できる安全な JavaScript REPL サーバーです。

  1. 🧙‍♂️ 簡素化された JavaScript 実行環境
    1. 🧩 設定
      1. ✨ 特徴
        1. 🛠️ 実装の詳細
          1. 📝 使用例

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              The sessionless code interpreter. Securely run AI-generated code in stateful sandboxes that run forever.
              Last updated -
              65
              176
              Rust
              MIT License
            • A
              security
              F
              license
              A
              quality
              Provides a secure, isolated JavaScript execution environment with configurable time and memory limits for safely running code from Claude.
              Last updated -
              1
              5
              JavaScript
              • Apple
            • -
              security
              F
              license
              -
              quality
              A server that enables AI assistants to execute JavaScript code with persistent context through stateful REPL sessions, file operations, and package management features.
              Last updated -
              TypeScript
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              Enables mapping JavaScript error stack traces back to original source code, extracting context information to help developers locate and fix issues.
              Last updated -
              2
              150
              2
              TypeScript
              MIT License

            View all related MCP servers

            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