ruby-sdk/test/mcp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Koichi ITO f6f064ab71 Add instructions support to MCP::Server
The response of the `init` method can include `instructions`.
https://modelcontextprotocol.io/specification/2025-06-18/basic/lifecycle

`instructions` appear to be supported starting from the 2025-03-26 specification.

- https://modelcontextprotocol.io/specification/2025-03-26/basic/lifecycle (supports `instructions`)
- https://modelcontextprotocol.io/specification/2024-11-05/basic/lifecycle (does not support `instructions`)

If `instructions` is used with an unsupported protocol version, an `ArgumentError` will be raised.

As additional context, the TypeScript SDK also treats `instructions` as optional.
https://github.com/modelcontextprotocol/typescript-sdk/blob/1.16.0/src/types.ts#L356-L361
2025-08-07 12:17:57 +09:00
..
server/transports Merge pull request #91 from dak2/fix/json-rpc-of-notification 2025-07-29 02:05:16 +09:00
tool fixes input schema validation for schemas without required fields 2025-07-11 11:27:59 +02:00
configuration_test.rb Validate protocol_version value 2025-07-16 12:38:49 +09:00
instrumentation_test.rb Rename test directory from model_context_protocol to mcp 2025-06-01 02:13:28 +09:00
methods_test.rb Add missing checks 2025-06-15 17:35:18 +09:00
prompt_test.rb Rename test directory from model_context_protocol to mcp 2025-06-01 02:13:28 +09:00
server_context_test.rb Refactor MCP tool and server to handle optional server_context parameter 2025-06-10 15:40:28 -04:00
server_notification_test.rb Addressing feedback 2025-06-11 13:44:54 -07:00
server_test.rb Add instructions support to MCP::Server 2025-08-07 12:17:57 +09:00
string_utils_test.rb Rename test directory from model_context_protocol to mcp 2025-06-01 02:13:28 +09:00
tool_test.rb Merge remote-tracking branch 'upstream/main' into make_server_context_optional_and_sorbet_friendly 2025-06-19 11:08:00 -04:00
transport_test.rb Addressing feedback 2025-06-11 13:44:54 -07:00