Runno Code Sandbox
@taybenlor
关于 Runno Code Sandbox
The @runno/mcp server provides a run_code tool that AI assistants can use to execute code snippets in various programming languages. It leverages the @runno/sandbox package, which uses WebAssembly to create isolated environments for code execution. The result of the code executio
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"runno": {
"command": "/usr/local/bin/npx",
"args": [
"@runno/mcp"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Runno Code Sandbox?
Runno Code Sandbox helps you make runnable code examples that can be embedded in web pages. It uses a WASI (Web Assembly System Interface) runtime to emulate a file system and operating system inside the browser, allowing programs to run without modification. It is primarily designed for programming education, enabling learners to run code without installing complex tools and creators to embed interactive examples without a server.
How to use Runno Code Sandbox?
Install the @runno/runtime npm package, import it in your entrypoint file, and set the HTTP headers Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp to create a cross-origin isolated context. Then use the <runno-run> element with a supported runtime (e.g., runtime="python") and your code as its content. For running WASI binaries directly, use <runno-wasi>.
Key features of Runno Code Sandbox
- Runs code in the browser using WebAssembly and WASI.
- Provides a sandboxed, in-memory file system.
- Supports multiple runtimes: Python, Ruby, QuickJS, SQLite, Clang, Clang++, PHP-CGI.
- Offers both web components (
@runno/runtime) and a headless WASI runtime (@runno/wasi). - Code executes in a Web Worker with terminal emulation via XTerm.js.
- No server-side execution required—all processing happens on the client.
Use cases of Runno Code Sandbox
- Creating interactive programming tutorials or documentation with live code examples.
- Allowing new programmers to run code without installing compilers or interpreters.
- Testing simple programs for correctness inside a client-side sandbox.
- Embedding runnable code snippets in blog posts or educational websites.
- Compiling and running C/C++ code directly in the browser using Clang runtimes.
FAQ from Runno Code Sandbox
How does Runno run code in the browser?
Runno fetches the WebAssembly binary for the chosen language from WAPM (Web Assembly Package Manager), then runs it in a Web Worker inside a sandbox with an in-memory file system. STDIN/STDOUT are connected to a terminal emulator.
What programming languages are supported?
Supported runtimes include Python, Ruby, QuickJS (JavaScript), SQLite, Clang (C), Clang++ (C++), and PHP-CGI. Availability depends on what has been compiled to WASI and uploaded to WAPM.
What security measures does Runno have?
Two sandboxing layers are used: the WebAssembly layer controls system resource access, and embedding within a cross-origin iframe isolates the code from the hosting page’s cookies and API calls. However, resource hogging (e.g., infinite loops) remains possible.
What are the limitations of Runno?
Not all programming languages are available; only those compiled to WASI. There is no full Linux environment, so system-level interfaces often won’t work. Importing packages or modules is difficult; code must be provided inline. It is best suited for small examples using STDIN/STDOUT.
What HTTP headers are required for Runno to work?
You must set Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp to enable SharedArrayBuffer, which is needed for STDIN support.
推理 分类下的更多 MCP 服务器
MCP Servers
junfanz1This project demonstrates a decoupled real-time agent architecture that connects LangGraph agents to remote tools served by custom MCP (Modular Command Protocol) servers. The architecture enables a flexible and scalable multi-agent system where each tool can be hosted independent
🐢🚀 Node.js Sandbox MCP Server
alfonsograzianoA Node.js–based Model Context Protocol server that spins up disposable Docker containers to execute arbitrary JavaScript.
quarkus-langchain4j-workshop
quarkusioQuarkus LangChain4J Workshop that demonstrates both single AI service capabilities and Agentic AI orchestration
Node Code Sandbox MCP 🛠️
mozicim# 🐢🚀 Node.js Sandbox MCP ServerThis repository hosts a Node.js server that implements the Model Context Protocol (MCP) for running JavaScript in isolated Docker containers. It allows for on-the-fly npm dependency installation, making it easy to execute code safely and efficient
Agentic MCP Client
peakmojoA standalone agent runner that executes tasks using MCP (Model Context Protocol) tools via Anthropic Claude, AWS BedRock and OpenAI APIs. It enables AI agents to run autonomously in cloud environments and interact with various systems securely.
评论