grpcui
$ grpcui 官方出品 低风险grpcui(fullstorydev/grpcui)通过 gRPC 反射或 .proto 文件发现服务方法,在本地启动 HTTP 服务并打开交互式浏览器调试界面(类似 gRPC 版 Postman)。主要面向人工可视化调试而非无头自动化(无头脚本调用建议使用 grpcurl)。
brew install grpcui grpcui 用于启动供人工探索式调试 gRPC 接口的本地 Web UI 进程;编码 Agent 执行无头 JSON gRPC 调用应改用 grpcurl。
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
默认启动阻塞式本地 HTTP 服务并自动打开浏览器(-open-browser=true),不提供无头 RPC 执行或 JSON CLI 输出。
- Blocking web server daemon rather than a one-shot CLI
- Agents should use sibling
grpcurlfor headless JSON gRPC calls
默认仅绑定 localhost(可通过 -bind 调整),且通过交互页面由人工触发调用,不会自动发送变更请求。
- Localhost binding by default; supports TLS and mTLS flags
单一 Go 二进制,可通过 brew install grpcui、go install 与跨平台 GitHub Releases 安装。
- Static Go binary with zero runtime dependencies
对人工可视化排查陌生 gRPC 服务很有帮助,但在自动化 Agent 流水线中效用较低。
- Auto-builds HTML forms from gRPC reflection or
.protodescriptors
FullStory 官方仓库(fullstorydev/grpcui),MIT 开源协议,状态稳定且更新较缓。
- MIT-licensed
fullstorydev/grpcuirepository
README 与 --help 清晰列出了反射、.proto 路径、TLS 与 -open-browser=false 参数。
- Documented flags for reflection,
.protopaths, and TLS
安全边界、鉴权与放权指南
无状态工具;仅在启动时通过 -H 传入元数据请求头或通过 -cert、-key 指定 TLS 证书。
MIT 开源 Go CLI,完全免费。
# grpcui Agent Rules - Do NOT run `grpcui` expecting it to exit: it starts a blocking HTTP server and opens a browser unless backgrounded. - Prefer `grpcurl` for headless gRPC calls and JSON responses; only start `grpcui` when the user wants an interactive web UI. - Pass `-open-browser=false` when starting `grpcui` as a background helper.
Agent 高频安全命令配方
只读查询(安全推荐)
grpcui -plaintext -open-browser=false -port 8080 localhost:50051
在 8080 端口启动本地 gRPC Web 调试界面且不弹出浏览器窗口。
grpcui -plaintext -import-path ./proto -proto service.proto -open-browser=false localhost:50051
当服务端未开启反射时,直接加载本地 .proto 定义暴露 Web 调试界面。
核心优势
- + 可为任意支持反射或提供
.proto的 gRPC 服务即时生成交互式表单调试界面。 - + 提供
-open-browser=false与-port选项方便后台托管供人工查看。
注意事项与踩坑点
- ! 并非无头 CLI:会持续阻塞作为 HTTP 守护进程运行且无 JSON 输出(自动化请用
grpcurl)。 - ! 默认启动会自动拉起系统浏览器。