Skip to content

Conversation

@antonpk1
Copy link
Contributor

Summary

Updates the MCP Apps example to use the new nested _meta.ui.resourceUri format from the spec.

Changes

  • Update @modelcontextprotocol/ext-apps to 0.4.0
  • Use new nested format _meta: { ui: { resourceUri: "..." } } in tool definition
  • Remove resourceUri from tool result (only needed in tool definition per spec)
  • Add example structuredContent and _meta in tool result for demo purposes

Before

_meta: { [RESOURCE_URI_META_KEY]: HELLO_WORLD_APP_URI }

After

_meta: { ui: { resourceUri: HELLO_WORLD_APP_URI } }

- Update @modelcontextprotocol/ext-apps to 0.4.0
- Use new nested format `_meta.ui.resourceUri` in tool definition
- Remove resourceUri from tool result (only needed in tool definition)
- Add example structuredContent and _meta in tool result for demo
@jerome3o-anthropic jerome3o-anthropic merged commit 30de2e9 into modelcontextprotocol:main Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants