Add title field to Prompt for MCP spec compliance (#278)
The MCP 2025-11-25 specification defines an optional `title` property on Prompt for human-readable display in UI contexts, distinct from the programmatic `name` identifier. This was missing from the SDK. BC Break: Builder::addPrompt() signature changed — $title parameter added between $name and $description. Callers using positional arguments for $description must switch to named arguments. Closes #276
This commit is contained in:
parent
863cfc1e78
commit
7af5a345c1
1 changed files with 21 additions and 6 deletions
|
|
@ -12,6 +12,8 @@ All notable changes to `mcp/sdk` will be documented in this file.
|
|||
* [BC break] Make Symfony Finder component optional. Users would need to install `symfony/finder` now themselves
|
||||
* Add `LenientOidcDiscoveryMetadataPolicy` for identity providers that omit `code_challenge_methods_supported` (e.g. FusionAuth, Microsoft Entra ID)
|
||||
* Add OAuth 2.0 Dynamic Client Registration middleware (RFC 7591)
|
||||
* Add optional `title` field to `Prompt` and `McpPrompt` for MCP spec compliance
|
||||
* [BC Break] `Builder::addPrompt()` signature changed — `$title` parameter added between `$name` and `$description`. Callers using positional arguments for `$description` must switch to named arguments.
|
||||
|
||||
0.4.0
|
||||
-----
|
||||
|
|
|
|||
Loading…
Reference in a new issue