Skip to content

Improve MCP request correlation and telemetry - #2671

Merged
Widthdom merged 9 commits into
mainfrom
fix-issue1814-1897-1898
May 25, 2026
Merged

Improve MCP request correlation and telemetry#2671
Widthdom merged 9 commits into
mainfrom
fix-issue1814-1897-1898

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Propagate MCP JSON-RPC request IDs and server correlation IDs into stderr diagnostics and structured error data.
  • Echo correlation metadata on successful MCP responses and batch_query slot results.
  • Emit redacted mcp.tool.invocation telemetry lines for MCP tools/call requests.

Validation

  • dotnet build CodeIndex.sln -c Release -p:UseSharedCompilation=false
  • dotnet test CodeIndex.sln -c Release -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release --filter "FullyQualifiedName~McpServerTests|FullyQualifiedName~McpAuditLogTests" -p:UseSharedCompilation=false
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --json
  • Adversarial review: No blocking/actionable issues found.

Documentation and changelog

  • Updated DEVELOPER_GUIDE.md with MCP request correlation and telemetry contracts.
  • Added changelog fragments:
    • changelog.d/unreleased/1814.fixed.md
    • changelog.d/unreleased/1897.fixed.md
    • changelog.d/unreleased/1898.added.md

Follow-up candidates

  • None.

Fixes #1814
Fixes #1897
Fixes #1898

@Widthdom
Widthdom marked this pull request as ready for review May 25, 2026 00:35
@Widthdom
Widthdom merged commit 8c4230f into main May 25, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue1814-1897-1898 branch May 25, 2026 03: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