Skip to main content
Glama
formulahendry

mcp-server-code-runner

코드 러너 MCP 서버

NPM 다운로드 대장간 배지 도커 풀

코드 조각을 실행하고 결과를 보여주는 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 서버를 설치하세요.

VS Code에 설치 VS Code Insiders에 설치

또는 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 서버를 설치하세요.

VS Code에 설치 VS Code Insiders에 설치

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

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

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"
        ],
      }
    }
  }
}

Related MCP server: MCP Expr Lang

스트리밍 가능한 HTTP 전송 으로 실행

npm install -g mcp-server-code-runner@latest
mcp-server-code-runner --transport http

용법

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 서버 프로젝트를 만들어 보세요!

Available Tools

1 tool
run-codeC

Run code snippet and return the result.

ParametersJSON Schema
NameRequiredDescriptionDefault
codeYesCode Snippet
languageIdYesLanguage ID

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions running code and returning results but lacks critical details like execution environment, security implications, timeout limits, error handling, or resource constraints, which are essential for safe and effective use.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose without unnecessary words. It is appropriately sized for the tool's function, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of code execution (which involves security, performance, and error handling), the description is insufficient. With no annotations, no output schema, and minimal behavioral details, it fails to provide complete context for safe and informed use, especially for a tool that could have significant side effects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description does not add meaning beyond the input schema, which has 100% coverage with clear descriptions for both parameters (code and languageId). Since the schema fully documents the parameters, the baseline score of 3 is appropriate, as the description provides no additional semantic context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Run code snippet and return the result' clearly states the action (run) and resource (code snippet) with a specific outcome (return result). It distinguishes the tool's function effectively, though it lacks sibling differentiation since no sibling tools exist, making a 5 unnecessary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool, such as for testing, debugging, or specific contexts, and offers no alternatives or exclusions. It only states what the tool does without usage context, leaving the agent to infer applicability.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool update
    • First observedrun-code

TDQS

B3.1/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The tool 'run-code' has a clearly distinct and singular purpose.

Naming Consistency5/5

The single tool name 'run-code' follows a clear verb_noun pattern. Since there is only one tool, consistency is inherently perfect with no deviations.

Tool Count2/5

A single tool for a code runner server feels thin and limited in scope. It suggests the server may not fully cover the domain, as typical code execution might benefit from additional tools like listing environments or managing sessions.

Completeness2/5

The tool surface is severely incomplete for a code runner domain. It only provides execution without supporting operations like listing available languages, checking code syntax, or managing execution environments, which are common in such contexts.

Maintenance

ActivityInactive
ResponsivenessUnresponsive

Related MCP Connectors

Related MCP Servers