Merge pull request #126 from koic/fix_errors_when_title_is_not_specified

Fix errors when `title` is not specified
This commit is contained in:
Koichi ITO 2025-09-11 10:30:15 +09:00 • committed by GitHub
commit dd5b318b11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 4 deletions

View file

@ -222,7 +222,7 @@ module MCP
name:,
title:,
version:,
}
}.compact
end
def init(request)

View file

@ -19,7 +19,7 @@ module MCP
title: title_value,
description: description_value,
inputSchema: input_schema_value.to_h,
}
}.compact
result[:annotations] = annotations_value.to_h if annotations_value
result
end