hanzo-mcp 0.7.0__py3-none-any.whl → 0.7.2__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/tools/agent/agent_tool_v2.py +33 -0
- hanzo_mcp/tools/agent/swarm_tool_v2.py +60 -0
- {hanzo_mcp-0.7.0.dist-info → hanzo_mcp-0.7.2.dist-info}/METADATA +4 -1
- {hanzo_mcp-0.7.0.dist-info → hanzo_mcp-0.7.2.dist-info}/RECORD +7 -7
- {hanzo_mcp-0.7.0.dist-info → hanzo_mcp-0.7.2.dist-info}/WHEEL +0 -0
- {hanzo_mcp-0.7.0.dist-info → hanzo_mcp-0.7.2.dist-info}/entry_points.txt +0 -0
- {hanzo_mcp-0.7.0.dist-info → hanzo_mcp-0.7.2.dist-info}/top_level.txt +0 -0
|
@@ -30,6 +30,39 @@ try:
|
|
|
30
30
|
HANZO_AGENTS_AVAILABLE = True
|
|
31
31
|
except ImportError:
|
|
32
32
|
HANZO_AGENTS_AVAILABLE = False
|
|
33
|
+
# Define stub classes when hanzo-agents is not available
|
|
34
|
+
class State:
|
|
35
|
+
"""Stub State class when hanzo-agents is not available."""
|
|
36
|
+
def __init__(self):
|
|
37
|
+
pass
|
|
38
|
+
def to_dict(self):
|
|
39
|
+
return {}
|
|
40
|
+
@classmethod
|
|
41
|
+
def from_dict(cls, data):
|
|
42
|
+
return cls()
|
|
43
|
+
|
|
44
|
+
class Tool:
|
|
45
|
+
"""Stub Tool class when hanzo-agents is not available."""
|
|
46
|
+
pass
|
|
47
|
+
|
|
48
|
+
class Agent:
|
|
49
|
+
"""Stub Agent class when hanzo-agents is not available."""
|
|
50
|
+
pass
|
|
51
|
+
|
|
52
|
+
class Network:
|
|
53
|
+
"""Stub Network class when hanzo-agents is not available."""
|
|
54
|
+
pass
|
|
55
|
+
|
|
56
|
+
class History:
|
|
57
|
+
"""Stub History class when hanzo-agents is not available."""
|
|
58
|
+
pass
|
|
59
|
+
|
|
60
|
+
class InferenceResult:
|
|
61
|
+
"""Stub InferenceResult class when hanzo-agents is not available."""
|
|
62
|
+
def __init__(self, agent=None, content=None, metadata=None):
|
|
63
|
+
self.agent = agent
|
|
64
|
+
self.content = content
|
|
65
|
+
self.metadata = metadata or {}
|
|
33
66
|
|
|
34
67
|
from hanzo_mcp.tools.common.base import BaseTool
|
|
35
68
|
from hanzo_mcp.tools.common.context import ToolContext, create_tool_context
|
|
@@ -30,6 +30,66 @@ try:
|
|
|
30
30
|
HANZO_AGENTS_AVAILABLE = True
|
|
31
31
|
except ImportError:
|
|
32
32
|
HANZO_AGENTS_AVAILABLE = False
|
|
33
|
+
# Define stub classes when hanzo-agents is not available
|
|
34
|
+
class State:
|
|
35
|
+
"""Stub State class when hanzo-agents is not available."""
|
|
36
|
+
def __init__(self):
|
|
37
|
+
pass
|
|
38
|
+
def to_dict(self):
|
|
39
|
+
return {}
|
|
40
|
+
@classmethod
|
|
41
|
+
def from_dict(cls, data):
|
|
42
|
+
return cls()
|
|
43
|
+
|
|
44
|
+
class Tool:
|
|
45
|
+
"""Stub Tool class when hanzo-agents is not available."""
|
|
46
|
+
pass
|
|
47
|
+
|
|
48
|
+
class Agent:
|
|
49
|
+
"""Stub Agent class when hanzo-agents is not available."""
|
|
50
|
+
pass
|
|
51
|
+
|
|
52
|
+
class Network:
|
|
53
|
+
"""Stub Network class when hanzo-agents is not available."""
|
|
54
|
+
pass
|
|
55
|
+
|
|
56
|
+
class History:
|
|
57
|
+
"""Stub History class when hanzo-agents is not available."""
|
|
58
|
+
pass
|
|
59
|
+
|
|
60
|
+
class InferenceResult:
|
|
61
|
+
"""Stub InferenceResult class when hanzo-agents is not available."""
|
|
62
|
+
def __init__(self, agent=None, content=None, metadata=None):
|
|
63
|
+
self.agent = agent
|
|
64
|
+
self.content = content
|
|
65
|
+
self.metadata = metadata or {}
|
|
66
|
+
|
|
67
|
+
class ToolCall:
|
|
68
|
+
"""Stub ToolCall class when hanzo-agents is not available."""
|
|
69
|
+
def __init__(self, name=None, args=None):
|
|
70
|
+
self.name = name
|
|
71
|
+
self.args = args or {}
|
|
72
|
+
|
|
73
|
+
class Router:
|
|
74
|
+
"""Stub Router class when hanzo-agents is not available."""
|
|
75
|
+
pass
|
|
76
|
+
|
|
77
|
+
class DeterministicRouter(Router):
|
|
78
|
+
"""Stub DeterministicRouter class when hanzo-agents is not available."""
|
|
79
|
+
def __init__(self, *args, **kwargs):
|
|
80
|
+
pass
|
|
81
|
+
def add_route(self, *args, **kwargs):
|
|
82
|
+
pass
|
|
83
|
+
async def route(self, *args, **kwargs):
|
|
84
|
+
return None
|
|
85
|
+
|
|
86
|
+
class LLMRouter(Router):
|
|
87
|
+
"""Stub LLMRouter class when hanzo-agents is not available."""
|
|
88
|
+
pass
|
|
89
|
+
|
|
90
|
+
class HybridRouter(Router):
|
|
91
|
+
"""Stub HybridRouter class when hanzo-agents is not available."""
|
|
92
|
+
pass
|
|
33
93
|
|
|
34
94
|
from hanzo_mcp.tools.agent.agent_tool_v2 import MCPAgent, MCPToolAdapter
|
|
35
95
|
from hanzo_mcp.tools.common.base import BaseTool
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hanzo-mcp
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.2
|
|
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
|
|
@@ -29,6 +29,7 @@ Requires-Dist: pydantic>=2.11.1
|
|
|
29
29
|
Requires-Dist: pydantic-settings>=2.7.0
|
|
30
30
|
Requires-Dist: typing-extensions>=4.13.0
|
|
31
31
|
Requires-Dist: watchdog>=6.0.0
|
|
32
|
+
Requires-Dist: keyring>=24.0.0
|
|
32
33
|
Provides-Extra: dev
|
|
33
34
|
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
34
35
|
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
|
|
@@ -51,6 +52,8 @@ Requires-Dist: pytest-cov>=4.1.0; extra == "test"
|
|
|
51
52
|
Requires-Dist: pytest-mock>=3.10.0; extra == "test"
|
|
52
53
|
Requires-Dist: pytest-asyncio>=0.25.3; extra == "test"
|
|
53
54
|
Requires-Dist: twisted; extra == "test"
|
|
55
|
+
Provides-Extra: agents
|
|
56
|
+
Requires-Dist: hanzo-agents>=0.1.0; extra == "agents"
|
|
54
57
|
Provides-Extra: performance
|
|
55
58
|
Requires-Dist: ujson>=5.7.0; extra == "performance"
|
|
56
59
|
Requires-Dist: orjson>=3.9.0; extra == "performance"
|
|
@@ -22,7 +22,7 @@ hanzo_mcp/tools/__init__.py,sha256=QXnDVa7MjTsGT2MnEXJcUdWS0e5Grw9_mX0rwhZ-F3k,1
|
|
|
22
22
|
hanzo_mcp/tools/agent/__init__.py,sha256=Op9hy3rrRCvhzH85mUXWPhFQWYgFbmr486ehl7EaziU,4847
|
|
23
23
|
hanzo_mcp/tools/agent/agent.py,sha256=xWYV6-ACIut_u2yiaobmN5szvoBOs8vre0opNKcKkmY,13541
|
|
24
24
|
hanzo_mcp/tools/agent/agent_tool.py,sha256=xh7ts4ZOGhe9AiQ1B6fuqvy3HfL-Gtd6azeQfey0PAk,26744
|
|
25
|
-
hanzo_mcp/tools/agent/agent_tool_v2.py,sha256=
|
|
25
|
+
hanzo_mcp/tools/agent/agent_tool_v2.py,sha256=83yn4GKNJ6N0TSk97kfOK7kyO_RI89c0aPae0rwV9HI,17155
|
|
26
26
|
hanzo_mcp/tools/agent/clarification_protocol.py,sha256=haSUDJQVLAQLpp0doFdqxfSDUWeyzDNL38xcI918_H8,8135
|
|
27
27
|
hanzo_mcp/tools/agent/clarification_tool.py,sha256=yXuo6z8N5wq0Ll5-Tg8RYHtyeexxFREQrC0JlhKrbyk,2469
|
|
28
28
|
hanzo_mcp/tools/agent/claude_cli_tool.py,sha256=TM2VT6FlbUlyLp9QWZ_UBqmSjfNT-F9cmeUHSIupF_o,3904
|
|
@@ -39,7 +39,7 @@ hanzo_mcp/tools/agent/network_tool.py,sha256=83S-ggTUINGkQjuAcQQjYkx2BUCS6O2POI8
|
|
|
39
39
|
hanzo_mcp/tools/agent/prompt.py,sha256=O5aTf6ooF_KLUgeELjNPoJuxIqFh_pQtDhda9TohQVU,6806
|
|
40
40
|
hanzo_mcp/tools/agent/review_tool.py,sha256=5HeltukjfLfg6EqwExsz7y2h4_lJnqybRQhtbR2DpO8,17257
|
|
41
41
|
hanzo_mcp/tools/agent/swarm_tool.py,sha256=W-czkW1mAdgsAb87f3u0y3r1WA_p_fHotT7hJZUd7Io,21038
|
|
42
|
-
hanzo_mcp/tools/agent/swarm_tool_v2.py,sha256=
|
|
42
|
+
hanzo_mcp/tools/agent/swarm_tool_v2.py,sha256=VhiUCEYv4s9hPLsJoRs-6avEOM1IKqfWI5i69gcbaa0,23346
|
|
43
43
|
hanzo_mcp/tools/agent/tool_adapter.py,sha256=HbuCOuj21hdNlUu0vLQq2QRupi7vCDhMPj2MH-oTwKE,2302
|
|
44
44
|
hanzo_mcp/tools/common/__init__.py,sha256=QQqwCAtOEvWlQ48O-8s_vayY58peGSfk1AgmWJSuQus,1283
|
|
45
45
|
hanzo_mcp/tools/common/base.py,sha256=Yu6aQX3ma-uLcHf1frLStw1U3zCiOvuROHdr0HPoyc8,5946
|
|
@@ -173,8 +173,8 @@ hanzo_mcp/tools/vector/project_manager.py,sha256=PBaO5WMT5SJRM6wENMZXCCG86P2p5Pf
|
|
|
173
173
|
hanzo_mcp/tools/vector/vector.py,sha256=EpKEDkRfSHsDfPewqRwNAulX0BndlK48p-sFSMtt3js,10179
|
|
174
174
|
hanzo_mcp/tools/vector/vector_index.py,sha256=IqXoEfEk6TOOEThXw4obePZqfvBRiYL_LCrx8z35-h8,4403
|
|
175
175
|
hanzo_mcp/tools/vector/vector_search.py,sha256=jwX1azf4V4seqJ2CIDloX3lJ5_hkUl7X5e2OOgGXQNk,9647
|
|
176
|
-
hanzo_mcp-0.7.
|
|
177
|
-
hanzo_mcp-0.7.
|
|
178
|
-
hanzo_mcp-0.7.
|
|
179
|
-
hanzo_mcp-0.7.
|
|
180
|
-
hanzo_mcp-0.7.
|
|
176
|
+
hanzo_mcp-0.7.2.dist-info/METADATA,sha256=zQ9cdNFcEqzrfzSuv_iXBgxX6o3oY1oharnRC_0e-ik,16162
|
|
177
|
+
hanzo_mcp-0.7.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
178
|
+
hanzo_mcp-0.7.2.dist-info/entry_points.txt,sha256=ML30pedHV5wjthfztzMMz3uYhNdR_6inzYY5pSqNME4,142
|
|
179
|
+
hanzo_mcp-0.7.2.dist-info/top_level.txt,sha256=eGFANatA0MHWiVlpS56fTYRIShtibrSom1uXI6XU0GU,10
|
|
180
|
+
hanzo_mcp-0.7.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|