hanzo-mcp 0.1.30__py3-none-any.whl → 0.1.32__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.

@@ -12,7 +12,7 @@ to delegate tasks to sub-agents for concurrent execution and specialized process
12
12
  from mcp.server.fastmcp import FastMCP
13
13
 
14
14
  from hanzo_mcp.tools.agent import register_agent_tools
15
- from hanzo_mcp.tools.common import register_thinking_tool
15
+ from hanzo_mcp.tools.common import register_thinking_tool, register_version_tool
16
16
  from hanzo_mcp.tools.common.context import DocumentContext
17
17
  from hanzo_mcp.tools.common.permissions import PermissionManager
18
18
  from hanzo_mcp.tools.filesystem import register_filesystem_tools
@@ -79,3 +79,6 @@ def register_all_tools(
79
79
 
80
80
  # Initialize and register thinking tool
81
81
  register_thinking_tool(mcp_server)
82
+
83
+ # Register version tool
84
+ register_version_tool(mcp_server)
@@ -4,6 +4,7 @@ from mcp.server.fastmcp import FastMCP
4
4
 
5
5
  from hanzo_mcp.tools.common.base import ToolRegistry
6
6
  from hanzo_mcp.tools.common.thinking_tool import ThinkingTool
7
+ from hanzo_mcp.tools.common.version_tool import VersionTool
7
8
 
8
9
 
9
10
  def register_thinking_tool(
@@ -16,3 +17,14 @@ def register_thinking_tool(
16
17
  """
17
18
  thinking_tool = ThinkingTool()
18
19
  ToolRegistry.register_tool(mcp_server, thinking_tool)
20
+
21
+
22
+ def register_version_tool(
23
+ mcp_server: FastMCP,
24
+ ) -> None:
25
+ """Register the version tool with the MCP server.
26
+
27
+ Args:
28
+ mcp_server: The FastMCP server instance
29
+ """
30
+ _ = VersionTool(mcp_server) # Tool registers itself in constructor
@@ -0,0 +1,62 @@
1
+ """Version tool for displaying project version information."""
2
+
3
+ import importlib.metadata
4
+ from typing import final, TypedDict, Any, Dict, cast
5
+
6
+ from mcp.server.fastmcp import FastMCP
7
+
8
+
9
+ class VersionToolResponse(TypedDict):
10
+ """Response from the version tool."""
11
+
12
+ version: str
13
+ package_name: str
14
+
15
+
16
+ @final
17
+ class VersionTool:
18
+ """Tool for displaying version information about the Hanzo MCP package."""
19
+
20
+ def __init__(self, mcp_server: FastMCP) -> None:
21
+ """Initialize the version tool.
22
+
23
+ Args:
24
+ mcp_server: The MCP server to register with
25
+ """
26
+ self.mcp_server = mcp_server
27
+ self._register()
28
+
29
+ def _register(self) -> None:
30
+ """Register the version tool with the MCP server."""
31
+ self.mcp_server.register_function(
32
+ "version",
33
+ self.get_version,
34
+ "Display the current version of hanzo-mcp",
35
+ Dict[str, Any],
36
+ VersionToolResponse,
37
+ )
38
+
39
+ def get_version(self) -> VersionToolResponse:
40
+ """Get the current version of the hanzo-mcp package.
41
+
42
+ Returns:
43
+ A dictionary containing the package name and version
44
+ """
45
+ try:
46
+ version = importlib.metadata.version("hanzo-mcp")
47
+ except importlib.metadata.PackageNotFoundError:
48
+ # If package not installed, try to read from pyproject.toml
49
+ import os
50
+ import tomllib
51
+
52
+ try:
53
+ root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))
54
+ toml_path = os.path.join(root_dir, "pyproject.toml")
55
+
56
+ with open(toml_path, "rb") as f:
57
+ pyproject = tomllib.load(f)
58
+ version = cast(str, pyproject.get("project", {}).get("version", "unknown"))
59
+ except Exception:
60
+ version = "unknown"
61
+
62
+ return {"version": version, "package_name": "hanzo-mcp"}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hanzo-mcp
3
- Version: 0.1.30
3
+ Version: 0.1.32
4
4
  Summary: MCP implementation of Hanzo capabilities
5
5
  Author-email: Hanzo Industries Inc <dev@hanzo.ai>
6
6
  License: MIT
@@ -141,8 +141,19 @@ make test-cov
141
141
  # Build package
142
142
  make build
143
143
 
144
- # Publish to PyPI
145
- make publish
144
+ # Version bumping
145
+ make bump-patch # Increment patch version (0.1.x → 0.1.x+1)
146
+ make bump-minor # Increment minor version (0.x.0 → 0.x+1.0)
147
+ make bump-major # Increment major version (x.0.0 → x+1.0.0)
148
+
149
+ # Publishing (creates git tag and pushes it to GitHub)
150
+ make publish # Publish using configured credentials in .pypirc
151
+ PYPI_TOKEN=your_token make publish # Publish with token from environment variable
152
+
153
+ # Version bump and publish in one step (with automatic git tagging)
154
+ make publish-patch # Bump patch version, publish, and create git tag
155
+ make publish-minor # Bump minor version, publish, and create git tag
156
+ make publish-major # Bump major version, publish, and create git tag
146
157
 
147
158
  # Publish to Test PyPI
148
159
  make publish-test
@@ -1,18 +1,19 @@
1
1
  hanzo_mcp/__init__.py,sha256=Y5rIvHCEKCc1GKgt4XqjpEjZa91JOu3fSPnJZSBZJ70,89
2
2
  hanzo_mcp/cli.py,sha256=G0Klg7RMK9XLehLT9ysWbpii0XRrECglUaxwvCekl7g,7201
3
3
  hanzo_mcp/server.py,sha256=j2UagHTxwCbZrnhODbMUI0wdZ-7yLFxB9-ZbignZFzg,5671
4
- hanzo_mcp/tools/__init__.py,sha256=4KGhjZ5M93_L5T942JJ5lm1f7qw5UfiE-RixkrvnHVo,3245
4
+ hanzo_mcp/tools/__init__.py,sha256=3IHzhmSiAbxg2yvqVJn4SH6YP_DSnxYaNk9ccBtk7H0,3339
5
5
  hanzo_mcp/tools/agent/__init__.py,sha256=0eyQqqdAy7WCZEqUfV6xh66bDpQI9neB6iDjWf0_pJI,2189
6
6
  hanzo_mcp/tools/agent/agent_tool.py,sha256=qXu62ZRGM0o9mxOiRVFy-ABIZtEJ8z03DqAXshKAieI,19180
7
7
  hanzo_mcp/tools/agent/prompt.py,sha256=jmYRI4Sm2D3LwEdC2qWakpqupgfGg8CT6grmx4NEDaA,4431
8
8
  hanzo_mcp/tools/agent/tool_adapter.py,sha256=g9NKfIET0WOsm0r28xEXsibsprpI1C6ripcM6QwU-rI,2172
9
- hanzo_mcp/tools/common/__init__.py,sha256=XkhBW1F9pKaJlD5xIlXQnYnhof-ALFnnnou_32Zauow,487
9
+ hanzo_mcp/tools/common/__init__.py,sha256=VS_eJP0oJGEgO78stwQWyer1heVfhhHihtt5sctjei8,809
10
10
  hanzo_mcp/tools/common/base.py,sha256=O7Lgft0XiC9Iyi3fYsmoWWrvKDK2Aa-FJLxPgnNJRJY,7341
11
11
  hanzo_mcp/tools/common/context.py,sha256=ReIfcm37j5qnLQ8G_-d88ad5uC1OKkjQZKG9HdJPybI,13145
12
12
  hanzo_mcp/tools/common/permissions.py,sha256=4YCfA2PJUOl-z_47n5uaRXO8gAZ_shMaPhpi1dilgRE,7594
13
13
  hanzo_mcp/tools/common/session.py,sha256=csX5ZhgBjO2bdXXXPpsUPzOCc7Tib-apYe01AP8sh8k,2774
14
14
  hanzo_mcp/tools/common/thinking_tool.py,sha256=I-O6ipM-PUofkNoMMzv37Y_2Yfx9mh7F1upTTsfRN4M,4046
15
15
  hanzo_mcp/tools/common/validation.py,sha256=gB3uM_cbPZsH4Ez0hnTgIcdP-AUlHZU02aRmZEpk_6I,3648
16
+ hanzo_mcp/tools/common/version_tool.py,sha256=q6JVEyz-uWVJtCU_WY3TxE6aSLwlkIm0__mv4ZK43eY,1979
16
17
  hanzo_mcp/tools/filesystem/__init__.py,sha256=-wNhb0IjJgz05n_fRP0wDXfKgJ6fgBp4wrGo62Hpyvc,3265
17
18
  hanzo_mcp/tools/filesystem/base.py,sha256=HAzuMCrS0dKOBZNoLr7y74tdbYyKpi0FGhStuRgkFTU,3917
18
19
  hanzo_mcp/tools/filesystem/content_replace.py,sha256=ZwzxyOTASUmzP-jtEnsSR-MKtNFC4R3kQunpV3KOCyg,11049
@@ -37,9 +38,9 @@ hanzo_mcp/tools/shell/command_executor.py,sha256=5GcJvg54uty9fl_tkGdWTBcHyjxuynQ
37
38
  hanzo_mcp/tools/shell/run_command.py,sha256=r7HBw0lqabgkGnVsDXmLnrTo0SU9g8gLvzpa-9n-cmM,6891
38
39
  hanzo_mcp/tools/shell/run_script.py,sha256=CLYnDc0Ze8plkXU6d98RgE4UrBg-fwaMVdcn9Fc6Ixw,7432
39
40
  hanzo_mcp/tools/shell/script_tool.py,sha256=s63tawIZBvwgm_kU9P7A3D4v2ulVw7j4l_rpsa_zGuc,8680
40
- hanzo_mcp-0.1.30.dist-info/licenses/LICENSE,sha256=mf1qZGFsPGskoPgytp9B-RsahfKvXsBpmaAbTLGTt8Y,1063
41
- hanzo_mcp-0.1.30.dist-info/METADATA,sha256=qbJgX7NycdL0iGJvhbzDvEn_xtc01nGQLhup-oCV1Qo,6594
42
- hanzo_mcp-0.1.30.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
43
- hanzo_mcp-0.1.30.dist-info/entry_points.txt,sha256=aRKOKXtuQr-idSr-yH4efnRl2v8te94AcgN3ysqqSYs,49
44
- hanzo_mcp-0.1.30.dist-info/top_level.txt,sha256=eGFANatA0MHWiVlpS56fTYRIShtibrSom1uXI6XU0GU,10
45
- hanzo_mcp-0.1.30.dist-info/RECORD,,
41
+ hanzo_mcp-0.1.32.dist-info/licenses/LICENSE,sha256=mf1qZGFsPGskoPgytp9B-RsahfKvXsBpmaAbTLGTt8Y,1063
42
+ hanzo_mcp-0.1.32.dist-info/METADATA,sha256=FvKaHStWB3J_-pMcwBGM0c21MxyQfvgMd4Ek3lQHjMg,7277
43
+ hanzo_mcp-0.1.32.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
44
+ hanzo_mcp-0.1.32.dist-info/entry_points.txt,sha256=aRKOKXtuQr-idSr-yH4efnRl2v8te94AcgN3ysqqSYs,49
45
+ hanzo_mcp-0.1.32.dist-info/top_level.txt,sha256=eGFANatA0MHWiVlpS56fTYRIShtibrSom1uXI6XU0GU,10
46
+ hanzo_mcp-0.1.32.dist-info/RECORD,,