Files
legal-ai/mcp-server
Chaim bd4b0ca766
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 3m58s
feat(mcp): case_get_final_text — fall back to PDF/DOC/RTF/TXT/MD
The Hermes Knowledge Curator's hermes-curator.md says it must be able to
read both DOCX and PDF final decisions. The original implementation
hardcoded the .docx extension only. Extend to try .docx → .pdf → .doc →
.rtf → .txt → .md, returning the first match. extractor.extract_text
already supports all six formats, so no extractor changes needed.

If none found, the not_found response now includes the tried_extensions
list so the caller knows what was attempted.

Verified on case 1130-25 (.docx still picked first) and tested via
`curator-cmp mcp test legal-ai`.
2026-05-05 19:18:57 +00:00
..