hanzo-mcp 0.1.30__tar.gz → 0.1.32__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.
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/PKG-INFO +14 -3
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/README.md +13 -2
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/__init__.py +4 -1
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/common/__init__.py +12 -0
- hanzo_mcp-0.1.32/hanzo_mcp/tools/common/version_tool.py +62 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp.egg-info/PKG-INFO +14 -3
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp.egg-info/SOURCES.txt +1 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/pyproject.toml +1 -1
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/LICENSE +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/__init__.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/cli.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/server.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/agent/__init__.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/agent/agent_tool.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/agent/prompt.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/agent/tool_adapter.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/common/base.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/common/context.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/common/permissions.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/common/session.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/common/thinking_tool.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/common/validation.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/filesystem/__init__.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/filesystem/base.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/filesystem/content_replace.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/filesystem/directory_tree.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/filesystem/edit_file.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/filesystem/get_file_info.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/filesystem/read_files.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/filesystem/search_content.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/filesystem/write_file.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/jupyter/__init__.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/jupyter/base.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/jupyter/edit_notebook.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/jupyter/notebook_operations.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/jupyter/read_notebook.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/project/__init__.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/project/analysis.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/project/base.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/project/project_analyze.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/shell/__init__.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/shell/base.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/shell/command_executor.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/shell/run_command.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/shell/run_script.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp/tools/shell/script_tool.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp.egg-info/dependency_links.txt +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp.egg-info/entry_points.txt +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp.egg-info/requires.txt +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/hanzo_mcp.egg-info/top_level.txt +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/setup.cfg +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/tests/test_cli.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/tests/test_server.py +0 -0
- {hanzo_mcp-0.1.30 → hanzo_mcp-0.1.32}/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.
|
|
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
|
-
#
|
|
145
|
-
make
|
|
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
|
|
@@ -100,8 +100,19 @@ make test-cov
|
|
|
100
100
|
# Build package
|
|
101
101
|
make build
|
|
102
102
|
|
|
103
|
-
#
|
|
104
|
-
make
|
|
103
|
+
# Version bumping
|
|
104
|
+
make bump-patch # Increment patch version (0.1.x → 0.1.x+1)
|
|
105
|
+
make bump-minor # Increment minor version (0.x.0 → 0.x+1.0)
|
|
106
|
+
make bump-major # Increment major version (x.0.0 → x+1.0.0)
|
|
107
|
+
|
|
108
|
+
# Publishing (creates git tag and pushes it to GitHub)
|
|
109
|
+
make publish # Publish using configured credentials in .pypirc
|
|
110
|
+
PYPI_TOKEN=your_token make publish # Publish with token from environment variable
|
|
111
|
+
|
|
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
|
|
105
116
|
|
|
106
117
|
# Publish to Test PyPI
|
|
107
118
|
make publish-test
|
|
@@ -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.
|
|
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
|
-
#
|
|
145
|
-
make
|
|
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
|
|
@@ -22,6 +22,7 @@ hanzo_mcp/tools/common/permissions.py
|
|
|
22
22
|
hanzo_mcp/tools/common/session.py
|
|
23
23
|
hanzo_mcp/tools/common/thinking_tool.py
|
|
24
24
|
hanzo_mcp/tools/common/validation.py
|
|
25
|
+
hanzo_mcp/tools/common/version_tool.py
|
|
25
26
|
hanzo_mcp/tools/filesystem/__init__.py
|
|
26
27
|
hanzo_mcp/tools/filesystem/base.py
|
|
27
28
|
hanzo_mcp/tools/filesystem/content_replace.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|