Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng
#12,262 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@localai-org-maint-bot đang làm issue này rồi.

Từ ngày 27/9/2026.

  • #12304 của @localai-org-maint-bot — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Go
Star
49.8k
Fork
4.5k
Merge trung bình
19 giờ 42 phút
Pull request đã merge (30 ngày)
354

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mudler/LocalAI

Tất cả issue của mudler/LocalAI

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.