针对Claude-Code的真正一键式MCP服务器,具有自动持久域和OAuth认证。
vibecode start - 就这么简单pip install vibecode
# 或者直接从git安装
pip install git+https://github.com/your-username/vibecode.git#subdirectory=vibecode
# 安装cloudflared(macOS)
brew install cloudflared
# 或者安装cloudflared(Linux/Windows)
# 查看:https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/installation
# 一次性设置(可选,用于持久域)
cloudflared tunnel login
# 启动所有服务
vibecode start
首次运行: 获取一个稳定的域名如 https://vibecode-123456.cfargotunnel.com
后续每次运行: 自动使用相同的域名!
只需一次将URL复制到您的Claude.ai MCP配置中——它永远不会改变。
vibecode start --quick
从终端输出中复制公共URL(例如,https://example.trycloudflare.com/uuid)
# 检查可用的工具
curl -X POST http://localhost:8300/ \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}
# 或使用包含的脚本
python query_tools.py --info
预期结果:17个工具,包括claude_code(Claude Code CLI集成)

在“添加自定义连接器”对话框中:
vibecode macbookv1(或您喜欢的任何名称)https://sign-returned-poultry-introduction.trycloudflare.com/<uuid>)重要: 确保只使用基础URL
您会看到一个安全警告:“此连接器尚未由Anthropic验证”
点击**"添加"**继续


一旦连接,Claude.ai可以:
连接后,您可以要求Claude:
使用claude code mcp代理,编写一个简单的Python hello world应用程序
Claude将:
# 主命令(如果有可用的持久域则自动使用)
vibecode start # 智能隧道选择
# 选项
vibecode start --quick # 强制快速隧道(随机域名)
vibecode start --no-tunnel # 仅本地
vibecode start --port 9000 # 自定义端口
# 设置
vibecode setup # 一次性设置指南
无需设置(即插即用):
vibecode start # → https://abc-random.trycloudflare.com (每次变化)
一次性设置(推荐):
cloudflared tunnel login # 仅需一次
vibecode start # → https://vibecode-123456.cfargotunnel.com (始终相同)
VibeCode自动:
--quick):快速设置,随机域名,停止时过期配置Claude可以访问的目录:
vibecode start --allowed-paths /path/to/project --allowed-paths /another/path
仅用于测试(不建议用于生产):
vibecode start --no-auth
无需隧道进行本地开发:
vibecode start --no-tunnel --port 8300
# 获取设置帮助
vibecode setup # 简单设置指南
vibecode tunnel guide # 详细隧道指南
# 隧道管理
vibecode tunnel list # 列出您的隧道
vibecode start --tunnel my-mcp # 使用特定隧道
VibeCode实现了OAuth 2.1,带有动态客户端注册(DCR),以便与Claude.ai无缝集成:
/.well-known/oauth-authorization-server/register/authorize/token如果Claude.ai无法连接:
检查您的服务器是否正在运行:
# 查找以下输出
📡 公共URL: https://your-domain.trycloudflare.com/uuid
验证OAuth端点是否可访问:
curl https://your-domain.trycloudflare.com/.well-known/oauth-authorization-server
检查服务器日志是否有错误消息
vibecode start重新启动allowed_paths配置VibeCode实现了完整的MCP(模型上下文协议)规范:
完整的OAuth 2.1实现包括:
cloudflared CLI(安装指南)对于贡献者,请参阅CLAUDE.md获取技术文档和开发设置。
MIT