Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

feat: add automatic MCP transport selection for 2024-11-05 / 2025-03-26 / 2025-06-18 vs 2025-11-25

未关闭
#12,262 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
65/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
go
领域
api

调研方向

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 内容生成。

描述

enhancement

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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mudler/LocalAI 的其他 Issue

查看 mudler/LocalAI 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。