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 生成的概览

让助手通过本地控制套接字读取并修改 macOS 上 VPN Bypass 的分流设置:域名列表、服务、模式、内核路由与日志。

可以做什么
  • 读取应用状态与日志,包括当前状态和日志条目
  • 切换分流模式,启用或停用服务
  • 列出、添加、删除域名并切换其启用状态
  • 查看、清除和刷新内核路由,并刷新 DNS
  • 管理自定义模式的路由与规则,包括默认路由
  • 运行诊断站点、绕过站点和轮换代理端口等引导提示
适用场景
适用于在 Mac 上使用 VPN Bypass 菜单栏应用,并希望助手查看或调整哪些流量走 VPN 的场景,例如排查某站点分流错误,或把域名加入绕过列表。
运行要求
仅限 macOS,需安装并运行 VPN Bypass 应用(域名、服务、路由、刷新和日志相关工具需 4.9.0 或更新版本)。通过 npm 包以 stdio 在本地运行,安装或首次启动时会下载发布版二进制文件。可用 VPNB_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 分