feat: 透明转发 ACP mcpServers 并移除 MCP 文件物化 - #6
Closed
wanglongan587 wants to merge 3 commits into
Closed
Conversation
Keep Skill Effect. Session MCP is host-injected through session/new and session/load; this plugin no longer writes OpenCode config or registers an MCP Effect Resource.
Take SDK 0.9.0, model-cache invalidation, and the warm-session removal while keeping ACP mcpServers forwarding.
Author
|
MCP 已由 Desktop 通过 ACP session/new 和 session/load 的 mcpServers 注入。已发布 OpenCode 插件本来就会原样转发 ACP 帧,只拦截 Skill 协调期间的 session/prompt,并不依赖本 PR。本分支相对 main 没有改变 MCP 转发行为:主要是改名、文档、回归测试,以及删除从未进入正式版的文件物化方案。继续开着会让人误以为必须发新插件才能用 MCP。不发新的 .orax。 |
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.
做了什么
删除 OpenCode Agent 插件里的 MCP Effect Resource(不再把 MCP 写进
.opencode/opencode.json),只保留 Skill Effect。ACPsession/new和session/load中的mcpServers(stdio 与 HTTP)原样转发给 OpenCode CLI,插件不解析、不改写、不记录其中的密钥。解决什么问题
旧方案让插件把 Host 物化好的 MCP 文件读进工作区,并可能配合
ORA_MCP_*环境变量。最新规格改为由 Ora Desktop 通过 ACP 会话字段注入 MCP,插件只做透明转发。行为
session/prompt,用于 Skill Effect 的停顿与重启。session/new/session/load原样通过,包含 env 和 headers。ORA_MCP_*。.orax:现有已发布 Agent 已经能转发 ACP 帧。测试
deno task format、lint、check、test已通过。新增测试覆盖:只注册 Skill Resource;不拦截session/new/session/load的mcpServers。说明
已合并最新
main:plugin-sdk 0.9.0、删除package.json、去掉 warm-session、以及模型缓存失效。本 PR 的净变化仍是删除 MCP Resource + ACPmcpServers透明转发。旧的文件物化 PR #4 属于被否决的方案,建议关闭。