[] = [
{
header: "Cost",
accessorKey: "spend",
- cell: (info: any) => (
-
- {getSpendString(info.getValue() || 0)}
-
- ),
+ cell: (info: any) => {
+ const row = info.row.original;
+ const mcpCount = row.mcp_tool_call_count || 0;
+ const mcpSpend = row.mcp_tool_call_spend || 0;
+
+ return (
+
+
+ {getSpendString(info.getValue() || 0)}
+
+ {mcpCount > 0 && mcpSpend > 0 && (
+
+ incl. {getSpendString(mcpSpend)} from {mcpCount} MCP
+
+ )}
+
+ );
+ },
},
{
header: "Duration (s)",
diff --git a/ui/litellm-dashboard/src/components/view_logs/constants.ts b/ui/litellm-dashboard/src/components/view_logs/constants.ts
index 84862fa4632..949dab275fe 100644
--- a/ui/litellm-dashboard/src/components/view_logs/constants.ts
+++ b/ui/litellm-dashboard/src/components/view_logs/constants.ts
@@ -12,6 +12,9 @@ export const ERROR_CODE_OPTIONS: { label: string; value: string }[] = [
{ label: "529 - Overloaded", value: "529" },
];
+/** Call types that represent MCP tool invocations (shared across columns, index, drawer). */
+export const MCP_CALL_TYPES = ["call_mcp_tool", "list_mcp_tools"];
+
export const QUICK_SELECT_OPTIONS: { label: string; value: number; unit: string }[] = [
{ label: "Last 15 Minutes", value: 15, unit: "minutes" },
{ label: "Last Hour", value: 1, unit: "hours" },