DEPRECATED: Use hanzo-tools instead. Empty compatibility shim that installs hanzo-tools.
Project description
hanzo-tools-core
Core infrastructure for Hanzo MCP tools.
Installation
pip install hanzo-tools-core
Components
BaseTool
Base class for all Hanzo tools.
from hanzo_tools.core import BaseTool
class MyTool(BaseTool):
name = "my_tool"
@property
def description(self) -> str:
return "My custom tool"
async def call(self, ctx, **params) -> str:
return "result"
ToolRegistry
Manage tool registration and discovery.
from hanzo_tools.core import ToolRegistry
ToolRegistry.register_tools(mcp_server, [MyTool()])
PermissionManager
Access control for file and command operations.
from hanzo_tools.core import PermissionManager
pm = PermissionManager(allowed_paths=["/home/user/project"])
if pm.can_access("/home/user/project/file.py"):
# proceed
Decorators
from hanzo_tools.core import auto_timeout
@auto_timeout("my_tool")
async def my_function():
# Auto-backgrounds after timeout
pass
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hanzo_tools_core-0.3.1.tar.gz.
File metadata
- Download URL: hanzo_tools_core-0.3.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
817f510bf25306bdd0c1e8c6f3facd0ee704d68c51e6125227b370d44604988c
|
|
| MD5 |
01373ae051b7db9e698ad8398623c06f
|
|
| BLAKE2b-256 |
e5d2d54930f77d694aa01db2bcac843b2df4eaea1b1bb7a89e5c7054b3049581
|
File details
Details for the file hanzo_tools_core-0.3.1-py3-none-any.whl.
File metadata
- Download URL: hanzo_tools_core-0.3.1-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2a5e2ec53546d1f61a35d4bdaa2e87c0ec9243c40491b0491f3a4030bd76487
|
|
| MD5 |
7deda9ce0c2bc13b67939083594c0b02
|
|
| BLAKE2b-256 |
b37756f23fa0558c6ebf843732b21041eded4652635fba8d5776a82aa64890f5
|