Skip to content

Commit b526ea0

Browse files
committed
[FIXUP] Update README tool definition examples test
1 parent d4fc68d commit b526ea0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

test/fixtures/files/code_snippet_wrappers/readme/tool_class_definition.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88
eval(File.read("code_snippet.rb"), b) # rubocop:disable Security/Eval -- We need to run the snippet in this context to extract the tool
99
tool = b.local_variable_get(:tool)
1010

11-
MCP.configure do |config|
12-
config.exception_reporter = ->(exception, server_context) do
13-
$stderr.puts "Exception: #{exception.inspect}"
14-
$stderr.puts "Exception cause: #{exception.cause.inspect}"
15-
end
16-
end
17-
1811
puts MCP::Server.new(tools: [tool]).handle_json(
1912
{
2013
jsonrpc: "2.0",

0 commit comments

Comments
 (0)