hanzo-mcp 0.6.6__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,12 +1,3 @@
1
1
  """Hanzo MCP - Implementation of Hanzo capabilities using MCP."""
2
2
 
3
- import warnings
4
-
5
- # Suppress deprecation warnings from litellm about Pydantic v1 style configs
6
- warnings.filterwarnings(
7
- "ignore",
8
- category=DeprecationWarning,
9
- message=".*class-based `config`.*"
10
- )
11
-
12
- __version__ = "0.6.6"
3
+ __version__ = "0.6.9"
hanzo_mcp/__main__.py ADDED
@@ -0,0 +1,17 @@
1
+ """Main entry point for hanzo-mcp when run as a module."""
2
+
3
+ # MUST suppress warnings BEFORE any imports
4
+ import warnings
5
+ import os
6
+
7
+ # Set environment variable for child processes
8
+ os.environ["PYTHONWARNINGS"] = "ignore::DeprecationWarning"
9
+
10
+ # Suppress all deprecation warnings
11
+ warnings.filterwarnings("ignore", category=DeprecationWarning)
12
+
13
+ # Now we can import
14
+ from hanzo_mcp.cli import main
15
+
16
+ if __name__ == "__main__":
17
+ main()
hanzo_mcp/cli.py CHANGED
@@ -1,22 +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
4
+ import warnings
5
+ import os
6
+ import sys
7
+
8
+ # Set environment variable to suppress warnings in subprocesses
9
+ os.environ["PYTHONWARNINGS"] = "ignore::DeprecationWarning"
10
+
11
+ # Suppress ALL deprecation warnings
12
+ warnings.simplefilter("ignore", DeprecationWarning)
13
+ warnings.filterwarnings("ignore", category=DeprecationWarning)
14
+
15
+ # Now safe to import everything else
3
16
  import argparse
4
17
  import json
5
- import os
6
18
  import signal
7
- import sys
8
- import warnings
9
19
  from pathlib import Path
10
20
  from typing import Any, cast
11
21
 
12
- # Suppress deprecation warnings from litellm about Pydantic v1 style configs
13
- warnings.filterwarnings(
14
- "ignore",
15
- category=DeprecationWarning,
16
- message=".*class-based `config`.*",
17
- module="pydantic.*"
18
- )
19
-
22
+ # Import server AFTER warning suppression
20
23
  from hanzo_mcp.server import HanzoMCPServer
21
24
 
22
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.6
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
@@ -14,22 +14,22 @@ Classifier: Operating System :: OS Independent
14
14
  Requires-Python: >=3.12
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: mcp>=1.6.0
17
+ Requires-Dist: mcp>=1.9.4
18
18
  Requires-Dist: fastmcp>=2.9.2
19
- Requires-Dist: httpx>=0.27.0
20
- Requires-Dist: uvicorn>=0.23.1
21
- Requires-Dist: openai>=1.50.0
22
- Requires-Dist: python-dotenv>=1.0.0
23
- Requires-Dist: litellm>=1.40.14
19
+ Requires-Dist: httpx>=0.28.1
20
+ Requires-Dist: uvicorn>=0.34.0
21
+ Requires-Dist: openai>=1.62.0
22
+ Requires-Dist: python-dotenv>=1.0.1
23
+ Requires-Dist: litellm>=1.73.2
24
24
  Requires-Dist: grep-ast>=0.8.1
25
25
  Requires-Dist: bashlex>=0.18
26
26
  Requires-Dist: libtmux>=0.39.0
27
27
  Requires-Dist: nbformat>=5.10.4
28
- Requires-Dist: psutil>=6.1.0
29
- Requires-Dist: pydantic>=2.11.0
28
+ Requires-Dist: psutil>=6.1.1
29
+ Requires-Dist: pydantic>=2.11.1
30
30
  Requires-Dist: pydantic-settings>=2.7.0
31
- Requires-Dist: typing-extensions>=4.12.2
32
- Requires-Dist: watchdog>=3.0.0
31
+ Requires-Dist: typing-extensions>=4.13.0
32
+ Requires-Dist: watchdog>=6.0.0
33
33
  Provides-Extra: dev
34
34
  Requires-Dist: pytest>=7.0.0; extra == "dev"
35
35
  Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
@@ -1,7 +1,9 @@
1
- hanzo_mcp/__init__.py,sha256=hkDnlbGdsXrIdNqcITwEfaS1vT6ExhxxjLusnQ7Ulek,298
2
- hanzo_mcp/cli.py,sha256=HakA0soJB2yqQwMpdYvgzpCso1ZdC5qkrXwHEGZYLlE,11573
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
3
4
  hanzo_mcp/cli_enhanced.py,sha256=rqh9gqyjMuUznIlPTC5pcIGYZTKAScacMsDb1e68ReE,15819
4
5
  hanzo_mcp/dev_server.py,sha256=_Ti0P7y8VNK5z4NiZ1BN5L_KdWhWYJ4IG2U6GZObzyM,7869
6
+ hanzo_mcp/entry.py,sha256=E2_uQDgHhfeUWf-tqwxt8Gi0vYdXpPkWcsiYI9tZWRg,943
5
7
  hanzo_mcp/server.py,sha256=W5mUxylqzBXGKOLxQq49bS4iL89cxbrXGs_m_Sw_aqw,8540
6
8
  hanzo_mcp/config/__init__.py,sha256=iZYGSJMsC1c97gRFqgyowfP4XW480BBVRAQq1r-Dp7g,506
7
9
  hanzo_mcp/config/settings.py,sha256=F4ya4pHoxGACawPo4hd0bwfk6MwXvrTjH0WMBQpUN8I,16259
@@ -126,9 +128,9 @@ hanzo_mcp/tools/vector/project_manager.py,sha256=xrkRl7niWjJrtSNaEOppkPzDFDw9FaE
126
128
  hanzo_mcp/tools/vector/vector.py,sha256=EpKEDkRfSHsDfPewqRwNAulX0BndlK48p-sFSMtt3js,10179
127
129
  hanzo_mcp/tools/vector/vector_index.py,sha256=IqXoEfEk6TOOEThXw4obePZqfvBRiYL_LCrx8z35-h8,4403
128
130
  hanzo_mcp/tools/vector/vector_search.py,sha256=jwX1azf4V4seqJ2CIDloX3lJ5_hkUl7X5e2OOgGXQNk,9647
129
- hanzo_mcp-0.6.6.dist-info/licenses/LICENSE,sha256=mf1qZGFsPGskoPgytp9B-RsahfKvXsBpmaAbTLGTt8Y,1063
130
- hanzo_mcp-0.6.6.dist-info/METADATA,sha256=7CR5dLim5hU1bgk0O2znlFKHSqRWSw00YETvFOYiWYk,11067
131
- hanzo_mcp-0.6.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
132
- hanzo_mcp-0.6.6.dist-info/entry_points.txt,sha256=Q_g5SzWk47z2b_rE_RgonVqk4-d8VQ6pqwMveYiXJuU,101
133
- hanzo_mcp-0.6.6.dist-info/top_level.txt,sha256=eGFANatA0MHWiVlpS56fTYRIShtibrSom1uXI6XU0GU,10
134
- hanzo_mcp-0.6.6.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