Skip to content

Commit 3cf3f2c

Browse files
committed
feat: show mcp tool price badge
1 parent 49991c1 commit 3cf3f2c

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

frontend/src/components/console/settings/tools-mcp.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,15 @@ export default function ToolsAndMcp() {
232232
<div className="min-w-0">
233233
<div
234234
className={Boolean(tool.enabled)
235-
? "text-sm font-medium leading-none"
236-
: "text-sm font-medium leading-none text-muted-foreground"}
235+
? "flex items-center gap-2 text-sm font-medium leading-none"
236+
: "flex items-center gap-2 text-sm font-medium leading-none text-muted-foreground"}
237237
>
238-
{tool.name}
238+
<span className="truncate">{tool.name}</span>
239+
{tool.price && tool.price > 0 ? (
240+
<Badge variant="default" className="shrink-0">
241+
{tool.price / 1000} 积分/次
242+
</Badge>
243+
) : null}
239244
</div>
240245
<TooltipProvider delayDuration={500}>
241246
<Tooltip>

0 commit comments

Comments
 (0)