
Cinch
io.github.yusufkadry由 GitHub 账号 yusufkadry 发布v0.1.1更新于 Oct 24, 2026
Run AI-generated code safely. gVisor-isolated Python/JS sandboxes for any MCP client. Pay per run.
概览
让助手在远程 gVisor 隔离沙箱中运行简短的 Python 或 JavaScript 程序,并读回标准输出、标准错误、退出码和耗时。
- 可以做什么
- 只提供一个工具 execute_code,用于运行自包含的 Python 或 JavaScript 程序,并返回标准输出、标准错误、退出码和耗时。每次调用都会在 Cinch 基础设施上获得一个干净、一次性的沙箱,无法访问你的机器、文件系统或本地网络。环境刻意保持最小化:Python 3.12 与 Node 20、仅标准库、无网络、根目录只读、可写 /tmp 很小、256 MB 内存、0.5 核 CPU、10 秒时限。调用之间状态不保留。
- 适用场景
- 适合希望助手真正执行其编写的代码并看到真实输出的场景,而不是把代码交给你自己运行。适用于只需标准库的小型自包含计算、解析或算法验证。不适合需要第三方包、网络访问、大内存或长时间运行的任务。
- 运行要求
- 需要本地 Node.js 运行时(Node 18 或更高版本),因为它通过 npx 以 stdio 进程方式运行。需要在 CINCH_API_KEY 环境变量中提供从 cinch.codes 获取的 Cinch API 密钥。需要访问 Cinch API 端点的网络,可用 CINCH_BASE_URL 覆盖;可用 CINCH_TIMEOUT_MS 设置客户端超时。仅支持桌面版 MCP 客户端。
安装
在 SourceWeft 中
- 打开 控制台中的 Cinch,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@cinch-codes/mcp
MCP server for Cinch. Gives your AI assistant a real sandbox to run code in.
Without it, an assistant writes code and you run it yourself. With it, the assistant runs the code and reads the actual output — inside a gVisor-isolated container on Cinch's infrastructure, with no access to your machine, filesystem, or local network.
Pay per execution. No subscription floor.
Setup
Get an API key at cinch.codes, then add the server to your MCP client.
Claude Desktop — claude_desktop_config.json:
Claude Desktop on Windows — same file, but Windows can't spawn npx directly, so wrap it with cmd /c:
Claude Code (macOS/Linux):
Claude Code (Windows):
Cursor — .cursor/mcp.json, same shape as the Claude Desktop config above.
Restart the client. That's it — no install step, npx fetches it on first run.
What it exposes
execute_code
Runs a self-contained Python or JavaScript program and returns stdout, stderr, exit code, and duration.
Each call gets a clean sandbox. State does not persist between calls, so every snippet needs to stand on its own.
The sandbox environment
Deliberately minimal. Worth knowing before you wonder why an import failed:
The tool description tells the model all of this up front, so it writes stdlib-only code instead of reaching for numpy and failing on the first call.
Configuration
Troubleshooting
Windows: "Failed to connect" in claude mcp list — you're missing the cmd /c wrapper. Windows resolves npx to a batch script that can't be spawned directly; re-add the server using the Windows command above.
Windows: npm error ENOENT ... AppData\Roaming\npm — some Node installs never create npm's global folder, and npx refuses to run without it. Create it once and retry:
Server exits immediately with "CINCH_API_KEY is not set" — the env var didn't reach the server. In Claude Code, put -e CINCH_API_KEY=... before the server name in claude mcp add. In config files, check the env block is inside the cinch entry.
Debugging any connection failure — run the server directly to see the real error instead of a generic status:
Correct behavior is cinch-mcp ... ready followed by silence — an MCP server waits for a client. Anything else printed is the actual failure.
Why sandboxed execution
Code written by a model is untrusted code — nothing reviewed it before it ran. Executing it directly on your machine means handing it your filesystem, your network, and your credentials. Cinch runs it somewhere else entirely, in a disposable container with kernel-level isolation, and sends back only the output.
Notes
- Requires Node 18 or newer.
- Output is capped at 20,000 characters per stream to protect your context window; anything beyond that is truncated with a marker.
- Runs that time out or exit non-zero are returned as tool errors, so the assistant knows the code failed and can correct it.
- Out-of-credit responses are surfaced clearly and instruct the assistant not to retry, so a drained balance does not turn into a retry loop.
Links
- cinch.codes
- JS/TS SDK:
@cinch-codes/pangolin - Python SDK:
pangolin-sdk
MIT
来源:README.md,提交 2309d48
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。