php-sdk/docs/index.md
Christopher Hertel 433c84b58a
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>
2026-06-02 17:47:04 +02:00

1.1 KiB

MCP PHP SDK Guides

  • MCP Elements — Core capabilities (Tools, Resources, Resource Templates, and Prompts) with registration methods.
  • Server Builder — Fluent builder class for creating and configuring MCP server instances.
  • Client — Client SDK for connecting to and communicating with MCP servers.
  • Transports — STDIO and HTTP transport implementations with guidance on choosing between them.
  • Server-Client Communication — Methods for servers to communicate back to clients: sampling, logging, progress, and notifications.
  • Protocol Extensions — Opt-in protocol extensions announced during capability negotiation, including MCP Apps (HTML UI resources).
  • Authorization — OAuth and authorization setup for the HTTP transport.
  • Events — Hooking into the server lifecycle with PSR-14 events.
  • Examples — Example projects demonstrating attribute-based discovery, dependency injection, HTTP transport, and more.