Skip to content

fix(ide-host): 恢复新旧 MCP 客户端的 stdio 协议回归测试 - #203

Merged
1lck merged 3 commits into
mainfrom
devin/issue-2408-mcp-protocol-tests
Nov 27, 2026
Merged

1lck merged 3 commits into
mainfrom
devin/issue-2408-mcp-protocol-tests

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Refs 1lck/Lithe-IDEA#2408

Summary

契约中的 Node 验证脚本随旧客户端删除,CI 没有启动真实的 lithe-mcp 验证协议。新增三个独立 stdio 会话,覆盖旧版初始化、新版直接发现以及新版初始化后发现。每个会话按 macOS 和 Windows 的连接描述分别核对公开工具、四个 Build 工具及 ttlMs: 0、cacheScope: "private"。

删除协议 fixture 中过时的固定数量 17,从连接公开的工具清单推导期望结果。契约给出可直接运行的新命令。测试使用本包的 CARGO_BIN_EXE_lithe-mcp,因此放在 lithe-ide-host,在 Linux 和 Windows CI 为它启用 mcp feature。

验证

  • Ubuntu 上运行 cargo test --locked --manifest-path rust/Cargo.toml -p lithe-ide-host --features mcp,15 个原有测试和 3 个新增测试通过。
  • 临时将 helper 返回的 TTL 改为 60,三个场景全部捕获 60 与 0 的差异。恢复实现后复测通过。
  • cargo fmt --check 及该 crate 全 target、全 feature 的 Linux Clippy 通过。

Link to Devin session: https://app.devin.ai/sessions/44c3660e4d064e74b34d1b0d840af377
Open in Devin Desktop: https://app.devin.ai/desktop/session/44c3660e4d064e74b34d1b0d840af377?variant=devin
Requested by: @1lck

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@1lck
1lck merged commit 6064876 into main Nov 27, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant