コードランナー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
に構成を追加することもできます。
Claude デスクトップ用の npx
claude_desktop_config.json
内の構成:
ドッカー
例としてVS Codeを使用します。以下のボタンを使用して、VS CodeにCode Runner MCPサーバーをインストールします。
あるいは、 settings.json
に構成を追加することもできます。
Windows の npx の問題
Windows では、 MCP サーバーがnpx
に接続できない場合があります。
以下の 2 つの回避策を試すことができます。
bunxを使用する
- Bunをインストールします。
- 設定では、
npx``bunx
に変更します。
cmdを使用する
以下は、 settings.json
の VS Code 構成です。
ストリーミング可能な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 サーバーを構築したいですか? MCP サーバー用の Yeoman Generatorを使用して、MCP サーバー プロジェクトを作成してみてください。
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
コード スニペットを実行し、結果を表示するための MCP サーバー。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server to run commands.Last updated -2933160TypeScriptMIT License
- AsecurityAlicenseAqualityMCP server for collecting code from files and directories into a single markdown document.Last updated -28PythonMIT License
- -securityAlicense-qualityMCP Server simplifies the implementation of the Model Context Protocol by providing a user-friendly API to create custom tools and manage server workflows efficiently.Last updated -04TypeScriptMIT License
- AsecurityFlicenseAqualityA MCP Server used to collect MCP Servers over the internet.Last updated -318Python