Skip to content

Commit fbea0a5

Browse files
committed
fix: Update prompt retrieval method to use only prompts with type prompt
1 parent 80e9c91 commit fbea0a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/McpServer/Action/Prompts/ListPromptsAction.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __invoke(ServerRequestInterface $request): ListPromptsResult
3434
$prompts[] = $prompt;
3535
}
3636

37-
foreach ($this->prompts->all() as $prompt) {
37+
foreach ($this->prompts->getItems() as $prompt) {
3838
$prompts[] = $prompt->prompt;
3939
}
4040

0 commit comments

Comments
 (0)