JR

joaoh82/rustunnel

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

660 stars 48 forks 质量 91 趋势 42AGPL-3.0

joaoh82/rustunnel 是一个从 https://github.com/joaoh82/rustunnel. 导入的 MCP 服务器候选

概览

joaoh82/rustunnel 是一个从 https://github.com/joaoh82/rustunnel. 导入的 MCP 服务器候选

概述(AI 翻译)

那个随你扩展的开源隧道。不要为闲置时间付费。安全、Rust-fast和按使用付费。

通过公共服务器通过加密的WebSocket连接,支持TLS终止、HTTP/TCP代理、实时仪表盘、Prometheus指标和审计日志,展示本地服务。

您可以自行托管或使用我们的托管服务。

使用 AI 代理? rustunnel 发布 MCP 服务器——一键设置光标(然后添加你的 API 令牌):

关于Claude Code、Claude Desktop、Windsurf等,请参见 rustunnel.com/agents.md 的代理集成指南或代理手册。


目录

  • 托管服务
  • 架构概述
  • 要求
  • 本地开发设置
  • 建造
  • 运行测试
  • 本地运行服务器
  • 本地运行客户端
  • Git钩子
  • 生产部署(Ubuntu / systemd)
  • 1 — 安装依赖
  • 2 — 构建发布二进制文件
  • 3 — 创建系统用户和目录
  • 4 — 安装服务器二进制文件
  • 5 — 创建服务器配置文件
  • 6 — TLS 证书(Let’s Encrypt + Cloudflare)
  • 7 — 建立系统服务
  • 8 — 开放防火墙端口
  • 9 — 验证服务器运行
  • 更新服务器
  • Docker 部署 ·完整指南

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

rustunnel

The open-source tunnel that scales with you. Don’t pay for idle time. Secure, Rust-fast, and Pay-as-you-go.

Expose local services through a public server over encrypted WebSocket connections with TLS termination, HTTP/TCP proxying, a live dashboard, Prometheus metrics, and audit logging.

You can self-host or use our managed service.

Using an AI agent? rustunnel ships an MCP server — one-click setup for Cursor (then add your API token):

For Claude Code, Claude Desktop, Windsurf, and others, see the agent integration guide or the agent manual at rustunnel.com/agents.md.


Table of Contents

在 GitHub 查看完整 README

安装

docker run --rm \
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "rustunnel": { "command": "rustunnel-mcp", "args": [ "--server", "edge.rustunnel.com:4040", "--api", "https://edge.rustunnel.com:8443" ], "env": { "RUSTUNNEL_TOKEN": "<your-token>" } } } }