Skip to content

Commit 9bb0d93

Browse files
authored
Merge pull request #92 from patvice/bump-version-0.8.0
Version bump to 0.8
2 parents bfa1086 + 61bcfab commit 9bb0d93

File tree

5 files changed

+2
-64
lines changed

5 files changed

+2
-64
lines changed

docs/guides/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ This section contains guides for using RubyLLM MCP.
2626

2727
## Upgrading
2828

29-
- **[Upgrading from 0.8 to 0.9]({% link guides/upgrading-0.8-to-0.9.md %})** - Breaking changes and migration guide for version 0.9
29+
- **[Upgrading from 0.7 to 0.8]({% link guides/upgrading-0.7-to-0.8.md %})** - Breaking changes and migration guide for version 0.9
3030
- **[Upgrading from 0.6 to 0.7]({% link guides/upgrading-0.6-to-0.7.md %})** - Migration guide for version 0.7

lib/ruby_llm/mcp.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ def tools(blacklist: [], whitelist: [])
6161
tools.uniq(&:name)
6262
end
6363

64-
def support_complex_parameters!
65-
warn "[DEPRECATION] RubyLLM::MCP.support_complex_parameters! is no longer needed " \
66-
"and will be removed in version 0.8.0"
67-
# No-op: Complex parameters are now supported by default
68-
end
69-
7064
def mcp_configurations
7165
config.mcp_configuration.each_with_object({}) do |config, acc|
7266
acc[config[:name]] = config

lib/ruby_llm/mcp/configuration.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ def load_mcps_config(config)
117117
attr_accessor :request_timeout,
118118
:log_file,
119119
:log_level,
120-
:has_support_complex_parameters,
121120
:roots,
122121
:sampling,
123122
:max_connections,
@@ -142,14 +141,6 @@ def reset!
142141
set_defaults
143142
end
144143

145-
def support_complex_parameters!
146-
warn "[DEPRECATION] config.support_complex_parameters! is no longer needed and will be removed in version 0.8.0"
147-
return if @has_support_complex_parameters
148-
149-
@has_support_complex_parameters = true
150-
RubyLLM::MCP.support_complex_parameters!
151-
end
152-
153144
def logger
154145
@logger ||= Logger.new(
155146
log_file,
@@ -220,9 +211,6 @@ def set_defaults
220211
@log_level = ENV["RUBYLLM_MCP_DEBUG"] ? Logger::DEBUG : Logger::INFO
221212
@logger = nil
222213

223-
# Complex parameters support
224-
@has_support_complex_parameters = false
225-
226214
# MCPs configuration
227215
@mcps_config_path = nil
228216
@mcp_configuration = []

lib/ruby_llm/mcp/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module RubyLLM
44
module MCP
5-
VERSION = "0.7.1"
5+
VERSION = "0.8.0"
66
end
77
end

spec/ruby_llm/mcp/configuration_spec.rb

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
expect(config.request_timeout).to eq(8000)
1414
expect(config.log_file).to eq($stdout)
1515
expect(config.log_level).to eq(Logger::INFO)
16-
expect(config.has_support_complex_parameters).to be(false)
1716
expect(config.protocol_version).to eq(RubyLLM::MCP::Protocol.latest_version)
1817
end
1918

@@ -53,11 +52,6 @@
5352
expect(config.log_level).to eq(Logger::ERROR)
5453
end
5554

56-
it "allows reading and writing has_support_complex_parameters" do
57-
config.has_support_complex_parameters = true
58-
expect(config.has_support_complex_parameters).to be(true)
59-
end
60-
6155
it "allows reading and writing protocol_version" do
6256
config.protocol_version = "2024-11-05"
6357
expect(config.protocol_version).to eq("2024-11-05")
@@ -77,7 +71,6 @@
7771
# Change some values
7872
config.request_timeout = 5000
7973
config.log_level = Logger::ERROR
80-
config.has_support_complex_parameters = true
8174
config.protocol_version = "2024-11-05"
8275

8376
# Reset
@@ -87,7 +80,6 @@
8780
expect(config.request_timeout).to eq(8000)
8881
expect(config.log_file).to eq($stdout)
8982
expect(config.log_level).to eq(Logger::INFO)
90-
expect(config.has_support_complex_parameters).to be(false)
9183
expect(config.protocol_version).to eq(RubyLLM::MCP::Protocol.latest_version)
9284
end
9385

@@ -145,42 +137,6 @@
145137
end
146138
end
147139

148-
describe "support_complex_parameters!" do
149-
it "sets has_support_complex_parameters to true" do
150-
config = RubyLLM::MCP::Configuration.new
151-
expect(config.has_support_complex_parameters).to be(false)
152-
153-
config.support_complex_parameters!
154-
expect(config.has_support_complex_parameters).to be(true)
155-
end
156-
157-
it "calls RubyLLM::MCP.support_complex_parameters!" do
158-
config = RubyLLM::MCP::Configuration.new
159-
allow(RubyLLM::MCP).to receive(:support_complex_parameters!)
160-
161-
config.support_complex_parameters!
162-
163-
expect(RubyLLM::MCP).to have_received(:support_complex_parameters!)
164-
end
165-
166-
it "does not call RubyLLM::MCP.support_complex_parameters! if already enabled" do
167-
config = RubyLLM::MCP::Configuration.new
168-
config.support_complex_parameters!
169-
170-
allow(RubyLLM::MCP).to receive(:support_complex_parameters!)
171-
172-
config.support_complex_parameters!
173-
174-
expect(RubyLLM::MCP).not_to have_received(:support_complex_parameters!)
175-
end
176-
end
177-
178-
it "can be configured with support_complex_parameters!" do
179-
RubyLLM::MCP.configure(&:support_complex_parameters!)
180-
181-
expect(RubyLLM::MCP.configuration.has_support_complex_parameters).to be(true)
182-
end
183-
184140
it "can be configured with a custom logger" do
185141
RubyLLM::MCP.configure do |config|
186142
config.logger = Logger.new($stdout)

0 commit comments

Comments
 (0)