Skip to content

[codex] Follow up MCP diagnostic bounds - #3278

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

[codex] Follow up MCP diagnostic bounds#3278
Widthdom merged 2 commits into
mainfrom
fix-issue3118-3122

Conversation

@Widthdom

@Widthdom Widthdom commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Keep resources/list and resources/read resource URI caps consistent by omitting indexed files whose generated resource URI would be unreadable.
  • Bound MCP rate-limit error tool diagnostics in the JSON-RPC error response as well as the audit log.

Validation

  • dotnet format whitespace CodeIndex.sln --verify-no-changes --no-restore --verbosity minimal
  • dotnet build CodeIndex.sln -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "FullyQualifiedName~McpServerTests|FullyQualifiedName~McpAuditLogTests|FullyQualifiedName~AuditLogSinkTests|FullyQualifiedName~MetricsSinkTests" -p:UseSharedCompilation=false
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --json
  • codex exec review --base origin/main

Fixes #3118
Fixes #3122

@Widthdom
Widthdom marked this pull request as ready for review June 4, 2026 23:56
@Widthdom
Widthdom merged commit 085109c into main Jun 5, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue3118-3122 branch June 5, 2026 02:54
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 resources/read should cap URI length before parse, lookup, and error echo MCP unknown tool names should be length-capped before errors and logs

1 participant