File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ tool = MCP::Tool.define(
435435 read_only_hint: true ,
436436 title: " My Tool"
437437 }
438- ) do |args , server_context |
438+ ) do |args , server_context: |
439439 MCP ::Tool ::Response .new ([{ type: " text" , text: " OK" }])
440440end
441441```
@@ -451,7 +451,7 @@ server.define_tool(
451451 title: " My Tool" ,
452452 read_only_hint: true
453453 }
454- ) do |args , server_context |
454+ ) do |args , server_context: |
455455 Tool ::Response .new ([{ type: " text" , text: " OK" }])
456456end
457457```
@@ -541,7 +541,7 @@ tool = MCP::Tool.define(
541541 },
542542 required: [" mean" , " median" , " count" ]
543543 }
544- ) do |args , server_context |
544+ ) do |args , server_context: |
545545 # Calculate statistics and validate against schema
546546 MCP ::Tool ::Response .new ([{ type: " text" , text: " Statistics calculated" }])
547547end
You can’t perform that action at this time.
0 commit comments