Skip to content

Fix MCP limits and excerpt truncation metadata - #2763

Merged
Widthdom merged 6 commits into
mainfrom
codex/fix-issue1415-1595-1605
May 31, 2026
Merged

Fix MCP limits and excerpt truncation metadata#2763
Widthdom merged 6 commits into
mainfrom
codex/fix-issue1415-1595-1605

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Add explicit MCP truncation coverage for references, callers, and callees.
  • Centralize CLI/MCP query limit defaults behind shared constants.
  • Add an MCP excerpt maxOutputBytes cap with line-boundary truncation metadata.

Validation

  • dotnet build CodeIndex.sln -c Release -p:UseSharedCompilation=false
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release -p:UseSharedCompilation=false --filter "Issue1415|Issue1605|ToolsCall_Callers_TruncatedResponseIncludesNextOffsetAndPages|ToolsCall_BatchQuery_TruncatesAggregateResponse_Issue1416"

Documentation and changelog

  • Added changelog fragments:
    • changelog.d/unreleased/1415.fixed.md
    • changelog.d/unreleased/1595.changed.md
    • changelog.d/unreleased/1605.fixed.md

Review

  • Adversarial review result: No blocking/actionable issues found.

Fixes #1415
Fixes #1595
Fixes #1605

@Widthdom
Widthdom marked this pull request as ready for review May 31, 2026 13:16
@Widthdom
Widthdom merged commit 8f88345 into main May 31, 2026
10 checks passed
@Widthdom
Widthdom deleted the codex/fix-issue1415-1595-1605 branch May 31, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant