技能潮 SkillTide 提交收录
官方说明7 个来源MCP 服务8 天前
mavdol/capsule/mcp-server

mavdol/capsule/mcp-server

k.svg" /> <source media="(prefers-color-scheme: light)" srcset=".github/images/logo-light.svg" /> Getting Started • Documentation • Issues • Contributing is a runtime for executing untrusted code in isolated environments.
在 GitHub 查看 ↗直链 · 无中转页
配置模板(请按你的客户端调整)
claude mcp add capsule -- npx -y capsule
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
298 ★ · mavdol/capsule · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 7 个来源列出
评分构成
综合分 703 · 298 ★ · 7 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 mavdol/capsule;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

---

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

Getting Started • Documentation • Issues • Contributing
---
is a runtime for executing untrusted code in isolated environments. Each task runs inside its own WebAssembly sandbox, providing:
- **Isolated execution**: Each task runs isolated from your host system
- **Resource limits**: Set CPU, memory, and timeout limits per task
- **Automatic retries**: Handle failures without manual intervention
- **Lifecycle tracking**: Monitor which tasks are running, completed, or failed
How It Works
With Python
Simply annotate your Python functions with the @task decorator:
With TypeScript / JavaScript
Use the task() wrapper function with full access to the npm ecosystem:
> [!NOTE]
> The runtime requires a task named "main" as the entry point. Python will create one automatically if none is defined, but it's recommended to set it explicitly.
When you run capsule run main.py (or main.ts), your code is compiled into a WebAssembly module and executed in isolated sandboxes.
Each task operates within its own sandbox with configurable resource limits, ensuring that failures are contained and don't cascade to other parts of your workflow. The host system controls every aspect of execution, from CPU allocation via Wasm fuel metering to memory constraints and timeout enforcement.
Getting Started
Python
Create hello.py:
Run it:
TypeScript / JavaScript
Create hello.ts:
Run it:
> [!TIP]
> Add --verbose to see real-time task execution details.
Run From Your Code
The run() function lets you execute tasks programmatically from your code instead of using the CLI. The args are automatically forwarded as parameters to the main task.
Python
Create sandbox.py:
TypeScript / JavaScript
> [!IMPORTANT]
> You need @capsule-run/cli in your dependencies to use the runner functions in TypeScript.
Create sandbox.ts:
> [!TIP]
> If you're looking for a pre-configured, ready-to-use solution, check out the Python adapter or TypeScript adapter.
Documentation
Task Configuration Options
Configure your tasks with these parameters:
| Parameter | Description | Type | Default | Example |
|-----------|-------------|------|---------|---------|
| name | Task identifier | str | function name (Python) / *required* (TS) | "process_data" |
| compute | CPU allocation level: "LOW", "MEDIUM", or "HIGH" | str | "MEDIUM" | "HIGH" |
| ram | Memory limit for the task | str | unlimited | "512MB", "2GB" |
| timeout | Maximum execution time | str | unlimited | "30s", "5m", "1h" |
| max_retries / maxRetries | Number of retry attempts on failure | int | 0 | 3 |
| allowed_files / allowedFiles | Folders accessible in the sandbox (with optional access mode) | list | [] | ["./data"], [{"path": "./data", "mode": "ro"}] |
| allowed_hosts / allowedHosts | Domains accessible in the sandbox | list | [] | ["api.openai.com", "*.anthropic.com"] |
| env_variables / envVariables | Environment variables accessible in the sandbox | list | [] | ["API_KEY"] |
Compute Levels
Capsule controls CPU usage through WebAssembly's **fuel mechanism**, which meters instruction execution. The compute level determines how much fuel your task receives.
- **LOW** provides minimal allocation for lightweight tasks
- **MEDIUM** offers balanced resources for typical workloads
- **HIGH** grants maximum fuel for compute-intensive operations
- **CUSTOM** to specify an exact fuel value (e.g., compute="1000000") for precise control over execution limits.
Response Format
Every task returns a structured JSON envelope containing both the result and execution metadata:
**Response fields:**
- success — Boolean indicating whether the task completed successfully
- result — The actual return value from your task (json, string, null on failure etc.)
来源
awesome · https://github.com/mavdol/capsule/tree/main/integrations/mcp-server
按领域浏览
MCP 服务
Traction
298 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引