ruby-sdk/test/mcp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Valentino Stoll aad8e94530
Add Tool output_schema support with comprehensive validation
This commit implements optional JSON Schema validation for tool outputs according to the MCP specification:

- Add MCP::Tool::OutputSchema class mirroring InputSchema functionality
- Support output_schema in class definitions, Tool.define, and OutputSchema objects
- Include validate_result method for runtime validation
- Update MCP::Client::Tool to track output schemas
- Add comprehensive test coverage with 249 passing tests
- Update README with dedicated Tool Output Schemas section
- Follow MCP spec requirements for server/client validation
2025-09-11 11:12:27 -04:00
..
client Add Tool output_schema support with comprehensive validation 2025-09-11 11:12:27 -04:00
server/transports Tweak assert_equal argument order in tests 2025-08-27 01:43:55 +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 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 add titles to tools, prompts and resources 2025-08-17 22:58:15 -04: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 Fix errors when title is not specified 2025-09-03 12:31:33 +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 Add Tool output_schema support with comprehensive validation 2025-09-11 11:12:27 -04:00
transport_test.rb Remove redundant require statements 2025-08-02 00:57:31 +09:00