Repository navigation
feat: 接入官方 MCP 并恢复 Skill 工具视图 - #10
Merged
Merged
Conversation
This was referenced Oct 11, 2026
Merged
Merged
ZhuLinsen
marked this pull request as ready for review
October 11, 2026 13:37
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 SDK 管理 stdio 连接和子进程生命周期,Skill 同时限制模型可见工具与实际执行工具。
改动
验证
213 passed, 1 live test deselected;四组 CI 全部通过。
真实官方-SDK 本地 stdio 测试验证发现、拒绝、调用、跨任务卸载及进程退出。新增可接受额外字段的路由负向测试,确认 _name 无法绕过审批与 Skill 白名单。
官方 Python 物理行数 4683 → 4580。复现:python -m pytest tests/test_mcp_skills.py -q。
官方 SDK:https://github.com/modelcontextprotocol/python-sdk
兼容、边界与回滚
MCP SDK 锁定 2.3.0,安装 miniagent[mcp]。旧 MCPClient/load_mcp_tools 显式提示迁移,不进行隐式进程迁移。Streamable HTTP 暂缓,frontmatter 不是完整 YAML;#11 完成旧 API 新增工具恢复及迭代预算接入。
本项为 5/6,base 为 codex/lean-04-sessions;后续 #11 已同步本项修复。
按 #6 → #7 → #8 → #9 → #10 → #11 合入。优先 merge commit;squash 后重设后续 base。回滚时先 revert #11,再 revert 本项;不触发 tag。