Skip to main content

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

hanzo_tools_core-0.3.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hanzo_tools_core-0.3.1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

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

Hashes for hanzo_tools_core-0.3.1.tar.gz
Algorithm Hash digest
SHA256 817f510bf25306bdd0c1e8c6f3facd0ee704d68c51e6125227b370d44604988c
MD5 01373ae051b7db9e698ad8398623c06f
BLAKE2b-256 e5d2d54930f77d694aa01db2bcac843b2df4eaea1b1bb7a89e5c7054b3049581

See more details on using hashes here.

File details

Details for the file hanzo_tools_core-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hanzo_tools_core-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2a5e2ec53546d1f61a35d4bdaa2e87c0ec9243c40491b0491f3a4030bd76487
MD5 7deda9ce0c2bc13b67939083594c0b02
BLAKE2b-256 b37756f23fa0558c6ebf843732b21041eded4652635fba8d5776a82aa64890f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page