modelcontextprotocol / modelcontextprotocol/ext-apps
basic-host does not forward toolResult _meta to the ui.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 387
- Avg merge
- 3h 21m
- Merged PRs (30d)
- 6
Description
Describe the bug
in basic-host tool-result meta does not get sent to the ui. only content and structuredContent are sent.
To Reproduce
Steps to reproduce the behavior:
- add _meta object to tool result. try to access it from the ui along side content and structuredContent
Expected behavior
toolResult _meta should be available to the ui as documented here
Logs
If applicable, add logs to help explain your problem.
Additional context
Open ai is having this problem as well. Claude does send the _meta to the ui and it can be read by apps.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating basic-host's tool-result handling and trace how content and structuredContent are forwarded to the UI. Reproduce the issue with a tool result containing _meta, then verify that the UI can access _meta alongside the other tool-result fields.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100