ruby-sdk/lib/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
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 Return HTTP status code 202 for notification initialized method 2025-08-11 10:40:17 -04:00
tool Add Tool output_schema support with comprehensive validation 2025-09-11 11:12:27 -04:00
transports Add a migration path for Server::Transports::StdioTransport 2025-06-10 16:27:22 +09:00
client.rb Add basic HTTP client support with pluggable transports 2025-09-08 15:52:37 -05: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 add titles to tools, prompts and resources 2025-08-17 22:58:15 -04:00
resource.rb add titles to tools, prompts and resources 2025-08-17 22:58:15 -04:00
resource_template.rb add titles to tools, prompts and resources 2025-08-17 22:58:15 -04:00
server.rb Merge pull request #126 from koic/fix_errors_when_title_is_not_specified 2025-09-11 10:30:15 +09:00
string_utils.rb stop using shared dir 2025-05-30 14:33:22 -04:00
tool.rb Add Tool output_schema support with comprehensive validation 2025-09-11 11:12:27 -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