mcp-dynamic-orchestrator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOverview
概述
Use this skill to:
- Discover which MCP servers are available and what they are for.
- Inspect a specific MCP's capabilities without loading all tool schemas.
- Execute TypeScript/JavaScript that calls MCP tools via generated modules.
mcp-clients/*
If no MCP servers are configured, will respond with an empty list
and a message pointing to so the user
can add MCP entries.
list_mcp_capabilitiesskills/mcp-dynamic-orchestrator/mcp.registry.jsonThis skill reads from , so adding an MCP entry there (for example the
Cloudflare MCP) automatically makes it discoverable without changing tool wiring.
mcp.registry.json使用此技能可实现:
- 发现可用的MCP服务器及其用途。
- 无需加载所有工具架构即可检查特定MCP的功能。
- 执行通过生成的模块调用MCP工具的TypeScript/JavaScript代码。
mcp-clients/*
如果未配置任何MCP服务器,将返回空列表,并给出指向的提示信息,以便用户添加MCP条目。
list_mcp_capabilitiesskills/mcp-dynamic-orchestrator/mcp.registry.json此技能读取文件,因此在其中添加MCP条目(例如Cloudflare MCP)后,无需修改工具连接即可自动使其可被发现。
mcp.registry.jsonCloudflare MCP example
Cloudflare MCP示例
The Cloudflare MCP server can be configured in like this:
mcp.registry.jsonjson
{
"id": "cloudflare",
"title": "Cloudflare platform MCP",
"summary": "Interact with Cloudflare's MCP endpoint for documentation, examples, and platform operations exposed via the official Cloudflare MCP server.",
"mcp": {
"transport": "stdio",
"command": "npx",
"args": [
"mcp-remote",
"https://docs.mcp.cloudflare.com/sse"
]
},
"domains": ["cloudflare", "workers", "kv", "r2", "queues", "zero_trust", "networking", "security", "observability"],
"tags": ["cloudflare", "platform", "infra", "docs", "workers", "mcp"],
"examples": [
"Fetch Cloudflare Workers documentation for a specific API.",
"Search Cloudflare platform docs for queues or KV usage patterns.",
"Look up configuration guidance for Zero Trust or networking features."
],
"sensitivity": "low",
"visibility": "default",
"priority": 10,
"autoDiscoverTools": true
}With this entry present:
- will return
list_mcp_capabilitieswhen queries mention Cloudflare, Workers, KV, R2, Queues, etc.cloudflare - with
describe_mcpwill surface concise tool summaries from the Cloudflare MCP server.id: "cloudflare" - lets the agent write TypeScript such as:
execute_mcp_code
ts
import * as cloudflare from "mcp-clients/cloudflare";
async function main() {
const docs = await cloudflare.search_docs({ query: "Workers KV" });
console.log(docs.summary);
}The actual available functions under are generated dynamically
from the MCP tool definitions; the agent should always:
mcp-clients/cloudflare- Discover via .
list_mcp_capabilities - Inspect via to see available operations.
describe_mcp - Use those operations via .
execute_mcp_code
Cloudflare MCP服务器可在中按如下方式配置:
mcp.registry.jsonjson
{
"id": "cloudflare",
"title": "Cloudflare platform MCP",
"summary": "Interact with Cloudflare's MCP endpoint for documentation, examples, and platform operations exposed via the official Cloudflare MCP server.",
"mcp": {
"transport": "stdio",
"command": "npx",
"args": [
"mcp-remote",
"https://docs.mcp.cloudflare.com/sse"
]
},
"domains": ["cloudflare", "workers", "kv", "r2", "queues", "zero_trust", "networking", "security", "observability"],
"tags": ["cloudflare", "platform", "infra", "docs", "workers", "mcp"],
"examples": [
"Fetch Cloudflare Workers documentation for a specific API.",
"Search Cloudflare platform docs for queues or KV usage patterns.",
"Look up configuration guidance for Zero Trust or networking features."
],
"sensitivity": "low",
"visibility": "default",
"priority": 10,
"autoDiscoverTools": true
}添加此条目后:
- 当查询提及Cloudflare、Workers、KV、R2、Queues等内容时,将返回
list_mcp_capabilities。cloudflare - 使用调用
id: "cloudflare"将显示来自Cloudflare MCP服务器的简洁工具摘要。describe_mcp - 允许Agent编写如下TypeScript代码:
execute_mcp_code
ts
import * as cloudflare from "mcp-clients/cloudflare";
async function main() {
const docs = await cloudflare.search_docs({ query: "Workers KV" });
console.log(docs.summary);
}mcp-clients/cloudflare- 通过进行发现。
list_mcp_capabilities - 通过检查可用操作。
describe_mcp - 通过使用这些操作。
execute_mcp_code
How to use
使用方法
- Call with a natural language query or filters to see which MCPs exist.
list_mcp_capabilities - For a chosen MCP (e.g. ), call
cloudflareto understand its operations.describe_mcp - Write TypeScript/JavaScript that imports from and calls the exported functions.
mcp-clients/<id> - Run your code with , optionally restricting
execute_mcp_codefor safety.allowedMcpIds
- 调用并传入自然语言查询或筛选条件,查看存在哪些MCP。
list_mcp_capabilities - 对于选定的MCP(例如),调用
cloudflare了解其操作。describe_mcp - 编写从导入并调用导出函数的TypeScript/JavaScript代码。
mcp-clients/<id> - 使用运行代码,可选择性地限制
execute_mcp_code以保障安全。allowedMcpIds
Rules
规则
- Do not assume individual MCP tools are top-level tools.
- Always: discover → describe → generate code → .
execute_mcp_code - Request in
detail: "schema"only when exact parameter shapes are required.describe_mcp
- 不要假设单个MCP工具是顶级工具。
- 始终遵循:发现 → 描述 → 生成代码 → 的流程。
execute_mcp_code - 仅当需要确切参数格式时,才在中请求
describe_mcp。detail: "schema"
Known Limitations
已知限制
Sandbox Security (CRITICAL)
沙箱安全性(CRITICAL)
⚠️ The current sandbox implementation is NOT secure for untrusted code.
- Uses which is NOT a security boundary
vm.createContext() - Can be escaped via prototype pollution, require() manipulation, etc.
- Only enable for Claude-generated code (trusted source)
- Requires environment variable
MCP_ORCH_ENABLE_SANDBOX=1 - See for complete security details
references/security-model.md
⚠️ 当前沙箱实现对于不可信代码并不安全。
- 使用,这并非安全边界
vm.createContext() - 可通过原型污染、require()操纵等方式逃逸
- 仅对Claude生成的代码启用(可信来源)
- 需要设置环境变量
MCP_ORCH_ENABLE_SANDBOX=1 - 完整安全细节请参阅
references/security-model.md
Other Limitations
其他限制
- No TypeScript compilation: User code in format will fail
.ts - No module resolution: Imports from don't resolve; use
mcp-clients/*API$call() - Static registry: Adding/removing MCPs requires restart
- Limited error handling: Generic errors for MCP connection failures
For detailed troubleshooting, see .
references/troubleshooting.md- 无TypeScript编译:格式的用户代码将执行失败
.ts - 无模块解析:无法解析的导入;请使用
mcp-clients/*API$call() - 静态注册中心:添加/移除MCP需要重启服务
- 有限的错误处理:MCP连接失败时仅返回通用错误
详细故障排除请参阅。
references/troubleshooting.mdProduction Status
生产状态
What's Working ✅:
- Discovery via (fully functional)
list_mcp_capabilities - Inspection via (fully functional)
describe_mcp - Registry management (16 MCPs configured)
- MCP clients (stdio + HTTP transports)
- Safety controls (visibility, sensitivity, policies)
What's Limited 🟡:
- Code execution (requires env flag, sandbox not secure)
- Testing (basic smoke tests only)
What's Planned 🔮:
- Secure sandbox with Worker threads (v1.1)
- TypeScript compilation support (v1.1)
- Module resolution (v1.1)
- Dynamic registry updates (v1.2)
For complete roadmap, see in repository root.
plan.md已实现功能 ✅:
- 通过进行发现(功能完整)
list_mcp_capabilities - 通过进行检查(功能完整)
describe_mcp - 注册中心管理(已配置16个MCP)
- MCP客户端(stdio + HTTP传输)
- 安全控制(可见性、敏感度、策略)
功能受限 🟡:
- 代码执行(需要环境变量标记,沙箱不安全)
- 测试(仅基础冒烟测试)
计划功能 🔮:
- 基于Worker线程的安全沙箱(v1.1)
- TypeScript编译支持(v1.1)
- 模块解析(v1.1)
- 动态注册中心更新(v1.2)
完整路线图请参阅仓库根目录下的。
plan.md