Skip to content

fix(react): fix toolMetadata mismatch - #16301

Merged
aayush-kapoor merged 1 commit into
mainfrom
aayush/mcp-app-bug
Jun 22, 2026
Merged

fix(react): fix toolMetadata mismatch#16301
aayush-kapoor merged 1 commit into
mainfrom
aayush/mcp-app-bug

Conversation

@aayush-kapoor

Copy link
Copy Markdown
Collaborator

Background

@ai-sdk/mcp emits mcp app metadata directly under toolMetadata.app but the react renderer was looking for toolMetadata.mcp.app, so it never recognized the tool part as an MCP App.

discorvered when running our mcp app e2e example again

Summary

check the renderer info under toolMetadata.app

Manual Verification

verified by running the example http://localhost:3000/chat/mcp-apps

Checklist

  • All commits are signed (PRs with unsigned commits cannot be merged)
  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

@aayush-kapoor
aayush-kapoor enabled auto-merge (squash) June 22, 2026 16:30
@aayush-kapoor
aayush-kapoor merged commit 03c9784 into main Jun 22, 2026
50 checks passed
@aayush-kapoor
aayush-kapoor deleted the aayush/mcp-app-bug branch June 22, 2026 16:34
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Published in:

Package Version
@ai-sdk/harness-claude-code 1.0.0-beta.18 github npm
@ai-sdk/harness-codex 1.0.0-beta.18 github npm
@ai-sdk/harness-pi 1.0.0-beta.19 github npm
@ai-sdk/react 4.0.0-beta.188 github npm

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants