feat: Office-Extraktion (docx/xlsx/pptx) fuer files-, mail- und notes-MCP

officeutil.py (analog pdfutil): server-seitige Text-Extraktion, damit das
LLM Inhalte als Text bekommt statt Base64-Blob. Verkabelt in files.read_file,
mail.read_attachment (und notes.read_resource, bereits in e34711d).
Aeltere Binaerformate (.doc/.xls/.ppt) und .rtf bewusst nicht behandelt --
is_office() False -> Fallback auf Rohdaten. requirements-extra: python-pptx.

War bereits deployed und lief (FileTypes-Tests 14 passed), lag aber
uncommittet im Arbeitsverzeichnis; ohne officeutil.py waere ein frischer
Clone seit e34711d kaputt gewesen.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XhHNJKk3RsHgUsJ27WQSom
This commit is contained in:
Stefan Lohmaier
2026-07-21 09:32:26 +02:00
co-authored by Claude Opus 4.8
parent e34711d0ca
commit 4d198017df
4 changed files with 112 additions and 2 deletions
+1
View File
@@ -7,3 +7,4 @@ pillow==12.2.0
PyMuPDF==1.27.2.3
pytesseract==0.3.13
python-docx==1.2.0
python-pptx==1.0.2