hanzo-mcp 0.6.4__py3-none-any.whl → 0.6.5__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.4"
3
+ __version__ = "0.6.5"
hanzo_mcp/cli.py CHANGED
@@ -3,6 +3,7 @@
3
3
  import argparse
4
4
  import json
5
5
  import os
6
+ import signal
6
7
  import sys
7
8
  from pathlib import Path
8
9
  from typing import Any, cast
@@ -12,6 +13,14 @@ from hanzo_mcp.server import HanzoMCPServer
12
13
 
13
14
  def main() -> None:
14
15
  """Run the CLI for the Hanzo MCP server."""
16
+ # Set up signal handler to ensure clean exit
17
+ def signal_handler(signum, frame):
18
+ print("\nReceived interrupt signal, shutting down...")
19
+ sys.exit(0)
20
+
21
+ signal.signal(signal.SIGINT, signal_handler)
22
+ signal.signal(signal.SIGTERM, signal_handler)
23
+
15
24
  parser = argparse.ArgumentParser(
16
25
  description="MCP server implementing Hanzo AI capabilities"
17
26
  )
@@ -249,8 +258,16 @@ def main() -> None:
249
258
  host=host,
250
259
  port=port,
251
260
  )
252
- # Transport will be automatically cast to Literal['stdio', 'sse'] by the server
253
- server.run(transport=transport)
261
+
262
+ try:
263
+ # Transport will be automatically cast to Literal['stdio', 'sse'] by the server
264
+ server.run(transport=transport)
265
+ except KeyboardInterrupt:
266
+ print("\nShutting down...")
267
+ sys.exit(0)
268
+ except Exception as e:
269
+ print(f"Server error: {e}", file=sys.stderr)
270
+ sys.exit(1)
254
271
 
255
272
 
256
273
  def install_claude_desktop_config(
hanzo_mcp/server.py CHANGED
@@ -150,8 +150,11 @@ class HanzoMCPServer:
150
150
 
151
151
  # Register signal handlers for graceful shutdown
152
152
  def signal_handler(signum, frame):
153
+ import sys
154
+ print("\nShutting down gracefully...")
153
155
  self._cleanup_sessions()
154
156
  self._shutdown_event.set()
157
+ sys.exit(0)
155
158
 
156
159
  signal.signal(signal.SIGTERM, signal_handler)
157
160
  signal.signal(signal.SIGINT, signal_handler)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hanzo-mcp
3
- Version: 0.6.4
3
+ Version: 0.6.5
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,8 @@
1
- hanzo_mcp/__init__.py,sha256=L3XCVhMu52ziTNfILa_Kiv7xOpnV-iFDt4cdS4MA52U,89
2
- hanzo_mcp/cli.py,sha256=lFKWnoV94MUgtfojNn4DR9RQg-NiFUpF3BIICjbFfLA,10838
1
+ hanzo_mcp/__init__.py,sha256=clqkVCnzsixFumDaPX4GZd-9AiVUlnPqinalmHMNq14,89
2
+ hanzo_mcp/cli.py,sha256=j-n3YgOp9mBE3aNwAdXZX9f1uS9KE6ON0fLetauuk9E,11340
3
3
  hanzo_mcp/cli_enhanced.py,sha256=rqh9gqyjMuUznIlPTC5pcIGYZTKAScacMsDb1e68ReE,15819
4
4
  hanzo_mcp/dev_server.py,sha256=_Ti0P7y8VNK5z4NiZ1BN5L_KdWhWYJ4IG2U6GZObzyM,7869
5
- hanzo_mcp/server.py,sha256=pz0ZjzQdD00i54fslv7kntmLSiive2WwluCCTqHu_XQ,8209
5
+ hanzo_mcp/server.py,sha256=V6FvxLt1-krVzdZm8wIwITThKUO3jbCocQcqRvKHuDM,8307
6
6
  hanzo_mcp/config/__init__.py,sha256=iZYGSJMsC1c97gRFqgyowfP4XW480BBVRAQq1r-Dp7g,506
7
7
  hanzo_mcp/config/settings.py,sha256=F4ya4pHoxGACawPo4hd0bwfk6MwXvrTjH0WMBQpUN8I,16259
8
8
  hanzo_mcp/config/tool_config.py,sha256=AT5eJRZAL8VTLu5DCdoC_MkDxtufVE_QOj7Yp_Fyi8k,6317
@@ -126,9 +126,9 @@ hanzo_mcp/tools/vector/project_manager.py,sha256=xrkRl7niWjJrtSNaEOppkPzDFDw9FaE
126
126
  hanzo_mcp/tools/vector/vector.py,sha256=EpKEDkRfSHsDfPewqRwNAulX0BndlK48p-sFSMtt3js,10179
127
127
  hanzo_mcp/tools/vector/vector_index.py,sha256=IqXoEfEk6TOOEThXw4obePZqfvBRiYL_LCrx8z35-h8,4403
128
128
  hanzo_mcp/tools/vector/vector_search.py,sha256=jwX1azf4V4seqJ2CIDloX3lJ5_hkUl7X5e2OOgGXQNk,9647
129
- hanzo_mcp-0.6.4.dist-info/licenses/LICENSE,sha256=mf1qZGFsPGskoPgytp9B-RsahfKvXsBpmaAbTLGTt8Y,1063
130
- hanzo_mcp-0.6.4.dist-info/METADATA,sha256=zMv6uG1qIScHFNf8PFnjj8q3WfeYC2KjPtopl-4qLcM,11067
131
- hanzo_mcp-0.6.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
132
- hanzo_mcp-0.6.4.dist-info/entry_points.txt,sha256=Q_g5SzWk47z2b_rE_RgonVqk4-d8VQ6pqwMveYiXJuU,101
133
- hanzo_mcp-0.6.4.dist-info/top_level.txt,sha256=eGFANatA0MHWiVlpS56fTYRIShtibrSom1uXI6XU0GU,10
134
- hanzo_mcp-0.6.4.dist-info/RECORD,,
129
+ hanzo_mcp-0.6.5.dist-info/licenses/LICENSE,sha256=mf1qZGFsPGskoPgytp9B-RsahfKvXsBpmaAbTLGTt8Y,1063
130
+ hanzo_mcp-0.6.5.dist-info/METADATA,sha256=XotfYagTOufmKkUs8evjC8J7AiFfVKJWkpLKMGn-L_Q,11067
131
+ hanzo_mcp-0.6.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
132
+ hanzo_mcp-0.6.5.dist-info/entry_points.txt,sha256=Q_g5SzWk47z2b_rE_RgonVqk4-d8VQ6pqwMveYiXJuU,101
133
+ hanzo_mcp-0.6.5.dist-info/top_level.txt,sha256=eGFANatA0MHWiVlpS56fTYRIShtibrSom1uXI6XU0GU,10
134
+ hanzo_mcp-0.6.5.dist-info/RECORD,,