mcp-server-code-runner

by formulahendry
Verified

local-only server

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

Integrations

  • Allows running AutoHotkey code snippets with result display

  • Supports execution of AutoIt code snippets and shows results

  • Enables running Clojure code snippets and displays execution results

코드 러너 MCP 서버

코드 조각을 실행하고 결과를 보여주는 MCP 서버입니다.

JavaScript, PHP, Python, Perl, Perl 6, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F# Script, C# Script, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml Script, R, AppleScript, Elixir, Clojure, Racket, Scheme, AutoHotkey, AutoIt, Kotlin Script, Dart, Haskell, Ni, Lisp, Kit, V, SCSS, Sass 등 여러 프로그래밍 언어 실행을 지원합니다 . 전체 목록은 여기 constants.ts 파일 에서 확인할 수 있습니다.

설정

VS Code용 npx

아래 버튼을 사용하여 VS Code에 Code Runner MCP 서버를 설치하세요.

또는 settings.json 에 구성을 추가할 수 있습니다.

지엑스피1

Claude Desktop용 npx

claude_desktop_config.json 의 구성:

{ "mcpServers": { "mcp-server-code-runner": { "command": "npx", "args": [ "-y", "mcp-server-code-runner@latest" ], } } }

도커

VS Code를 예로 들어 보겠습니다. 아래 버튼을 사용하여 VS Code에 Code Runner MCP 서버를 설치하세요.

또는 settings.json 에 구성을 추가할 수 있습니다.

{ "mcp": { "inputs": [], "servers": { "mcp-server-code-runner": { "command": "docker", "args": [ "run", "--rm", "-i", "formulahendry/mcp-server-code-runner" ] } } } }

Smithery를 통해 설치

참고: 이렇게 하면 Smithery가 호스팅하는 원격 컨테이너 환경에서 Code Runner MCP 서버가 실행됩니다.

Smithery를 통해 Claude Desktop용 Code Runner MCP Server를 자동으로 설치하려면:

npx -y @smithery/cli install @formulahendry/mcp-server-code-runner --client claude

Widnows의 npx 문제

Windows에서 MCP 서버는 npx 에 연결하지 못할 수 있습니다 .

다음 두 가지 해결 방법을 시도해 보세요.

번크스를 사용하다

  1. Bun을 설치하세요.
  2. 구성에서 npx``bunx 로 변경합니다.

cmd를 사용하세요

settings.json 의 VS Code 구성은 다음과 같습니다.

{ "mcp": { "inputs": [], "servers": { "mcp-server-code-runner": { "command": "cmd", "args": [ "/c", "npx", "-y", "mcp-server-code-runner@latest" ], } } } }

용법

Code Runner MCP Server를 사용하기 전에 실행하려는 프로그래밍 언어의 인터프리터 또는 컴파일러가 PATH 환경 변수에 설정되어 있는지 확인하세요.

Code Runner MCP Server가 구성된 애플리케이션에서 아래 프롬프트를 시도해 보세요.

  • Run the JavaScript Code: console.log(5+6)
  • Where is temporary folder in my OS? Use run-code tool
  • How many CPUs do I have in my machine? Use run-code tool

나만의 MCP 서버 구축

MCP 서버를 직접 만들고 싶으신가요? Yeoman Generator for MCP Server를 사용하여 MCP 서버 프로젝트를 만들어 보세요!

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

코드 조각을 실행하고 결과를 보여주는 MCP 서버입니다.

  1. Setup
    1. npx for VS Code
    2. npx for Claude Desktop
    3. Docker
    4. Installing via Smithery
    5. npx issue on Widnows
  2. Usage
    1. Build your own MCP Server
      ID: d3mluq4vy9