Skip to content

Add lightweight query output formats - #2739

Merged
Widthdom merged 4 commits into
mainfrom
fix-issue1642-1941
May 31, 2026
Merged

Add lightweight query output formats#2739
Widthdom merged 4 commits into
mainfrom
fix-issue1642-1941

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • add CLI count/compact/csv/tsv output formats for query-style commands
  • add MCP format support for full/count/compact search and relationship responses
  • document the new formats and add changelog fragments

Fixes #1642
Fixes #1941

Validation

  • dotnet build CodeIndex.sln -c Release -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release -p:UseSharedCompilation=false --filter "FullyQualifiedNameQueryCommandRunnerTests.ParseArgs_AcceptsLightweightOutputFormats|FullyQualifiedNameQueryCommandRunnerTests.RunSearch_FormatCompactEmitsFileLineOnly_Issue1642|FullyQualifiedNameQueryCommandRunnerTests.RunSearch_FormatCsvEmitsDelimitedRows_Issue1941|FullyQualifiedNameMcpServerTests.ToolsCall_SearchFormatCompactEmitsFileLineOnly_Issue1642|FullyQualifiedName~McpServerTests.ToolsCall_SearchFormatCountAliasesCountOnly_Issue1642"
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • git diff --check

Notes

  • Full solution test run was attempted but stopped after repeated environment failures from git signing passphrase prompts and cascading Interop.Sys.GetCwd() FileNotFoundException failures.
  • Required codex adversarial review was attempted with codex exec, but the command failed due Codex usage limit before producing findings.

@Widthdom
Widthdom merged commit 8606923 into main May 31, 2026
11 checks passed
@Widthdom
Widthdom deleted the fix-issue1642-1941 branch May 31, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI / MCP have no custom output formatter or template plugin mechanism No compact / count-only response format on read tools (token-budget gap)

1 participant