fix esc - #39
Merged
Merged
fix esc#39
Conversation
SWangHash
pushed a commit
that referenced
this pull request
Aug 28, 2026
fix(mcp): tolerate MCP servers that do not implement ping Created-by: YodonTan Commit-by: YodonTan Merged-by: SWangHash Description: ## 说明 修复 #39(连不上华为"鸿蒙开发者知识"MCP 服务器)。 ## 改动内容 - `transport_remote.rs`:`ping()` 心跳收到标准 JSON-RPC `-32601 Method not found` 响应时视为连接健康(传输层存活、服务端正常回话,只是不实现 `ping` 方法),其余错误(认证、超时)保持原判定。 - `mcp_streamable_http_contracts.rs`:mock 服务器新增 `ping` 返回 `-32601` 的分支,并添加回归测试 `remote_ping_is_healthy_when_server_does_not_implement_ping`。 ## 验证 - `cargo check -p bitfun-services-integrations --features mcp --test mcp_streamable_http_contracts` 通过 - `rustfmt --check` 通过 - 完整集成测试未在当前环境执行:本机 Rust 工具链为 `aarch64-unknown-linux-ohos`,`aws-lc-sys` 在该目标下无法生成汇编符号导致最终链接失败(与本次改动无关) Closes #39 See merge request: OpenHarmonyPCDeveloper/BitFun!63
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.
修复esc不可用