Mcp Smart Proxy

io.github.daedalus由 GitHub 帳號 daedalus 發布v0.1.1更新於 Oct 24, 2026

An MCP server that provides a smart proxy to other mcp servers

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

一個本機 MCP 閘道,代理其他 MCP 伺服器,並透過語意搜尋提供其工具以節省 token。

可以做什麼
  • 透過 YAML 或 JSON 設定檔把多個上游 MCP 伺服器彙整到單一代理之後
  • 以語意方式列出與搜尋上游工具,再經由代理呼叫這些工具
  • 監看設定目錄,在執行時動態新增、修改或移除上游伺服器
  • 以本機 stdio 方式執行,或透過 streamable HTTP 在指定主機與連接埠提供服務
  • 從命令列建立索引、查看狀態並驗證代理設定
適用情境
當你連接多個 MCP 伺服器、希望只有一個入口且工具清單保持精簡,並以語意搜尋按需尋找工具,而不是把所有工具定義都放進上下文時適用。
執行需求
需以 pip 安裝 Python 套件。需要一份描述上游伺服器的代理設定檔,以及用於語意搜尋的嵌入與向量儲存後端。以本機程序執行;streamable HTTP 模式需指定主機與連接埠。
安裝前請注意
代理位於助理與所有上游伺服器之間,會繼承這些伺服器的存取權限及其使用的憑證。工具呼叫會轉送到上游伺服器,可能修改或刪除其中的資料。被監看目錄中的設定檔會自動載入,只應指向可信檔案。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Smart Proxy,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

MCPSmartProxy

Token-efficient MCP server gateway with semantic tool search

[PyPI] [Python] [Coverage] [Ruff]

mcp-name: io.github.daedalus/mcp-smart-proxy

Install

bash
pip install mcp-smart-proxy

Usage

python
from mcp_smart_proxy import ProxyConfig
config = ProxyConfig.from_file("proxy.yaml")

CLI

bash
mcp-smart-proxy --helpmcp-smart-proxy serve --config proxy.yamlmcp-smart-proxy serve --config proxy.yaml --watch ./servers/mcp-smart-proxy serve --config proxy.yaml --transport streamable-http --host 0.0.0.0 --port 8000mcp-smart-proxy index --config proxy.yamlmcp-smart-proxy status --config proxy.yamlmcp-smart-proxy validate --config proxy.yaml

The --watch option monitors a directory for .yaml, .yml, or .json files containing upstream server configurations. Add, modify, or remove files to dynamically update the available servers at runtime.

Transport Options

The --transport option supports:

  • stdio (default) - Standard input/output transport for local MCP clients

API

Config

  • ProxyConfig - Main configuration model
  • UpstreamConfig - Upstream server configuration
  • EmbeddingConfig - Embedding backend configuration
  • VectorStoreConfig - Vector store backend configuration

Models

  • ListResult - Result from the list tool
  • SearchResult - Result from the search tool
  • ToolResult - Result from tool calls

Development

bash
git clone https://github.com/daedalus/mcp-smart-proxy.gitcd mcp-smart-proxypip install -e ".[test]"
# run testspytest
# formatruff format src/ tests/
# lintruff check src/ tests/
# type checkmypy src/

來源:README.md,提交 06fa878

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分