hanzo-mcp 0.3.4__py3-none-any.whl → 0.5.0__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 +1 -1
- hanzo_mcp/cli.py +123 -160
- hanzo_mcp/cli_enhanced.py +438 -0
- hanzo_mcp/config/__init__.py +19 -0
- hanzo_mcp/config/settings.py +388 -0
- hanzo_mcp/config/tool_config.py +197 -0
- hanzo_mcp/prompts/__init__.py +117 -0
- hanzo_mcp/prompts/compact_conversation.py +77 -0
- hanzo_mcp/prompts/create_release.py +38 -0
- hanzo_mcp/prompts/project_system.py +120 -0
- hanzo_mcp/prompts/project_todo_reminder.py +111 -0
- hanzo_mcp/prompts/utils.py +286 -0
- hanzo_mcp/server.py +120 -98
- hanzo_mcp/tools/__init__.py +107 -31
- hanzo_mcp/tools/agent/__init__.py +8 -11
- hanzo_mcp/tools/agent/agent_tool.py +290 -224
- hanzo_mcp/tools/agent/prompt.py +16 -13
- hanzo_mcp/tools/agent/tool_adapter.py +9 -9
- hanzo_mcp/tools/common/__init__.py +17 -16
- hanzo_mcp/tools/common/base.py +79 -110
- hanzo_mcp/tools/common/batch_tool.py +330 -0
- hanzo_mcp/tools/common/context.py +26 -292
- hanzo_mcp/tools/common/permissions.py +12 -12
- hanzo_mcp/tools/common/thinking_tool.py +153 -0
- hanzo_mcp/tools/common/validation.py +1 -63
- hanzo_mcp/tools/filesystem/__init__.py +88 -41
- hanzo_mcp/tools/filesystem/base.py +32 -24
- hanzo_mcp/tools/filesystem/content_replace.py +114 -107
- hanzo_mcp/tools/filesystem/directory_tree.py +129 -105
- hanzo_mcp/tools/filesystem/edit.py +279 -0
- hanzo_mcp/tools/filesystem/grep.py +458 -0
- hanzo_mcp/tools/filesystem/grep_ast_tool.py +250 -0
- hanzo_mcp/tools/filesystem/multi_edit.py +362 -0
- hanzo_mcp/tools/filesystem/read.py +255 -0
- hanzo_mcp/tools/filesystem/write.py +156 -0
- hanzo_mcp/tools/jupyter/__init__.py +41 -29
- hanzo_mcp/tools/jupyter/base.py +66 -57
- hanzo_mcp/tools/jupyter/{edit_notebook.py → notebook_edit.py} +162 -139
- hanzo_mcp/tools/jupyter/notebook_read.py +152 -0
- hanzo_mcp/tools/shell/__init__.py +29 -20
- hanzo_mcp/tools/shell/base.py +87 -45
- hanzo_mcp/tools/shell/bash_session.py +731 -0
- hanzo_mcp/tools/shell/bash_session_executor.py +295 -0
- hanzo_mcp/tools/shell/command_executor.py +435 -384
- hanzo_mcp/tools/shell/run_command.py +284 -131
- hanzo_mcp/tools/shell/run_command_windows.py +328 -0
- hanzo_mcp/tools/shell/session_manager.py +196 -0
- hanzo_mcp/tools/shell/session_storage.py +325 -0
- hanzo_mcp/tools/todo/__init__.py +66 -0
- hanzo_mcp/tools/todo/base.py +319 -0
- hanzo_mcp/tools/todo/todo_read.py +148 -0
- hanzo_mcp/tools/todo/todo_write.py +378 -0
- hanzo_mcp/tools/vector/__init__.py +95 -0
- hanzo_mcp/tools/vector/infinity_store.py +365 -0
- hanzo_mcp/tools/vector/project_manager.py +361 -0
- hanzo_mcp/tools/vector/vector_index.py +115 -0
- hanzo_mcp/tools/vector/vector_search.py +215 -0
- {hanzo_mcp-0.3.4.dist-info → hanzo_mcp-0.5.0.dist-info}/METADATA +35 -3
- hanzo_mcp-0.5.0.dist-info/RECORD +63 -0
- {hanzo_mcp-0.3.4.dist-info → hanzo_mcp-0.5.0.dist-info}/WHEEL +1 -1
- hanzo_mcp/tools/agent/base_provider.py +0 -73
- hanzo_mcp/tools/agent/litellm_provider.py +0 -45
- hanzo_mcp/tools/agent/lmstudio_agent.py +0 -385
- hanzo_mcp/tools/agent/lmstudio_provider.py +0 -219
- hanzo_mcp/tools/agent/provider_registry.py +0 -120
- hanzo_mcp/tools/common/error_handling.py +0 -86
- hanzo_mcp/tools/common/logging_config.py +0 -115
- hanzo_mcp/tools/common/session.py +0 -91
- hanzo_mcp/tools/common/think_tool.py +0 -123
- hanzo_mcp/tools/common/version_tool.py +0 -120
- hanzo_mcp/tools/filesystem/edit_file.py +0 -287
- hanzo_mcp/tools/filesystem/get_file_info.py +0 -170
- hanzo_mcp/tools/filesystem/read_files.py +0 -198
- hanzo_mcp/tools/filesystem/search_content.py +0 -275
- hanzo_mcp/tools/filesystem/write_file.py +0 -162
- hanzo_mcp/tools/jupyter/notebook_operations.py +0 -514
- hanzo_mcp/tools/jupyter/read_notebook.py +0 -165
- hanzo_mcp/tools/project/__init__.py +0 -64
- hanzo_mcp/tools/project/analysis.py +0 -882
- hanzo_mcp/tools/project/base.py +0 -66
- hanzo_mcp/tools/project/project_analyze.py +0 -173
- hanzo_mcp/tools/shell/run_script.py +0 -215
- hanzo_mcp/tools/shell/script_tool.py +0 -244
- hanzo_mcp-0.3.4.dist-info/RECORD +0 -53
- {hanzo_mcp-0.3.4.dist-info → hanzo_mcp-0.5.0.dist-info}/entry_points.txt +0 -0
- {hanzo_mcp-0.3.4.dist-info → hanzo_mcp-0.5.0.dist-info}/licenses/LICENSE +0 -0
- {hanzo_mcp-0.3.4.dist-info → hanzo_mcp-0.5.0.dist-info}/top_level.txt +0 -0
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"""Project analysis tools package for Hanzo MCP.
|
|
2
|
-
|
|
3
|
-
This package provides tools for analyzing project structure and dependencies.
|
|
4
|
-
"""
|
|
5
|
-
|
|
6
|
-
from mcp.server.fastmcp import FastMCP
|
|
7
|
-
|
|
8
|
-
from hanzo_mcp.tools.common.base import BaseTool, ToolRegistry
|
|
9
|
-
from hanzo_mcp.tools.common.context import DocumentContext
|
|
10
|
-
from hanzo_mcp.tools.common.permissions import PermissionManager
|
|
11
|
-
from hanzo_mcp.tools.project.analysis import ProjectAnalyzer, ProjectManager
|
|
12
|
-
from hanzo_mcp.tools.project.project_analyze import ProjectAnalyzeTool
|
|
13
|
-
from hanzo_mcp.tools.shell.command_executor import CommandExecutor
|
|
14
|
-
|
|
15
|
-
# Export all tool classes
|
|
16
|
-
__all__ = [
|
|
17
|
-
"ProjectAnalyzer",
|
|
18
|
-
"ProjectManager",
|
|
19
|
-
"ProjectAnalyzeTool",
|
|
20
|
-
"get_project_tools",
|
|
21
|
-
"register_project_tools",
|
|
22
|
-
]
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
def get_project_tools(
|
|
26
|
-
document_context: DocumentContext,
|
|
27
|
-
permission_manager: PermissionManager,
|
|
28
|
-
command_executor: CommandExecutor,
|
|
29
|
-
) -> list[BaseTool]:
|
|
30
|
-
"""Create instances of all project tools.
|
|
31
|
-
|
|
32
|
-
Args:
|
|
33
|
-
permission_manager: Permission manager for access control
|
|
34
|
-
document_context: Document context for tracking file contents
|
|
35
|
-
command_executor: Command executor for running analysis scripts
|
|
36
|
-
|
|
37
|
-
Returns:
|
|
38
|
-
List of project tool instances
|
|
39
|
-
"""
|
|
40
|
-
# Initialize project analyzer and manager
|
|
41
|
-
project_analyzer = ProjectAnalyzer(command_executor)
|
|
42
|
-
project_manager = ProjectManager(document_context, permission_manager, project_analyzer)
|
|
43
|
-
|
|
44
|
-
return [
|
|
45
|
-
ProjectAnalyzeTool(permission_manager, project_manager, project_analyzer),
|
|
46
|
-
]
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
def register_project_tools(
|
|
50
|
-
mcp_server: FastMCP,
|
|
51
|
-
permission_manager: PermissionManager,
|
|
52
|
-
document_context: DocumentContext,
|
|
53
|
-
command_executor: CommandExecutor,
|
|
54
|
-
) -> None:
|
|
55
|
-
"""Register all project tools with the MCP server.
|
|
56
|
-
|
|
57
|
-
Args:
|
|
58
|
-
mcp_server: The FastMCP server instance
|
|
59
|
-
permission_manager: Permission manager for access control
|
|
60
|
-
document_context: Document context for tracking file contents
|
|
61
|
-
command_executor: Command executor for running analysis scripts
|
|
62
|
-
"""
|
|
63
|
-
tools = get_project_tools(document_context, permission_manager, command_executor)
|
|
64
|
-
ToolRegistry.register_tools(mcp_server, tools)
|