{"_id":"@dayprac/mcp-test-suite","name":"@dayprac/mcp-test-suite","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.6":{"name":"@dayprac/mcp-test-suite","version":"0.1.6","type":"module","bin":{"mcp-server-code-runner":"dist/index.js"},"scripts":{"build":"tsc && shx chmod +x dist/index.js","watch":"tsc --watch","start":"node ./dist/index.js"},"keywords":["mcp","code-runner","server"],"repository":{"type":"git","url":"git+https://github.com/dayprac/250418-mcp-server-code-runner.git"},"author":{"name":"Jun Han"},"license":"MIT","description":"Code Runner MCP Server","dependencies":{"@modelcontextprotocol/sdk":"^1.7.0","zod":"^3.24.2"},"devDependencies":{"@types/node":"^22.13.10","shx":"^0.4.0","typescript":"^5.8.2"},"_id":"@dayprac/mcp-test-suite@0.1.6","gitHead":"127c7a604823595efdadcd2ccadd3a3befc53c13","bugs":{"url":"https://github.com/dayprac/250418-mcp-server-code-runner/issues"},"homepage":"https://github.com/dayprac/250418-mcp-server-code-runner#readme","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-/SaElYOrHB3UMfJ5lNaKLDI3xzWxWhTIMYMha0AMWGZSeTF027I/y32bDyr8deql5I6NFHy6EkEJywlYCUon3w==","shasum":"e946762ec926d1fc13df797ac45798bd389f4266","tarball":"https://registry.npmjs.org/@dayprac/mcp-test-suite/-/mcp-test-suite-0.1.6.tgz","fileCount":9,"unpackedSize":16368,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGwsOx9D6gdqd6zfopsZeyhvGiWqJ8irnNZMOf0D5xPjAiAK1J65oCyNAPeVrsXRkzZxPQogpwoswrCvgzg3qh7Cig=="}]},"_npmUser":{"name":"dayprac","email":"dayprac@163.com"},"directories":{},"maintainers":[{"name":"dayprac","email":"dayprac@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-test-suite_0.1.6_1744965986397_0.805331739797164"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-18T08:46:26.347Z","0.1.6":"2025-04-18T08:46:26.569Z","modified":"2025-04-18T08:46:26.858Z"},"maintainers":[{"name":"dayprac","email":"dayprac@163.com"}],"description":"Code Runner MCP Server","homepage":"https://github.com/dayprac/250418-mcp-server-code-runner#readme","keywords":["mcp","code-runner","server"],"repository":{"type":"git","url":"git+https://github.com/dayprac/250418-mcp-server-code-runner.git"},"author":{"name":"Jun Han"},"bugs":{"url":"https://github.com/dayprac/250418-mcp-server-code-runner/issues"},"license":"MIT","readme":"# Code Runner MCP Server\n[![NPM Downloads](https://img.shields.io/npm/d18m/mcp-server-code-runner)](https://www.npmjs.com/package/mcp-server-code-runner) [![smithery badge](https://smithery.ai/badge/@formulahendry/mcp-server-code-runner)](https://smithery.ai/server/@formulahendry/mcp-server-code-runner) [![Docker Pulls](https://img.shields.io/docker/pulls/formulahendry/mcp-server-code-runner)](https://hub.docker.com/r/formulahendry/mcp-server-code-runner)\n\nMCP Server for running code snippet and show the result.\n\nIt supports running multiple programming languages: **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**. Full list could be seen here in [constants.ts](https://github.com/formulahendry/mcp-server-code-runner/blob/main/src/constants.ts).\n\n<a href=\"https://glama.ai/mcp/servers/d3mluq4vy9\">\n  <img width=\"380\" height=\"200\" src=\"https://glama.ai/mcp/servers/d3mluq4vy9/badge\" alt=\"mcp-server-code-runner MCP server\" />\n</a>\n\n## Setup\n\n### npx for VS Code\n\nInstall the Code Runner MCP server in VS Code using below buttons:\n\n[![Install in VS Code](https://img.shields.io/badge/Install_MCP_Server_(npx)-VS_Code-0098FF)](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522mcp-server-code-runner%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522mcp-server-code-runner%2540latest%2522%255D%257D) [![Install in VS Code Insiders](https://img.shields.io/badge/Install_MCP_Server_(npx)-VS_Code_Insiders-24bfa5)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522mcp-server-code-runner%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522mcp-server-code-runner%2540latest%2522%255D%257D)\n\nAlternatively, you can add configuration in `settings.json`:\n\n```json\n{\n  \"mcp\": {\n    \"inputs\": [],\n    \"servers\": {\n      \"mcp-server-code-runner\": {\n        \"command\": \"npx\",\n        \"args\": [\n          \"-y\",\n          \"mcp-server-code-runner@latest\"\n        ],\n      }\n    }\n  }\n}\n```\n\n### npx for Claude Desktop\n\nConfiguration in `claude_desktop_config.json`: \n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-server-code-runner\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"mcp-server-code-runner@latest\"\n      ],\n    }\n  }\n}\n```\n\n### Docker\n\nUse VS Code as example. Install the Code Runner MCP server in VS Code using below buttons:\n\n[![Install in VS Code](https://img.shields.io/badge/Install_MCP_Server_(Docker)-VS_Code-0098FF)](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522mcp-server-code-runner%2522%252C%2522command%2522%253A%2522docker%2522%252C%2522args%2522%253A%255B%2522run%2522%252C%2522--rm%2522%252C%2522-i%2522%252C%2522formulahendry%252Fmcp-server-code-runner%2522%255D%257D) [![Install in VS Code Insiders](https://img.shields.io/badge/Install_MCP_Server_(Docker)-VS_Code_Insiders-24bfa5)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522mcp-server-code-runner%2522%252C%2522command%2522%253A%2522docker%2522%252C%2522args%2522%253A%255B%2522run%2522%252C%2522--rm%2522%252C%2522-i%2522%252C%2522formulahendry%252Fmcp-server-code-runner%2522%255D%257D)\n\nAlternatively, you can add configuration in `settings.json`:\n\n```json\n{\n  \"mcp\": {\n    \"inputs\": [],\n    \"servers\": {\n      \"mcp-server-code-runner\": {\n        \"command\": \"docker\",\n        \"args\": [\n          \"run\",\n          \"--rm\",\n          \"-i\",\n          \"formulahendry/mcp-server-code-runner\"\n        ]\n      }\n    }\n  }\n}\n```\n\n### Installing via Smithery\n\n> **_NOTE:_**  This will run Code Runner MCP Server in a remote Container environment hosted by Smithery.\n\nTo install Code Runner MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@formulahendry/mcp-server-code-runner):\n\n```bash\nnpx -y @smithery/cli install @formulahendry/mcp-server-code-runner --client claude\n```\n\n### npx issue on Widnows\n\nOn Windows, [MCP servers may fail to connect with `npx`](https://github.com/modelcontextprotocol/servers/issues/40).\n\nYou could try below two workarounds:\n\n#### use bunx\n\n1. Install [Bun](https://bun.sh/docs/installation).\n2. In configuration, change `npx` with `bunx`.\n\n#### use cmd\n\nBelow is VS Code configuration in `settings.json`:\n\n```json\n{\n  \"mcp\": {\n    \"inputs\": [],\n    \"servers\": {\n      \"mcp-server-code-runner\": {\n        \"command\": \"cmd\",\n        \"args\": [\n          \"/c\",\n          \"npx\",\n          \"-y\",\n          \"mcp-server-code-runner@latest\"\n        ],\n      }\n    }\n  }\n}\n```\n\n## Usage\n\nBefore using Code Runner MCP Server, please make sure interpreter or compiler of the programming language you want to run is set in `PATH` environment variable.\n\nTry below prompts in the application which has configured Code Runner MCP Server:\n\n* `Run the JavaScript Code: console.log(5+6)`\n* `Where is temporary folder in my OS? Use run-code tool`\n* `How many CPUs do I have in my machine? Use run-code tool`\n\n![](./images/usage-confirm.png)\n\n![](./images/usage-result.png)\n\n## Build your own MCP Server\n\nWant to build your own MCP Server? Try [Yeoman Generator for MCP Server](https://www.npmjs.com/package/generator-mcp) to create your MCP Server project!\n","readmeFilename":"README.md","_rev":"1-cb350dbec82cf3bbae1094307f87311e"}