RM

r33drichards/mcp-js

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

65 stars 13 forks 质量 76 趋势 20AGPL-3.0

r33drichards/mcp-js 是从 https://github.com/r33drichards/mcp-js. 导入的 MCP 服务器候选

概览

r33drichards/mcp-js 是从 https://github.com/r33drichards/mcp-js. 导入的 MCP 服务器候选

概述(AI 翻译)

mcp-v8 是一个模型上下文协议服务器, 用Rust编写,允许AI代理在 沙箱式V8隔离器。你不需要接几十个窄工具,而是给 Agent One 工具 — run_js — 它编写代码:循环、分支、转换 数据,以及调用其他工具,通常其令牌数量远少于同等工具 工具调用链。

在其默认的有状态模式下,V8堆被保存为内容寻址 快照,因此代理可以在多回合内积累状态。主机能力 (网络、文件系统、子进程、WebAssembly、模块导入及调用其他程序 MCP服务器)默认都是关闭,只有通过显式解锁 OPA/Rego政策。

为什么是mcp-v8

  • 一个工具,无限能力。 代理运行一个程序,而不是固定的工具菜单。
  • 持久状态。 堆快照在调用间持久化变量和对象。
  • 默认安全。 fetch、文件系统、子进程和外部导入在你通过策略授予前都被拒绝。
  • **核强制约束。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

mcp-v8 — a JavaScript/TypeScript runtime for AI agents

mcp-v8 is a Model Context Protocol server, written in Rust, that lets an AI agent run JavaScript and TypeScript in a sandboxed V8 isolate. Instead of wiring up dozens of narrow tools, you give the agent one tool — run_js — and it writes code: looping, branching, transforming data, and calling other tools, often with far fewer tokens than equivalent tool-call chains.

In its default stateful mode the V8 heap is saved as a content-addressed snapshot, so an agent can build up state across many turns. Host capabilities (network, filesystem, subprocess, WebAssembly, module imports, and calls to other MCP servers) are all off by default and unlocked only by explicit OPA/Rego policies.

Why mcp-v8

  • One tool, unbounded capability. The agent runs a program, not a fixed menu of tools.
  • Durable state. Heap snapshots persist variables and objects across calls.
  • Secure by default. fetch, filesystem, subprocess, and external imports are denied until you grant them via policy.
  • Kernel-enforced confinement. Opt-in --sandbox-manifest confines the whole process with a nono capability manifest (Landlock on Linux, Seatbelt on macOS) as defense in depth beneath the policy layer.
  • Production-ready. stdio / Streamable HTTP / SSE transports, a REST sidecar, async execution with pagination, JWKS auth, and Raft-replicated clustering.

Documentation

Maintainers: see Publishing to the MCP Registry for the Docker-backed registry manifest and automated release process.

Full documentation lives at **** (built from site-docs/) — tutorials, how-to guides, concept explanations, and complete reference for the CLI flags, HTTP API, and MCP tools.

Community

Join the mcp-js Discord community for questions, examples, and project discussion.

Quick start

Install

# Server
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "js": { "command": "mcp-v8", "args": ["--stateless"] } } }