Skip to content

[Server][Capability][Examples] SEP-1865 MCP Apps: Link tools to UI templates via attribute metadata + example/inspector tests #352

Closed

Description

@chr-hertel

Implements the tool↔UI linkage and example coverage for SEP-1865 (MCP Apps) for the MCP Spec 2026-07-28 release.

Tracked by umbrella #335.

PHP SDK changes

  • Extend #[McpTool] (or add a sibling attribute) to declare which ui:// template a tool's result should render in.
  • Update the tool result formatter in src/Capability/Formatter/ to emit the linkage metadata in tools/call responses per the spec wire format.
  • Add examples/server/apps/ walkthrough: a tool that returns structured data plus a ui:// template that renders it.
  • Inspector tests verifying the wire format end-to-end.

Related

Activity

  1. added
    Server
    Examples
    improves spec compliance
    enhancement
    on May 26, 2026
  2. added
    2026-07-28
    on May 26, 2026
  3. chr-hertel commented on Aug 17, 2026

    @chr-hertel
    MemberAuthor

    Covered by #281 and the remainder by #429 (auto-closes on merge). Gap analysis in the PR description.

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-28ExamplesServerenhancementimproves spec compliance

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions