ruby-sdk/lib/mcp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Koichi ITO dee80d20ae Raise an error when duplicate tool names are registered
This raises an exception when duplicate tool names are registered,
instead of silently overwriting tools. Tool names are required to be
unique within a server, so this behavior aligns with the MCP specification.

> Tool names SHOULD be unique within a server.

https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool-names

Validation for tool names could be made more strictly spec-compliant in a separate effort.

Fixes #197
2025-12-21 22:48:43 +09:00
..
client Add Tool output_schema support with comprehensive validation 2025-09-11 11:12:27 -04:00
prompt add title field to prompt argument 2025-10-06 09:35:42 -04:00
resource Remove useless magic comment 2025-09-15 12:33:09 +09:00
server Introduce stateless mode to allow for HA 2025-11-04 15:26:12 -08:00
tool Refactor schema validation to reduce duplication and add additionalProperties support 2025-12-12 12:49:52 +02:00
transports Add a migration path for Server::Transports::StdioTransport 2025-06-10 16:27:22 +09:00
client.rb Add prompts/list and prompts/get support to client 2025-10-15 13:16:41 +09:00
configuration.rb Allow stable protocol specification version "2025-11-25" 2025-12-20 18:58:28 +09:00
content.rb Remove useless magic comment 2025-09-15 12:33:09 +09:00
instrumentation.rb stop using shared dir 2025-05-30 14:33:22 -04:00
methods.rb Add Elicitation skeleton 2025-11-21 02:42:20 +09:00
prompt.rb add _meta field to Prompt 2025-10-10 09:05:55 -04:00
resource.rb Remove useless magic comment 2025-09-15 12:33:09 +09:00
resource_template.rb Remove useless magic comment 2025-09-15 12:33:09 +09:00
server.rb Raise an error when duplicate tool names are registered 2025-12-21 22:48:43 +09:00
string_utils.rb Remove redundant String#dup 2025-12-14 14:32:10 +09:00
tool.rb Refactor schema validation to reduce duplication and add additionalProperties support 2025-12-12 12:49:52 +02:00
transport.rb Addressing feedback 2025-06-11 13:44:54 -07:00
version.rb Release 0.4.0 2025-10-15 01:25:05 -04:00