mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-08-04 14:02:22 +00:00
* fix(mcp): drop protocol-reserved _meta keys from model-visible output Follow-up to #2596. The MCP spec reserves _meta key prefixes whose labels include "modelcontextprotocol" or "mcp" for protocol use; those entries carry host/protocol plumbing rather than model-facing data, so filter them out before serializing the <mcp-structured-result> block. Unprefixed and vendor-prefixed keys still pass through — their semantics belong to the server. Also moves the v2 implementation commentary into the module header per the agent-core-v2 comment convention. * fix(mcp): reserve _meta prefixes only when a label follows mcp/modelcontextprotocol Per the spec's key-name rules a prefix is reserved when a modelcontextprotocol or mcp label is followed by at least one more label; a trailing reserved word (com.example.mcp/) is a legitimate vendor namespace and now passes through. --------- Co-authored-by: zouying <zouying@moonshot.cn> |
||
|---|---|---|
| .. | ||
| agent | ||
| base/common | ||
| config | ||
| di | ||
| errors | ||
| fixtures | ||
| flags | ||
| harness | ||
| hooks | ||
| logging | ||
| loop | ||
| mcp | ||
| plugin | ||
| profile | ||
| rpc | ||
| services | ||
| session | ||
| skill | ||
| tools | ||
| utils | ||
| prompt-placeholders.test.ts | ||
| setup.ts | ||