diff --git a/.changeset/fuzzy-wolves-repeat.md b/.changeset/fuzzy-wolves-repeat.md new file mode 100644 index 0000000000..e9133636a3 --- /dev/null +++ b/.changeset/fuzzy-wolves-repeat.md @@ -0,0 +1,5 @@ +--- +"trigger.dev": patch +--- + +Fix for the MCP tool that gets run logs to help debugging diff --git a/packages/cli-v3/src/mcp/formatters.ts b/packages/cli-v3/src/mcp/formatters.ts index a16f947a73..eee9ccf18f 100644 --- a/packages/cli-v3/src/mcp/formatters.ts +++ b/packages/cli-v3/src/mcp/formatters.ts @@ -238,7 +238,7 @@ function formatSpan( const duration = formatDuration(span.data.duration); const startTime = formatDateTime(span.data.startTime); - lines.push(`${indent}${prefix} ${span.message} ${statusIndicator}`); + lines.push(`${indent}${prefix} ${span.data.message} ${statusIndicator}`); lines.push(`${indent} Duration: ${duration}`); lines.push(`${indent} Started: ${startTime}`); diff --git a/packages/core/src/v3/schemas/api.ts b/packages/core/src/v3/schemas/api.ts index b018b2a4a8..b372ed5fa5 100644 --- a/packages/core/src/v3/schemas/api.ts +++ b/packages/core/src/v3/schemas/api.ts @@ -1267,9 +1267,9 @@ export type ApiBranchListResponseBody = z.infer