hanzo-mcp 0.1.21__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.
@@ -0,0 +1,168 @@
1
+ Metadata-Version: 2.4
2
+ Name: hanzo-mcp
3
+ Version: 0.1.21
4
+ Summary: MCP server for accessing Hanzo APIs and Platform capabilities
5
+ Author-email: Hanzo Dev <dev@hanzo.ai>
6
+ License: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.13
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: mcp>=1.3.0
14
+ Requires-Dist: httpx>=0.27.0
15
+ Requires-Dist: uvicorn>=0.23.1
16
+ Requires-Dist: mcp
17
+ Requires-Dist: pytest
18
+ Provides-Extra: dev
19
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
20
+ Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
21
+ Requires-Dist: ruff>=0.1.0; extra == "dev"
22
+ Requires-Dist: black>=23.3.0; extra == "dev"
23
+ Provides-Extra: test
24
+ Requires-Dist: pytest>=7.0.0; extra == "test"
25
+ Requires-Dist: pytest-cov>=4.1.0; extra == "test"
26
+ Requires-Dist: pytest-mock>=3.10.0; extra == "test"
27
+ Requires-Dist: pytest-asyncio>=0.25.3; extra == "test"
28
+ Requires-Dist: twisted; extra == "test"
29
+ Provides-Extra: performance
30
+ Requires-Dist: ujson>=5.7.0; extra == "performance"
31
+ Requires-Dist: orjson>=3.9.0; extra == "performance"
32
+ Dynamic: license-file
33
+
34
+ # Hanzo MCP
35
+
36
+ Hanzo AI + Platform capabilities via the Model Context Protocol (MCP).
37
+
38
+ ## Overview
39
+
40
+ This project provides an MCP server that enables access to Hanzo APIs and Platform capabilities, as well as providing development tools for managing and improving projects. By leveraging the Model Context Protocol, this server enables seamless integration with various MCP clients including Claude Desktop, allowing LLMs to directly access Hanzo's platform functionality.
41
+
42
+ ![example](./doc/example.gif)
43
+
44
+ ## Features
45
+
46
+ - **Code Understanding**: Analyze and understand codebases through file access and pattern searching
47
+ - **Code Modification**: Make targeted edits to files with proper permission handling
48
+ - **Enhanced Command Execution**: Run commands and scripts in various languages with improved error handling and shell support
49
+ - **File Operations**: Manage files with proper security controls through shell commands
50
+ - **Code Discovery**: Find relevant files and code patterns across your project
51
+ - **Project Analysis**: Understand project structure, dependencies, and frameworks
52
+ - **Jupyter Notebook Support**: Read and edit Jupyter notebooks with full cell and output handling
53
+
54
+ ## Tools Implemented
55
+
56
+ | Tool | Description |
57
+ | ---------------------- | --------------------------------------------------------------------------------------------- |
58
+ | `read_files` | Read one or multiple files with encoding detection |
59
+ | `write_file` | Create or overwrite files |
60
+ | `edit_file` | Make line-based edits to text files |
61
+ | `directory_tree` | Get a recursive tree view of directories |
62
+ | `get_file_info` | Get metadata about a file or directory |
63
+ | `search_content` | Search for patterns in file contents |
64
+ | `content_replace` | Replace patterns in file contents |
65
+ | `run_command` | Execute shell commands (also used for directory creation, file moving, and directory listing) |
66
+ | `run_script` | Execute scripts with specified interpreters |
67
+ | `script_tool` | Execute scripts in specific programming languages |
68
+ | `project_analyze_tool` | Analyze project structure and dependencies |
69
+ | `read_notebook` | Extract and read source code from all cells in a Jupyter notebook with outputs |
70
+ | `edit_notebook` | Edit, insert, or delete cells in a Jupyter notebook |
71
+ | `think` | Structured space for complex reasoning and analysis without making changes |
72
+
73
+ ## Getting Started
74
+
75
+ ### Usage
76
+
77
+ #### Configuring Claude Desktop
78
+
79
+ You can run it with `uvx run hanzo-mcp` without installation. Configure Claude Desktop to use this server by adding the following to your Claude Desktop configuration file:
80
+
81
+ ```json
82
+ {
83
+ "mcpServers": {
84
+ "hanzo": {
85
+ "command": "uvx",
86
+ "args": [
87
+ "--from",
88
+ "hanzo-mcp",
89
+ "hanzo-mcp",
90
+ "--allow-path",
91
+ "/path/to/your/project"
92
+ ]
93
+ }
94
+ }
95
+ }
96
+ ```
97
+
98
+ Make sure to replace `/path/to/your/project` with the actual path to the project you want Claude to access.
99
+
100
+ #### Advanced Configuration Options
101
+
102
+ You can customize the server using other options:
103
+
104
+ ```json
105
+ {
106
+ "mcpServers": {
107
+ "hanzo": {
108
+ "command": "uvx",
109
+ "args": [
110
+ "--from",
111
+ "hanzo-mcp",
112
+ "hanzo-mcp",
113
+ "--allow-path",
114
+ "/path/to/project",
115
+ "--name",
116
+ "custom-hanzo",
117
+ "--transport",
118
+ "stdio"
119
+ ]
120
+ }
121
+ }
122
+ }
123
+ ```
124
+
125
+ ### Configuring Claude Desktop System Prompt
126
+
127
+ To get the best experience with Hanzo MCP, you need to add the provided system prompt to your Claude Desktop client. This system prompt guides Claude through a structured workflow for interacting with Hanzo platform services and managing project files.
128
+
129
+ Follow these steps:
130
+
131
+ 1. Locate the system prompt file in this repository at `doc/system_prompt`
132
+ 2. Open your Claude Desktop client
133
+ 3. Create a new project or open an existing one
134
+ 4. Navigate to the "Project instructions" section in the Claude Desktop sidebar
135
+ 5. Copy the contents of `doc/system_prompt` and paste it into the "Project instructions" section
136
+ 6. Replace `{project_path}` with the actual absolute path to your project
137
+
138
+ The system prompt provides Claude with:
139
+
140
+ - A structured workflow for analyzing and modifying code
141
+ - Best practices for project exploration and analysis
142
+ - Guidelines for development, refactoring, and quality assurance
143
+ - Special formatting instructions for mathematical content
144
+
145
+ This step is crucial as it enables Claude to follow a consistent approach when helping you with code modifications.
146
+
147
+ ## Security
148
+
149
+ This implementation follows best practices for securing access to your filesystem:
150
+
151
+ - Permission prompts for file modifications and command execution
152
+ - Restricted access to specified directories only
153
+ - Input validation and sanitization
154
+ - Proper error handling and reporting
155
+
156
+ ## Development
157
+
158
+ To contribute to this project:
159
+
160
+ 1. Fork the repository
161
+ 2. Create a feature branch (`git checkout -b feature/amazing-feature`)
162
+ 3. Commit your changes (`git commit -m 'Add some amazing feature'`)
163
+ 4. Push to the branch (`git push origin feature/amazing-feature`)
164
+ 5. Open a Pull Request
165
+
166
+ ## License
167
+
168
+ This project is licensed under the MIT License - see the LICENSE file for details.
@@ -0,0 +1,23 @@
1
+ hanzo_mcp/__init__.py,sha256=b9ZjldZaFEU7nk4qZ6WCjl0fChLTeK18USOW84f7DXQ,98
2
+ hanzo_mcp/cli.py,sha256=vDB-5trIp-tfKwRXosWVZGBNTZAo_B7wTCoF-NVaLKc,4747
3
+ hanzo_mcp/server.py,sha256=p7-0B99gSfC5ieyOGt7xJ233ddCw1FY9dZDujaHarLU,4039
4
+ hanzo_mcp/tools/__init__.py,sha256=IsjWWWAIQW4e490k3RI2YLQ46ZvDfcttqZ0SCcC6aps,2507
5
+ hanzo_mcp/tools/common/__init__.py,sha256=mUlTy1Py8zV-DBEhkds-DoB2zHOxDZnbnOo3WFHP7ro,48
6
+ hanzo_mcp/tools/common/context.py,sha256=BuuuHDQqzmO8LaWPcdgj8Md4FHT2gGuWIo8mN7fMIOY,12949
7
+ hanzo_mcp/tools/common/permissions.py,sha256=HHH3MM-4dTufJ0HYv6M5yDJHJJBGjcXVnUi4lCWmfRI,7388
8
+ hanzo_mcp/tools/common/thinking.py,sha256=0PRBTm8i8u0KBKfNaDasNSCn_R9kmFrAS3retEj_0J4,2630
9
+ hanzo_mcp/tools/common/validation.py,sha256=S8zj38jjAXSB4bmZAydXDCsh_j6hHGEs71SgK-oeeYI,3652
10
+ hanzo_mcp/tools/filesystem/__init__.py,sha256=IBrOsd_8yDo8RIuujB4rNQmr-JmXuddxyhOv-0PUeig,303
11
+ hanzo_mcp/tools/filesystem/file_operations.py,sha256=6LeSoemvaz-oIP0K7GL_vySgA-i8QqN0tI9O_HalSIQ,46182
12
+ hanzo_mcp/tools/jupyter/__init__.py,sha256=XuRoN_02X6ChW_OVGoPIydkQTOlvMtL5hPWRzGW3LVU,249
13
+ hanzo_mcp/tools/jupyter/notebook_operations.py,sha256=AzZXyrgxR55KU09s3B1D50wAdsozHWQZFMCFXsnoe3A,23339
14
+ hanzo_mcp/tools/project/__init__.py,sha256=el-n7xVnHgk6wXqVhFtFCoEfdq11aDAo9DucIJdXBVw,63
15
+ hanzo_mcp/tools/project/analysis.py,sha256=eQ1WgeFNf_d9g_LWdo1f3x5-c4PLzRXK2_j-JN8wM9w,30366
16
+ hanzo_mcp/tools/shell/__init__.py,sha256=myuuFc03I1xGq3VxmLddkSlvvaQIddA3WoIKds8ABFo,59
17
+ hanzo_mcp/tools/shell/command_executor.py,sha256=HyhAwG-aLw13f0Z-K4sCAWqt7qRWEiixnv8tmTTyJW8,37401
18
+ hanzo_mcp-0.1.21.dist-info/licenses/LICENSE,sha256=dvWmlLGUAkNE8EJVn-UQ-F08hxW5jtjUWNe51OaH7IE,1077
19
+ hanzo_mcp-0.1.21.dist-info/METADATA,sha256=34AG2iCwxvRc2SXiGT8jqCgjH6Q8eiXM4YhfAE6OMSY,7094
20
+ hanzo_mcp-0.1.21.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
21
+ hanzo_mcp-0.1.21.dist-info/entry_points.txt,sha256=aRKOKXtuQr-idSr-yH4efnRl2v8te94AcgN3ysqqSYs,49
22
+ hanzo_mcp-0.1.21.dist-info/top_level.txt,sha256=eGFANatA0MHWiVlpS56fTYRIShtibrSom1uXI6XU0GU,10
23
+ hanzo_mcp-0.1.21.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (77.0.3)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ hanzo-mcp = hanzo_mcp.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Hanzo Industries Inc
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ hanzo_mcp