让网页版AI也能直接通过MCP本地工具分析本地源码干活!
1. 直接下载 cloudflared
Invoke-WebRequest -Uri "https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.exe" -OutFile "C:\Users\Administrator\cloudflared.exe"
强制使用 http2 协议重启
C:\Users\Administrator\cloudflared.exe tunnel –url http://127.0.0.1:19207 –protocol http2
结果
连接确认结果
| 项目 | 状态 |
|---|---|
| 隧道 | ✅ http2 模式注册成功(Registered tunnel connection) |
| MCP 握手 | ✅ HTTP 200,会话已建立 |
| 工具列表 | ✅ 共 29 个工具(读写源码、资源、模块、编译、联网搜索等) |