File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -425,10 +425,10 @@ tool = MCP::Tool.define(
425
425
end
426
426
```
427
427
428
- 3 . By using the ` ModelContextProtocol ::Server#define_tool` method with a block:
428
+ 3 . By using the ` MCP ::Server#define_tool` method with a block:
429
429
430
430
``` ruby
431
- server = ModelContextProtocol ::Server .new
431
+ server = MCP ::Server .new
432
432
server.define_tool(
433
433
name: " my_tool" ,
434
434
description: " This tool performs specific functionality..." ,
@@ -629,11 +629,11 @@ prompt = MCP::Prompt.define(
629
629
end
630
630
```
631
631
632
- 3 . Using the ` ModelContextProtocol ::Server#define_protocol ` method:
632
+ 3 . Using the ` MCP ::Server#define_prompt ` method:
633
633
634
634
``` ruby
635
- server = ModelContextProtocol ::Server .new
636
- server.define_protocol (
635
+ server = MCP ::Server .new
636
+ server.define_prompt (
637
637
name: " my_prompt" ,
638
638
description: " This prompt performs specific functionality..." ,
639
639
arguments: [
You can’t perform that action at this time.
0 commit comments