src/calibre_mcp/tools/catalog.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/viewers/pdf/__init__.py:0: error: Skipping analyzing "fitz": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/calibre_mcp/viewers/pdf/__init__.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/viewers/pdf/__init__.py:0: error: Argument 1 to "Path" has incompatible type "Any | None"; expected "str | PathLike[str]"  [arg-type]
src/calibre_mcp/viewers/comic/__init__.py:0: error: Cannot find implementation or library stub for module named "rarfile"  [import-not-found]
src/calibre_mcp/viewers/comic/__init__.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/viewers/comic/__init__.py:0: error: "object" has no attribute "value"  [attr-defined]
src/calibre_mcp/viewers/comic/__init__.py:0: error: "object" has no attribute "value"  [attr-defined]
src/calibre_mcp/tools/shared/query_parsing.py:0: error: Library stubs not installed for "dateutil.relativedelta"  [import-untyped]
src/calibre_mcp/tools/shared/query_parsing.py:0: error: Need type annotation for "result"  [var-annotated]
src/calibre_mcp/tools/shared/query_parsing.py:0: error: Incompatible types in assignment (expression has type "int", target has type "list[Any] | bool | str | None")  [assignment]
src/calibre_mcp/utils/library_utils.py:0: error: Function "builtins.any" is not valid as a type  [valid-type]
src/calibre_mcp/utils/subprocess_utils.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/utils/subprocess_utils.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/utils/subprocess_utils.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/utils/subprocess_utils.py:0: error: Call to untyped function "_cmd" in typed context  [no-untyped-call]
src/calibre_mcp/utils/subprocess_utils.py:0: error: Call to untyped function "_cmd" in typed context  [no-untyped-call]
src/calibre_mcp/tools/shared/error_handling.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/tools/shared/error_handling.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/tools/shared/error_handling.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/tools/shared/error_handling.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/tools/shared/error_handling.py:0: error: Call to untyped function "_build_error" in typed context  [no-untyped-call]
src/calibre_mcp/tools/shared/error_handling.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/tools/shared/error_handling.py:0: error: Call to untyped function "_build_error" in typed context  [no-untyped-call]
src/calibre_mcp/logging_config.py:0: error: Item "None" of "type[BaseException] | None" has no attribute "__name__"  [union-attr]
src/calibre_mcp/logging_config.py:0: error: Dict entry 4 has incompatible type "str": "int"; expected "str": "Sequence[str]"  [dict-item]
src/calibre_mcp/logging_config.py:0: error: Dict entry 5 has incompatible type "str": "int"; expected "str": "Sequence[str]"  [dict-item]
src/calibre_mcp/rag/chunking.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/config_discovery.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/config_discovery.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/config_discovery.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/config_discovery.py:0: error: Need type annotation for "libraries" (hint: "libraries: dict[<type>, <type>] = ...")  [var-annotated]
src/calibre_mcp/config_discovery.py:0: error: Call to untyped function "CalibreConfigDiscovery" in typed context  [no-untyped-call]
src/calibre_mcp/tools/library/library_discovery.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/tools/library/library_discovery.py:0: error: Need type annotation for "libraries" (hint: "libraries: list[<type>] = ...")  [var-annotated]
src/calibre_mcp/tools/library/library_discovery.py:0: error: Call to untyped function "_cmd" in typed context  [no-untyped-call]
src/calibre_mcp/tools/library/library_discovery.py:0: error: Call to untyped function "_cmd" in typed context  [no-untyped-call]
src/calibre_mcp/tools/library/library_discovery.py:0: error: Argument 1 to "Path" has incompatible type "object"; expected "str | PathLike[str]"  [arg-type]
src/calibre_mcp/tools/library/library_discovery.py:0: error: Argument 1 to "Path" has incompatible type "object"; expected "str | PathLike[str]"  [arg-type]
src/calibre_mcp/tools/library/library_discovery.py:0: error: Argument 1 to "_is_valid_calibre_db" of "LibraryDiscoveryTool" has incompatible type "Path"; expected "str"  [arg-type]
src/calibre_mcp/tools/library/library_discovery.py:0: error: Argument 1 to "Path" has incompatible type "object"; expected "str | PathLike[str]"  [arg-type]
src/calibre_mcp/tools/library/library_discovery.py:0: error: Argument 1 to "Path" has incompatible type "object"; expected "str | PathLike[str]"  [arg-type]
src/calibre_mcp/tools/library/library_discovery.py:0: error: Call to untyped function "LibraryDiscoveryTool" in typed context  [no-untyped-call]
src/calibre_mcp/db/custom_columns.py:0: error: Returning Any from function declared to return "bool"  [no-any-return]
src/calibre_mcp/viewers/epub/__init__.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/viewers/epub/__init__.py:0: error: Item "None" of "Any | None" has no attribute "read"  [union-attr]
src/calibre_mcp/viewers/epub/__init__.py:0: error: Item "None" of "Any | None" has no attribute "read"  [union-attr]
src/calibre_mcp/viewers/epub/__init__.py:0: error: Item "AttributeValueList" of "str | AttributeValueList" has no attribute "startswith"  [union-attr]
src/calibre_mcp/viewers/epub/__init__.py:0: error: Unsupported operand types for + ("str" and "AttributeValueList")  [operator]
src/calibre_mcp/viewers/epub/__init__.py:0: error: Item "None" of "Any | None" has no attribute "read"  [union-attr]
src/calibre_mcp/viewers/epub/__init__.py:0: error: Item "AttributeValueList" of "str | AttributeValueList" has no attribute "startswith"  [union-attr]
src/calibre_mcp/viewers/epub/__init__.py:0: error: Unsupported operand types for + ("str" and "AttributeValueList")  [operator]
src/calibre_mcp/utils/fts_location_resolver.py:0: error: Skipping analyzing "fitz": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/calibre_mcp/utils/fts_location_resolver.py:0: error: Skipping analyzing "ebooklib": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/calibre_mcp/storage/base.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/db/database.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/db/database.py:0: error: Cannot determine type of "_initialized"  [has-type]
src/calibre_mcp/db/database.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/db/database.py:0: error: Cannot determine type of "_initialized"  [has-type]
src/calibre_mcp/db/database.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/db/database.py:0: error: Returning Any from function declared to return "Session"  [no-any-return]
src/calibre_mcp/db/database.py:0: error: Returning Any from function declared to return "bool"  [no-any-return]
src/calibre_mcp/db/database.py:0: error: Call to untyped function "DatabaseService" in typed context  [no-untyped-call]
src/calibre_mcp/viewers/__init__.py:0: error: Call to untyped function (unknown) in typed context  [no-untyped-call]
src/calibre_mcp/viewers/__init__.py:0: error: "object" has no attribute "load"  [attr-defined]
src/calibre_mcp/viewers/__init__.py:0: error: Incompatible return value type (got "object", expected "BookViewer | None")  [return-value]
src/calibre_mcp/transport.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/transport.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/transport.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/transport.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/transport.py:0: error: Untyped decorator makes function "_health" untyped  [untyped-decorator]
src/calibre_mcp/storage/local.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/storage/local.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/storage/local.py:0: error: Call to untyped function "_get_connection" in typed context  [no-untyped-call]
src/calibre_mcp/storage/local.py:0: error: Call to untyped function "_get_connection" in typed context  [no-untyped-call]
src/calibre_mcp/storage/__init__.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/config.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/config.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/config.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/config.py:0: error: Missing type arguments for generic type "tuple"  [type-arg]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: Incompatible types in assignment (expression has type "Connection", variable has type "None")  [assignment]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: "None" has no attribute "cursor"  [attr-defined]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: "None" has no attribute "commit"  [attr-defined]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "str")  [assignment]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: "str" has no attribute "exists"  [attr-defined]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "Path | None")  [assignment]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: "str" has no attribute "stat"  [attr-defined]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: Skipping analyzing "fitz": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: Item "None" of "Path | None" has no attribute "stem"  [union-attr]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: Call to untyped function "build_hierarchy" in typed context  [no-untyped-call]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: Call to untyped function "build_hierarchy" in typed context  [no-untyped-call]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: Returning Any from function declared to return "list[dict[str, Any]]"  [no-any-return]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/viewers/pdf/pdfjs_viewer.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Library stubs not installed for "defusedxml.ElementTree"  [import-untyped]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Need type annotation for "_spine" (hint: "_spine: list[<type>] = ...")  [var-annotated]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Need type annotation for "_toc" (hint: "_toc: list[<type>] = ...")  [var-annotated]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Need type annotation for "_manifest" (hint: "_manifest: dict[<type>, <type>] = ...")  [var-annotated]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Need type annotation for "_spine_itemrefs" (hint: "_spine_itemrefs: list[<type>] = ...")  [var-annotated]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Incompatible types in assignment (expression has type "Connection", variable has type "None")  [assignment]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: "None" has no attribute "cursor"  [attr-defined]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: "None" has no attribute "commit"  [attr-defined]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Incompatible types in assignment (expression has type "ZipFile", variable has type "None")  [assignment]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: "None" has no attribute "read"  [attr-defined]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Incompatible types in assignment (expression has type "Path | str", variable has type "str")  [assignment]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: "None" has no attribute "read"  [attr-defined]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Returning Any from function declared to return "str"  [no-any-return]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Argument 1 to "_parse_metadata" of "EPubViewer" has incompatible type "Tag"; expected "BeautifulSoup"  [arg-type]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Argument 1 to "_parse_manifest" of "EPubViewer" has incompatible type "Tag"; expected "BeautifulSoup"  [arg-type]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Argument 1 to "_parse_spine" of "EPubViewer" has incompatible type "Tag"; expected "BeautifulSoup"  [arg-type]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Argument 2 to "find" of "Tag" has incompatible type "dict[str, str]"; expected "dict[str, str | bytes | Pattern[str] | bool | Callable[[str | None], bool] | Iterable[str | bytes | Pattern[str] | bool | Callable[[str | None], bool]]] | None"  [arg-type]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Argument 2 to "find" of "Tag" has incompatible type "dict[str, str]"; expected "dict[str, str | bytes | Pattern[str] | bool | Callable[[str | None], bool] | Iterable[str | bytes | Pattern[str] | bool | Callable[[str | None], bool]]] | None"  [arg-type]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Argument 2 to "find" of "Tag" has incompatible type "dict[str, str]"; expected "dict[str, str | bytes | Pattern[str] | bool | Callable[[str | None], bool] | Iterable[str | bytes | Pattern[str] | bool | Callable[[str | None], bool]]] | None"  [arg-type]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Argument 2 to "find" of "Tag" has incompatible type "dict[str, str]"; expected "dict[str, str | bytes | Pattern[str] | bool | Callable[[str | None], bool] | Iterable[str | bytes | Pattern[str] | bool | Callable[[str | None], bool]]] | None"  [arg-type]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Argument 2 to "find" of "Tag" has incompatible type "dict[str, str]"; expected "dict[str, str | bytes | Pattern[str] | bool | Callable[[str | None], bool] | Iterable[str | bytes | Pattern[str] | bool | Callable[[str | None], bool]]] | None"  [arg-type]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Argument 2 to "find" of "Tag" has incompatible type "dict[str, str]"; expected "dict[str, str | bytes | Pattern[str] | bool | Callable[[str | None], bool] | Iterable[str | bytes | Pattern[str] | bool | Callable[[str | None], bool]]] | None"  [arg-type]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Argument 2 to "find" of "Tag" has incompatible type "dict[str, str]"; expected "dict[str, str | bytes | Pattern[str] | bool | Callable[[str | None], bool] | Iterable[str | bytes | Pattern[str] | bool | Callable[[str | None], bool]]] | None"  [arg-type]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Unsupported operand types for / ("Path" and "AttributeValueList")  [operator]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Unsupported operand types for / ("Path" and "None")  [operator]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Item "AttributeValueList" of "str | AttributeValueList" has no attribute "split"  [union-attr]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Item "AttributeValueList" of "str | AttributeValueList" has no attribute "startswith"  [union-attr]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Item "AttributeValueList" of "str | AttributeValueList" has no attribute "startswith"  [union-attr]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/viewers/epub/epub_viewer.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/viewers/comic/manga_viewer.py:0: error: Cannot find implementation or library stub for module named "rarfile"  [import-not-found]
src/calibre_mcp/viewers/comic/manga_viewer.py:0: error: Incompatible types in assignment (expression has type "Connection", variable has type "None")  [assignment]
src/calibre_mcp/viewers/comic/manga_viewer.py:0: error: "None" has no attribute "cursor"  [attr-defined]
src/calibre_mcp/viewers/comic/manga_viewer.py:0: error: "None" has no attribute "commit"  [attr-defined]
src/calibre_mcp/viewers/comic/manga_viewer.py:0: error: Incompatible types in assignment (expression has type "TemporaryDirectory[str]", variable has type "None")  [assignment]
src/calibre_mcp/viewers/comic/manga_viewer.py:0: error: Incompatible types in assignment (expression has type "ZipFile", variable has type "None")  [assignment]
src/calibre_mcp/viewers/comic/manga_viewer.py:0: error: "None" has no attribute "namelist"  [attr-defined]
src/calibre_mcp/viewers/comic/manga_viewer.py:0: error: "None" has no attribute "open"  [attr-defined]
src/calibre_mcp/viewers/comic/manga_viewer.py:0: error: "None" has no attribute "infolist"  [attr-defined]
src/calibre_mcp/viewers/comic/manga_viewer.py:0: error: "None" has no attribute "open"  [attr-defined]
src/calibre_mcp/viewers/comic/manga_viewer.py:0: error: Incompatible types in assignment (expression has type "Image", variable has type "ImageFile")  [assignment]
src/calibre_mcp/viewers/comic/manga_viewer.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/viewers/comic/manga_viewer.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Call to untyped function "sort_books" in typed context  [no-untyped-call]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Call to untyped function "sort_books" in typed context  [no-untyped-call]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Argument 1 to "LocalStorage" has incompatible type "str"; expected "Path | None"  [arg-type]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: "LocalStorage" has no attribute "get_all_books"; maybe "get_book"?  [attr-defined]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Argument 1 to "LocalStorage" has incompatible type "str"; expected "Path | None"  [arg-type]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: "LocalStorage" has no attribute "get_all_books"; maybe "get_book"?  [attr-defined]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: "LocalStorage" has no attribute "update_book"  [attr-defined]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: "LocalStorage" has no attribute "update_book"  [attr-defined]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Need type annotation for "index_map" (hint: "index_map: dict[<type>, <type>] = ...")  [var-annotated]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: "LocalStorage" has no attribute "update_book"  [attr-defined]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: "LocalStorage" has no attribute "update_book"  [attr-defined]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: Argument 1 to "LocalStorage" has incompatible type "str"; expected "Path | None"  [arg-type]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: "LocalStorage" has no attribute "get_all_books"; maybe "get_book"?  [attr-defined]
src/calibre_mcp/tools/library/series_maintenance_helpers.py:0: error: "LocalStorage" has no attribute "update_book"  [attr-defined]
src/calibre_mcp/services/viewer_service.py:0: error: Need type annotation for "_viewers" (hint: "_viewers: dict[<type>, <type>] = ...")  [var-annotated]
src/calibre_mcp/services/viewer_service.py:0: error: Need type annotation for "_states" (hint: "_states: dict[<type>, <type>] = ...")  [var-annotated]
src/calibre_mcp/services/viewer_service.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/services/viewer_service.py:0: error: Returning Any from function declared to return "ViewerState"  [no-any-return]
src/calibre_mcp/services/viewer_service.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/services/viewer_service.py:0: error: Returning Any from function declared to return "ViewerState"  [no-any-return]
src/calibre_mcp/services/viewer_service.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/services/base_service.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/services/base_service.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/services/base_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/base_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/base_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/base_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/base_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/models/series.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/models/rating.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/models/rating.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/models/identifier.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/models/identifier.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/models/identifier.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/models/data.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/models/book.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/models/book.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/models/book.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/models/book.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/services/tag_service.py:0: error: Module "calibre_mcp.services.base_service" does not explicitly export attribute "ValidationError"  [attr-defined]
src/calibre_mcp/services/tag_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/tag_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/tag_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/tag_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/tag_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/tag_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/tag_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/tag_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/tag_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/tag_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/tag_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/tag_service.py:0: error: Call to untyped function "DatabaseService" in typed context  [no-untyped-call]
src/calibre_mcp/services/book_service.py:0: error: Module "calibre_mcp.services.base_service" does not explicitly export attribute "ValidationError"  [attr-defined]
src/calibre_mcp/services/book_service.py:0: error: Dict entry 0 has incompatible type "str": "set[str]"; expected "str": "bool"  [dict-item]
src/calibre_mcp/services/book_service.py:0: error: Dict entry 0 has incompatible type "str": "set[str]"; expected "str": "bool"  [dict-item]
src/calibre_mcp/services/book_service.py:0: error: Dict entry 0 has incompatible type "str": "set[str]"; expected "str": "bool"  [dict-item]
src/calibre_mcp/services/book_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/book_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/book_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/book_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/book_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/book_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/book_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/book_service.py:0: error: Returning Any from function declared to return "bytes | None"  [no-any-return]
src/calibre_mcp/services/book_service.py:0: error: Signature of "_to_response" incompatible with supertype "calibre_mcp.services.base_service.BaseService"  [override]
src/calibre_mcp/services/book_service.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/services/book_service.py:0: error: Returning Any from function declared to return "list[dict[Any, Any]]"  [no-any-return]
src/calibre_mcp/services/book_service.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/services/book_service.py:0: error: Returning Any from function declared to return "list[dict[Any, Any]]"  [no-any-return]
src/calibre_mcp/services/book_service.py:0: error: Call to untyped function "DatabaseService" in typed context  [no-untyped-call]
src/calibre_mcp/tools/comments/comment_helpers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/tools/comments/comment_helpers.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/tools/tags/tag_helpers.py:0: error: Module "calibre_mcp.services.base_service" does not explicitly export attribute "ValidationError"  [attr-defined]
src/calibre_mcp/tools/tags/tag_helpers.py:0: error: Incompatible types in assignment (expression has type "dict[str, Any] | None", variable has type "dict[str, Any]")  [assignment]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Call to untyped function "_open_file" in typed context  [no-untyped-call]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Argument 3 to "get_all" of "BookService" has incompatible type "**dict[str, str]"; expected "int | None"  [arg-type]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Argument 3 to "get_all" of "BookService" has incompatible type "**dict[str, str]"; expected "list[str] | None"  [arg-type]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Argument 3 to "get_all" of "BookService" has incompatible type "**dict[str, str]"; expected "bool | None"  [arg-type]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "str | None")  [assignment]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "exists"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Item "str" of "str | Any" has no attribute "exists"  [union-attr]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "stem"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "suffix"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Incompatible types in assignment (expression has type "list[str] | None", variable has type "list[str]")  [assignment]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Argument 1 to "_open_file_with_app" has incompatible type "str | Any"; expected "Path"  [arg-type]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "str | None")  [assignment]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "exists"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Item "str" of "str | Any" has no attribute "exists"  [union-attr]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "stem"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "suffix"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Argument 1 to "_open_file_with_app" has incompatible type "str | Any"; expected "Path"  [arg-type]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "str | None")  [assignment]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "exists"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Item "str" of "str | Any" has no attribute "exists"  [union-attr]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "stem"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "suffix"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Argument 1 to "_open_file_with_app" has incompatible type "str | Any"; expected "Path"  [arg-type]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "str | None")  [assignment]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "exists"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Item "str" of "str | Any" has no attribute "exists"  [union-attr]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "stem"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "suffix"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Call to untyped function "_cmd" in typed context  [no-untyped-call]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Argument 1 to "_open_file_with_app" has incompatible type "str | Any"; expected "Path"  [arg-type]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "str | None")  [assignment]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "exists"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Item "str" of "str | Any" has no attribute "exists"  [union-attr]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "stem"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "suffix"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Argument 1 to "_open_file_with_app" has incompatible type "str | Any"; expected "Path"  [arg-type]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "str | None")  [assignment]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "exists"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Item "str" of "str | Any" has no attribute "exists"  [union-attr]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "stem"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "suffix"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Argument 1 to "_open_file_with_app" has incompatible type "str | Any"; expected "Path"  [arg-type]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "str | None")  [assignment]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "exists"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Item "str" of "str | Any" has no attribute "exists"  [union-attr]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "parent"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "stem"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: "str" has no attribute "suffix"  [attr-defined]
src/calibre_mcp/tools/import_export/export_helpers.py:0: error: Argument 1 to "_open_file_with_app" has incompatible type "str | Any"; expected "Path"  [arg-type]
src/calibre_mcp/services/times_service.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/services/times_service.py:0: error: Call to untyped function "_get_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/times_service.py:0: error: Call to untyped function "_get_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/times_service.py:0: error: Call to untyped function "_get_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/series_service.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/services/series_service.py:0: error: Call to untyped function "_get_db_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/series_service.py:0: error: Call to untyped function "_get_db_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/series_service.py:0: error: Call to untyped function "_get_db_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/series_service.py:0: error: Call to untyped function "_get_db_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/series_service.py:0: error: Call to untyped function "_get_db_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/publisher_service.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/services/publisher_service.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/services/publisher_service.py:0: error: Function is missing a type annotation  [no-untyped-def]
src/calibre_mcp/services/publisher_service.py:0: error: Call to untyped function "_get_db_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/publisher_service.py:0: error: Call to untyped function "_get_publisher_model" in typed context  [no-untyped-call]
src/calibre_mcp/services/publisher_service.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/services/publisher_service.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/services/publisher_service.py:0: error: Call to untyped function "_get_db_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/publisher_service.py:0: error: Call to untyped function "_get_db_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/publisher_service.py:0: error: Call to untyped function "_get_publisher_model" in typed context  [no-untyped-call]
src/calibre_mcp/services/publisher_service.py:0: error: Call to untyped function "_get_db_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/publisher_service.py:0: error: Call to untyped function "_get_publisher_model" in typed context  [no-untyped-call]
src/calibre_mcp/services/publisher_service.py:0: error: Call to untyped function "_get_db_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/publisher_service.py:0: error: Call to untyped function "_get_publisher_model" in typed context  [no-untyped-call]
src/calibre_mcp/services/publisher_service.py:0: error: Call to untyped function "_get_db_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/publisher_service.py:0: error: Call to untyped function "_get_publisher_model" in typed context  [no-untyped-call]
src/calibre_mcp/services/online_metadata.py:0: error: Call to untyped function "DatabaseService" in typed context  [no-untyped-call]
src/calibre_mcp/services/online_metadata.py:0: error: Call to untyped function "_cmd" in typed context  [no-untyped-call]
src/calibre_mcp/services/online_metadata.py:0: error: Call to untyped function "_cmd" in typed context  [no-untyped-call]
src/calibre_mcp/services/online_metadata.py:0: error: Call to untyped function "_cmd" in typed context  [no-untyped-call]
src/calibre_mcp/services/author_service.py:0: error: Module "calibre_mcp.services.base_service" does not explicitly export attribute "ValidationError"  [attr-defined]
src/calibre_mcp/services/author_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/author_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/author_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/author_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/author_service.py:0: error: Call to untyped function "_write_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/author_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/author_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/author_service.py:0: error: Call to untyped function "_read_session" in typed context  [no-untyped-call]
src/calibre_mcp/services/author_service.py:0: error: Call to untyped function "DatabaseService" in typed context  [no-untyped-call]
src/calibre_mcp/tools/book_management/book_helpers.py:0: error: Argument 1 to "join" of "str" has incompatible type "list[Any | None]"; expected "Iterable[str]"  [arg-type]
src/calibre_mcp/tools/authors/author_helpers.py:0: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
src/calibre_mcp/tools/authors/author_helpers.py:0: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
src/calibre_mcp/tools/authors/author_helpers.py:0: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
src/calibre_mcp/tools/authors/author_helpers.py:0: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
src/calibre_mcp/tools/authors/author_helpers.py:0: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
src/calibre_mcp/fleet_tool_metrics.py:0: error: Cannot find implementation or library stub for module named "prometheus_client"  [import-not-found]
src/calibre_mcp/fleet_tool_metrics.py:0: error: Unused "type: ignore[misc, assignment]" comment  [unused-ignore]
src/calibre_mcp/fleet_tool_metrics.py:0: error: Unused "type: ignore" comment  [unused-ignore]
src/calibre_mcp/rag/fastembed_gpu.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/rag/fastembed_gpu.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/rag/fastembed_gpu.py:0: error: "TextEmbeddingBase" has no attribute "model"  [attr-defined]
src/calibre_mcp/rag/fastembed_gpu.py:0: error: "TextEmbeddingBase" has no attribute "model"  [attr-defined]
src/calibre_mcp/tools/library/library_helpers.py:0: error: Need type annotation for "language_distribution" (hint: "language_distribution: dict[<type>, <type>] = ...")  [var-annotated]
src/calibre_mcp/tools/__init__.py:0: error: Function is missing a type annotation for one or more parameters  [no-untyped-def]
src/calibre_mcp/__init__.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/__init__.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/__init__.py:0: error: Call to untyped function "main" in typed context  [no-untyped-call]
src/calibre_mcp/server.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/server.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/server.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/server.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/server.py:0: error: Incompatible types in assignment (expression has type "Exception", variable has type "def log_error(logger: Logger, operation: str, error: Exception, book_id: str | None = ..., library_name: str | None = ..., **kwargs: Any) -> None")  [assignment]
src/calibre_mcp/server.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/server.py:0: error: Call to untyped function "register_tools_with_timeout" in typed context  [no-untyped-call]
src/calibre_mcp/server.py:0: error: Incompatible types in assignment (expression has type "int", variable has type "str")  [assignment]
src/calibre_mcp/server.py:0: error: Non-overlapping equality check (left operand type: "str", right operand type: "Literal[0]")  [comparison-overlap]
src/calibre_mcp/server.py:0: error: Module has no attribute "setmode"  [attr-defined]
src/calibre_mcp/server.py:0: error: Module has no attribute "O_BINARY"  [attr-defined]
src/calibre_mcp/server.py:0: error: Incompatible types in assignment (expression has type "int", variable has type "str")  [assignment]
src/calibre_mcp/server.py:0: error: Call to untyped function "main" in typed context  [no-untyped-call]
src/calibre_mcp/tools/prefab/libraries_card.py:0: error: Module has no attribute "show_libraries_prefab_card"  [attr-defined]
src/calibre_mcp/tools/prefab/book_card.py:0: error: Module has no attribute "show_book_prefab_card"  [attr-defined]
src/calibre_mcp/__main__.py:0: error: Call to untyped function "main" in typed context  [no-untyped-call]
src/calibre_mcp/__main__.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/__main__.py:0: error: Call to untyped function "main" in typed context  [no-untyped-call]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Untyped decorator makes function "manage_viewer" untyped  [untyped-decorator]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Incompatible types in assignment (expression has type "str", target has type "int")  [assignment]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Incompatible types in assignment (expression has type "str", target has type "int")  [assignment]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Incompatible types in assignment (expression has type "str", target has type "int")  [assignment]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Argument 1 to "search_books_helper" has incompatible type "**dict[str, int]"; expected "str | None"  [arg-type]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Argument 1 to "search_books_helper" has incompatible type "**dict[str, int]"; expected "list[str] | None"  [arg-type]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Argument 1 to "search_books_helper" has incompatible type "**dict[str, int]"; expected "bool | None"  [arg-type]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Argument 1 to "search_books_helper" has incompatible type "**dict[str, int]"; expected "bool"  [arg-type]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Call to untyped function "_open_file" in typed context  [no-untyped-call]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Incompatible types in assignment (expression has type "str", target has type "int")  [assignment]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Incompatible types in assignment (expression has type "str", target has type "int")  [assignment]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Incompatible types in assignment (expression has type "str", target has type "int")  [assignment]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Incompatible types in assignment (expression has type "float", target has type "int")  [assignment]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str")  [assignment]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Argument 1 to "Path" has incompatible type "Any | None"; expected "str | PathLike[str]"  [arg-type]
src/calibre_mcp/tools/viewer/manage_viewer.py:0: error: Call to untyped function "_open_file" in typed context  [no-untyped-call]
src/calibre_mcp/tools/times/manage_times.py:0: error: Untyped decorator makes function "manage_times" untyped  [untyped-decorator]
src/calibre_mcp/tools/tags/manage_tags.py:0: error: Untyped decorator makes function "manage_tags" untyped  [untyped-decorator]
src/calibre_mcp/tools/system/system_helpers.py:0: error: Library stubs not installed for "psutil"  [import-untyped]
src/calibre_mcp/tools/system/system_helpers.py:0: error: Value of type "object" is not indexable  [index]
src/calibre_mcp/tools/system/system_helpers.py:0: error: Value of type "object" is not indexable  [index]
src/calibre_mcp/tools/system/system_helpers.py:0: error: "object" has no attribute "items"  [attr-defined]
src/calibre_mcp/tools/system/system_helpers.py:0: error: Value of type "object" is not indexable  [index]
src/calibre_mcp/tools/system/system_helpers.py:0: error: Need type annotation for "tool_categories"  [var-annotated]
src/calibre_mcp/tools/system/system_helpers.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/tools/system/system_helpers.py:0: error: Need type annotation for "categories"  [var-annotated]
src/calibre_mcp/tools/system/system_helpers.py:0: error: Unsupported target for indexed assignment ("Collection[str]")  [index]
src/calibre_mcp/tools/system/system_helpers.py:0: error: Unsupported target for indexed assignment ("Collection[str]")  [index]
src/calibre_mcp/tools/system/system_helpers.py:0: error: Unsupported target for indexed assignment ("Collection[str]")  [index]
src/calibre_mcp/tools/system/system_helpers.py:0: error: Unsupported target for indexed assignment ("Collection[str]")  [index]
src/calibre_mcp/tools/system/system_helpers.py:0: error: Unsupported target for indexed assignment ("Collection[str]")  [index]
src/calibre_mcp/tools/system/system_helpers.py:0: error: "Collection[str]" has no attribute "values"  [attr-defined]
src/calibre_mcp/tools/system/system_helpers.py:0: error: Call to untyped function "DatabaseService" in typed context  [no-untyped-call]
src/calibre_mcp/tools/series/manage_series.py:0: error: Untyped decorator makes function "manage_series" untyped  [untyped-decorator]
src/calibre_mcp/tools/publishers/manage_publishers.py:0: error: Untyped decorator makes function "manage_publishers" untyped  [untyped-decorator]
src/calibre_mcp/tools/library/manage_library_operations.py:0: error: Argument "library_path" to "analyze_series" has incompatible type "str | None"; expected "str"  [arg-type]
src/calibre_mcp/tools/library/manage_library_operations.py:0: error: Argument "library_path" to "fix_series_metadata" has incompatible type "str | None"; expected "str"  [arg-type]
src/calibre_mcp/tools/library/manage_library_operations.py:0: error: Argument "library_path" to "merge_series" has incompatible type "str | None"; expected "str"  [arg-type]
src/calibre_mcp/tools/import_export/export_books_portmanteau.py:0: error: Untyped decorator makes function "export_books" untyped  [untyped-decorator]
src/calibre_mcp/tools/help_tools/help.py:0: error: Untyped decorator makes function "help_tool" untyped  [untyped-decorator]
src/calibre_mcp/tools/comments/manage_comments.py:0: error: Missing return statement  [return]
src/calibre_mcp/tools/comments/manage_comments.py:0: error: Argument 2 to "create_comment_helper" has incompatible type "str | None"; expected "str"  [arg-type]
src/calibre_mcp/tools/comments/manage_comments.py:0: error: Argument 2 to "update_comment_helper" has incompatible type "str | None"; expected "str"  [arg-type]
src/calibre_mcp/tools/comments/manage_comments.py:0: error: Argument 2 to "append_comment_helper" has incompatible type "str | None"; expected "str"  [arg-type]
src/calibre_mcp/tools/book_management/fulltext_search.py:0: error: Item "None" of "Any | dict[Any, Any] | None" has no attribute "get"  [union-attr]
src/calibre_mcp/tools/book_management/fulltext_search.py:0: error: Item "None" of "Any | dict[Any, Any] | None" has no attribute "get"  [union-attr]
src/calibre_mcp/tools/authors/manage_authors.py:0: error: Untyped decorator makes function "manage_authors" untyped  [untyped-decorator]
src/calibre_mcp/tools/analysis/manage_analysis.py:0: error: Untyped decorator makes function "manage_analysis" untyped  [untyped-decorator]
src/calibre_mcp/tools/analysis/manage_analysis.py:0: error: Incompatible return value type (got "TagStatsResponse", expected "dict[str, Any]")  [return-value]
src/calibre_mcp/tools/analysis/manage_analysis.py:0: error: Incompatible return value type (got "DuplicatesResponse", expected "dict[str, Any]")  [return-value]
src/calibre_mcp/tools/analysis/manage_analysis.py:0: error: Incompatible return value type (got "SeriesAnalysisResponse", expected "dict[str, Any]")  [return-value]
src/calibre_mcp/tools/analysis/manage_analysis.py:0: error: Incompatible return value type (got "LibraryHealthResponse", expected "dict[str, Any]")  [return-value]
src/calibre_mcp/tools/analysis/manage_analysis.py:0: error: Incompatible return value type (got "UnreadPriorityResponse", expected "dict[str, Any]")  [return-value]
src/calibre_mcp/tools/analysis/manage_analysis.py:0: error: Incompatible return value type (got "ReadingStats", expected "dict[str, Any]")  [return-value]
src/calibre_mcp/rag/metadata_rag.py:0: error: Skipping analyzing "lancedb": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/calibre_mcp/rag/lancedb_vector_store.py:0: error: Skipping analyzing "lancedb": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/calibre_mcp/rag/lancedb_vector_store.py:0: error: Function is missing a return type annotation  [no-untyped-def]
src/calibre_mcp/rag/lancedb_vector_store.py:0: error: Call to untyped function "_ensure_embedding_model" in typed context  [no-untyped-call]
src/calibre_mcp/rag/lancedb_vector_store.py:0: error: Call to untyped function "_ensure_embedding_model" in typed context  [no-untyped-call]
src/calibre_mcp/rag/lancedb_vector_store.py:0: error: Returning Any from function declared to return "list[dict[str, Any]]"  [no-any-return]
src/calibre_mcp/tools/book_management/query_books.py:0: error: Untyped decorator makes function "query_books" untyped  [untyped-decorator]
src/calibre_mcp/tools/book_management/query_books.py:0: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
src/calibre_mcp/tools/book_management/query_books.py:0: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
src/calibre_mcp/tools/book_management/query_books.py:0: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
src/calibre_mcp/tools/book_management/query_books.py:0: error: Returning Any from function declared to return "dict[str, Any]"  [no-any-return]
src/calibre_mcp/tools/system/manage_system.py:0: error: Untyped decorator makes function "manage_system" untyped  [untyped-decorator]
src/calibre_mcp/tools/system/manage_system.py:0: error: Incompatible types in assignment (expression has type "dict[str, Any]", variable has type "str")  [assignment]
src/calibre_mcp/tools/system/manage_system.py:0: error: Incompatible types in assignment (expression has type "dict[str, Any]", variable has type "str")  [assignment]
src/calibre_mcp/tools/shared/conversion.py:0: error: Missing type arguments for generic type "TemporaryDirectory"  [type-arg]
src/calibre_mcp/tools/shared/conversion.py:0: error: Call to untyped function "_cmd" in typed context  [no-untyped-call]
src/calibre_mcp/tools/shared/conversion.py:0: error: Call to untyped function "_cmd" in typed context  [no-untyped-call]
src/calibre_mcp/rag/retriever.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/rag/indexer.py:0: error: Skipping analyzing "lancedb": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/calibre_mcp/tools/files/file_helpers.py:0: error: Call to untyped function "DatabaseService" in typed context  [no-untyped-call]
src/calibre_mcp/tools/bulk_operations/bulk_operations_helpers.py:0: error: Argument 1 to "get_book_cover" of "BookService" has incompatible type "Any | None"; expected "int"  [arg-type]
src/calibre_mcp/tools/book_management/update_book.py:0: error: Module "calibre_mcp.services.base_service" does not explicitly export attribute "ValidationError"  [attr-defined]
src/calibre_mcp/tools/book_management/update_book.py:0: error: Missing type arguments for generic type "dict"  [type-arg]
src/calibre_mcp/tools/import_export/arxiv_client.py:0: error: Argument "params" to "get" of "AsyncClient" has incompatible type "dict[str, object]"; expected "QueryParams | Mapping[str, str | int | float | bool | None | Sequence[str | int | float | bool | None]] | list[tuple[str, str | int | float | bool | None]] | tuple[tuple[str, str | int | float | bool | None], ...] | str | bytes | None"  [arg-type]
src/calibre_mcp/tools/import_export/arxiv_client.py:0: error: Incompatible types in assignment (expression has type "str | AttributeValueList | None", variable has type "str")  [assignment]
src/calibre_mcp/tools/import_export/annas_client.py:0: error: Item "AttributeValueList" of "str | AttributeValueList" has no attribute "split"  [union-attr]
src/calibre_mcp/tools/import_export/annas_client.py:0: error: Unsupported right operand type for in ("str | AttributeValueList | None")  [operator]
src/calibre_mcp/tools/import_export/annas_client.py:0: error: Item "AttributeValueList" of "str | AttributeValueList | None" has no attribute "split"  [union-attr]
src/calibre_mcp/tools/import_export/annas_client.py:0: error: Item "None" of "str | AttributeValueList | None" has no attribute "split"  [union-attr]
src/calibre_mcp/tools/import_export/annas_client.py:0: error: Item "AttributeValueList" of "str | AttributeValueList" has no attribute "strip"  [union-attr]
src/calibre_mcp/tools/import_export/annas_client.py:0: error: Item "AttributeValueList" of "str | AttributeValueList" has no attribute "strip"  [union-attr]
src/calibre_mcp/tools/import_export/annas_client.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str")  [assignment]
src/calibre_mcp/tools/rag/manage_rag.py:0: error: Skipping analyzing "lancedb": module is installed, but missing library stubs or py.typed marker  [import-untyped]
src/calibre_mcp/tools/rag/manage_rag.py:0: error: Unused "type: ignore" comment  [unused-ignore]
src/calibre_mcp/tools/rag/manage_rag.py:0: error: Untyped decorator makes function "manage_rag" untyped  [untyped-decorator]
src/calibre_mcp/tools/files/manage_files.py:0: error: Untyped decorator makes function "manage_files" untyped  [untyped-decorator]
src/calibre_mcp/tools/files/manage_files.py:0: error: Incompatible types in assignment (expression has type "list[int] | str | None", variable has type "list[int] | None")  [assignment]
src/calibre_mcp/tools/bulk_operations/manage_bulk_operations.py:0: error: Untyped decorator makes function "manage_bulk_operations" untyped  [untyped-decorator]
src/calibre_mcp/tools/book_management/manage_books.py:0: error: Untyped decorator makes function "manage_books" untyped  [untyped-decorator]
src/calibre_mcp/tools/import_export/manage_import.py:0: error: Untyped decorator makes function "manage_import" untyped  [untyped-decorator]
src/calibre_mcp/tools/metadata/manage_metadata.py:0: error: Untyped decorator makes function "manage_metadata" untyped  [untyped-decorator]
src/calibre_mcp/tools/metadata/manage_metadata.py:0: error: Incompatible return value type (got "dict[str, Any] | MetadataUpdateResponse", expected "dict[str, Any]")  [return-value]
src/calibre_mcp/tools/metadata/manage_metadata.py:0: error: Incompatible types in assignment (expression has type "TagStatsResponse", variable has type "MetadataUpdateResponse")  [assignment]
src/calibre_mcp/tools/metadata/manage_metadata.py:0: error: Incompatible return value type (got "dict[str, Any] | MetadataUpdateResponse", expected "dict[str, Any]")  [return-value]
src/calibre_mcp/tools/metadata/manage_metadata.py:0: error: Incompatible types in assignment (expression has type "dict[str, Any]", variable has type "MetadataUpdateResponse")  [assignment]
src/calibre_mcp/tools/metadata/manage_metadata.py:0: error: Incompatible return value type (got "dict[str, Any] | MetadataUpdateResponse", expected "dict[str, Any]")  [return-value]
src/calibre_mcp/tools/metadata/manage_metadata.py:0: error: Incompatible types in assignment (expression has type "str", target has type "int")  [assignment]
src/calibre_mcp/tools/metadata/manage_metadata.py:0: error: Incompatible types in assignment (expression has type "str", target has type "int")  [assignment]
src/calibre_mcp/tools/metadata/manage_metadata.py:0: error: Argument 1 to "search_books_helper" has incompatible type "**dict[str, int]"; expected "str | None"  [arg-type]
src/calibre_mcp/tools/metadata/manage_metadata.py:0: error: Argument 1 to "search_books_helper" has incompatible type "**dict[str, int]"; expected "list[str] | None"  [arg-type]
src/calibre_mcp/tools/metadata/manage_metadata.py:0: error: Argument 1 to "search_books_helper" has incompatible type "**dict[str, int]"; expected "bool | None"  [arg-type]
src/calibre_mcp/tools/metadata/manage_metadata.py:0: error: Argument 1 to "search_books_helper" has incompatible type "**dict[str, int]"; expected "bool"  [arg-type]
src/calibre_mcp/tools/metadata/manage_metadata.py:0: error: Call to untyped function "_open_file" in typed context  [no-untyped-call]
