feat(mcp): 新增穿透服务诊断工具,支持AI自动排查故障 - #80
Merged
Merged
Conversation
Owner
|
由于冲突太多,请先修复冲突才能评审,建议关闭后重新拉最新分支rebase提交 |
- 扩展MCP工具集,新增5个诊断工具: * frp_client_detail: FRP客户端状态、代理列表、错误日志 * nps_client_detail: NPS客户端诊断信息 * easytier_client_detail: EasyTier客户端及peer列表 * wireguard_interface_detail: WireGuard接口及peer详情 * cftunnel_detail: Cloudflare Tunnel状态与日志 - 各service层新增Get*Detail方法,聚合配置、状态、日志信息 - AI助手可通过MCP查询任意穿透服务详细状态 - 解决工具日志查询不完整问题(frp/nps/wg新增支持) 关联Issue: PIKACHUIM#6
suantea
force-pushed
the
feat/mcp-diag-tools
branch
from
September 2, 2026 05:24
5de16e8 to
515fea3
Compare
suantea
force-pushed
the
feat/mcp-diag-tools
branch
2 times, most recently
from
September 5, 2026 07:23
bd58d53 to
91a7bee
Compare
修复 PR Checks workflow(同 feat/mtls 修复版)
suantea
force-pushed
the
feat/mcp-diag-tools
branch
from
September 5, 2026 08:04
3a5ffcf to
89edfb8
Compare
PIKACHUIM
reviewed
Sep 8, 2026
PIKACHUIM
left a comment
Owner
There was a problem hiding this comment.
🙏 感谢贡献 @suantea 持续迭代!
🤖 AI 自动审核声明:本评审报告由 AI 自动生成,当前使用 Claude Opus 5 模型进行分析。
🎯 结论
✅ Approve(增量确认)— 本轮仅 rebase 适配,feature 无实质变化
🔄 本轮变化
自上次评审(09-04)后,分支 rebase 到最新 main,追加 2 个公共基础 commit:
ci: fix PR checks - frontend artifact upload/download for go embedfix(selector): ProbeLines 取消确定性(即 #88 的内容,已通过 rebase 扩散到本分支)
feature 核心 commit(feat(mcp): 新增穿透服务诊断工具,09-02)无任何改动。
✅ 上轮问题回查
- 上轮(增量 v2)已 Approve:冲突解决、范围精简到 6 文件、
Settings.tsxrender 期 setState 的 P1 已随范围清理消失。 - 本轮 rebase 后未引入新问题,
mergeable: clean。
📊 变更统计
当前规模维持 6 文件(纯 backend service),无新增改动面。
🚨 关键问题
无。本轮为纯 rebase 适配。
🎯 结论:✅ Approve — feature 内容稳定,无新增问题,建议合并(最终由维护者判定)。
PIKACHUIM
approved these changes
Sep 8, 2026
PIKACHUIM
left a comment
Owner
There was a problem hiding this comment.
✅ 评审通过:MCP 穿透服务诊断工具,rebase 干净,问题已修复,可合并。
This was referenced Sep 22, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增功能
扩展 MCP 工具集,新增 5 个穿透服务诊断工具,供 AI 助手自动排查故障:
frp_client_detailnps_client_detaileasytier_client_detailwireguard_interface_detailcftunnel_detail改动文件
backend/service/frp/manager.go: 新增GetClientDetail()方法backend/service/nps/manager.go: 新增GetClientDetail()方法backend/service/easytier/manager.go: 新增GetClientDetail()方法backend/service/wireguard/manager.go: 新增GetInterfaceDetail()方法backend/service/cftunnel/manager.go: 新增GetTunnelDetail()方法backend/service/mcp/server.go: 新增5个MCP工具注册及处理函数关联Issue