Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/mcp/tool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def validate!
raise ArgumentError, "Tool names should be between 1 and 128 characters in length (inclusive)."
end

unless tool_name.match?(/\A[A-Za-z\d_\-\.]+\z/)
unless tool_name.match?(/\A[A-Za-z\d_\-.]+\z/)
raise ArgumentError, <<~MESSAGE
Tool names only allowed characters: uppercase and lowercase ASCII letters (A-Z, a-z), digits (0-9), underscore (_), hyphen (-), and dot (.).
MESSAGE
Expand Down