feat(mcp): pass the Kimi Code deferred MCP server key through - #3099
Merged
Merged
Conversation
Kimi Code 0.43.0 added a per-server `deferred` flag that keeps a server's tools out of the top-level tool list until the model loads them on demand. The Kimi adapter emits an explicit allow-list, so the key could not be authored and was stripped on regenerate. Add it to the allow-list (import already spreads unknown keys) and document it. Refs #2502 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019yLN6CVqeZ8HCrjRb9o7mK
Owner
Author
|
@dyoshikawa Thank you! |
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.
Summary
Kimi Code 0.43.0 added a per-server MCP key
deferred: booleanthat keeps a server's tools out of the model's top-level tool list until they are loaded on demand.toKimiCodeServerinsrc/features/mcp/kimi-code-mcp.tsemits a fixed allow-list of per-server keys, sodeferredcould not be authored from.rulesync/mcp.jsoncand was stripped from an existing.kimi-code/mcp.jsonon regenerate.deferredto the allow-list. Import already spreads unknown server keys into the canonical server, so the round trip now preserves it in both directions.deferred: trueserver.deferredlisted in the Kimi Code MCP note indocs/reference/file-formats.md;src/generated/docs-content.tsregenerated.This is the mechanical MCP sub-gap recorded in the 2026-09-16 comment on the Kimi Code follow-up issue; the plugin-manifest target, the
executor/runtime_idkeys, thepreserveKimiCodeRulesforms and thedangerous_command_guardmodeling remain open there.Refs #2502
Evidence
deferred(boolean, all transports) and the "Loading tools on demand" section.deferred: z.boolean().optional()topackages/agent-core-v2/src/mcpCore/config-schema.ts(merged 2026-09-14, shipped in 0.43.0).Test plan
pnpm cicheckgreen locally.🤖 Generated with Claude Code
https://claude.ai/code/session_019yLN6CVqeZ8HCrjRb9o7mK