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 分