Skip to content

Add MCP tool contract drift tests - #3273

Merged
Widthdom merged 2 commits into
mainfrom
fix-issue3199
Jun 5, 2026
Merged

Add MCP tool contract drift tests#3273
Widthdom merged 2 commits into
mainfrom
fix-issue3199

Conversation

@Widthdom

@Widthdom Widthdom commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add MCP contract tests that compare advertised tools/list input properties with the server allowlist.
  • Add schema-vs-type-validator drift coverage, including dedicated handling for specialized list-validated arguments.
  • Align existing MCP tool metadata drift found by the new tests and add changelog fragment changelog.d/unreleased/3199.internal.md.

Validation

  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter FullyQualifiedName~McpToolContractTests
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter FullyQualifiedName~McpServerTests
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • dotnet build CodeIndex.sln -p:UseSharedCompilation=false
  • dotnet format CodeIndex.sln --verify-no-changes
  • git diff --check origin/main..HEAD
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --json

Adversarial Review

No blocking/actionable issues found.

Follow-up Candidates

None.

Fixes #3199

@Widthdom
Widthdom marked this pull request as ready for review June 5, 2026 00:47
@Widthdom
Widthdom merged commit 22d0ff6 into main Jun 5, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue3199 branch June 5, 2026 00:51
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.

Add automated drift tests for MCP tool schemas, allowlists, and handlers

1 participant