ran ruff format via uv
This commit is contained in:
@@ -3,7 +3,10 @@ import logging
|
||||
from mcp.server.fastmcp import Context, FastMCP
|
||||
|
||||
from nextcloud_mcp_server.client import NextcloudClient
|
||||
from nextcloud_mcp_server.utils.document_parser import is_parseable_document, parse_document
|
||||
from nextcloud_mcp_server.utils.document_parser import (
|
||||
is_parseable_document,
|
||||
parse_document,
|
||||
)
|
||||
from nextcloud_mcp_server.config import is_unstructured_parsing_enabled
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -62,7 +65,7 @@ def configure_webdav_tools(mcp: FastMCP):
|
||||
content, content_type = await client.webdav.read_file(path)
|
||||
|
||||
# Check if this is a parseable document (PDF, DOCX, etc.)
|
||||
if (is_unstructured_parsing_enabled() and is_parseable_document(content_type)):
|
||||
if is_unstructured_parsing_enabled() and is_parseable_document(content_type):
|
||||
try:
|
||||
logger.info(f"Parsing document '{path}' of type '{content_type}'")
|
||||
parsed_text, metadata = await parse_document(
|
||||
|
||||
Reference in New Issue
Block a user