Skip to content

Add MCP sampling and roots support - #2761

Merged
Widthdom merged 2 commits into
mainfrom
fix-issue1686-1687
May 31, 2026
Merged

Add MCP sampling and roots support#2761
Widthdom merged 2 commits into
mainfrom
fix-issue1686-1687

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Add MCP server-to-client requests so suggest_improvement can use client sampling for optional title/tag metadata.
  • Make MCP index respect client roots, including empty/non-file root rejection and HTTP out-of-band handling.
  • Add bilingual changelog fragments and update user docs for roots/sampling behavior.

Validation

  • dotnet build CodeIndex.sln -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release -p:UseSharedCompilation=false --filter "FullyQualifiedName~McpServerTests"
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll index . --changed-between origin/main HEAD --json
  • Codex adversarial review: No blocking/actionable issues found.

Fixes #1686
Fixes #1687

@Widthdom
Widthdom force-pushed the fix-issue1686-1687 branch from 40f8602 to 391f0aa Compare May 31, 2026 12:18
@Widthdom
Widthdom merged commit ef6a9f4 into main May 31, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue1686-1687 branch May 31, 2026 13:14
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