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(
425425end
426426```
427427
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:
429429
430430``` ruby
431- server = ModelContextProtocol ::Server .new
431+ server = MCP ::Server .new
432432server.define_tool(
433433 name: " my_tool" ,
434434 description: " This tool performs specific functionality..." ,
@@ -629,11 +629,11 @@ prompt = MCP::Prompt.define(
629629end
630630```
631631
632- 3 . Using the ` ModelContextProtocol ::Server#define_protocol ` method:
632+ 3 . Using the ` MCP ::Server#define_prompt ` method:
633633
634634``` ruby
635- server = ModelContextProtocol ::Server .new
636- server.define_protocol (
635+ server = MCP ::Server .new
636+ server.define_prompt (
637637 name: " my_prompt" ,
638638 description: " This prompt performs specific functionality..." ,
639639 arguments: [
You can’t perform that action at this time.
0 commit comments