Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

bugfix: show full MCP and skill descriptions on hover (#1045)

Govinda Vashishtha942a0e56a060
diff --git a/.changeset/mcp-tool-description-hover-tooltip.md b/.changeset/mcp-tool-description-hover-tooltip.md
new file mode 100644
index 000000000..ac830ba97
--- /dev/null
+++ b/.changeset/mcp-tool-description-hover-tooltip.md
@@ -0,0 +1,5 @@
+---
+'@truefoundry/trueforge-ui': patch
+---
+
+Show the full MCP tool and skill description in a tooltip when the truncated label is hovered in the picker modals.
diff --git a/packages/trueforge-ui/src/atoms/draft/AgentMcpEditorContent.tsx b/packages/trueforge-ui/src/atoms/draft/AgentMcpEditorContent.tsx
index 0e5ee5fa7..9c7e1a03e 100644
--- a/packages/trueforge-ui/src/atoms/draft/AgentMcpEditorContent.tsx
+++ b/packages/trueforge-ui/src/atoms/draft/AgentMcpEditorContent.tsx
@@ -575,9 +575,17 @@ export function AgentMcpEditorContent({
{tool.name}
</span>
{tool.description ? (
- <span className="text-text-secondary line-clamp-1 text-xs">
- {tool.description}
- </span>
+ <Tooltip
+ content={tool.description}
+ side="bottom"
+ className="max-w-sm whitespace-normal text-left"
+ triggerClassName="block min-w-0 w-full"
+ interactive={false}
+ >
+ <span className="text-text-secondary block truncate text-xs">
+ {tool.description}
+ </span>
+ </Tooltip>
) : null}
</span>
</button>
diff --git a/packages/trueforge-ui/src/atoms/draft/DraftCompositeSelector.tsx b/packages/trueforge-ui/src/atoms/draft/DraftCompositeSelector.tsx
index d387ec5f1..6658853f1 100644
--- a/packages/trueforge-ui/src/atoms/draft/DraftCompositeSelector.tsx
+++ b/packages/trueforge-ui/src/atoms/draft/DraftCompositeSelector.tsx
@@ -109,7 +109,17 @@ export function CatalogRow({
<span className="text-text-primary truncate text-sm font-medium">{title}</span>
{badge}
</span>
- {description ? <span className="text-text-secondary line-clamp-1 text-xs">{description}</span> : null}
+ {description ? (
+ <Tooltip
+ content={description}
+ side="bottom"
+ className="max-w-sm whitespace-normal text-left"
+ triggerClassName="block min-w-0 w-full"
+ interactive={false}
+ >
+ <span className="text-text-secondary block truncate text-xs">{description}</span>
+ </Tooltip>
+ ) : null}
</span>
</>
);