Repository navigation
feat(plugin): capture staged hosted MCP connection evidence - #22
Merged
Merged
Conversation
IanYet
marked this pull request as ready for review
October 22, 2026 17:18
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 在 OAuth 或初始化阶段失败时,请求可能没有到达服务端;现有证据也常缺少原始错误、发生时间和当前会话工具状态。这个 PR 让 Codex / Claude Code 的基础 Skill 在实际连接错误、认证后仍无工具、工具消失或陌生协议错误时运行独立诊断,保留决定下一步排查所需的事实。
报告区分原始失败、Agent 提供且标明来源的当前宿主快照、有界运行日志,以及后来独立发起的检查。检查匿名 MCP 入口和公开 OAuth 元数据,记录正文 / JSON / 协议错误、resource / issuer / PKCE 配置不一致,以及可获得的传输上下文。HTTP 200 的协议错误和未知错误不会被当成成功;缺少的阶段明确标记未观测,后续健康探测不代表原故障已恢复。
报告先保存到本地,再在现有权限允许时通过
/telemetry/events上报;使用既有eventName和attributes.mcpDoctor,按 UTF-8 分片并提供完整性 hash。上报不依赖 MCP 登录,不读取凭据库和会话正文,不需要安装 ChatCut Desktop。缺少注册地址时只保留本地报告;主动禁用的云端连接不发探测或上传,也不被重新启用。诊断不修改连接配置、不登录、不刷新凭据、不自动修复。验证(最终提交
8ddae5a583a138273f00bee6dcda77c6fa797a9f):?的文件名而失败,本 PR 未修改这些用例。新增提交的 Linux CI 状态以当前 GitHub 检查为准。边界和发布注意:
发布准备:用户已授权 Ready、合并和发布。发布头提交为 9d31199,仅在上述实现候选上递增两份插件版本。该发布头在 Windows / Node 24.12.0 重新通过 29 项 Doctor、证据采集与 Claude listing 检查;完整 Linux CI 和 CodeQL 以该头提交当前 GitHub 检查为准。