MCP-REPL

by AnEntrypoint
Verified

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Provides a secure JavaScript REPL (Read-Eval-Print-Loop) environment to execute code snippets with error handling, memory management, and output formatting.

  • Enables secure access to Node.js built-in modules and execution of JavaScript code in a sandboxed VM context with working directory support.

  • Allows running the REPL directly via npx without installation or installing it globally through npm for repeated usage.

🚀 직접 Node.js REPL 실행기

🧙‍♂️ 간소화된 JavaScript 실행 환경

완벽한 지원을 통해 원활한 코드 실행을 가능하게 하는 간소화된 직접 Node.js 실행 환경:

  • ESM 모듈 - 기본 가져오기/내보내기 구문
  • 동적 가져오기 - await import()에 대한 전체 지원
  • CommonJS 호환성 - createRequire를 통해 require()와 함께 작동합니다.
  • 네이티브 Node.js API 액세스 - 모든 Node.js 기능에 직접 액세스

🧩 구성

커서의 경우 .cursor/mcp.json 구성을 업데이트하세요.

지엑스피1

✨ 특징

  • 🚀 직접 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

메모리 보호, 시간 초과 처리, 포괄적인 오류 보고 기능을 갖춘 샌드박스 환경에서 코드 조각을 실행할 수 있는 안전한 JavaScript REPL 서버입니다.

  1. 🧙‍♂️ Simplified JavaScript Execution Environment
    1. 🧩 Configuration
      1. ✨ Features
        1. 🛠️ Implementation Details
          1. 📝 Usage Examples
            ID: qxzhferyl6