feat: add automatic MCP transport selection for 2024-11-05 / 2025-03-26 / 2025-06-18 vs 2025-11-25
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by locating LocalAI's MCP client integration and review the MCP SDK dependency in go.mod. Trace the current hard-coded StreamableClientTransport path, then verify automatic selection across the listed protocol versions and SSE fallback against representative MCP servers.
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
I'm coming from llama.cpp - localai fails on all my existing MCP servers. It appears the localai implementation of v1.5.0 of the mcp/go-sdk does not consider all permutations of transport/schema, currently hard-codes StreamableClientTransport and fails on 2025-06-18 stateless servers and SSE servers.
Describe the solution you'd like
Probe initialise, pick StreamableClientTransport{Stateless:false} for session-based 2025-11-25+, StreamableClientTransport{Stateless:true} for 2024-11-05/2025-03-26/2025-06-18, and fall back to SSEClientTransport
Describe alternatives you've considered
cleaner than a proxy - as should only be a single function (and the sdk is already in go.mod)
Additional context
- 主要语言
- Go
- 星标
- 49.2k
- 派生
- 4.5k
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 357
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mudler/LocalAI 的其他 Issue
-
bug unconfirmed
难度 2/5 1-3 小时 新手友好度 78/100
mudler/LocalAI#12337 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
mudler/LocalAI#11995 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
mudler/LocalAI#11991 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
mudler/LocalAI#11348 · 1 条评论 ·
维护者通常 1 天内回复
-
bug unconfirmed
难度 4/5 3-5 天 新手友好度 70/100
mudler/LocalAI#12331 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
priority/4/normal status/needs-triage type/bug/unconfirmed
难度 2/5 1-3 小时 新手友好度 78/100
authelia/authelia#13292 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
blinklabs-io/actions#138 ·
维护者通常 1 天内回复
-
[UI] AlbumDetails collapses multi-genre list to single primary genre on viewports < lg breakpoint未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复