Merge pull request #1054 from modelcontextprotocol/claude/issue-1053-20260204-1234

fix: display tool title field in Inspector UI
This commit is contained in:
Cliff Hall 2026-02-07 16:40:26 -05:00 • committed by GitHub
commit 0c0e15dbd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,7 +173,7 @@ const ToolsTab = ({
<IconDisplay icons={(tool as WithIcons).icons} size="sm" />
</div>
<div className="flex flex-col flex-1 min-w-0">
<span className="truncate">{tool.name}</span>
<span className="truncate">{tool.title || tool.name}</span>
<span className="text-sm text-gray-500 text-left line-clamp-2">
{tool.description}
</span>
@ -196,7 +196,9 @@ const ToolsTab = ({
/>
)}
<h3 className="font-semibold">
{selectedTool ? selectedTool.name : "Select a tool"}
{selectedTool
? selectedTool.title || selectedTool.name
: "Select a tool"}
</h3>
</div>
</div>