hanzo-mcp 0.5.2__py3-none-any.whl → 0.6.1__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 +32 -0
- hanzo_mcp/dev_server.py +246 -0
- hanzo_mcp/prompts/__init__.py +1 -1
- hanzo_mcp/prompts/project_system.py +43 -7
- hanzo_mcp/server.py +5 -1
- hanzo_mcp/tools/__init__.py +66 -35
- hanzo_mcp/tools/agent/__init__.py +1 -1
- hanzo_mcp/tools/agent/agent.py +401 -0
- hanzo_mcp/tools/agent/agent_tool.py +3 -4
- hanzo_mcp/tools/common/__init__.py +1 -1
- hanzo_mcp/tools/common/base.py +2 -2
- hanzo_mcp/tools/common/batch_tool.py +3 -5
- hanzo_mcp/tools/common/config_tool.py +1 -1
- hanzo_mcp/tools/common/context.py +1 -1
- hanzo_mcp/tools/common/palette.py +344 -0
- hanzo_mcp/tools/common/palette_loader.py +108 -0
- hanzo_mcp/tools/common/stats.py +1 -1
- hanzo_mcp/tools/common/thinking_tool.py +3 -5
- hanzo_mcp/tools/common/tool_disable.py +1 -1
- hanzo_mcp/tools/common/tool_enable.py +1 -1
- hanzo_mcp/tools/common/tool_list.py +49 -52
- hanzo_mcp/tools/config/__init__.py +10 -0
- hanzo_mcp/tools/config/config_tool.py +212 -0
- hanzo_mcp/tools/config/index_config.py +176 -0
- hanzo_mcp/tools/config/palette_tool.py +166 -0
- hanzo_mcp/tools/database/__init__.py +1 -1
- hanzo_mcp/tools/database/graph.py +482 -0
- hanzo_mcp/tools/database/graph_add.py +1 -1
- hanzo_mcp/tools/database/graph_query.py +1 -1
- hanzo_mcp/tools/database/graph_remove.py +1 -1
- hanzo_mcp/tools/database/graph_search.py +1 -1
- hanzo_mcp/tools/database/graph_stats.py +1 -1
- hanzo_mcp/tools/database/sql.py +411 -0
- hanzo_mcp/tools/database/sql_query.py +1 -1
- hanzo_mcp/tools/database/sql_search.py +1 -1
- hanzo_mcp/tools/database/sql_stats.py +1 -1
- hanzo_mcp/tools/editor/neovim_command.py +1 -1
- hanzo_mcp/tools/editor/neovim_edit.py +1 -1
- hanzo_mcp/tools/editor/neovim_session.py +1 -1
- hanzo_mcp/tools/filesystem/__init__.py +42 -13
- hanzo_mcp/tools/filesystem/base.py +1 -1
- hanzo_mcp/tools/filesystem/batch_search.py +4 -4
- hanzo_mcp/tools/filesystem/content_replace.py +3 -5
- hanzo_mcp/tools/filesystem/diff.py +193 -0
- hanzo_mcp/tools/filesystem/directory_tree.py +3 -5
- hanzo_mcp/tools/filesystem/edit.py +3 -5
- hanzo_mcp/tools/filesystem/find.py +443 -0
- hanzo_mcp/tools/filesystem/find_files.py +1 -1
- hanzo_mcp/tools/filesystem/git_search.py +1 -1
- hanzo_mcp/tools/filesystem/grep.py +2 -2
- hanzo_mcp/tools/filesystem/multi_edit.py +3 -5
- hanzo_mcp/tools/filesystem/read.py +17 -5
- hanzo_mcp/tools/filesystem/{grep_ast_tool.py → symbols.py} +17 -27
- hanzo_mcp/tools/filesystem/symbols_unified.py +376 -0
- hanzo_mcp/tools/filesystem/tree.py +268 -0
- hanzo_mcp/tools/filesystem/unified_search.py +711 -0
- hanzo_mcp/tools/filesystem/unix_aliases.py +99 -0
- hanzo_mcp/tools/filesystem/watch.py +174 -0
- hanzo_mcp/tools/filesystem/write.py +3 -5
- hanzo_mcp/tools/jupyter/__init__.py +9 -12
- hanzo_mcp/tools/jupyter/base.py +1 -1
- hanzo_mcp/tools/jupyter/jupyter.py +326 -0
- hanzo_mcp/tools/jupyter/notebook_edit.py +3 -4
- hanzo_mcp/tools/jupyter/notebook_read.py +3 -5
- hanzo_mcp/tools/llm/__init__.py +4 -0
- hanzo_mcp/tools/llm/consensus_tool.py +1 -1
- hanzo_mcp/tools/llm/llm_manage.py +1 -1
- hanzo_mcp/tools/llm/llm_tool.py +1 -1
- hanzo_mcp/tools/llm/llm_unified.py +851 -0
- hanzo_mcp/tools/llm/provider_tools.py +1 -1
- hanzo_mcp/tools/mcp/__init__.py +4 -0
- hanzo_mcp/tools/mcp/mcp_add.py +1 -1
- hanzo_mcp/tools/mcp/mcp_remove.py +1 -1
- hanzo_mcp/tools/mcp/mcp_stats.py +1 -1
- hanzo_mcp/tools/mcp/mcp_unified.py +503 -0
- hanzo_mcp/tools/shell/__init__.py +20 -42
- hanzo_mcp/tools/shell/base.py +1 -1
- hanzo_mcp/tools/shell/base_process.py +303 -0
- hanzo_mcp/tools/shell/bash_unified.py +134 -0
- hanzo_mcp/tools/shell/logs.py +1 -1
- hanzo_mcp/tools/shell/npx.py +1 -1
- hanzo_mcp/tools/shell/npx_background.py +1 -1
- hanzo_mcp/tools/shell/npx_unified.py +101 -0
- hanzo_mcp/tools/shell/open.py +107 -0
- hanzo_mcp/tools/shell/pkill.py +1 -1
- hanzo_mcp/tools/shell/process_unified.py +131 -0
- hanzo_mcp/tools/shell/processes.py +1 -1
- hanzo_mcp/tools/shell/run_background.py +1 -1
- hanzo_mcp/tools/shell/run_command.py +3 -4
- hanzo_mcp/tools/shell/run_command_windows.py +3 -4
- hanzo_mcp/tools/shell/uvx.py +1 -1
- hanzo_mcp/tools/shell/uvx_background.py +1 -1
- hanzo_mcp/tools/shell/uvx_unified.py +101 -0
- hanzo_mcp/tools/todo/__init__.py +1 -1
- hanzo_mcp/tools/todo/base.py +1 -1
- hanzo_mcp/tools/todo/todo.py +265 -0
- hanzo_mcp/tools/todo/todo_read.py +3 -5
- hanzo_mcp/tools/todo/todo_write.py +3 -5
- hanzo_mcp/tools/vector/__init__.py +1 -1
- hanzo_mcp/tools/vector/index_tool.py +1 -1
- hanzo_mcp/tools/vector/project_manager.py +27 -5
- hanzo_mcp/tools/vector/vector.py +311 -0
- hanzo_mcp/tools/vector/vector_index.py +1 -1
- hanzo_mcp/tools/vector/vector_search.py +1 -1
- hanzo_mcp-0.6.1.dist-info/METADATA +336 -0
- hanzo_mcp-0.6.1.dist-info/RECORD +134 -0
- hanzo_mcp-0.6.1.dist-info/entry_points.txt +3 -0
- hanzo_mcp-0.5.2.dist-info/METADATA +0 -276
- hanzo_mcp-0.5.2.dist-info/RECORD +0 -106
- hanzo_mcp-0.5.2.dist-info/entry_points.txt +0 -2
- {hanzo_mcp-0.5.2.dist-info → hanzo_mcp-0.6.1.dist-info}/WHEEL +0 -0
- {hanzo_mcp-0.5.2.dist-info → hanzo_mcp-0.6.1.dist-info}/licenses/LICENSE +0 -0
- {hanzo_mcp-0.5.2.dist-info → hanzo_mcp-0.6.1.dist-info}/top_level.txt +0 -0
|
@@ -7,9 +7,8 @@ import json
|
|
|
7
7
|
from pathlib import Path
|
|
8
8
|
from typing import Annotated, Any, Literal, TypedDict, Unpack, final, override
|
|
9
9
|
|
|
10
|
-
from fastmcp import Context as MCPContext
|
|
11
|
-
from
|
|
12
|
-
from fastmcp.server.dependencies import get_context
|
|
10
|
+
from mcp.server.fastmcp import Context as MCPContext
|
|
11
|
+
from mcp.server import FastMCP
|
|
13
12
|
from pydantic import Field
|
|
14
13
|
|
|
15
14
|
from hanzo_mcp.tools.jupyter.base import JupyterBaseTool
|
|
@@ -306,8 +305,8 @@ class NoteBookEditTool(JupyterBaseTool):
|
|
|
306
305
|
new_source: NewSource,
|
|
307
306
|
cell_type: CellType,
|
|
308
307
|
edit_mode: EditMode,
|
|
308
|
+
ctx: MCPContext
|
|
309
309
|
) -> str:
|
|
310
|
-
ctx = get_context()
|
|
311
310
|
return await tool_self.call(
|
|
312
311
|
ctx,
|
|
313
312
|
notebook_path=notebook_path,
|
|
@@ -7,9 +7,8 @@ import json
|
|
|
7
7
|
from pathlib import Path
|
|
8
8
|
from typing import Annotated, TypedDict, Unpack, final, override
|
|
9
9
|
|
|
10
|
-
from fastmcp import Context as MCPContext
|
|
11
|
-
from
|
|
12
|
-
from fastmcp.server.dependencies import get_context
|
|
10
|
+
from mcp.server.fastmcp import Context as MCPContext
|
|
11
|
+
from mcp.server import FastMCP
|
|
13
12
|
from pydantic import Field
|
|
14
13
|
|
|
15
14
|
from hanzo_mcp.tools.jupyter.base import JupyterBaseTool
|
|
@@ -145,8 +144,7 @@ class NotebookReadTool(JupyterBaseTool):
|
|
|
145
144
|
|
|
146
145
|
@mcp_server.tool(name=self.name, description=self.description)
|
|
147
146
|
async def notebook_read(
|
|
148
|
-
ctx: MCPContext,
|
|
149
147
|
notebook_path: NotebookPath,
|
|
148
|
+
ctx: MCPContext
|
|
150
149
|
) -> str:
|
|
151
|
-
ctx = get_context()
|
|
152
150
|
return await tool_self.call(ctx, notebook_path=notebook_path)
|
hanzo_mcp/tools/llm/__init__.py
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"""LLM tools for Hanzo MCP."""
|
|
2
2
|
|
|
3
|
+
from hanzo_mcp.tools.llm.llm_unified import UnifiedLLMTool
|
|
4
|
+
|
|
5
|
+
# Legacy imports for backwards compatibility
|
|
3
6
|
from hanzo_mcp.tools.llm.llm_tool import LLMTool
|
|
4
7
|
from hanzo_mcp.tools.llm.consensus_tool import ConsensusTool
|
|
5
8
|
from hanzo_mcp.tools.llm.llm_manage import LLMManageTool
|
|
@@ -14,6 +17,7 @@ from hanzo_mcp.tools.llm.provider_tools import (
|
|
|
14
17
|
)
|
|
15
18
|
|
|
16
19
|
__all__ = [
|
|
20
|
+
"UnifiedLLMTool",
|
|
17
21
|
"LLMTool",
|
|
18
22
|
"ConsensusTool",
|
|
19
23
|
"LLMManageTool",
|
|
@@ -5,7 +5,7 @@ import json
|
|
|
5
5
|
from typing import Annotated, Optional, TypedDict, Unpack, final, override, List, Dict, Any
|
|
6
6
|
from datetime import datetime
|
|
7
7
|
|
|
8
|
-
from fastmcp import Context as MCPContext
|
|
8
|
+
from mcp.server.fastmcp import Context as MCPContext
|
|
9
9
|
from pydantic import Field
|
|
10
10
|
|
|
11
11
|
from hanzo_mcp.tools.common.base import BaseTool
|
|
@@ -5,7 +5,7 @@ import json
|
|
|
5
5
|
from typing import Annotated, Optional, TypedDict, Unpack, final, override
|
|
6
6
|
from pathlib import Path
|
|
7
7
|
|
|
8
|
-
from fastmcp import Context as MCPContext
|
|
8
|
+
from mcp.server.fastmcp import Context as MCPContext
|
|
9
9
|
from pydantic import Field
|
|
10
10
|
|
|
11
11
|
from hanzo_mcp.tools.common.base import BaseTool
|
hanzo_mcp/tools/llm/llm_tool.py
CHANGED
|
@@ -5,7 +5,7 @@ import json
|
|
|
5
5
|
from typing import Annotated, Optional, TypedDict, Unpack, final, override, List, Dict, Any
|
|
6
6
|
import asyncio
|
|
7
7
|
|
|
8
|
-
from fastmcp import Context as MCPContext
|
|
8
|
+
from mcp.server.fastmcp import Context as MCPContext
|
|
9
9
|
from pydantic import Field
|
|
10
10
|
|
|
11
11
|
from hanzo_mcp.tools.common.base import BaseTool
|