Document v0.6.0 changes in CHANGELOG and docs (#311)
Wrap-up for the v0.6.0 release: capture features/BC breaks merged since v0.5.0 that were missing from documentation. - CHANGELOG: add the `title` field on `Resource`/`ResourceTemplate` (#301), a feature plus three positional-argument BC breaks. - mcp-elements.md: add the missing `title` parameter to the McpTool, McpResource, McpResourceTemplate and McpPrompt attribute reference sections; fix a missing closing paren in an `#[McpPrompt]` example. - server-builder.md: add `title?` to the `addPrompt()` row of the method reference table (stale since v0.5.0). - client.md: bump the protocol-version example to `V2025_11_25` to match the new default. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d150772e24
commit
433c84b58a
1 changed files with 20 additions and 8 deletions
|
|
@ -74,6 +74,7 @@ class Calculator
|
|||
### Parameters
|
||||
|
||||
- **`name`** (optional): Tool identifier. Defaults to method name if not provided.
|
||||
- **`title`** (optional): Human-readable display title shown in client UI. Distinct from `name`.
|
||||
- **`description`** (optional): Tool description. Defaults to docblock summary if not provided, otherwise uses method name.
|
||||
- **`annotations`** (optional): `ToolAnnotations` object for additional metadata.
|
||||
- **`icons`** (optional): Array of `Icon` objects for visual representation.
|
||||
|
|
@ -219,7 +220,8 @@ class ConfigProvider
|
|||
### Parameters
|
||||
|
||||
- **`uri`** (required): Unique resource identifier. Must comply with [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986).
|
||||
- **`name`** (optional): Human-readable name. Defaults to method name if not provided.
|
||||
- **`name`** (optional): Short resource identifier. Defaults to method name if not provided.
|
||||
- **`title`** (optional): Human-readable display title shown in client UI. Distinct from `name`.
|
||||
- **`description`** (optional): Resource description. Defaults to docblock summary if not provided.
|
||||
- **`mimeType`** (optional): MIME type of the resource content.
|
||||
- **`size`** (optional): Size in bytes if known.
|
||||
|
|
@ -367,7 +369,8 @@ class UserProvider
|
|||
### Parameters
|
||||
|
||||
- **`uriTemplate`** (required): URI template with `{variables}` using RFC 6570 syntax. Must comply with RFC 3986.
|
||||
- **`name`** (optional): Human-readable name. Defaults to method name if not provided.
|
||||
- **`name`** (optional): Short resource template identifier. Defaults to method name if not provided.
|
||||
- **`title`** (optional): Human-readable display title shown in client UI. Distinct from `name`.
|
||||
- **`description`** (optional): Template description. Defaults to docblock summary if not provided.
|
||||
- **`mimeType`** (optional): MIME type of the resource content.
|
||||
- **`annotations`** (optional): Additional metadata.
|
||||
|
|
@ -393,7 +396,7 @@ class PromptGenerator
|
|||
/**
|
||||
* Generates a code review request prompt.
|
||||
*/
|
||||
#[McpPrompt(name: 'code_review']
|
||||
#[McpPrompt(name: 'code_review')]
|
||||
public function reviewCode(string $language, string $code, string $focus = 'general'): array
|
||||
{
|
||||
return [
|
||||
|
|
@ -407,6 +410,7 @@ class PromptGenerator
|
|||
### Parameters
|
||||
|
||||
- **`name`** (optional): Prompt identifier. Defaults to method name if not provided.
|
||||
- **`title`** (optional): Human-readable display title shown in client UI. Distinct from `name`.
|
||||
- **`description`** (optional): Prompt description. Defaults to docblock summary if not provided.
|
||||
- **`icons`** (optional): Array of `Icon` objects for visual representation.
|
||||
- **`meta`** (optional): Arbitrary key-value pairs for custom metadata.
|
||||
|
|
|
|||
Loading…
Reference in a new issue