MoonshotAI / MoonshotAI/kimi-code
tool-select inert on K3: `dynamically_loaded_tools` capability not declared in the served model catalog
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
Summary
The experimental tool-select flag (progressive tool disclosure) cannot take effect on K3: the served model catalog never declares the select_tools/dynamically_loaded_tools capability, so MCP tool schemas are still sent in every request even with the flag enabled.
Evidence (2026-08-19, kimi-code 0.36.1)
[experimental] tool-select = trueis set in~/.kimi-code/config.toml(via the TUI experimental panel).- Fresh session wire: zero
select_tools/dynamically_loaded_toolsreferences; all 10 configured MCP servers' full tool schemas are discovered and loaded upfront (mcp.tools_discoveredcarries full inputSchema per server). GET https://api.kimi.com/coding/v1/models(subscription endpoint): thek3entry declares reasoning/image/video/think-effort capabilities only — no dynamic-tool-loading capability.- Changelog gates the feature on exactly this: 'only active on models that declare the capability' (0.23.x), capability renamed
select_tools→dynamically_loaded_toolsin 0.24.1.
Ask
Declare the dynamically_loaded_tools capability for k3 / k3-256k (and ideally kimi-for-coding*) so the tool-select flag can actually defer MCP tool schemas — currently the flag is set-but-inert, and users with larger MCP rosters pay the full schema cost in every request (and lose it again at each compaction, since 0.23.x already discards loaded schemas there).
Contributor 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.
Research direction
Start at the GET https://api.kimi.com/coding/v1/models entry and inspect how the k3 and k3-256k catalog records expose capabilities. Trace the tool-select capability gate, then verify that the catalog declares dynamically_loaded_tools and that enabled tool-select no longer loads every MCP schema upfront.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100