FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Server][Capability] SEP-1865 MCP Apps: ext-apps registration, builder API, #[McpUiResource] attribute · Issue #351 · modelcontextprotocol/php-sdk · GitHub

Repository navigation

[Server][Capability] SEP-1865 MCP Apps: ext-apps registration, builder API, #[McpUiResource] attribute #351

Description

Implements the server-side capability/builder portion of SEP-1865 (MCP Apps) for the MCP Spec 2026-07-28 release.

Tracked by umbrella #335. Depends on SEP-2133 + SEP-1865 schema sub-issue.

PHP SDK changes

  • Register the ext-apps extension via SEP-2133 plumbing; declare server support during initialize and gate behavior on negotiation.
  • Add Server::builder()->addUiResource(string $uri, string $html, array $metadata) to the public builder API.
  • Add a discovery attribute #[McpUiResource(uri: 'ui://widget/foo')] parallel to #[McpResource], under src/Capability/Attribute/ and src/Capability/Registry/.
  • New UiResourceReference and corresponding handler for resources/read on ui:// resources, ensuring the right MIME profile and _meta (sandbox hints, CSP, etc.) are returned.

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    2026-07-28All issues and PRs related to the spec release 2026-07-28ServerIssues & PRs related to the Server componentenhancementRequest for a new feature that's not currently supportedimproves spec complianceImproves consistency with other SDKs such as TyepScriptneeds designValid issue but needs maintainer alignment on design or approach

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL