McpOrchestrator

io.github.Byggarepop由 GitHub 账号 Byggarepop 发布v0.7.6更新于 Oct 24, 2026

Route one agent through one MCP server to many, with progressive tool discovery to shrink context.

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

一个 .NET 编写的 MCP 编排器,位于智能体与多个下游 MCP 服务器之间,按需加载工具清单以压缩上下文。

可以做什么
  • 通过元工具列出下游服务器及其能力
  • 按任务需要检索并加载工具定义,再把调用路由到对应服务器
  • 作为纯转发层,把智能体的请求原样转给下游服务器
  • 从本地目录、git 仓库或 HTTP 索引提供 Agent Skills,先只暴露名称和一行描述
  • 分析现有 MCP 配置的 token 占用,并从宿主配置生成编排器配置
适用场景
当智能体连接多个 MCP 服务器、其工具清单在每一轮都占用大量上下文时适用;也适合希望只有一个入口、按需发现工具与技能而不必预先列出全部内容的场景。
运行要求
以 .NET 工具形式通过 stdio 在本机运行(NuGet 包 McpOrchestrator),使用分析命令需要 .NET SDK。初始化会读取现有的宿主配置,例如 .mcp.json、.vscode/mcp.json 或 Cursor 配置;下游 stdio 服务器由编排器依据生成的 orchestrator.config.json 启动。未声明认证、环境变量或请求头。
安装前请注意
init 命令会改写你的 MCP 宿主配置,但会先备份原文件;请检查生成的配置以及智能体用于路由的自动生成能力摘要。下游服务器会按该文件中记录的命令和参数启动,使用前请核对。来自 git 或 HTTP 的技能源应配合允许/拒绝列表和完整性固定来管理。

安装

在 SourceWeft 中

  1. 打开 控制台中的 McpOrchestrator,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[McpOrchestrator — one relay between your agent and every MCP server]

McpOrchestrator — a .NET-native MCP orchestrator

[NuGet] [Downloads] [License: MIT]

Every MCP server you connect costs context before the agent does anything — its tool manifests sit in the prompt on every turn. McpOrchestrator puts one server between your agent and all the others and loads downstream tool manifests on demand, so the agent's always-on context stays flat no matter how many servers you add. The agent sees three meta-tools — list_capabilities → discover_tools → route — and the orchestrator is a pure relay: it forwards exactly what the agent sends, never interpreting it. It can also serve Agent Skills with the same on-demand discipline.

See it in 70 seconds

https://github.com/user-attachments/assets/741c1afa-4bef-4870-9b84-e2c245b8117e

Measured impact

Against a real workplace MCP setup, measured with the Copilot CLI's /usage:

Tokens in context
MCP connected directly (manifests loaded upfront)17,900
Same MCP behind McpOrchestrator1,400
Reduction~13x

The savings scale with the number of servers. Measure your own setup first — one command, nothing installed, not a single file changed (needs the .NET SDK):

bash
cd ~/my-project          # a folder with a .mcp.json / .vscode/mcp.json / Cursor configdotnet tool execute McpOrchestrator profile

Quick start

From an existing MCP setup, cd to the folder holding your host config (.mcp.json, .vscode/mcp.json, or a Cursor config) and run:

bash
dotnet tool execute McpOrchestrator --yes init      # dnx McpOrchestrator --yes init  works too

It lifts your stdio servers into a generated orchestrator.config.json, backs up the host config, and rewrites it to launch only the orchestrator. The generated catalog looks like this — one entry per downstream server:

jsonc
{  "capabilities": [    {      "name": "files",      "summary": "Read and search files under the project root.", // auto-generated      "transport": "stdio",      "command": "npx",      "args": ["-y", "@modelcontextprotocol/server-filesystem", "C:/projects"]    }    // …one entry per server init found  ]}

The summary line is what the agent routes on — refine any that read poorly. Restart your MCP host and you're done: the agent discovers everything on its own through list_capabilities → discover_tools → route, and every later edit to this file hot-reloads without a restart.

Add a skill

A skill is a folder with a SKILL.md — instructions the agent discovers and follows by itself when a task matches. Create one:

my-skills/└── release-notes/    └── SKILL.md
markdown
---name: release-notesdescription: Writes user-facing release notes from a git commit range. Use when asked for release notes or a changelog entry.---
1. Collect the commits since the last release tag.2. Group by user impact; drop internal-only changes.3. One sentence per change, present tense.

Point the orchestrator at the folder in orchestrator.config.json:

jsonc
"skills": {  "sources": [{ "id": "local", "type": "directory", "path": "C:/my-skills" }]}

Save — it hot-reloads. The agent now sees the skill's name + one-line description via list_skills and loads the full instructions only when a task calls for it. Skills can also come from a shared git repo or an HTTP index, with allow/deny lists and integrity pinning — see docs/skills.md.

Note: these skills are for the agent only — the model discovers and follows them through tools. They do not become host-native skills (no /skills listing or slash command in Claude Code, no IDE skill picker entry).

Documentation

Everything else lives in McpOrchestrator/README.md and docs/:

License

MIT

来源:README.md,提交 3b8ca4d

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

8
  1. v0.7.6最新Oct 20, 2026
  2. v0.7.5Oct 13, 2026
  3. v0.7.3Oct 11, 2026
  4. v0.7.1Oct 11, 2026
  5. v0.7.0Oct 11, 2026
  6. v0.6.1Oct 10, 2026
  7. v0.6.0Oct 10, 2026
  8. v0.5.2Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分