hanzo-mcp 0.6.8__tar.gz → 0.6.9__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.6.8 → hanzo_mcp-0.6.9}/PKG-INFO +1 -1
- hanzo_mcp-0.6.9/hanzo_mcp/__init__.py +3 -0
- hanzo_mcp-0.6.9/hanzo_mcp/__main__.py +17 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/cli.py +6 -9
- hanzo_mcp-0.6.9/hanzo_mcp/entry.py +33 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp.egg-info/PKG-INFO +1 -1
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp.egg-info/SOURCES.txt +1 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp.egg-info/entry_points.txt +1 -1
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/pyproject.toml +2 -2
- hanzo_mcp-0.6.8/hanzo_mcp/__init__.py +0 -14
- hanzo_mcp-0.6.8/hanzo_mcp/__main__.py +0 -22
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/LICENSE +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/README.md +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/cli_enhanced.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/config/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/config/settings.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/config/tool_config.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/dev_server.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/prompts/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/prompts/compact_conversation.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/prompts/create_release.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/prompts/project_system.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/prompts/project_todo_reminder.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/prompts/utils.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/server.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/agent/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/agent/agent.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/agent/agent_tool.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/agent/prompt.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/agent/tool_adapter.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/base.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/batch_tool.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/config_tool.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/context.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/palette.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/palette_loader.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/permissions.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/stats.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/thinking_tool.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/tool_disable.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/tool_enable.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/tool_list.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/common/validation.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/config/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/config/config_tool.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/config/index_config.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/config/palette_tool.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/database/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/database/database_manager.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/database/graph.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/database/graph_add.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/database/graph_query.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/database/graph_remove.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/database/graph_search.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/database/graph_stats.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/database/sql.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/database/sql_query.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/database/sql_search.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/database/sql_stats.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/editor/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/editor/neovim_command.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/editor/neovim_edit.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/editor/neovim_session.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/base.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/batch_search.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/content_replace.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/diff.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/directory_tree.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/edit.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/find.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/find_files.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/git_search.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/grep.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/multi_edit.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/read.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/symbols.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/symbols_unified.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/tree.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/unified_search.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/unix_aliases.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/watch.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/filesystem/write.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/jupyter/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/jupyter/base.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/jupyter/jupyter.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/jupyter/notebook_edit.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/jupyter/notebook_read.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/llm/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/llm/consensus_tool.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/llm/llm_manage.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/llm/llm_tool.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/llm/llm_unified.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/llm/provider_tools.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/mcp/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/mcp/mcp_add.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/mcp/mcp_remove.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/mcp/mcp_stats.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/mcp/mcp_unified.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/base.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/base_process.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/bash_session.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/bash_session_executor.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/bash_unified.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/command_executor.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/logs.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/npx.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/npx_background.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/npx_unified.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/open.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/pkill.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/process_unified.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/processes.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/run_background.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/run_command.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/run_command_windows.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/session_manager.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/session_storage.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/uvx.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/uvx_background.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/shell/uvx_unified.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/todo/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/todo/base.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/todo/todo.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/todo/todo_read.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/todo/todo_write.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/vector/__init__.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/vector/ast_analyzer.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/vector/git_ingester.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/vector/index_tool.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/vector/infinity_store.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/vector/mock_infinity.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/vector/project_manager.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/vector/vector.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/vector/vector_index.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp/tools/vector/vector_search.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp.egg-info/dependency_links.txt +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp.egg-info/requires.txt +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/hanzo_mcp.egg-info/top_level.txt +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/setup.cfg +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/setup.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/tests/test_async_support.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/tests/test_cli.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/tests/test_git_ingestion.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/tests/test_new_tools.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/tests/test_search_quality.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/tests/test_unified_search.py +0 -0
- {hanzo_mcp-0.6.8 → hanzo_mcp-0.6.9}/tests/test_vector_store.py +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Main entry point for hanzo-mcp when run as a module."""
|
|
2
|
+
|
|
3
|
+
# MUST suppress warnings BEFORE any imports
|
|
4
|
+
import warnings
|
|
5
|
+
import os
|
|
6
|
+
|
|
7
|
+
# Set environment variable for child processes
|
|
8
|
+
os.environ["PYTHONWARNINGS"] = "ignore::DeprecationWarning"
|
|
9
|
+
|
|
10
|
+
# Suppress all deprecation warnings
|
|
11
|
+
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
|
12
|
+
|
|
13
|
+
# Now we can import
|
|
14
|
+
from hanzo_mcp.cli import main
|
|
15
|
+
|
|
16
|
+
if __name__ == "__main__":
|
|
17
|
+
main()
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
"""Command-line interface for the Hanzo MCP server."""
|
|
2
2
|
|
|
3
|
+
# CRITICAL: Suppress warnings BEFORE any imports that might trigger them
|
|
3
4
|
import warnings
|
|
4
|
-
import sys
|
|
5
5
|
import os
|
|
6
|
+
import sys
|
|
6
7
|
|
|
7
|
-
# Set environment variable to suppress warnings
|
|
8
|
+
# Set environment variable to suppress warnings in subprocesses
|
|
8
9
|
os.environ["PYTHONWARNINGS"] = "ignore::DeprecationWarning"
|
|
9
10
|
|
|
10
|
-
# Suppress ALL deprecation warnings
|
|
11
|
+
# Suppress ALL deprecation warnings
|
|
11
12
|
warnings.simplefilter("ignore", DeprecationWarning)
|
|
12
13
|
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
|
13
14
|
|
|
14
|
-
#
|
|
15
|
-
if not sys.warnoptions:
|
|
16
|
-
warnings.filterwarnings("ignore", module="pydantic._internal")
|
|
17
|
-
warnings.filterwarnings("ignore", module="pydantic")
|
|
18
|
-
warnings.filterwarnings("ignore", module="litellm")
|
|
19
|
-
|
|
15
|
+
# Now safe to import everything else
|
|
20
16
|
import argparse
|
|
21
17
|
import json
|
|
22
18
|
import signal
|
|
23
19
|
from pathlib import Path
|
|
24
20
|
from typing import Any, cast
|
|
25
21
|
|
|
22
|
+
# Import server AFTER warning suppression
|
|
26
23
|
from hanzo_mcp.server import HanzoMCPServer
|
|
27
24
|
|
|
28
25
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
"""Entry point that suppresses warnings before importing anything."""
|
|
3
|
+
|
|
4
|
+
def main():
|
|
5
|
+
# Nuclear option - override warnings.warn before ANY imports
|
|
6
|
+
import warnings
|
|
7
|
+
import os
|
|
8
|
+
import sys
|
|
9
|
+
|
|
10
|
+
# Store original
|
|
11
|
+
_original_warn = warnings.warn
|
|
12
|
+
|
|
13
|
+
# Override with filter
|
|
14
|
+
def filtered_warn(message, category=None, stacklevel=1):
|
|
15
|
+
# Skip Pydantic deprecation warnings
|
|
16
|
+
if (category == DeprecationWarning and
|
|
17
|
+
("class-based `config`" in str(message) or
|
|
18
|
+
"PydanticDeprecatedSince20" in str(message))):
|
|
19
|
+
return
|
|
20
|
+
_original_warn(message, category, stacklevel)
|
|
21
|
+
|
|
22
|
+
# Replace globally
|
|
23
|
+
warnings.warn = filtered_warn
|
|
24
|
+
|
|
25
|
+
# Also set environment
|
|
26
|
+
os.environ["PYTHONWARNINGS"] = "ignore::DeprecationWarning"
|
|
27
|
+
|
|
28
|
+
# Now import the CLI
|
|
29
|
+
from hanzo_mcp.cli import main as cli_main
|
|
30
|
+
cli_main()
|
|
31
|
+
|
|
32
|
+
if __name__ == "__main__":
|
|
33
|
+
main()
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "hanzo-mcp"
|
|
7
|
-
version = "0.6.
|
|
7
|
+
version = "0.6.9"
|
|
8
8
|
description = "The Zen of Hanzo MCP: One server to rule them all. The ultimate MCP that orchestrates all others."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.12"
|
|
@@ -54,7 +54,7 @@ performance = ["ujson>=5.7.0", "orjson>=3.9.0"]
|
|
|
54
54
|
publish = ["twine>=4.0.2", "build>=1.0.3"]
|
|
55
55
|
|
|
56
56
|
[project.scripts]
|
|
57
|
-
hanzo-mcp = "hanzo_mcp.
|
|
57
|
+
hanzo-mcp = "hanzo_mcp.entry:main"
|
|
58
58
|
hanzo-mcp-dev = "hanzo_mcp.dev_server:run_dev_server"
|
|
59
59
|
|
|
60
60
|
[tool.setuptools.packages.find]
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"""Hanzo MCP - Implementation of Hanzo capabilities using MCP."""
|
|
2
|
-
|
|
3
|
-
import warnings
|
|
4
|
-
|
|
5
|
-
# Aggressively suppress ALL deprecation warnings from pydantic before any imports
|
|
6
|
-
warnings.filterwarnings("ignore", category=DeprecationWarning, module="pydantic.*")
|
|
7
|
-
warnings.filterwarnings("ignore", category=DeprecationWarning, module="pydantic._internal.*")
|
|
8
|
-
warnings.filterwarnings("ignore", category=DeprecationWarning, module="litellm.*")
|
|
9
|
-
|
|
10
|
-
# Also catch specific patterns
|
|
11
|
-
warnings.filterwarnings("ignore", message=".*class-based.*config.*deprecated.*")
|
|
12
|
-
warnings.filterwarnings("ignore", message=".*PydanticDeprecatedSince20.*")
|
|
13
|
-
|
|
14
|
-
__version__ = "0.6.8"
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"""Main entry point for hanzo-mcp when run as a module."""
|
|
2
|
-
|
|
3
|
-
import warnings
|
|
4
|
-
|
|
5
|
-
# Suppress ALL Pydantic deprecation warnings before any imports
|
|
6
|
-
warnings.filterwarnings(
|
|
7
|
-
"ignore",
|
|
8
|
-
category=DeprecationWarning,
|
|
9
|
-
module="pydantic.*"
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
# Also try to catch the specific message pattern
|
|
13
|
-
warnings.filterwarnings(
|
|
14
|
-
"ignore",
|
|
15
|
-
message=".*class-based.*config.*deprecated.*"
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
# Import cli after setting up warnings
|
|
19
|
-
from hanzo_mcp.cli import main
|
|
20
|
-
|
|
21
|
-
if __name__ == "__main__":
|
|
22
|
-
main()
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|