ruby-sdk/test/mcp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Koichi ITO cb5e87581b Add validation to MCP::Configuration setters
I noticed through the existing tests that `MCP::Configuration#protocol_version=`
allows setting an arbitrary protocol version.

Since the official MCP Ruby SDK is an implementation of the MCP specification,
it should not support arbitrary protocol versions. This change adds validation
to the setter, consistent with `Configuration#initialize`.

The same validation has also been added to `MCP::Configuration#validate_tool_call_arguments=`.
2025-09-24 19:19:02 +09:00
..
client Add Tool output_schema support with comprehensive validation 2025-09-11 11:12:27 -04:00
server/transports Remove unused block parameters 2025-09-20 14:45:08 +09:00
tool Add Tool output_schema support with comprehensive validation 2025-09-11 11:12:27 -04:00
client_test.rb Add basic HTTP client support with pluggable transports 2025-09-08 15:52:37 -05:00
configuration_test.rb Add validation to MCP::Configuration setters 2025-09-24 19:19:02 +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 Remove useless magic comment 2025-09-15 12:33:09 +09:00
prompt_test.rb Remove useless magic comment 2025-09-15 12:33:09 +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 Remove useless magic comment 2025-09-15 12:33:09 +09:00
server_test.rb Remove unused block parameters 2025-09-20 14:45:08 +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 Remove unused block parameters 2025-09-20 14:45:08 +09:00
transport_test.rb Remove redundant require statements 2025-08-02 00:57:31 +09:00