VOOZH about

URL: https://glama.ai/mcp/servers/formulahendry/mcp-server-code-runner?locale=ja-JP

⇱ mcp-server-code-runner by formulahendry | Glama


コードランナーMCPサーバー

👁 NPMダウンロード
👁 鍛冶屋のバッジ
👁 Dockerプル

コード スニペットを実行し、結果を表示するための 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に構成を追加することもできます。

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

Claude デスクトップ用の 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"
 ]
 }
 }
 }
}

Windows の npx の問題

Windows では、 MCP サーバーがnpxに接続できない場合があります

以下の 2 つの回避策を試すことができます。

bunxを使用する

  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: code-to-tree

ストリーミング可能な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

👁 Image

👁 Image

独自のMCPサーバーを構築する

独自の MCP サーバーを構築したいですか? MCP サーバー用の Yeoman Generatorを使用して、MCP サーバー プロジェクトを作成してみてください。

A
license - permissive license
B
quality
F
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity
Issues opened vs closed

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/formulahendry/mcp-server-code-runner'

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