
MetaMCP
io.github.mentu-ai由 GitHub 帳號 mentu-ai 發布v1.0.0更新於 Oct 25, 2026
Route long-tail MCP servers through three lazy tools and reviewed declarative Methods.
概覽
MetaMCP 是本地閘道,向助理提供三個穩定工具,用來探索、按需呼叫並執行宣告式 Method,以接入各式長尾 MCP 伺服器。
- 可以做什麼
- 探索已設定的伺服器、快取的工具 schema 與已審閱的 Method,不必啟動所有子伺服器,並可依伺服器從即時工具清單重新整理。按需呼叫一個明確指定的子工具,可設定逾時,失敗後不會自動重送。執行有界線、經 schema 驗證的宣告式 Method,跨子伺服器串接步驟,具備讀寫效果宣告、截止時間與逐步追蹤。從本機紀錄匯出雜湊鏈結的證據包,涵蓋已完成的呼叫與執行。可透過命令列瀏覽並加入圖庫伺服器,工具呼叫本身不會安裝任何套件。
- 適用情境
- 當你有許多不規則、長尾的 MCP 伺服器,又希望保持用戶端工具介面精簡時使用。適合重複的多步驟「取得—正規化—分析」流程,可用具版本、可測試的 Method 固定下來。高頻、精簡、安全敏感或需強驗證的伺服器應維持直連。
- 執行需求
- 需要 Node.js 20 或更新版本;以 stdio 或 Streamable HTTP 在本機執行。需透過設定參數提供列出子伺服器的設定檔。子伺服器憑證從主機環境參照,未解析的參照會導致啟動失敗。選用的語意搜尋需明確設定 METAMCP_VOYAGE_API_KEY。寫入或混合效果的 Method 需以允許寫入的參數啟動。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 MetaMCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
MetaMCP
[npm version] [Node.js] [License] [CI]
MetaMCP is a secure, on-demand gateway for the long tail of MCP servers. It gives an MCP client three stable tools:
mcp_discoverfinds configured servers, cached tool schemas, and reviewed Methods without starting every child.mcp_calllazily calls one explicitly named child tool.mcp_runexecutes a bounded, schema-validated declarative Method.
MetaMCP is deliberately not a replacement for every direct MCP connection. Keep important, frequently used, compact, or strongly authenticated MCPs direct. Put irregular long-tail servers behind MetaMCP, and promote repeated multi-step rituals into Methods.
When to use which path
Do not route billing, infrastructure mutation, identity, or another high-consequence server through MetaMCP merely to reduce tool count. The right boundary is operational, not ideological.
Quick start
Requires Node.js 20 or newer.
Inspect the complete model-facing surface before configuring a client:
The inspector reads the same definitions returned by MCP tools/list, then exits before loading configuration, opening storage, starting a child, or binding a transport. --json includes the complete input schemas for automated review and version-to-version diffs.
Create .mcp.json:
Child servers start only when explicitly refreshed, called, or used by a Method. Plain discovery reads configuration and cached schemas; it does not spawn all children.
Server names are stable cache identities and must contain 1-128 letters, numbers, dots, underscores, or hyphens; path separators and traversal-like names are rejected.
Safe client setup
init is preview-only unless --yes is supplied. Without a named client it considers existing client config files only.
Malformed JSON is rejected and left untouched. A named client may be created explicitly; MetaMCP never creates every supported client config by default.
For a manual client configuration, use an absolute path so the gateway does not depend on the client's working directory:
@latest is convenient for evaluation. Pin @mentu/[email protected] in controlled environments so upgrades are deliberate and reviewable.
The three tools
Discover
Discovery searches only live or cached schemas. To refresh one server from its live tool list:
refresh without a server is rejected so an agent cannot accidentally fan out across the whole configuration.
Call
MetaMCP never automatically replays a child call after a timeout or transport failure. The child may have completed a mutation before the response was lost. A later Method may retry only when its manifest explicitly declares that step idempotency: "safe".
Run a Method
Put JSON manifests in .metamcp/methods/ or pass --methods <directory>. The child server and tool names below are illustrative; bind them to reviewed servers in your own config:
Then call:
Methods are declarative rather than arbitrary JavaScript. They have bounded step counts, deadlines and output sizes; input/output JSON Schemas; explicit read/write effects; safe interpolation; typed gaps; and a per-step trace. Write or mixed-effect Methods are disabled unless the gateway operator starts MetaMCP with --allow-writes.
See Method Mode, the manifest schema, and the example Method. The design generalizes the consistency layer documented by Crawlio Method Mode.
Configuration and secrets
${NAME} references in env and HTTP headers resolve from the host environment by default. An unresolved reference fails startup; it is never passed to a child as a literal placeholder.
MetaMCP does not copy its ambient environment into stdio children. It inherits only a small runtime allowlist (PATH, home/temp/locale variables, and platform equivalents), variables named in inheritEnv, and values explicitly set in the child env block. Embedders can install a custom SecretProvider for a keychain or vault.
Discovery is local keyword search by default. To opt into Voyage-backed semantic search, set METAMCP_VOYAGE_API_KEY explicitly; discovery queries will then be sent to Voyage and the optional local SQLite vector index will be enabled. Ambient ANTHROPIC_API_KEY or VOYAGE_API_KEY variables never activate network calls.
Remote child servers use url, transportType, headers, and the existing OAuth fields:
HTTP gateway
HTTP mode binds to 127.0.0.1 by default:
An unauthenticated non-loopback bind fails closed. Configure OAuth resource-server validation or METAMCP_HTTP_BEARER_TOKEN before exposing the listener. Browser requests with an Origin header are denied unless the exact origin is supplied with --allow-origin or METAMCP_ALLOWED_ORIGINS.
MetaMCP serves legacy MCP clients and the 2026-07-28 stateless request envelope over stdio and Streamable HTTP. See Architecture for the supported boundary and deployment guidance.
Evidence
Completed mcp_call and mcp_run attempts are serialized into .metamcp/ledger.jsonl. Export a portable hash-linked bundle:
The operational ledger is not a remote attestation system. The export detects later changes inside a bundle; it does not prove that a compromised host recorded every event.
Optional gallery
The package still ships a human-operated server gallery:
The runtime never installs packages in response to an MCP tool call. Installation remains an explicit CLI/user action.
Gallery entries are either a local launcher (command + args) or a hosted Streamable HTTP endpoint (url, shown as 🌐 in --list). Hosted entries are written to .mcp.json as native remote servers; the gallery never routes a remote server through a stdio bridge package.
Upgrade from 0.x
Version 1.0 intentionally removes the model-facing provisioning, skill-advice, and JavaScript execution tools. It also changes HTTP binding, child environment inheritance, retries, and init. Read Migration to 1.0 before upgrading.
Security
Child MCP servers are trusted local or remote code with their own permissions. MetaMCP is a policy and lifecycle boundary, not an OS sandbox for untrusted packages. Review commands, pin packages where appropriate, scope credentials per child, and keep dangerous direct servers behind client-side human approval.
Report vulnerabilities privately as described in SECURITY.md.
Development
npm publish runs the full verify:release gate again. The gate derives the public tool surface from the built CLI and checks package, lockfile, changelog, and official MCP Registry metadata for version drift.
Apache-2.0 licensed. Maintained by Mentu AI.
來源:README.md,提交 ccc9ac7
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分