You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ transport = MCP::Server::Transports::StreamableHTTPTransport.new(server, statele
163
163
#### Rails Controller
164
164
165
165
When added to a Rails controller on a route that handles POST requests, your server will be compliant with non-streaming
166
-
[Streamable HTTP](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#streamable-http) transport
166
+
[Streamable HTTP](https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#streamable-http) transport
167
167
requests.
168
168
169
169
You can use the `Server#handle_json` method to handle requests.
@@ -173,7 +173,7 @@ class ApplicationController < ActionController::Base
173
173
defindex
174
174
server =MCP::Server.new(
175
175
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",
177
177
version:"1.0.0",
178
178
instructions:"Use the tools of this server as a last resort",
179
179
tools: [SomeTool, AnotherTool],
@@ -383,15 +383,15 @@ If no exception reporter is configured, a default no-op reporter is used that si
383
383
384
384
### Tools
385
385
386
-
MCP spec includes [Tools](https://modelcontextprotocol.io/specification/2025-06-18/server/tools) which provide functionality to LLM apps.
386
+
MCP spec includes [Tools](https://modelcontextprotocol.io/specification/2025-11-25/server/tools) which provide functionality to LLM apps.
387
387
388
388
This gem provides a `MCP::Tool` class that can be used to create tools in three ways:
389
389
390
390
1. As a class definition:
391
391
392
392
```ruby
393
393
classMyTool < MCP::Tool
394
-
title "My Tool"# WARNING: This is a `Draft` and is not supported in the `Version 2025-06-18 (latest)` specification.
394
+
title "My Tool"
395
395
description "This tool performs specific functionality..."
396
396
input_schema(
397
397
properties: {
@@ -428,7 +428,7 @@ tool = MyTool
428
428
```ruby
429
429
tool =MCP::Tool.define(
430
430
name:"my_tool",
431
-
title:"My Tool",# WARNING: This is a `Draft` and is not supported in the `Version 2025-06-18 (latest)` specification.
431
+
title:"My Tool",
432
432
description:"This tool performs specific functionality...",
433
433
annotations: {
434
434
read_only_hint:true,
@@ -581,7 +581,7 @@ end
581
581
Please note: in this case, you must provide `type: "array"`. The default type
582
582
for output schemas is `object`.
583
583
584
-
MCP spec for the [Output Schema](https://modelcontextprotocol.io/specification/2025-06-18/server/tools#output-schema) specifies that:
584
+
MCP spec for the [Output Schema](https://modelcontextprotocol.io/specification/2025-11-25/server/tools#output-schema) specifies that:
585
585
586
586
-**Server Validation**: Servers MUST provide structured results that conform to the output schema
587
587
-**Client Validation**: Clients SHOULD validate structured results against the output schema
@@ -624,7 +624,7 @@ end
624
624
625
625
### Prompts
626
626
627
-
MCP spec includes [Prompts](https://modelcontextprotocol.io/specification/2025-06-18/server/prompts), which enable servers to define reusable prompt templates and workflows that clients can easily surface to users and LLMs.
627
+
MCP spec includes [Prompts](https://modelcontextprotocol.io/specification/2025-11-25/server/prompts), which enable servers to define reusable prompt templates and workflows that clients can easily surface to users and LLMs.
628
628
629
629
The `MCP::Prompt` class provides three ways to create prompts:
630
630
@@ -633,7 +633,7 @@ The `MCP::Prompt` class provides three ways to create prompts:
633
633
```ruby
634
634
classMyPrompt < MCP::Prompt
635
635
prompt_name "my_prompt"# Optional - defaults to underscored class name
636
-
title "My Prompt"# WARNING: This is a `Draft` and is not supported in the `Version 2025-06-18 (latest)` specification.
636
+
title "My Prompt"
637
637
description "This prompt performs specific functionality..."
638
638
arguments [
639
639
MCP::Prompt::Argument.new(
@@ -672,7 +672,7 @@ prompt = MyPrompt
672
672
```ruby
673
673
prompt =MCP::Prompt.define(
674
674
name:"my_prompt",
675
-
title:"My Prompt",# WARNING: This is a `Draft` and is not supported in the `Version 2025-06-18 (latest)` specification.
675
+
title:"My Prompt",
676
676
description:"This prompt performs specific functionality...",
677
677
arguments: [
678
678
MCP::Prompt::Argument.new(
@@ -787,7 +787,7 @@ This is to avoid potential issues with metric cardinality
787
787
788
788
### Resources
789
789
790
-
MCP spec includes [Resources](https://modelcontextprotocol.io/specification/2025-06-18/server/resources).
790
+
MCP spec includes [Resources](https://modelcontextprotocol.io/specification/2025-11-25/server/resources).
791
791
792
792
### Reading Resources
793
793
@@ -797,7 +797,7 @@ The `MCP::Resource` class provides a way to register resources with the server.
797
797
resource =MCP::Resource.new(
798
798
uri:"https://example.com/my_resource",
799
799
name:"my-resource",
800
-
title:"My Resource",# WARNING: This is a `Draft` and is not supported in the `Version 2025-06-18 (latest)` specification.
800
+
title:"My Resource",
801
801
description:"Lorem ipsum dolor sit amet",
802
802
mime_type:"text/html",
803
803
)
@@ -830,7 +830,7 @@ The `MCP::ResourceTemplate` class provides a way to register resource templates
0 commit comments