feat: Add text processing background worker for telling client about progress

This commit is contained in:
Chris Coutinho
2025-10-25 19:52:45 +02:00
parent 2147fc1696
commit a36038422b
13 changed files with 487 additions and 21 deletions
+4 -1
View File
@@ -85,7 +85,10 @@ def configure_webdav_tools(mcp: FastMCP):
try:
logger.info(f"Parsing document '{path}' of type '{content_type}'")
parsed_text, metadata = await parse_document(
content, content_type, filename=path
content,
content_type,
filename=path,
progress_callback=ctx.report_progress,
)
return {
"path": path,