ruby_llm_swarm-mcp 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ruby_llm/mcp/transports/streamable_http.rb +8 -2
- data/lib/ruby_llm/mcp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b3b1cd6b64545eca27db5b597bf4e95b79f152a003a788daee12e4a9416aba0
|
|
4
|
+
data.tar.gz: 6cd1bd9fca7791abc3fb7d24f8492ce9ef722118938bb4e0c8c05187346c2c75
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd63ef3760a230c197e1dae27db167e473f73f4f95fccef85ebbe527ee5dea117aba4e339203d04497e156a6cef50575efc476d3f41645f44ca57bf5ab9aab07
|
|
7
|
+
data.tar.gz: 39c0b26cbde9dc8639194ffe8eb495526df199e4d000dc8d9a25a1734733df11dd41380f6d162e4069d9104e910ccb462def7ec763a3acff7528d2e67600cf26
|
|
@@ -494,9 +494,15 @@ module RubyLLM
|
|
|
494
494
|
message: "OAuth authentication required. Server returned 401 Unauthorized.",
|
|
495
495
|
code: 401
|
|
496
496
|
)
|
|
497
|
-
when 405
|
|
497
|
+
when 400, 405
|
|
498
498
|
# Server doesn't support SSE - this is acceptable
|
|
499
|
-
|
|
499
|
+
# 405: Correct response per MCP spec (Method Not Allowed)
|
|
500
|
+
# 400: Non-compliant servers (e.g., Firecrawl) incorrectly return Bad Request
|
|
501
|
+
if response.status == 400
|
|
502
|
+
RubyLLM::MCP.logger.info "Server returned 400 for SSE request (non-compliant). Treating as 'SSE not supported'."
|
|
503
|
+
else
|
|
504
|
+
RubyLLM::MCP.logger.info "Server does not support SSE streaming"
|
|
505
|
+
end
|
|
500
506
|
nil
|
|
501
507
|
when 409
|
|
502
508
|
# Conflict - SSE connection already exists for this session
|
data/lib/ruby_llm/mcp/version.rb
CHANGED