Skip to content

Expose MCP CLI parity controls - #3576

Merged
Widthdom merged 9 commits into
mainfrom
fix-issue3540-3541-3542-3543-3544
Jun 12, 2026
Merged

Expose MCP CLI parity controls#3576
Widthdom merged 9 commits into
mainfrom
fix-issue3540-3541-3542-3543-3544

Conversation

@Widthdom

@Widthdom Widthdom commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add MCP languages filters for indexed languages, capabilities, extensions, and aliases.
  • Expose CLI-style MCP status, validate, query, graph, and file/map controls.
  • Add MCP index planning controls, dry-run diagnostics, supported indexing options, and explicit unsupported-mode errors.
  • Add MCP deps includeGenerated support with source/target generated-code filtering and structured diagnostics.
  • Align MCP tool contract tests with the new exposed arguments and specialized list validators.

Validation

  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release --filter "FullyQualifiedName~McpServerTests.ToolsCall_Languages_FiltersByCliCompatibleMetadata_Issue3540|FullyQualifiedName~McpServerTests.ToolsCall_Status_CheckCompactExposesReadinessDiagnostics_Issue3541|FullyQualifiedName~McpServerTests.ToolsCall_Validate_FiltersSeverityAndSupportsCompactCount_Issue3541|FullyQualifiedName~McpServerTests.ToolsCall_SearchFilesAndMapExposeCliQueryOptions_Issue3542|FullyQualifiedName~McpServerTests.ToolsCall_SymbolGraphAndAnalyzeExposeCliQueryOptions_Issue3542|FullyQualifiedName~McpServerTests.ToolsCall_UnusedAndHotspotsExposeVisibilityAndBucketOptions_Issue3542|FullyQualifiedName~McpServerTests.ToolsCall_Index_DryRunReportsAdvancedControlsAndUnsupportedModes_Issue3543|FullyQualifiedName~McpServerTests.ToolsCall_Index_RejectsScopedUnsupportedModesWithoutDryRun_Issue3543|FullyQualifiedName~McpServerTests.ToolsCall_Index_AppliesMaxSymbolsPerFile_Issue3543|FullyQualifiedName~McpServerTests.ToolsList_DepsExposesGeneratedCodeFilter_Issue3544|FullyQualifiedName~McpServerTests.ToolsCall_Deps_IncludeGeneratedControlsGeneratedEdges_Issue3544" -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release --filter "FullyQualifiedName~McpServerTests.ToolsList_|FullyQualifiedName~McpServerTests.ToolsCall_Index_RejectsUnsupportedArguments_Issue2848" -p:UseSharedCompilation=false
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • dotnet build CodeIndex.sln -p:UseSharedCompilation=false
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll index . --commits HEAD --json
  • git diff --check origin/main...HEAD

CI Fix Validation

Windows Build and Test failed during temporary SQLite DB cleanup in the Issue #3543 MCP index tests. After hardening the cleanup path, validated with:

  • dotnet build tests/CodeIndex.Tests/CodeIndex.Tests.csproj -f net9.0 --no-restore -m:1 /nr:false -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -f net9.0 --no-build --filter FullyQualifiedName~McpServerTests.ToolsCall_Index
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -f net9.0 --no-build --filter FullyQualifiedName~McpToolContractTests
  • dotnet run --project tools/CodeIndex.Changelog --no-build -- check
  • git diff --check

Conflict Resolution Validation

  • dotnet build tests/CodeIndex.Tests/CodeIndex.Tests.csproj -f net9.0 --no-restore -m:1 /nr:false -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -f net9.0 --no-build --filter FullyQualifiedName~McpServerTests.ToolsCall_Index
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -f net9.0 --no-build --filter FullyQualifiedName~McpToolContractTests
  • dotnet run --project tools/CodeIndex.Changelog --no-build -- check
  • git diff --check

Documentation / Changelog

  • Added changelog fragments:
    • changelog.d/unreleased/3540.added.md
    • changelog.d/unreleased/3541.added.md
    • changelog.d/unreleased/3542.added.md
    • changelog.d/unreleased/3543.added.md
    • changelog.d/unreleased/3544.added.md

Review

Adversarial review after the conflict-resolution fixes: No blocking/actionable issues found.
Adversarial review after the pipeline cleanup fix: No blocking/actionable issues found.

Fixes #3540
Fixes #3541
Fixes #3542
Fixes #3543
Fixes #3544

@Widthdom
Widthdom marked this pull request as ready for review June 12, 2026 12:04
@Widthdom
Widthdom merged commit 687af2d into main Jun 12, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue3540-3541-3542-3543-3544 branch June 12, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment