VPN Bypass

io.github.GeiserX由 GitHub 帳號 GeiserX 發布v0.2.0更新於 Oct 29, 2026

Read and change VPN Bypass (macOS) routing: domain lists, services, modes, kernel routes, logs

概覽

AI 產生的概覽

讓助理透過本機控制 socket 讀取並修改 macOS 上 VPN Bypass 的分流設定:網域清單、服務、模式、核心路由與日誌。

可以做什麼
  • 讀取應用程式狀態與日誌,包括目前狀態和日誌項目
  • 切換分流模式,啟用或停用服務
  • 列出、新增、移除網域並切換其啟用狀態
  • 檢視、清除和重新整理核心路由,並重新整理 DNS
  • 管理自訂模式的路由與規則,包括預設路由
  • 執行診斷網站、繞過網站和輪換代理埠等引導提示
適用情境
適用於在 Mac 上使用 VPN Bypass 選單列應用程式,並希望助理檢視或調整哪些流量走 VPN 的情況,例如排查某網站分流錯誤,或把網域加入繞過清單。
執行需求
僅限 macOS,需安裝並執行 VPN Bypass 應用程式(網域、服務、路由、重新整理和日誌相關工具需 4.9.0 或更新版本)。透過 npm 套件以 stdio 在本機執行,安裝或首次啟動時會下載發行版二進位檔。可用 VPNB_SOCKET 指定控制 socket 路徑。
安裝前請注意
多數工具會改變分流:新增或移除網域、切換服務、清除核心路由、編輯自訂模式的路由與規則,並標記為破壞性操作,會觸發用戶端的確認提示。代理密碼透過獨立欄位傳遞,不會被回傳或記錄。設定 VPN_BYPASS_MCP_READ_ONLY=1 可只開放讀取工具和診斷提示。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

[vpn-bypass-mcp]

vpn-bypass-mcp

[CI] [License]

vpn-bypass-mcp is an MCP server for VPN Bypass, the macOS menu bar app that decides which traffic uses the VPN and which goes around it. An AI agent uses it to read the app's state and change its routing through the app's local control socket. It runs on macOS only.

[MCP Inspector connected to vpn-bypass-mcp: set_mode selected in the tool list, with its description and the three modes it accepts]

Features

  • 23 tools, one per app action: status, domain lists, services, routing mode, kernel routes, DNS refresh, the log, and Custom-mode routes and rules. Each has a display title.
  • Every tool returns the app's own JSON unchanged, as text and as structuredContent; the 8 read tools also declare an outputSchema.
  • All four MCP hints on every tool. Every tool that changes where traffic goes is destructiveHint: true, adds included, so a client that confirms destructive calls asks you before an injected "route this through my proxy"; custom_add_route and custom_update_route are also openWorldHint: true.
  • set_mode sends nothing when the app is already in the asked-for mode.
  • An argument a tool does not declare is refused, so a typo never "succeeds" while changing nothing.
  • Three prompts: diagnose_site, bypass_site, rotate_proxy_port.
  • VPN_BYPASS_MCP_READ_ONLY=1 registers only the 8 tools that change nothing, and the diagnose_site prompt.
  • A proxy password travels in a separate field and is never returned, echoed or logged. Errors name the socket as control.sock, never your home folder.
  • stdio only; the server opens no network port.

Protocol

MCP 2026-07-28 (server/discover, per-request _meta, cache hints on lists) and every earlier revision down to 2024-11-05 (the initialize handshake), from the same binary. Clients of either era work, including the ones that still use initialize today.

Install

VPN Bypass must be open. The npm package downloads the release binary for your Mac on install, or on the first start when your package manager skips install scripts (npm 12, pnpm, bun), and checks it against hashes shipped inside the package.

Claude Code:

sh
claude mcp add --transport stdio vpn-bypass -- npx -y vpn-bypass-mcp

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json) and Cursor (~/.cursor/mcp.json):

json
{  "mcpServers": {    "vpn-bypass": {      "command": "npx",      "args": ["-y", "vpn-bypass-mcp"]    }  }}

VS Code (.vscode/mcp.json):

json
{  "servers": {    "vpn-bypass": {      "type": "stdio",      "command": "npx",      "args": ["-y", "vpn-bypass-mcp"]    }  }}

Codex (~/.codex/config.toml):

toml
[mcp_servers.vpn-bypass]command = "npx"args = ["-y", "vpn-bypass-mcp"]

Read-only: add VPN_BYPASS_MCP_READ_ONLY=1 to the server's environment ("env": {"VPN_BYPASS_MCP_READ_ONLY": "1"} in JSON, env = { VPN_BYPASS_MCP_READ_ONLY = "1" } in Codex, -e VPN_BYPASS_MCP_READ_ONLY=1 before the name in claude mcp add). The release binaries and building from source are in Getting started.

Tools

GroupToolsRead only
State and logstatus, get_logsyes
Modeset_mode
Domain listslist_domains (read), add_domain, remove_domain, set_domain_enabled
Serviceslist_services, get_service (read), set_service_enabled
Kernel routeslist_active_routes (read), clear_routes, refresh_routes, refresh_dns
Custom-mode routescustom_list_routes (read), custom_add_route, custom_update_route, custom_set_route_enabled, custom_remove_route
Custom-mode rulescustom_list_rules (read), custom_add_rule, custom_remove_rule, custom_set_default_route

The domain, service, active-route, refresh and log tools need VPN Bypass 4.9.0 or newer; status, set_mode and the Custom-mode tools work with older versions. Arguments, hints and the socket command of each tool are in Usage.

Documentation

The full documentation is at geiserx.github.io/vpn-bypass-mcp.

  • Getting started: requirements, npm, release binary, source, first run
  • Configuration: environment variables, read-only mode, timeouts, security
  • Usage: modes, the two kinds of route, every tool, errors
  • Development: build, test, release
  • Related projects: the VPN Bypass app, its vpnb command line, and where this server is listed

Related projects

VPN Bypass, the app, and its Homebrew tap.

License

MIT

來源:README.md,提交 9da8f94

工具

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

版本歷史

4
  1. v0.2.0最新Oct 29, 2026
  2. v0.1.2Oct 4, 2026
  3. v0.1.1Oct 1, 2026
  4. v0.1.0Sep 30, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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