ruby-sdk/lib/mcp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Koichi ITO 2b36bf6b2d Set default protocol version to the latest specification
Currently, MCP has three versions: 2024-11-05, 2025-03-26, and 2025-06-18.

- https://modelcontextprotocol.io/specification/2024-11-05/basic/transports (stdio and HTTP with SSE)
- https://modelcontextprotocol.io/specification/2025-03-26/basic/transports (stdio and Streamable HTTP)
- https://modelcontextprotocol.io/specification/2025-06-18/basic/transports (stdio and Streamable HTTP)

The newer specification supports stdio and Streamable HTTP as transport mechanisms.
Only the oldest version, 2024-11-05, supports stdin and HTTP with SSE,
but that version is now considered legacy.

Given the current behavior of the Ruby SDK, it likely makes more sense to set
the default protocol version to the latest one, 2025-06-18, rather than the oldest, 2024-11-05.

Ideally, the implementation should adjust its behavior based on the version,
but this PR is limited to updating the default protocol version only.
2025-07-20 16:36:18 +09:00
..
prompt stop using shared dir 2025-05-30 14:33:22 -04:00
resource stop using shared dir 2025-05-30 14:33:22 -04:00
server Rename to MCP when handling exceptions in Streamable HTTP transport 2025-06-15 15:21:22 +09:00
tool fixes input schema validation for schemas without required fields 2025-07-11 11:27:59 +02:00
transports Add a migration path for Server::Transports::StdioTransport 2025-06-10 16:27:22 +09:00
configuration.rb Set default protocol version to the latest specification 2025-07-20 16:36:18 +09:00
content.rb stop using shared dir 2025-05-30 14:33:22 -04:00
instrumentation.rb stop using shared dir 2025-05-30 14:33:22 -04:00
methods.rb Add missing checks 2025-06-15 17:35:18 +09:00
prompt.rb Refactor MCP tool and server to handle optional server_context parameter 2025-06-10 15:40:28 -04:00
resource.rb Merge pull request #34 from koic/make_some_optional_kwargs_in_resource 2025-05-31 13:34:25 -04:00
resource_template.rb stop using shared dir 2025-05-30 14:33:22 -04:00
server.rb Add define_custom_method to define custom methods 2025-07-14 20:12:29 -04:00
string_utils.rb stop using shared dir 2025-05-30 14:33:22 -04:00
tool.rb Refactor MCP tool and server to handle optional server_context parameter 2025-06-10 15:40:28 -04:00
transport.rb Addressing feedback 2025-06-11 13:44:54 -07:00
version.rb Bump version 2025-07-15 15:40:15 -04:00