@@ -173,7 +173,7 @@ class ApplicationController < ActionController::Base
173173 def index
174174 server = MCP ::Server .new (
175175 name: " my_server" ,
176- title: " Example Server Display Name" , # WARNING: This is a `Draft` and is not supported in the `Version 2025-06-18 (latest)` specification.
176+ title: " Example Server Display Name" ,
177177 version: " 1.0.0" ,
178178 instructions: " Use the tools of this server as a last resort" ,
179179 tools: [SomeTool , AnotherTool ],
@@ -392,7 +392,7 @@ This gem provides a `MCP::Tool` class that can be used to create tools in three
392392
393393``` ruby
394394class MyTool < MCP ::Tool
395- title " My Tool" # WARNING: This is a `Draft` and is not supported in the `Version 2025-06-18 (latest)` specification.
395+ title " My Tool"
396396 description " This tool performs specific functionality..."
397397 input_schema(
398398 properties: {
@@ -429,7 +429,7 @@ tool = MyTool
429429``` ruby
430430tool = MCP ::Tool .define(
431431 name: " my_tool" ,
432- title: " My Tool" , # WARNING: This is a `Draft` and is not supported in the `Version 2025-06-18 (latest)` specification.
432+ title: " My Tool" ,
433433 description: " This tool performs specific functionality..." ,
434434 annotations: {
435435 read_only_hint: true ,
@@ -660,7 +660,7 @@ The `MCP::Prompt` class provides three ways to create prompts:
660660``` ruby
661661class MyPrompt < MCP ::Prompt
662662 prompt_name " my_prompt" # Optional - defaults to underscored class name
663- title " My Prompt" # WARNING: This is a `Draft` and is not supported in the `Version 2025-06-18 (latest)` specification.
663+ title " My Prompt"
664664 description " This prompt performs specific functionality..."
665665 arguments [
666666 MCP ::Prompt ::Argument .new (
@@ -699,7 +699,7 @@ prompt = MyPrompt
699699``` ruby
700700prompt = MCP ::Prompt .define(
701701 name: " my_prompt" ,
702- title: " My Prompt" , # WARNING: This is a `Draft` and is not supported in the `Version 2025-06-18 (latest)` specification.
702+ title: " My Prompt" ,
703703 description: " This prompt performs specific functionality..." ,
704704 arguments: [
705705 MCP ::Prompt ::Argument .new (
@@ -824,7 +824,7 @@ The `MCP::Resource` class provides a way to register resources with the server.
824824resource = MCP ::Resource .new (
825825 uri: " https://example.com/my_resource" ,
826826 name: " my-resource" ,
827- title: " My Resource" , # WARNING: This is a `Draft` and is not supported in the `Version 2025-06-18 (latest)` specification.
827+ title: " My Resource" ,
828828 description: " Lorem ipsum dolor sit amet" ,
829829 mime_type: " text/html" ,
830830)
@@ -857,7 +857,7 @@ The `MCP::ResourceTemplate` class provides a way to register resource templates
857857resource_template = MCP ::ResourceTemplate .new (
858858 uri_template: " https://example.com/my_resource_template" ,
859859 name: " my-resource-template" ,
860- title: " My Resource Template" , # WARNING: This is a `Draft` and is not supported in the `Version 2025-06-18 (latest)` specification.
860+ title: " My Resource Template" ,
861861 description: " Lorem ipsum dolor sit amet" ,
862862 mime_type: " text/html" ,
863863)
0 commit comments