hanzo-mcp 0.8.7__py3-none-any.whl → 0.8.11__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/cli.py +2 -2
- hanzo_mcp/server.py +4 -1
- hanzo_mcp/tools/__init__.py +1 -0
- hanzo_mcp/tools/agent/cli_tools.py +1 -1
- hanzo_mcp/tools/memory/__init__.py +23 -13
- hanzo_mcp/tools/memory/memory_tools.py +1 -1
- {hanzo_mcp-0.8.7.dist-info → hanzo_mcp-0.8.11.dist-info}/METADATA +1 -1
- {hanzo_mcp-0.8.7.dist-info → hanzo_mcp-0.8.11.dist-info}/RECORD +11 -11
- {hanzo_mcp-0.8.7.dist-info → hanzo_mcp-0.8.11.dist-info}/WHEEL +0 -0
- {hanzo_mcp-0.8.7.dist-info → hanzo_mcp-0.8.11.dist-info}/entry_points.txt +0 -0
- {hanzo_mcp-0.8.7.dist-info → hanzo_mcp-0.8.11.dist-info}/top_level.txt +0 -0
hanzo_mcp/cli.py
CHANGED
|
@@ -288,9 +288,9 @@ def main() -> None:
|
|
|
288
288
|
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
|
289
289
|
)
|
|
290
290
|
|
|
291
|
-
# If no allowed paths are specified, use the
|
|
291
|
+
# If no allowed paths are specified, use the home directory
|
|
292
292
|
if not allowed_paths:
|
|
293
|
-
allowed_paths = [os.
|
|
293
|
+
allowed_paths = [os.path.expanduser("~")]
|
|
294
294
|
|
|
295
295
|
# Run in dev mode if requested
|
|
296
296
|
if dev:
|
hanzo_mcp/server.py
CHANGED
|
@@ -17,7 +17,10 @@ try:
|
|
|
17
17
|
from fastmcp import FastMCP
|
|
18
18
|
except ImportError:
|
|
19
19
|
# Fallback for older MCP versions
|
|
20
|
-
|
|
20
|
+
try:
|
|
21
|
+
from mcp.server import FastMCP
|
|
22
|
+
except ImportError:
|
|
23
|
+
from mcp import FastMCP
|
|
21
24
|
|
|
22
25
|
# Import our enhanced server
|
|
23
26
|
from hanzo_mcp.tools import register_all_tools
|
hanzo_mcp/tools/__init__.py
CHANGED
|
@@ -48,6 +48,7 @@ try: # pragma: no cover
|
|
|
48
48
|
from hanzo_mcp.tools.common.mode import activate_mode_from_env
|
|
49
49
|
from hanzo_mcp.tools.common.stats import StatsTool
|
|
50
50
|
from hanzo_mcp.tools.common.tool_list import ToolListTool
|
|
51
|
+
from hanzo_mcp.tools.common import register_thinking_tool, register_critic_tool, register_batch_tool
|
|
51
52
|
from hanzo_mcp.tools.config.mode_tool import mode_tool
|
|
52
53
|
from hanzo_mcp.tools.common.mode_loader import ModeLoader
|
|
53
54
|
from hanzo_mcp.tools.common.permissions import PermissionManager
|
|
@@ -406,7 +406,7 @@ class HanzoDevCLITool(BaseCLITool):
|
|
|
406
406
|
timeout: int = params.get("timeout", 600)
|
|
407
407
|
|
|
408
408
|
# Build command
|
|
409
|
-
command: list[str] = ["
|
|
409
|
+
command: list[str] = ["dev"]
|
|
410
410
|
if model:
|
|
411
411
|
command.extend(["--model", model])
|
|
412
412
|
command.extend(["--prompt", prompt])
|
|
@@ -4,19 +4,25 @@ from mcp.server import FastMCP
|
|
|
4
4
|
|
|
5
5
|
from hanzo_mcp.tools.common.base import BaseTool, ToolRegistry
|
|
6
6
|
from hanzo_mcp.tools.common.permissions import PermissionManager
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
|
|
8
|
+
# Import memory tools if available
|
|
9
|
+
try:
|
|
10
|
+
from hanzo_mcp.tools.memory.memory_tools import (
|
|
11
|
+
CreateMemoriesTool,
|
|
12
|
+
DeleteMemoriesTool,
|
|
13
|
+
ManageMemoriesTool,
|
|
14
|
+
RecallMemoriesTool,
|
|
15
|
+
UpdateMemoriesTool,
|
|
16
|
+
)
|
|
17
|
+
from hanzo_mcp.tools.memory.knowledge_tools import (
|
|
18
|
+
StoreFactsTool,
|
|
19
|
+
RecallFactsTool,
|
|
20
|
+
SummarizeToMemoryTool,
|
|
21
|
+
ManageKnowledgeBasesTool,
|
|
22
|
+
)
|
|
23
|
+
MEMORY_TOOLS_AVAILABLE = True
|
|
24
|
+
except ImportError:
|
|
25
|
+
MEMORY_TOOLS_AVAILABLE = False
|
|
20
26
|
|
|
21
27
|
|
|
22
28
|
def register_memory_tools(
|
|
@@ -38,6 +44,10 @@ def register_memory_tools(
|
|
|
38
44
|
Returns:
|
|
39
45
|
List of registered tools
|
|
40
46
|
"""
|
|
47
|
+
if not MEMORY_TOOLS_AVAILABLE:
|
|
48
|
+
print("Warning: Memory tools not available (hanzo-memory package not found)")
|
|
49
|
+
return []
|
|
50
|
+
|
|
41
51
|
# Create memory tools
|
|
42
52
|
recall_tool = RecallMemoriesTool(
|
|
43
53
|
user_id=user_id, project_id=project_id, **memory_config
|
|
@@ -21,7 +21,7 @@ try:
|
|
|
21
21
|
except ImportError:
|
|
22
22
|
MEMORY_AVAILABLE = False
|
|
23
23
|
raise ImportError(
|
|
24
|
-
"hanzo-memory package is required for memory tools. Install it from ~/work/hanzo/
|
|
24
|
+
"hanzo-memory package is required for memory tools. Install it from ~/work/hanzo/python-sdk/pkg/hanzo-memory"
|
|
25
25
|
)
|
|
26
26
|
|
|
27
27
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
hanzo_mcp/__init__.py,sha256=DRSsStAQLco33avsyYOk6liW-6fIqkPi8CyXlJiFtoU,868
|
|
2
2
|
hanzo_mcp/__main__.py,sha256=EvDEygOjvP6S_CrZSL8E4qgGUcO_xfmzEIbsLEHPaK4,130
|
|
3
3
|
hanzo_mcp/bridge.py,sha256=ewZprfl5Hbf2LXxQf4KazMy7pOiPVx_paX4rZ0NhgDU,14995
|
|
4
|
-
hanzo_mcp/cli.py,sha256=
|
|
4
|
+
hanzo_mcp/cli.py,sha256=495aehORTRBqldOi5y7f9tKwqiQgYEIS3IDKT2pit0A,14832
|
|
5
5
|
hanzo_mcp/cli_enhanced.py,sha256=Nr4sXJ-dK9jkQ4BRDdwotXUwakL8CGme-FlYNPqCq0U,16022
|
|
6
6
|
hanzo_mcp/cli_plugin.py,sha256=nQVn0sYP1eDaz61QbHwT6BBRPfYZb1eH1HJ1l5QkHsw,3281
|
|
7
7
|
hanzo_mcp/compute_nodes.py,sha256=mFHQdxyo_SEeiwrQaPg-V9q2xmMRQiO7X_NePrWhSZ4,6315
|
|
8
8
|
hanzo_mcp/dev_server.py,sha256=AiYHQ1-EwzpVqD9tJN5y_LQeJdy3_uDzffPsZV3GGRM,8317
|
|
9
|
-
hanzo_mcp/server.py,sha256=
|
|
9
|
+
hanzo_mcp/server.py,sha256=WCj4Ifn5uGmJcdX-ulQXceT79M4nge2XA8KYJpTxh4Q,10477
|
|
10
10
|
hanzo_mcp/server_enhanced.py,sha256=bBrObdysyda6Ggf-E3aL7UwktUNzYO_HG1V45Av5r-E,2003
|
|
11
11
|
hanzo_mcp/types.py,sha256=4YjIJmM7byrsY4eN10pbhIUpFMQ-fZrpK6scgt-U9dU,648
|
|
12
12
|
hanzo_mcp/analytics/__init__.py,sha256=ANyntTooBrpa_uvwE6KbYxB9uda610UT10pt2rrLiUU,213
|
|
@@ -25,7 +25,7 @@ hanzo_mcp/prompts/project_system.py,sha256=FgWxRaX7rPQwDZT3n69yBwLkQv4uJ4jcUZjKz
|
|
|
25
25
|
hanzo_mcp/prompts/project_todo_reminder.py,sha256=oN1EG0FR4XnxvFOXX_E5EFvX6L-8uYlX0hxFEiDRERc,3644
|
|
26
26
|
hanzo_mcp/prompts/tool_explorer.py,sha256=6mI35V_EH8AA4pWIMAeG96qP1VPrU1HgnxwVyB0bg5A,16411
|
|
27
27
|
hanzo_mcp/prompts/utils.py,sha256=IwxIhzZfYJ2anToPulbrpcc07u4Dozo9ok6VE3BC_4A,9963
|
|
28
|
-
hanzo_mcp/tools/__init__.py,sha256=
|
|
28
|
+
hanzo_mcp/tools/__init__.py,sha256=xerB89R2jJtsHtmRXLY2qpk4ZdV40bhGkPfKp0Fh3Vg,19259
|
|
29
29
|
hanzo_mcp/tools/agent/__init__.py,sha256=UGDZ0Ehi8sVoE-Utq7jMI5SPkmHqsV6-RH55iMql4wg,4784
|
|
30
30
|
hanzo_mcp/tools/agent/agent.py,sha256=bgVbLmeXHVlO2TDLmjDeKw0IzXy73mFisSLylj39XaM,13151
|
|
31
31
|
hanzo_mcp/tools/agent/agent_tool.py,sha256=DeK0TWz3dFOS-_KTtcog8kqb9RjI9bXWaGACoSFDNYw,16814
|
|
@@ -35,7 +35,7 @@ hanzo_mcp/tools/agent/clarification_tool.py,sha256=up40UJLY5JrS6D3yBD1lW1vSrh79J
|
|
|
35
35
|
hanzo_mcp/tools/agent/claude_cli_tool.py,sha256=55Wc0LKgYCtDKQ02NXOYPMhx-sW7fL_NSCx0upsvvb4,3812
|
|
36
36
|
hanzo_mcp/tools/agent/claude_desktop_auth.py,sha256=EoP-OWMg9QATsVjBGisyd0P_EV8fzLp284JIdqDwp7U,16203
|
|
37
37
|
hanzo_mcp/tools/agent/cli_agent_base.py,sha256=FanJ-C9dzx7x1e-uSNQfIWrCMsPyCl34FyUgtnpfXG4,6494
|
|
38
|
-
hanzo_mcp/tools/agent/cli_tools.py,sha256=
|
|
38
|
+
hanzo_mcp/tools/agent/cli_tools.py,sha256=B_U5PtZF59dZoLIE8n6jM1pFpkQ5nfNuzuhlMA4OmIg,16558
|
|
39
39
|
hanzo_mcp/tools/agent/code_auth.py,sha256=G8ZHQYKm3DRSknmkwYdUoPtnQr5xcQePZ8VcBNqrMG0,13948
|
|
40
40
|
hanzo_mcp/tools/agent/code_auth_tool.py,sha256=R5Cod5VTX30G_tQT5W-6qYQKi4Qr1LYXLZPq7ZT4zLM,6165
|
|
41
41
|
hanzo_mcp/tools/agent/codex_cli_tool.py,sha256=9jyB4cTtdcK50g6oapk7Bo4n8C8bAO2B9RuHHLOtP54,3697
|
|
@@ -139,9 +139,9 @@ hanzo_mcp/tools/mcp/mcp_add.py,sha256=NTAf8Bzdj3BlSNZfr-urgIVms2PALUh-G1Wfvdo7Bt
|
|
|
139
139
|
hanzo_mcp/tools/mcp/mcp_remove.py,sha256=5HyM0mQWoYg_f5J9Huhh7XdiQCrfYXEWg8t7k6G3G1w,3233
|
|
140
140
|
hanzo_mcp/tools/mcp/mcp_stats.py,sha256=n_lZo6mazjd4asFbO2ZAksVQ3eMTbvOfzYFOPT_T70g,5305
|
|
141
141
|
hanzo_mcp/tools/mcp/mcp_tool.py,sha256=7H7B5d1D00VEWKOFhUjbtc5TBTRNeMTGFl904AA0hio,16765
|
|
142
|
-
hanzo_mcp/tools/memory/__init__.py,sha256=
|
|
142
|
+
hanzo_mcp/tools/memory/__init__.py,sha256=Wg4S5eaw60pZymu8iOT_CrZbUhBWpzqKNjT1J8d2Mmc,3292
|
|
143
143
|
hanzo_mcp/tools/memory/knowledge_tools.py,sha256=T9nh5Y7GLuFeNRPRgtanU3zNdcUz9wUWRRl4xP5jbuM,17781
|
|
144
|
-
hanzo_mcp/tools/memory/memory_tools.py,sha256=
|
|
144
|
+
hanzo_mcp/tools/memory/memory_tools.py,sha256=ajZE7MzqHnJJRJmtbEE5natcyCceqLQaqzF52hg96dA,13705
|
|
145
145
|
hanzo_mcp/tools/search/__init__.py,sha256=7z0GUOmKrJyI7MCbLIvO5zbWHknaNf6kCowi2CtoNNw,292
|
|
146
146
|
hanzo_mcp/tools/search/find_tool.py,sha256=Kv4rFyZetNjf9yutsy34jC7UTHWV8Z4BAdge7p3a3sA,23607
|
|
147
147
|
hanzo_mcp/tools/search/unified_search.py,sha256=ki5KN5jxBo7wC6JbM1j8rShRsYoAGp4v9DY6TX0IS_U,35958
|
|
@@ -186,8 +186,8 @@ hanzo_mcp/tools/vector/project_manager.py,sha256=b69kr84qoteFkx7feeC_XHsNteTyVEf
|
|
|
186
186
|
hanzo_mcp/tools/vector/vector.py,sha256=IzJJlWAuhXNmm41NyXEyQsknLNugoRRciDTypYfof9w,9947
|
|
187
187
|
hanzo_mcp/tools/vector/vector_index.py,sha256=EgxOveWt0R60WYcO-CLmEh8HbGXGmX4_xpqQXTtgQJQ,4188
|
|
188
188
|
hanzo_mcp/tools/vector/vector_search.py,sha256=anavkfz_pPtfgVZUW4trj5q5GT6Naxw5ItjK9hUY9wU,9677
|
|
189
|
-
hanzo_mcp-0.8.
|
|
190
|
-
hanzo_mcp-0.8.
|
|
191
|
-
hanzo_mcp-0.8.
|
|
192
|
-
hanzo_mcp-0.8.
|
|
193
|
-
hanzo_mcp-0.8.
|
|
189
|
+
hanzo_mcp-0.8.11.dist-info/METADATA,sha256=a7-Kr9Cb7A_mgWW2TkAHYLVbpE8T8-Sd7NvMensowo8,8974
|
|
190
|
+
hanzo_mcp-0.8.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
191
|
+
hanzo_mcp-0.8.11.dist-info/entry_points.txt,sha256=ML30pedHV5wjthfztzMMz3uYhNdR_6inzYY5pSqNME4,142
|
|
192
|
+
hanzo_mcp-0.8.11.dist-info/top_level.txt,sha256=eGFANatA0MHWiVlpS56fTYRIShtibrSom1uXI6XU0GU,10
|
|
193
|
+
hanzo_mcp-0.8.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|