A comprehensive Model Context Protocol (MCP) server optimized for the Bun JavaScript runtime with advanced execution and optimization tools.
mcp-bun exhibits moderate definition quality with several consistent strengths and weaknesses. All 12 tools have descriptions and input schemas are present for all tools. However, multiple tools have descriptions under 100 characters (benchmark-bun-script, list-bun-versions, get-bun-version) which is below the p10 baseline of 34 chars but on the thin side for clarity. Parameter descriptions are generally present but vary in detail. Several tools expose significant security risks (run-bun-eval, run-node-eval, start-bun-server, start-node-server) that accept arbitrary code execution without clear permission gates or confirmation mechanisms. The tools follow verb_noun naming consistently (run-*, start-*, analyze-*, benchmark-*, list-*, get-*). However, there is a structural issue: tools like run-bun-script, run-bun-eval, run-bun-script-file, and run-node-script/run-node-eval represent overlapping functionality (6 tools for script execution) without clear distinction of when to use which, violating the composition principle of avoiding multiple tools that do the same thing differently. Output schemas are not documented in the source provided, which is a critical gap.
Analyze project performance characteristics with Bun
Benchmark a script's performance with different Bun optimization flags
Get the version of Bun the scripts will be executed with
Get available Bun versions if using a version manager
Execute JavaScript/TypeScript code directly with Bun eval with optimizations
Execute bun install to install all dependencies or a specific package
Execute a script from package.json with bun
Six overlapping script execution tools (run-bun-script, run-bun-eval, run-bun-script-file, run-node-script, run-node-eval, plus benchmark-bun-script) without clear distinction. LLM cannot easily determine which to use when and will waste reasoning cycles or pick wrong tool. Violates 'one tool, one purpose' composition principle.
Arbitrary code execution tools (run-bun-eval, run-node-eval, start-bun-server, start-node-server) lack explicit permission gates or confirmation mechanisms. Code accepts 'code' parameter directly from LLM with no dry-run or confirmation step. No documented security boundaries or allowed directory restrictions visible. Violates confirmation-request and permission-gate patterns.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 55 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 12 | - | v1 |
Execute a JavaScript/TypeScript script file with Bun runtime and optimizations
Execute JavaScript code directly with Node.js eval. Optionally specify a directory to execute in.
Execute a Node.js script file locally
Start a Bun server that continues running in the background with optimizations
Start a Node.js server that continues running in the background
Output schemas not documented in source code. No structured response definitions visible for any tool. LLMs cannot predict what fields to expect or plan downstream tool composition. Violates documented output schema requirement.
Short descriptions on simple tools (list-bun-versions: 'Get available Bun versions if using a version manager' ~60 chars, get-bun-version: 'Get the version of Bun the scripts will be executed with' ~55 chars) lack context for selection. Descriptions under 100 chars often miss 'WHEN to use this' guidance for LLM selection.
Parameter timeout values on run-*-eval and run-*-script tools lack documented bounds. Timeout parameter is numeric with no min/max specified. LLM could pass 0, -1, or astronomically large values causing timeouts or silent hangs.
Error handling responses visible in analyze-bun-performance code return generic 'isError: true' with plain text messages. Error responses lack recovery guidance per pattern:recovery-guide. Example: 'Permission denied by user' tells LLM nothing about what to do next or why permission was denied.