Skip to content

Commit 9cc0cfe

Browse files
skip-result-line-item-mcp (#585)
Summary: - The presentation layer for MCP was falsely configured to skip the first row of output. - This change serves as a bugfix.
1 parent 9f19f6b commit 9cc0cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/stackql/mcpbackend/mcp_service_stackql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (r *simpleRenderer) RenderAsMarkdown(results []map[string]interface{}) stri
4444
headerRow := presentation.NewMarkdownRowFromMap(results[0])
4545
sb.WriteString(headerRow.HeaderString() + "\n")
4646
sb.WriteString(headerRow.SeparatorString() + "\n")
47-
for _, row := range results[1:] {
47+
for _, row := range results {
4848
markdownRow := presentation.NewMarkdownRowFromMap(row)
4949
sb.WriteString(markdownRow.RowString() + "\n")
5050
}

0 commit comments

Comments
 (0)