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
Metadata
Release files for hanzo-tools-core 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hanzo_tools_core-0.3.1.tar.gz | 4.2 kB | Without provenance | Details for hanzo_tools_core-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hanzo_tools_core-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for hanzo_tools_core-0.3.1-py3-none-any.whl |
Total release size: 6.0 kB
Release files / hanzo_tools_core-0.3.1.tar.gz
| Download URL | hanzo_tools_core-0.3.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
817f510bf25306bdd0c1e8c6f3facd0ee704d68c51e6125227b370d44604988c
|
|
BLAKE2b-256 checksum How to use checksums |
e5d2d54930f77d694aa01db2bcac843b2df4eaea1b1bb7a89e5c7054b3049581
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / hanzo_tools_core-0.3.1-py3-none-any.whl
| Download URL | hanzo_tools_core-0.3.1-py3-none-any.whl |
|---|---|
| Size | 1.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2a5e2ec53546d1f61a35d4bdaa2e87c0ec9243c40491b0491f3a4030bd76487
|
|
BLAKE2b-256 checksum How to use checksums |
b37756f23fa0558c6ebf843732b21041eded4652635fba8d5776a82aa64890f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for hanzo-tools-core 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.