Skip to content

Commit 0f5b460

Browse files
committed
fixup! Add support for _meta field on tool schema
1 parent 65bb011 commit 0f5b460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mcp/tool.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ def call(*args, server_context: nil)
1717
def to_h
1818
result = {
1919
name: name_value,
20+
title: title_value,
2021
description: description_value,
2122
inputSchema: input_schema_value.to_h,
2223
}
23-
result[:title] = title_value if title_value
2424
result[:_meta] = metadata_value if metadata_value
2525
result[:annotations] = annotations_value.to_h if annotations_value
2626
result

0 commit comments

Comments
 (0)