hanzo-mcp 0.6.9__py3-none-any.whl → 0.6.10__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,3 +1,3 @@
1
1
  """Hanzo MCP - Implementation of Hanzo capabilities using MCP."""
2
2
 
3
- __version__ = "0.6.9"
3
+ __version__ = "0.6.10"
hanzo_mcp/__main__.py CHANGED
@@ -1,16 +1,5 @@
1
1
  """Main entry point for hanzo-mcp when run as a module."""
2
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
3
  from hanzo_mcp.cli import main
15
4
 
16
5
  if __name__ == "__main__":
hanzo_mcp/cli.py CHANGED
@@ -1,25 +1,13 @@
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
16
3
  import argparse
17
4
  import json
5
+ import os
18
6
  import signal
7
+ import sys
19
8
  from pathlib import Path
20
9
  from typing import Any, cast
21
10
 
22
- # Import server AFTER warning suppression
23
11
  from hanzo_mcp.server import HanzoMCPServer
24
12
 
25
13
 
hanzo_mcp/server.py CHANGED
@@ -7,13 +7,7 @@ import time
7
7
  import warnings
8
8
  from typing import Literal, cast, final
9
9
 
10
- # Suppress deprecation warnings from litellm about Pydantic v1 style configs
11
- warnings.filterwarnings(
12
- "ignore",
13
- category=DeprecationWarning,
14
- message=".*class-based `config`.*",
15
- module="pydantic.*"
16
- )
10
+ # No need for warning suppression here as it's handled in the imports
17
11
 
18
12
  try:
19
13
  from fastmcp import FastMCP
@@ -12,7 +12,11 @@ import uuid
12
12
  from typing import Annotated, TypedDict, Unpack, final, override, Optional, Dict, Any, List
13
13
  from collections.abc import Iterable
14
14
 
15
- import litellm
15
+ # Import litellm with warnings suppressed
16
+ import warnings
17
+ with warnings.catch_warnings():
18
+ warnings.simplefilter("ignore", DeprecationWarning)
19
+ import litellm
16
20
  from mcp.server.fastmcp import Context as MCPContext
17
21
  from openai.types.chat import ChatCompletionMessageParam, ChatCompletionToolParam
18
22
  from pydantic import Field
@@ -11,7 +11,11 @@ import time
11
11
  from collections.abc import Iterable
12
12
  from typing import Annotated, TypedDict, Unpack, final, override
13
13
 
14
- import litellm
14
+ # Import litellm with warnings suppressed
15
+ import warnings
16
+ with warnings.catch_warnings():
17
+ warnings.simplefilter("ignore", DeprecationWarning)
18
+ import litellm
15
19
  from mcp.server.fastmcp import Context as MCPContext
16
20
  from mcp.server import FastMCP
17
21
  from openai.types.chat import ChatCompletionMessageParam, ChatCompletionToolParam
@@ -7,7 +7,12 @@ and outputs for agent execution.
7
7
 
8
8
  from openai.types import FunctionParameters
9
9
  from openai.types.chat import ChatCompletionToolParam
10
- import litellm
10
+
11
+ # Import litellm with warnings suppressed
12
+ import warnings
13
+ with warnings.catch_warnings():
14
+ warnings.simplefilter("ignore", DeprecationWarning)
15
+ import litellm
11
16
 
12
17
  from hanzo_mcp.tools.common.base import BaseTool
13
18
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hanzo-mcp
3
- Version: 0.6.9
3
+ Version: 0.6.10
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
@@ -76,6 +76,8 @@ Hanzo MCP isn't just another Model Context Protocol server—it's **THE** MCP se
76
76
  uvx hanzo-mcp
77
77
  ```
78
78
 
79
+ > **Note on Deprecation Warnings**: If you see Pydantic deprecation warnings, clear your uvx cache with `rm -rf ~/.cache/uv/` and run again. This is due to litellm using old Pydantic v1 config style in cached environments.
80
+
79
81
  ## 🎯 Why Hanzo MCP?
80
82
 
81
83
  ### The Problem with Other MCPs
@@ -1,10 +1,9 @@
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
1
+ hanzo_mcp/__init__.py,sha256=vz1uqGlh5NNvA4ruaOLYeiaN0kgtlI4AFCJZtB_doZw,90
2
+ hanzo_mcp/__main__.py,sha256=TY-sUBg0MJozJws4-e3_kT8mJVoYGKCk6G3gPGxjIBI,129
3
+ hanzo_mcp/cli.py,sha256=j-n3YgOp9mBE3aNwAdXZX9f1uS9KE6ON0fLetauuk9E,11340
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
7
- hanzo_mcp/server.py,sha256=W5mUxylqzBXGKOLxQq49bS4iL89cxbrXGs_m_Sw_aqw,8540
6
+ hanzo_mcp/server.py,sha256=1qbB4n_DrBHxXBef_mNmPSZqPqqQwCenm3M_vO3g6dg,8394
8
7
  hanzo_mcp/config/__init__.py,sha256=iZYGSJMsC1c97gRFqgyowfP4XW480BBVRAQq1r-Dp7g,506
9
8
  hanzo_mcp/config/settings.py,sha256=F4ya4pHoxGACawPo4hd0bwfk6MwXvrTjH0WMBQpUN8I,16259
10
9
  hanzo_mcp/config/tool_config.py,sha256=AT5eJRZAL8VTLu5DCdoC_MkDxtufVE_QOj7Yp_Fyi8k,6317
@@ -16,10 +15,10 @@ hanzo_mcp/prompts/project_todo_reminder.py,sha256=otiBdmzxssBSb3MZZSQsjYDGLBqi1b
16
15
  hanzo_mcp/prompts/utils.py,sha256=IwxIhzZfYJ2anToPulbrpcc07u4Dozo9ok6VE3BC_4A,9963
17
16
  hanzo_mcp/tools/__init__.py,sha256=cbsCiLlfsw69-dWMnv5sNUDcNcRAtyPI8PxRGAVe1QE,14236
18
17
  hanzo_mcp/tools/agent/__init__.py,sha256=U4nchBrzKAnCn0ffbzOnN00zg-ZmXR6J8ZrdaBIWKQ8,1900
19
- hanzo_mcp/tools/agent/agent.py,sha256=u3v3407O6mttAlqM8WIvEbkEHWSgzTgZokuiIQXDgEY,13391
20
- hanzo_mcp/tools/agent/agent_tool.py,sha256=--ZTuXpfgg0CaDxISR6LKXvODGlpW4r9Ld4zht7uFKM,21226
18
+ hanzo_mcp/tools/agent/agent.py,sha256=xWYV6-ACIut_u2yiaobmN5szvoBOs8vre0opNKcKkmY,13541
19
+ hanzo_mcp/tools/agent/agent_tool.py,sha256=A46xrkXGNBbNhSoZYfWyujswKDcIM04bZUKQPwlbAVw,21376
21
20
  hanzo_mcp/tools/agent/prompt.py,sha256=Wi9Z45hmQ92eUNZbOWzj9ZVCCr-fM1K9iyaRvTCAgrQ,4529
22
- hanzo_mcp/tools/agent/tool_adapter.py,sha256=Od7VtD9qqDbgxhDHj0L-rohX4wOSMtYjZnU2BRuWSqI,2151
21
+ hanzo_mcp/tools/agent/tool_adapter.py,sha256=HbuCOuj21hdNlUu0vLQq2QRupi7vCDhMPj2MH-oTwKE,2302
23
22
  hanzo_mcp/tools/common/__init__.py,sha256=pnKbCbAl0HrwaLpy_f4NJaX5_O7rVCTxZhnyPYpoyFQ,924
24
23
  hanzo_mcp/tools/common/base.py,sha256=o5_vIsQjmYD_wfJYofP7cLn1SY6hCVo3OAT23MFJOfQ,5888
25
24
  hanzo_mcp/tools/common/batch_tool.py,sha256=RsypKEaKPf4NgOpWjiLe1_KAYid_oqPDMti3xMsOdoY,12002
@@ -128,9 +127,9 @@ hanzo_mcp/tools/vector/project_manager.py,sha256=xrkRl7niWjJrtSNaEOppkPzDFDw9FaE
128
127
  hanzo_mcp/tools/vector/vector.py,sha256=EpKEDkRfSHsDfPewqRwNAulX0BndlK48p-sFSMtt3js,10179
129
128
  hanzo_mcp/tools/vector/vector_index.py,sha256=IqXoEfEk6TOOEThXw4obePZqfvBRiYL_LCrx8z35-h8,4403
130
129
  hanzo_mcp/tools/vector/vector_search.py,sha256=jwX1azf4V4seqJ2CIDloX3lJ5_hkUl7X5e2OOgGXQNk,9647
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,,
130
+ hanzo_mcp-0.6.10.dist-info/licenses/LICENSE,sha256=mf1qZGFsPGskoPgytp9B-RsahfKvXsBpmaAbTLGTt8Y,1063
131
+ hanzo_mcp-0.6.10.dist-info/METADATA,sha256=GNR-R4i3ig_7QB27wKAWhlIVBx3krHNEJAt2ki9AAmQ,11291
132
+ hanzo_mcp-0.6.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
133
+ hanzo_mcp-0.6.10.dist-info/entry_points.txt,sha256=Q_g5SzWk47z2b_rE_RgonVqk4-d8VQ6pqwMveYiXJuU,101
134
+ hanzo_mcp-0.6.10.dist-info/top_level.txt,sha256=eGFANatA0MHWiVlpS56fTYRIShtibrSom1uXI6XU0GU,10
135
+ hanzo_mcp-0.6.10.dist-info/RECORD,,
@@ -1,3 +1,3 @@
1
1
  [console_scripts]
2
- hanzo-mcp = hanzo_mcp.entry:main
2
+ hanzo-mcp = hanzo_mcp.cli:main
3
3
  hanzo-mcp-dev = hanzo_mcp.dev_server:run_dev_server
hanzo_mcp/entry.py DELETED
@@ -1,33 +0,0 @@
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()