WeKnora/internal/application
Perfecto 03e2c47aec
feat(mcp): support 2026-07-28 alongside legacy clients (#4095)
* feat(mcp): support modern and legacy protocol connections

* fix(mcp): preserve annotated headers on modern tool calls

* fix(mcp): load parameter header schemas before tool calls

* fix(mcp): keep a working legacy session when discovery retry fails

Modern method-level 404s stay connected, while an expired SSE session still disconnects. A transient discover failure retries once, and a failed retry keeps the handshake that already succeeded.

* fix(mcp): wrap protocol negotiation lines for the linter

golangci-lint rejects lines longer than 120 characters.

* fix(mcp): retry protocol discovery without dropping the live session

A second initialize on the same transport clears a stateful legacy session when discover returns 404. Probe on a separate connection, and drop cached parameter headers after another client refreshes the directory.

---------

Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-10-10 15:15:06 +08:00
..
access feat(wiki): 增加跨知识库 Wiki 搜索 POST /wiki-search (#3535) 2026-09-25 22:22:58 +08:00
repository fix(models): align configuration and multimodal embedding workflows (#4080) 2026-10-10 11:06:00 +08:00
service feat(mcp): support 2026-07-28 alongside legacy clients (#4095) 2026-10-10 15:15:06 +08:00