ACP: let the client choose deferred for each MCP server (_meta)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend-api-design
Research direction
Start with packages/acp-server/src/convert.ts and inspect acpMcpServersToConfigRecord, especially its stdio and http/sse branches. Then read test/convert.test.ts and check how each branch converts server metadata. Done means a boolean kimi-code/deferred value is passed through for each server, while missing or non-boolean values leave the default behavior in place, with a test covering the conversion.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- TypeScript
- Stars
- 8.3k
- Forks
- 1.4k
- Avg merge
- 15h 9m
- Merged PRs (30d)
- 751
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MoonshotAI/kimi-code
-
[Bug] kimi web 拒绝带方括号的 IPv6 Host 头([2409:…]:port 返回 403),IPv6 访问不可用Possibly taken @xuilen claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
MoonshotAI/kimi-code#5539 ·
Maintainers usually reply within 1 day
-
[Bug] Kimi RC workspace folder picker does not display symbolic link directoriesPossibly taken @markankamaransheogarat-sys claimed this 10 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
MoonshotAI/kimi-code#5296 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MoonshotAI/kimi-code#5256 · 5 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MoonshotAI/kimi-code#5062 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
MoonshotAI/kimi-code#5057 ·
Maintainers usually reply within 1 day
All issues in MoonshotAI/kimi-code
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Inbox: permission prompt (perm:) sessions appear as duplicate agents in the recipient picker and participantsPossibly taken @Djiit claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
backnotprop/plannotator#4517 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
OpenSlides/openslides-client#6768 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
modelcontextprotocol/modelcontextprotocol#3622 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
swc-project/swc-next-issues#1240 ·