ACP: let the client choose deferred for each MCP server (_meta)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 85/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
从packages/acp-server/src/convert.ts开始,检查acpMcpServersToConfigRecord,尤其是stdio和http/sse分支。然后阅读test/convert.test.ts,检查每个分支如何转换服务器元数据。完成标准是:每个服务器都传递布尔值kimi-code/deferred;缺失或非布尔值则保持默认行为,并有一个测试覆盖这种转换。
由索引模型根据 Issue 内容生成。
描述
What feature would you like to see?
Let an ACP client choose deferred for each MCP server that it sends in session/new, session/load and session/resume.
Today acpMcpServersToConfigRecord (packages/acp-server/src/convert.ts) builds the config record without deferred, so every ACP server uses [mcp] default_deferred (default true). The config schema and the connection manager already support deferred for each server, but an ACP client cannot set it. In 2.9.0 I found no other way: the --mcp-config flags are gone, there is no environment variable for default_deferred, and tool _meta is not read.
Proposal: read an optional key from the ACP _meta of each server:
{ "name": "core", "command": "core-mcp", "args": [], "env": [], "_meta": { "kimi-code/deferred": false } }
false: the tools of this server stay inline.true: the tools of this server are deferred.- missing or not a boolean: no change (
default_deferredapplies).
The ACP schema allows _meta on each MCP server, and clients other than Kimi Code ignore the key.
Additional information
My use case: I maintain OpenBot, which runs Kimi Code as an ACP agent. Each session gets a few MCP servers from OpenBot that the agent needs on each turn (chat, team and task tools), and also MCP servers that the user adds. I want the user's servers deferred, which saves prompt tokens, and OpenBot's own servers inline, so the agent does not need a search step before each core action. Today the only choice is one global setting for all servers.
I have a small change ready (a deferredFromMeta helper used by the stdio and http/sse branches, about 10 lines, and one test in test/convert.test.ts). I can send it as a PR if you invite me, or you can implement it in a different way.
- 主要语言
- TypeScript
- 星标
- 8.3k
- 派生
- 1.4k
- 平均合并
- 15 小时 9 分钟
- 30 天内合并 PR
- 751
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MoonshotAI/kimi-code 的其他 Issue
-
[Bug] kimi web 拒绝带方括号的 IPv6 Host 头([2409:…]:port 返回 403),IPv6 访问不可用可能已有人在做 @xuilen 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
MoonshotAI/kimi-code#5539 ·
维护者通常 1 天内回复
-
[Bug] Kimi RC workspace folder picker does not display symbolic link directories可能已有人在做 @markankamaransheogarat-sys 于 10 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 62/100
MoonshotAI/kimi-code#5296 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
MoonshotAI/kimi-code#5256 · 5 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
MoonshotAI/kimi-code#5062 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
MoonshotAI/kimi-code#5057 ·
维护者通常 1 天内回复
查看 MoonshotAI/kimi-code 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
Inbox: permission prompt (perm:) sessions appear as duplicate agents in the recipient picker and participants可能已有人在做 @Djiit 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
backnotprop/plannotator#4517 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
OpenSlides/openslides-client#6768 ·
维护者通常 1 天内回复
-
bug
难度 1/5 1-3 小时 新手友好度 90/100
modelcontextprotocol/modelcontextprotocol#3622 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
swc-project/swc-next-issues#1240 ·