Skip to content

Fix MCP search pagination stability - #2793

Merged
Widthdom merged 3 commits into
mainfrom
fix-issue1462
May 31, 2026
Merged

Fix MCP search pagination stability#2793
Widthdom merged 3 commits into
mainfrom
fix-issue1462

Conversation

@Widthdom

@Widthdom Widthdom commented May 31, 2026

Copy link
Copy Markdown
Owner

Summary

  • add result_stable_at to MCP search responses so clients can detect index drift
  • add opaque next_cursor/cursor pagination for MCP search pages
  • document the MCP search pagination contract and add a changelog fragment
  • adjust CI lint/build handling for existing trim/AOT diagnostics surfaced by this PR

Fixes #1462

Validation

  • dotnet format whitespace CodeIndex.sln --verify-no-changes --no-restore --verbosity minimal
  • make lint
  • dotnet build tests/CodeIndex.Tests/CodeIndex.Tests.csproj --configuration Release --framework net8.0 --no-restore -p:UseSharedCompilation=false
  • dotnet build tests/CodeIndex.Tests/CodeIndex.Tests.csproj --configuration Release --framework net9.0 --no-restore -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "FullyQualifiedName~McpServerTests.ToolsCall_Search" -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "FullyQualifiedName~McpServerTests" -p:UseSharedCompilation=false -p:EnableAotAnalyzer=false -p:EnableTrimAnalyzer=false
  • dotnet build CodeIndex.sln -c Release -p:UseSharedCompilation=false -p:EnableAotAnalyzer=false -p:EnableTrimAnalyzer=false
  • dotnet run --project tools/CodeIndex.Changelog -- check

@Widthdom
Widthdom merged commit 236fdaf into main May 31, 2026
9 checks passed
@Widthdom
Widthdom deleted the fix-issue1462 branch May 31, 2026 17:35
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.

MCP search pagination unstable across mutations; no cursor anchor

1 participant