Skip to content

fix(basic-host): show the tool display name in app headers - #856

Open
as992949791 wants to merge 1 commit into
modelcontextprotocol:mainfrom
as992949791:codex/basic-host-tool-display-title
Open

as992949791 wants to merge 1 commit into
modelcontextprotocol:mainfrom
as992949791:codex/basic-host-tool-display-title

Conversation

@as992949791

Copy link
Copy Markdown

Summary

Fixes #767. The basic host now uses the MCP client's getDisplayName for the title shown above a rendered app.

App header → title → annotations.title → name

This matches the MCP 2025-11-25 tool schema. Tool lookup and invocation still use the raw name.

Evidence

  • Rendering ToolCallInfoPanel offline reproduced two cases where a supplied title was ignored. All three precedence cases passed after the change.
  • The SDK and basic host builds, including the host's TypeScript check, passed. The unit suite reported 451 passed and 3 skipped. Prettier passed.
  • Four focused Quickstart and host UI checks passed in macOS Chrome, including two screenshot comparisons.

AI assistance was used to implement and verify this change.

This branch has not been deployed

No deployments
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.

Reference host renders tool.name in the app header; base spec display precedence is title → annotations.title → name

1 participant