Skip to content

Harden HTTP MCP resource limits and log inputs - #3272

Merged
Widthdom merged 9 commits into
mainfrom
fix-issue3003-3158-3096-3178-3114
Jun 5, 2026
Merged

Harden HTTP MCP resource limits and log inputs#3272
Widthdom merged 9 commits into
mainfrom
fix-issue3003-3158-3096-3178-3114

Conversation

@Widthdom

@Widthdom Widthdom commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Bound HTTP MCP handler and /events stream concurrency, with capped configuration values and 429/Retry-After saturation responses.
  • Cap MCP auth token lengths before hashing and cap HTTP request log metadata/request ids before persistent logging.
  • Update user/developer docs and add bilingual changelog fragments for each addressed issue.

Validation

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

Scope Notes

  • No target issue had an existing third-party work-start comment before work began.
  • No additional unfiled issues were found, so no new GitHub issue was created.
  • origin/main advanced during review; the branch includes a merge of origin/main to preserve Enforce HTTP MCP limit caps #3264's HTTP limit caps.

Fixes #3003
Fixes #3158
Fixes #3096
Fixes #3178
Fixes #3114

@Widthdom
Widthdom marked this pull request as ready for review June 5, 2026 03:13
…96-3178-3114

# Conflicts:
#	DEVELOPER_GUIDE.md
#	USER_GUIDE.md
#	tests/CodeIndex.Tests/HttpMcpTransportTests.cs
@Widthdom
Widthdom merged commit 8a734ec into main Jun 5, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue3003-3158-3096-3178-3114 branch June 5, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment