You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing title and arguments fields in Prompt definition (spec compliance) #276
Activity
Add `title` field to Prompt for MCP spec compliance
Add `title` field to Prompt for MCP spec compliance
chr-hertel commentedon Apr 11, 2026
Thanks for reporting @vjik - I patched the missing
titlewith #278 - to be released with upcomgin v0.5.0.Regarding the
argumentsI'm afraid that's a mixup, they are already in:php-sdk/src/Schema/Prompt.php
Line 44 in 863cfc1
Even with a subtype
PromptArgument:php-sdk/src/Schema/PromptArgument.php
Lines 27 to 39 in 863cfc1
vjik commentedon Apr 12, 2026
You're right, there is
argumentsin schema.titleandargumentsare missed inBuilder::addPrompt()method:php-sdk/src/Server/Builder.php
Line 461 in 1f5f7e1
chr-hertel commentedon Apr 13, 2026
That is true, and due to the fact that
argumentsare discovered from the parameter profile of the implementation of a prompt, seephp-sdk/src/Capability/Registry/Loader/ArrayLoader.php
Lines 234 to 252 in 863cfc1
Can you maybe share a bit more how your prompt implementation looks like and what your expectations would be?
Add `title` field to Prompt for MCP spec compliance
vjik commentedon Apr 14, 2026
I want to set prompt arguments clearly. Seems, in this case I should implement own loader.
Add `title` field to Prompt for MCP spec compliance (modelcontextprot…