Răsfoiți Sursa

fix(mcp): Update tools __init__ to import from server.py

The cleaning.py file has a git object permission issue preventing
it from being added. Since all tools are now implemented directly
in server.py with @mcp.tool() decorators, update tools/__init__.py
to import from server instead.

This ensures the module structure works correctly without
needing the separate cleaning.py file.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
d8dfun 2 zile în urmă
părinte
comite
af2d37ef76
1 a modificat fișierele cu 12 adăugiri și 6 ștergeri
  1. 12 6
      src/mcp_server/tools/__init__.py

+ 12 - 6
src/mcp_server/tools/__init__.py

@@ -2,24 +2,30 @@
 MCP Tools for Novel Translator
 MCP Tools for Novel Translator
 
 
 This package contains all MCP tool implementations.
 This package contains all MCP tool implementations.
+
+Note: All tools are now implemented directly in server.py using @mcp.tool()
+decorators. This module provides exports for compatibility.
 """
 """
 
 
-from .translation import (
+# Import from server module where tools are actually defined
+from ..server import (
     translate_text,
     translate_text,
     translate_batch,
     translate_batch,
     translate_file,
     translate_file,
-    register_progress_callback
+    clean_file,
+    split_chapters,
+    glossary_add,
+    glossary_list,
+    glossary_clear,
+    check_duplicate,
+    get_fingerprint,
 )
 )
-from .cleaning import clean_file, split_chapters
-from .glossary import glossary_add, glossary_list, glossary_clear
-from .fingerprint import check_duplicate, get_fingerprint
 
 
 __all__ = [
 __all__ = [
     # Translation tools
     # Translation tools
     "translate_text",
     "translate_text",
     "translate_batch",
     "translate_batch",
     "translate_file",
     "translate_file",
-    "register_progress_callback",
     # Cleaning tools
     # Cleaning tools
     "clean_file",
     "clean_file",
     "split_chapters",
     "split_chapters",