ruby-sdk/lib/mcp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Koichi ITO a85fa028f7 Extract MCP::Annotations into a dedicated file
This PR moves `MCP::Annotations` from lib/mcp.rb to lib/mcp/annotations.rb for better organization,
following the pattern used for other classes such as `Tool::Annotations`.

This PR also adds the missing `last_modified` attribute to `MCP::Annotations`:
https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/schema/2025-11-25/schema.ts#L1701-L1736

It also adds a `to_h` method for serialization and includes comprehensive test coverage.

NOTE: This code is unused within the ruby-sdk repository, but it is kept for compatibility, as it may be used by users.
2026-02-03 15:38:04 +09:00
..
client Add Accept header validation 2026-01-07 14:55:19 +09:00
prompt Support Ruby 2.7 - Ruby 3.1 2026-01-06 10:38:56 +09:00
resource Support Ruby 2.7 - Ruby 3.1 2026-01-06 10:38:56 +09:00
server Merge pull request #207 from keisku/add-Accept-header-validation 2026-01-08 02:49:19 +09:00
tool Support Ruby 2.7 - Ruby 3.1 2026-01-06 10:38:56 +09:00
transports Add a migration path for Server::Transports::StdioTransport 2025-06-10 16:27:22 +09:00
annotations.rb Extract MCP::Annotations into a dedicated file 2026-02-03 15:38:04 +09:00
client.rb Add prompts/list and prompts/get support to client 2025-10-15 13:16:41 +09:00
configuration.rb Support Ruby 2.7 - Ruby 3.1 2026-01-06 10:38:56 +09:00
content.rb Support Ruby 2.7 - Ruby 3.1 2026-01-06 10:38:56 +09:00
icon.rb Support icons parameter 2025-12-30 05:35:22 +09:00
instrumentation.rb Support Ruby 2.7 - Ruby 3.1 2026-01-06 10:38:56 +09:00
methods.rb Add Elicitation skeleton 2025-11-21 02:42:20 +09:00
prompt.rb Omit icons from responses when empty or nil 2026-01-12 09:46:45 +09:00
resource.rb Omit icons from responses when empty or nil 2026-01-12 09:46:45 +09:00
resource_template.rb Omit icons from responses when empty or nil 2026-01-12 09:46:45 +09:00
server.rb feat: add tool_arguments to instrumentation data 2026-01-21 17:18:28 +00:00
string_utils.rb Fix ReDoS vulnerability in StringUtils#underscore 2026-01-09 01:14:52 +09:00
tool.rb Omit icons from responses when empty or nil 2026-01-12 09:46:45 +09:00
transport.rb Addressing feedback 2025-06-11 13:44:54 -07:00
version.rb Release 0.6.0 2026-01-16 14:58:48 +09:00