From d6b00066c65fdef71cf70258de43b9d1435da04d Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Mon, 26 May 2025 22:14:19 +0200 Subject: [PATCH] fix: payload should be prompts instead of resources --- src/Server/RequestHandler/PromptListHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server/RequestHandler/PromptListHandler.php b/src/Server/RequestHandler/PromptListHandler.php index 0fb09f7..86799a5 100644 --- a/src/Server/RequestHandler/PromptListHandler.php +++ b/src/Server/RequestHandler/PromptListHandler.php @@ -20,7 +20,7 @@ public function __construct( public function createResponse(Request|Notification $message): Response { return new Response($message->id, [ - 'resources' => array_map(function (MetadataInterface $metadata) { + 'prompts' => array_map(function (MetadataInterface $metadata) { $result = [ 'name' => $metadata->getName(), ];