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:
commit
dd5b318b11
2 changed files with 12 additions and 4 deletions
|
|
@ -222,7 +222,7 @@ module MCP
|
|||
name:,
|
||||
title:,
|
||||
version:,
|
||||
}
|
||||
}.compact
|
||||
end
|
||||
|
||||
def init(request)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue