tunnels.io

io.github.tunnels-io由 GitHub 账号 tunnels-io 发布v0.0.2更新于 Oct 24, 2026

Read a tunnels.io account and put local ports online. Lists only the tools the token was granted.

概览

AI 生成的概览

读取 tunnels.io 账户信息(隧道、用量、令牌、账单、域名等),并可启动或停止本地端口隧道。

可以做什么
  • 列出隧道,并查看其用量与指标
  • 读取账户信息、API 令牌、发票、已注册域名、通知和云应用
  • 为本地端口启动 HTTP(公网地址以 HTTPS 提供)或 TCP 隧道
  • 停止正在运行的隧道
  • 仅列出令牌权限允许的工具,因此不同令牌看到的工具集不同
适用场景
适合让助手查看 tunnels.io 账户状态、用量或账单数据,或把本地开发端口临时公开到公网并在用完后关闭,而无需离开对话。
运行要求
以本地进程运行(二进制、Go 安装或面向 Claude Desktop 等客户端的 MCP 包)。需要以 tnl_ 开头的 tunnels.io 令牌,放在 TUNNELS_TOKEN 中,并在账户令牌页面按需勾选权限。start_tunnel 和 stop_tunnel 需要 PATH 上有 tunnels CLI(或用 TUNNELS_CLI 指定)。可选 TUNNELS_API 与 TUNNELS_INSPECT。需能访问 tunnels.io。
安装前请注意
令牌是可访问账户的凭据,应按需最小化权限;旧的全权限令牌无法访问账单、域名和云应用。start_tunnel 与 stop_tunnel 会调用 tunnels CLI 改变实际状态,并可能把本地端口暴露到公网。服务器只连接 tunnels.io,错误响应体会先做脱敏。

安装

在 SourceWeft 中

  1. 打开 控制台中的 tunnels.io,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

tunnels-mcp

MCP server for tunnels.io.

It runs locally, holds one CLI token, and gives an assistant read access to the account. It can also open a tunnel.

Install

Download a binary for your platform from the releases page, or build it:

go install github.com/tunnels-io/tunnels-mcp/cmd/[email protected]

Clients that take MCP bundles, such as Claude Desktop, can install tunnels-mcp-<version>.mcpb from the same page. It asks for the token.

The server is listed in the MCP Registry as io.github.tunnels-io/tunnels-mcp.

Token

Create one at tunnels.io/account/tokens. Tick the permissions you want.

Skipping a permission is not a broken tool. The server reads the token's permissions at startup and lists only the tools that work.

An older all-access token (*) works for everything except billing, domains and cloud apps. Those three services refuse *, so the server does not list their tools for such a token. Make a token on the page above to reach them.

TUNNELS_TOKEN     required, starts tnl_TUNNELS_API       default https://tunnels.ioTUNNELS_CLI       default "tunnels" on PATHTUNNELS_INSPECT   unset. The CLI inspector is off; set an address to enable it.

A config file works too, at ~/.config/tunnels/mcp.json:

json
{ "token": "tnl_..." }

The environment wins.

Client setup

json
{  "mcpServers": {    "tunnels": {      "command": "tunnels-mcp",      "env": { "TUNNELS_TOKEN": "tnl_..." }    }  }}

Tools

ToolPermission
list_tunnelstunnels:read
get_usageusage:read
get_metricsusage:read
get_accountaccount:read
list_tokenstokens:read
list_invoicesbilling:read
list_domainsregistrar:read
list_notificationsnotifications:read
list_cloud_appscloud:read
start_tunnelnone
stop_tunnelnone

Reads only, apart from the last two. Those shell out to the tunnels CLI, which must be on PATH. No tool changes a plan, buys a domain or deploys anything.

start_tunnel takes http (the default, served as HTTPS on the public URL) or tcp.

Token handling

The token goes to tunnels.io in a Bearer header, and to the CLI through the environment. Never a command line. Never a log. Never a tool result.

Error bodies are redacted before they are shown.

The server contacts tunnels.io and nothing else.

Build

make checkmake build

No dependencies.

Release

Push a tag such as v0.0.2. The release workflow builds six binaries and the MCPB bundle, creates the GitHub release, and publishes server.json to the MCP Registry. To build the same files locally, on macOS:

make release V=0.0.2

Licence

MIT. See LICENSE.

来源:README.md,提交 901a1be

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.0.2最新Sep 22, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分