ruby-sdk/test/mcp/tool
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
..
annotations_test.rb Set default values for ToolAnnotations hints 2025-08-28 01:13:57 +09:00
input_schema_test.rb Merge pull request #102 from koic/remove_redundant_required_features 2025-08-04 06:22:56 +09:00
output_schema_test.rb Add Tool output_schema support with comprehensive validation 2025-09-11 11:12:27 -04:00
response_test.rb Nicer error API 2025-08-18 16:50:20 +02:00