hanzo-mcp 0.1.34__tar.gz → 0.1.35__tar.gz

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.

Files changed (55) hide show
  1. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/PKG-INFO +10 -5
  2. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/README.md +9 -4
  3. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/__init__.py +1 -1
  4. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/common/version_tool.py +4 -18
  5. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp.egg-info/PKG-INFO +10 -5
  6. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp.egg-info/SOURCES.txt +1 -0
  7. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/pyproject.toml +1 -1
  8. hanzo_mcp-0.1.35/setup.py +51 -0
  9. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/LICENSE +0 -0
  10. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/cli.py +0 -0
  11. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/server.py +0 -0
  12. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/__init__.py +0 -0
  13. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/agent/__init__.py +0 -0
  14. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/agent/agent_tool.py +0 -0
  15. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/agent/prompt.py +0 -0
  16. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/agent/tool_adapter.py +0 -0
  17. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/common/__init__.py +0 -0
  18. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/common/base.py +0 -0
  19. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/common/context.py +0 -0
  20. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/common/permissions.py +0 -0
  21. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/common/session.py +0 -0
  22. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/common/thinking_tool.py +0 -0
  23. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/common/validation.py +0 -0
  24. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/filesystem/__init__.py +0 -0
  25. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/filesystem/base.py +0 -0
  26. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/filesystem/content_replace.py +0 -0
  27. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/filesystem/directory_tree.py +0 -0
  28. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/filesystem/edit_file.py +0 -0
  29. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/filesystem/get_file_info.py +0 -0
  30. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/filesystem/read_files.py +0 -0
  31. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/filesystem/search_content.py +0 -0
  32. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/filesystem/write_file.py +0 -0
  33. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/jupyter/__init__.py +0 -0
  34. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/jupyter/base.py +0 -0
  35. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/jupyter/edit_notebook.py +0 -0
  36. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/jupyter/notebook_operations.py +0 -0
  37. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/jupyter/read_notebook.py +0 -0
  38. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/project/__init__.py +0 -0
  39. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/project/analysis.py +0 -0
  40. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/project/base.py +0 -0
  41. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/project/project_analyze.py +0 -0
  42. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/shell/__init__.py +0 -0
  43. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/shell/base.py +0 -0
  44. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/shell/command_executor.py +0 -0
  45. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/shell/run_command.py +0 -0
  46. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/shell/run_script.py +0 -0
  47. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp/tools/shell/script_tool.py +0 -0
  48. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp.egg-info/dependency_links.txt +0 -0
  49. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp.egg-info/entry_points.txt +0 -0
  50. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp.egg-info/requires.txt +0 -0
  51. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/hanzo_mcp.egg-info/top_level.txt +0 -0
  52. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/setup.cfg +0 -0
  53. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/tests/test_cli.py +0 -0
  54. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/tests/test_server.py +0 -0
  55. {hanzo_mcp-0.1.34 → hanzo_mcp-0.1.35}/tests/test_validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hanzo-mcp
3
- Version: 0.1.34
3
+ Version: 0.1.35
4
4
  Summary: MCP implementation of Hanzo capabilities
5
5
  Author-email: Hanzo Industries Inc <dev@hanzo.ai>
6
6
  License: MIT
@@ -146,14 +146,19 @@ make bump-patch # Increment patch version (0.1.x → 0.1.x+1)
146
146
  make bump-minor # Increment minor version (0.x.0 → 0.x+1.0)
147
147
  make bump-major # Increment major version (x.0.0 → x+1.0.0)
148
148
 
149
+ # Manual version bumping (alternative to make commands)
150
+ python -m scripts.bump_version patch # Increment patch version
151
+ python -m scripts.bump_version minor # Increment minor version
152
+ python -m scripts.bump_version major # Increment major version
153
+
149
154
  # Publishing (creates git tag and pushes it to GitHub)
150
155
  make publish # Publish using configured credentials in .pypirc
151
156
  PYPI_TOKEN=your_token make publish # Publish with token from environment variable
152
157
 
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
158
+ # Publishing (creates git tag, pushes to GitHub, and publishes to PyPI)
159
+ make patch # Bump patch version, build, publish, create git tag, and push
160
+ make minor # Bump minor version, build, publish, create git tag, and push
161
+ make major # Bump major version, build, publish, create git tag, and push
157
162
 
158
163
  # Publish to Test PyPI
159
164
  make publish-test
@@ -105,14 +105,19 @@ make bump-patch # Increment patch version (0.1.x → 0.1.x+1)
105
105
  make bump-minor # Increment minor version (0.x.0 → 0.x+1.0)
106
106
  make bump-major # Increment major version (x.0.0 → x+1.0.0)
107
107
 
108
+ # Manual version bumping (alternative to make commands)
109
+ python -m scripts.bump_version patch # Increment patch version
110
+ python -m scripts.bump_version minor # Increment minor version
111
+ python -m scripts.bump_version major # Increment major version
112
+
108
113
  # Publishing (creates git tag and pushes it to GitHub)
109
114
  make publish # Publish using configured credentials in .pypirc
110
115
  PYPI_TOKEN=your_token make publish # Publish with token from environment variable
111
116
 
112
- # Version bump and publish in one step (with automatic git tagging)
113
- make publish-patch # Bump patch version, publish, and create git tag
114
- make publish-minor # Bump minor version, publish, and create git tag
115
- make publish-major # Bump major version, publish, and create git tag
117
+ # Publishing (creates git tag, pushes to GitHub, and publishes to PyPI)
118
+ make patch # Bump patch version, build, publish, create git tag, and push
119
+ make minor # Bump minor version, build, publish, create git tag, and push
120
+ make major # Bump major version, build, publish, create git tag, and push
116
121
 
117
122
  # Publish to Test PyPI
118
123
  make publish-test
@@ -1,3 +1,3 @@
1
1
  """Hanzo MCP - Implementation of Hanzo capabilities using MCP."""
2
2
 
3
- __version__ = "0.1.34"
3
+ __version__ = "0.1.35"
@@ -1,9 +1,6 @@
1
1
  """Version tool for displaying project version information."""
2
2
 
3
- import importlib.metadata
4
- import os
5
- import tomllib
6
- from typing import Any, Dict, TypedDict, cast, final, override
3
+ from typing import Any, Dict, TypedDict, final, override
7
4
 
8
5
  from mcp.server.fastmcp import Context as MCPContext
9
6
  from mcp.server.fastmcp import FastMCP
@@ -101,21 +98,10 @@ class VersionTool(BaseTool):
101
98
  Returns:
102
99
  A dictionary containing the package name and version
103
100
  """
104
- try:
105
- version = importlib.metadata.version("hanzo-mcp")
106
- except importlib.metadata.PackageNotFoundError:
107
- # If package not installed, try to read from pyproject.toml
108
- try:
109
- root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))
110
- toml_path = os.path.join(root_dir, "pyproject.toml")
111
-
112
- with open(toml_path, "rb") as f:
113
- pyproject = tomllib.load(f)
114
- version = cast(str, pyproject.get("project", {}).get("version", "unknown"))
115
- except Exception:
116
- version = "unknown"
101
+ # Directly use the __version__ from the hanzo_mcp package
102
+ from hanzo_mcp import __version__
117
103
 
118
- return {"version": version, "package_name": "hanzo-mcp"}
104
+ return {"version": __version__, "package_name": "hanzo-mcp"}
119
105
 
120
106
  @override
121
107
  def register(self, mcp_server: FastMCP) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hanzo-mcp
3
- Version: 0.1.34
3
+ Version: 0.1.35
4
4
  Summary: MCP implementation of Hanzo capabilities
5
5
  Author-email: Hanzo Industries Inc <dev@hanzo.ai>
6
6
  License: MIT
@@ -146,14 +146,19 @@ make bump-patch # Increment patch version (0.1.x → 0.1.x+1)
146
146
  make bump-minor # Increment minor version (0.x.0 → 0.x+1.0)
147
147
  make bump-major # Increment major version (x.0.0 → x+1.0.0)
148
148
 
149
+ # Manual version bumping (alternative to make commands)
150
+ python -m scripts.bump_version patch # Increment patch version
151
+ python -m scripts.bump_version minor # Increment minor version
152
+ python -m scripts.bump_version major # Increment major version
153
+
149
154
  # Publishing (creates git tag and pushes it to GitHub)
150
155
  make publish # Publish using configured credentials in .pypirc
151
156
  PYPI_TOKEN=your_token make publish # Publish with token from environment variable
152
157
 
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
158
+ # Publishing (creates git tag, pushes to GitHub, and publishes to PyPI)
159
+ make patch # Bump patch version, build, publish, create git tag, and push
160
+ make minor # Bump minor version, build, publish, create git tag, and push
161
+ make major # Bump major version, build, publish, create git tag, and push
157
162
 
158
163
  # Publish to Test PyPI
159
164
  make publish-test
@@ -1,6 +1,7 @@
1
1
  LICENSE
2
2
  README.md
3
3
  pyproject.toml
4
+ setup.py
4
5
  hanzo_mcp/__init__.py
5
6
  hanzo_mcp/cli.py
6
7
  hanzo_mcp/server.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "hanzo-mcp"
7
- version = "0.1.34"
7
+ version = "0.1.35"
8
8
  description = "MCP implementation of Hanzo capabilities"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/env python
2
+ """Setup script for hanzo-mcp."""
3
+
4
+ import os
5
+ import subprocess
6
+ import sys
7
+ from setuptools import setup
8
+ from setuptools.command.build_py import build_py
9
+ from setuptools.command.develop import develop
10
+
11
+
12
+ class UpdateVersionBuildPy(build_py):
13
+ """Custom build_py command that updates version before building."""
14
+
15
+ def run(self):
16
+ """Run the command."""
17
+ # Run the version update script before building
18
+ update_script = os.path.join('scripts', 'update_version.py')
19
+ if os.path.exists(update_script):
20
+ print("Running version update script...")
21
+ subprocess.check_call([sys.executable, update_script])
22
+ else:
23
+ print(f"Warning: Version update script not found at {update_script}")
24
+
25
+ # Continue with the regular build process
26
+ super().run()
27
+
28
+
29
+ class UpdateVersionDevelop(develop):
30
+ """Custom develop command that updates version before installing in development mode."""
31
+
32
+ def run(self):
33
+ """Run the command."""
34
+ # Run the version update script before installing
35
+ update_script = os.path.join('scripts', 'update_version.py')
36
+ if os.path.exists(update_script):
37
+ print("Running version update script...")
38
+ subprocess.check_call([sys.executable, update_script])
39
+ else:
40
+ print(f"Warning: Version update script not found at {update_script}")
41
+
42
+ # Continue with the regular develop process
43
+ super().run()
44
+
45
+
46
+ setup(
47
+ cmdclass={
48
+ 'build_py': UpdateVersionBuildPy,
49
+ 'develop': UpdateVersionDevelop,
50
+ },
51
+ )
File without changes
File without changes
File without changes
File without changes