add titles to tools, prompts and resources
This commit is contained in:
parent
d1c6a46e1a
commit
8b4085468e
2 changed files with 94 additions and 40 deletions
|
|
@ -62,7 +62,8 @@ server = MCP::Server.new(
|
|||
resources: [
|
||||
MCP::Resource.new(
|
||||
uri: "https://test_resource.invalid",
|
||||
name: "Test resource",
|
||||
name: "test-resource",
|
||||
title: "Test Resource",
|
||||
description: "Test resource that echoes back the uri as its content",
|
||||
mime_type: "text/plain",
|
||||
),
|
||||
|
|
|
|||
|
|
@ -59,7 +59,8 @@ server = MCP::Server.new(
|
|||
resources: [
|
||||
MCP::Resource.new(
|
||||
uri: "https://test_resource.invalid",
|
||||
name: "Test resource",
|
||||
name: "test-resource",
|
||||
title: "Test Resource",
|
||||
description: "Test resource that echoes back the uri as its content",
|
||||
mime_type: "text/plain",
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue