mcp 1.5.0 → 1.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19daecce4ccef4ae391f54643fc8fca17360af39e58541404d090dab52858db8
4
- data.tar.gz: 75f1cac8a1b8c89b6a6a067b763751f39184e1846de5cfe317b3f8e3886fc5a0
3
+ metadata.gz: 8a1945319168ba9681dadea47a487f973d718e7f3504418a2b4b6e60bc0a1ba4
4
+ data.tar.gz: 6523b4e444a94354adc9421c54c1091acbbb82e6d2789625fca5b47c8df60457
5
5
  SHA512:
6
- metadata.gz: c1653c778f8e782c1ed7c4b66c538076fdce5f35fa00af054f1c9d06c1e78335a02e91734cc90d6107f8ae089946d5085d56d6fc2eeb27a11c84cc6e3f663737
7
- data.tar.gz: 29cf1b6ee37eed02b83745ce09731db507f64cb95dcb8376ad154525415807db717c8aebd96257c8261eda19b677317a719e8fbd37e0acf3d55e7d8aa1fd8883
6
+ metadata.gz: 9f67b440f824785842c513c350dcc6ffbe6753f6854924ae1655efce948dfde31fb29f5d431c763d314cef9863951722049aa45f1b2f3ccae667e6d621440007
7
+ data.tar.gz: 8fc66cc8e4f90c59eaeb3033ff0797735a6c0a1d91f0a2663f23b5250840f5a70b6854f24d55096cfb7288c66cda4c8d82b2616573af85677a35702a07c9070c
@@ -723,7 +723,8 @@ module MCP
723
723
  require_faraday!
724
724
  @client ||= Faraday.new(url) do |faraday|
725
725
  faraday.request(:json)
726
- faraday.response(:json)
726
+ # The client parses response bodies itself (`resolve_response_body`), so streamed and buffered responses
727
+ # take the same path; Faraday's json response middleware is deliberately left out.
727
728
  faraday.response(:raise_error)
728
729
 
729
730
  faraday.headers["Accept"] = ACCEPT_HEADER
@@ -1074,8 +1075,8 @@ module MCP
1074
1075
  elsif content_type&.include?("application/json")
1075
1076
  return parse_json_buffer(stream.buffer, method, params) unless stream.buffer.empty?
1076
1077
 
1077
- # Adapters without `on_data` support deliver the body via `response.body`,
1078
- # already parsed by the json response middleware.
1078
+ # Adapters without `on_data` support deliver the body via `response.body`; a JSON middleware
1079
+ # added by the Faraday customizer may have parsed it already.
1079
1080
  response.body.is_a?(String) ? parse_json_buffer(response.body, method, params) : response.body
1080
1081
  else
1081
1082
  raise RequestHandlerError.new(
data/lib/mcp/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MCP
4
- VERSION = "1.5.0"
4
+ VERSION = "1.5.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Model Context Protocol
@@ -108,7 +108,7 @@ licenses:
108
108
  - Apache-2.0
109
109
  metadata:
110
110
  allowed_push_host: https://rubygems.org
111
- changelog_uri: https://github.com/modelcontextprotocol/ruby-sdk/releases/tag/v1.5.0
111
+ changelog_uri: https://github.com/modelcontextprotocol/ruby-sdk/releases/tag/v1.5.1
112
112
  homepage_uri: https://ruby.sdk.modelcontextprotocol.io
113
113
  source_code_uri: https://github.com/modelcontextprotocol/ruby-sdk
114
114
  bug_tracker_uri: https://github.com/modelcontextprotocol/ruby-sdk/issues