Skip to content

Add MCP response guidance hints - #2743

Merged
Widthdom merged 2 commits into
mainfrom
fix-issue1641-1812
May 31, 2026
Merged

Add MCP response guidance hints#2743
Widthdom merged 2 commits into
mainfrom
fix-issue1641-1812

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Add next_step_suggestion to non-empty MCP search, references, and excerpt structured responses.
  • Add recovery_hint to empty MCP read-tool responses across search, symbol graph reads, excerpt, impact analysis, unused symbols, and hotspots.
  • Document the new MCP response fields in tool descriptions and add regression coverage.

Validation

  • dotnet build
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "FullyQualifiedName~McpServerTests" with commit.gpgsign=false

Documentation and Changelog

  • changelog.d/unreleased/1641.added.md
  • changelog.d/unreleased/1812.added.md
  • MCP tool descriptions updated in src/CodeIndex/Mcp/McpToolDefinitions.cs

Review

  • Adversarial review performed manually against origin/main..HEAD; no blocking/actionable issues found.
  • codex exec review attempt was blocked by usage limits.

Follow-up Candidates

  • None.

Fixes #1641
Fixes #1812

@Widthdom
Widthdom merged commit 0533fb9 into main May 31, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue1641-1812 branch May 31, 2026 09:00
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 recovery hints to empty-result responses across MCP tools search / references / excerpt responses lack next_step_suggestion follow-up hint

1 participant