ruby-sdk/test/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
server/transports Default to the latest stable protocol version 2025-12-04 14:58:41 +09:00
tool Refactor schema validation to reduce duplication and add additionalProperties support 2025-12-12 12:49:52 +02:00
client_test.rb Merge pull request #163 from dak2/add-client-prompts-support 2025-10-19 02:24:36 +09:00
configuration_test.rb Allow stable protocol specification version "2025-11-25" 2025-12-20 18:58:28 +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 Elicitation skeleton 2025-11-21 02:42:20 +09:00
prompt_test.rb add _meta field to Prompt 2025-10-10 09:05:55 -04:00
server_context_test.rb Fix tool error handling to follow MCP spec 2025-10-21 18:33:42 -07:00
server_notification_test.rb Remove useless magic comment 2025-09-15 12:33:09 +09:00
server_test.rb Raise an error when duplicate tool names are registered 2025-12-21 22:48:43 +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 Refactor schema validation to reduce duplication and add additionalProperties support 2025-12-12 12:49:52 +02:00
transport_test.rb Remove redundant require statements 2025-08-02 00:57:31 +09:00