Skip to content

fix: return indexing results to MCP clients#107

Merged
epugh merged 1 commit into
apache:mainfrom
adityamparikh:fix/indexing-return-results
May 8, 2026
Merged

fix: return indexing results to MCP clients#107
epugh merged 1 commit into
apache:mainfrom
adityamparikh:fix/indexing-return-results

Conversation

@adityamparikh
Copy link
Copy Markdown
Contributor

Summary

  • Change indexJsonDocuments(), indexCsvDocuments(), and indexXmlDocuments() from void to String return type
  • Return success/total count message so the AI client knows how many documents were actually indexed
  • Prevents silent data loss where partial indexing failures go unreported

Test plan

  • ./gradlew build passes
  • ./gradlew nativeTest -Pnative passes (119/119 tests)
  • No regressions

🤖 Generated with Claude Code

Change indexJsonDocuments(), indexCsvDocuments(), and indexXmlDocuments()
from void to String return type, returning a message with the success
count so AI clients get feedback on how many documents were indexed.

Signed-off-by: Aditya Parikh <aditya.m.parikh@gmail.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: adityamparikh <aditya.m.parikh@gmail.com>
@adityamparikh adityamparikh force-pushed the fix/indexing-return-results branch from 7f15e19 to 6703c74 Compare May 2, 2026 17:04
@epugh epugh merged commit afbf38d into apache:main May 8, 2026
1 check passed
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.

2 participants