hanzo-mcp 0.6.8__py3-none-any.whl → 0.6.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of hanzo-mcp might be problematic. Click here for more details.

hanzo_mcp/__init__.py CHANGED
@@ -1,14 +1,3 @@
1
1
  """Hanzo MCP - Implementation of Hanzo capabilities using MCP."""
2
2
 
3
- import warnings
4
-
5
- # Aggressively suppress ALL deprecation warnings from pydantic before any imports
6
- warnings.filterwarnings("ignore", category=DeprecationWarning, module="pydantic.*")
7
- warnings.filterwarnings("ignore", category=DeprecationWarning, module="pydantic._internal.*")
8
- warnings.filterwarnings("ignore", category=DeprecationWarning, module="litellm.*")
9
-
10
- # Also catch specific patterns
11
- warnings.filterwarnings("ignore", message=".*class-based.*config.*deprecated.*")
12
- warnings.filterwarnings("ignore", message=".*PydanticDeprecatedSince20.*")
13
-
14
- __version__ = "0.6.8"
3
+ __version__ = "0.6.9"
hanzo_mcp/__main__.py CHANGED
@@ -1,21 +1,16 @@
1
1
  """Main entry point for hanzo-mcp when run as a module."""
2
2
 
3
+ # MUST suppress warnings BEFORE any imports
3
4
  import warnings
5
+ import os
4
6
 
5
- # Suppress ALL Pydantic deprecation warnings before any imports
6
- warnings.filterwarnings(
7
- "ignore",
8
- category=DeprecationWarning,
9
- module="pydantic.*"
10
- )
7
+ # Set environment variable for child processes
8
+ os.environ["PYTHONWARNINGS"] = "ignore::DeprecationWarning"
11
9
 
12
- # Also try to catch the specific message pattern
13
- warnings.filterwarnings(
14
- "ignore",
15
- message=".*class-based.*config.*deprecated.*"
16
- )
10
+ # Suppress all deprecation warnings
11
+ warnings.filterwarnings("ignore", category=DeprecationWarning)
17
12
 
18
- # Import cli after setting up warnings
13
+ # Now we can import
19
14
  from hanzo_mcp.cli import main
20
15
 
21
16
  if __name__ == "__main__":
hanzo_mcp/cli.py CHANGED
@@ -1,28 +1,25 @@
1
1
  """Command-line interface for the Hanzo MCP server."""
2
2
 
3
+ # CRITICAL: Suppress warnings BEFORE any imports that might trigger them
3
4
  import warnings
4
- import sys
5
5
  import os
6
+ import sys
6
7
 
7
- # Set environment variable to suppress warnings
8
+ # Set environment variable to suppress warnings in subprocesses
8
9
  os.environ["PYTHONWARNINGS"] = "ignore::DeprecationWarning"
9
10
 
10
- # Suppress ALL deprecation warnings before any imports
11
+ # Suppress ALL deprecation warnings
11
12
  warnings.simplefilter("ignore", DeprecationWarning)
12
13
  warnings.filterwarnings("ignore", category=DeprecationWarning)
13
14
 
14
- # Specifically target pydantic internal warnings
15
- if not sys.warnoptions:
16
- warnings.filterwarnings("ignore", module="pydantic._internal")
17
- warnings.filterwarnings("ignore", module="pydantic")
18
- warnings.filterwarnings("ignore", module="litellm")
19
-
15
+ # Now safe to import everything else
20
16
  import argparse
21
17
  import json
22
18
  import signal
23
19
  from pathlib import Path
24
20
  from typing import Any, cast
25
21
 
22
+ # Import server AFTER warning suppression
26
23
  from hanzo_mcp.server import HanzoMCPServer
27
24
 
28
25
 
hanzo_mcp/entry.py ADDED
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env python
2
+ """Entry point that suppresses warnings before importing anything."""
3
+
4
+ def main():
5
+ # Nuclear option - override warnings.warn before ANY imports
6
+ import warnings
7
+ import os
8
+ import sys
9
+
10
+ # Store original
11
+ _original_warn = warnings.warn
12
+
13
+ # Override with filter
14
+ def filtered_warn(message, category=None, stacklevel=1):
15
+ # Skip Pydantic deprecation warnings
16
+ if (category == DeprecationWarning and
17
+ ("class-based `config`" in str(message) or
18
+ "PydanticDeprecatedSince20" in str(message))):
19
+ return
20
+ _original_warn(message, category, stacklevel)
21
+
22
+ # Replace globally
23
+ warnings.warn = filtered_warn
24
+
25
+ # Also set environment
26
+ os.environ["PYTHONWARNINGS"] = "ignore::DeprecationWarning"
27
+
28
+ # Now import the CLI
29
+ from hanzo_mcp.cli import main as cli_main
30
+ cli_main()
31
+
32
+ if __name__ == "__main__":
33
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hanzo-mcp
3
- Version: 0.6.8
3
+ Version: 0.6.9
4
4
  Summary: The Zen of Hanzo MCP: One server to rule them all. The ultimate MCP that orchestrates all others.
5
5
  Author-email: Hanzo Industries Inc <dev@hanzo.ai>
6
6
  License: MIT
@@ -1,8 +1,9 @@
1
- hanzo_mcp/__init__.py,sha256=N7kwt8VxU-3qGm2d9ToP84b0QMvtkOriMZlfhYYohFA,638
2
- hanzo_mcp/__main__.py,sha256=kdAy3pjtKmFyFw0c8uU7fN--USerR4ubfD7ai3BWlgI,490
3
- hanzo_mcp/cli.py,sha256=cUHm6z9V5KVnRW7wJoXVPtxfaOgLpPImg4f1DmS3se8,11891
1
+ hanzo_mcp/__init__.py,sha256=F2dv9GZZwru3USs5HKx3y92uYPKhs-Jluv4uhxjSEo0,89
2
+ hanzo_mcp/__main__.py,sha256=YtdSgqWOsqV_FfSL6qMPBkcLQu47PxIbNGPMfLTEICM,428
3
+ hanzo_mcp/cli.py,sha256=ks7efO2NfPafHTsDS8zCng3hxLdNFIj1qMR2zoAPejc,11786
4
4
  hanzo_mcp/cli_enhanced.py,sha256=rqh9gqyjMuUznIlPTC5pcIGYZTKAScacMsDb1e68ReE,15819
5
5
  hanzo_mcp/dev_server.py,sha256=_Ti0P7y8VNK5z4NiZ1BN5L_KdWhWYJ4IG2U6GZObzyM,7869
6
+ hanzo_mcp/entry.py,sha256=E2_uQDgHhfeUWf-tqwxt8Gi0vYdXpPkWcsiYI9tZWRg,943
6
7
  hanzo_mcp/server.py,sha256=W5mUxylqzBXGKOLxQq49bS4iL89cxbrXGs_m_Sw_aqw,8540
7
8
  hanzo_mcp/config/__init__.py,sha256=iZYGSJMsC1c97gRFqgyowfP4XW480BBVRAQq1r-Dp7g,506
8
9
  hanzo_mcp/config/settings.py,sha256=F4ya4pHoxGACawPo4hd0bwfk6MwXvrTjH0WMBQpUN8I,16259
@@ -127,9 +128,9 @@ hanzo_mcp/tools/vector/project_manager.py,sha256=xrkRl7niWjJrtSNaEOppkPzDFDw9FaE
127
128
  hanzo_mcp/tools/vector/vector.py,sha256=EpKEDkRfSHsDfPewqRwNAulX0BndlK48p-sFSMtt3js,10179
128
129
  hanzo_mcp/tools/vector/vector_index.py,sha256=IqXoEfEk6TOOEThXw4obePZqfvBRiYL_LCrx8z35-h8,4403
129
130
  hanzo_mcp/tools/vector/vector_search.py,sha256=jwX1azf4V4seqJ2CIDloX3lJ5_hkUl7X5e2OOgGXQNk,9647
130
- hanzo_mcp-0.6.8.dist-info/licenses/LICENSE,sha256=mf1qZGFsPGskoPgytp9B-RsahfKvXsBpmaAbTLGTt8Y,1063
131
- hanzo_mcp-0.6.8.dist-info/METADATA,sha256=pzLYRhtq429PBAKfJc5nyVE01LV88YY9Ce99M8T-PMU,11066
132
- hanzo_mcp-0.6.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
133
- hanzo_mcp-0.6.8.dist-info/entry_points.txt,sha256=Q_g5SzWk47z2b_rE_RgonVqk4-d8VQ6pqwMveYiXJuU,101
134
- hanzo_mcp-0.6.8.dist-info/top_level.txt,sha256=eGFANatA0MHWiVlpS56fTYRIShtibrSom1uXI6XU0GU,10
135
- hanzo_mcp-0.6.8.dist-info/RECORD,,
131
+ hanzo_mcp-0.6.9.dist-info/licenses/LICENSE,sha256=mf1qZGFsPGskoPgytp9B-RsahfKvXsBpmaAbTLGTt8Y,1063
132
+ hanzo_mcp-0.6.9.dist-info/METADATA,sha256=MAmp6zky2Kxg3odl-La5WIOBIs2FRRWkClZtw5_EqcY,11066
133
+ hanzo_mcp-0.6.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
134
+ hanzo_mcp-0.6.9.dist-info/entry_points.txt,sha256=EfcJdh2PJAkyfPXo-OCA3SR4j5uinugiNbxmoBLoMyo,103
135
+ hanzo_mcp-0.6.9.dist-info/top_level.txt,sha256=eGFANatA0MHWiVlpS56fTYRIShtibrSom1uXI6XU0GU,10
136
+ hanzo_mcp-0.6.9.dist-info/RECORD,,
@@ -1,3 +1,3 @@
1
1
  [console_scripts]
2
- hanzo-mcp = hanzo_mcp.cli:main
2
+ hanzo-mcp = hanzo_mcp.entry:main
3
3
  hanzo-mcp-dev = hanzo_mcp.dev_server:run_dev_server