refactor(mcp): rename hanzo-tools-platform to hanzo-tools-paas

Clearer name — "paas" immediately conveys what the tool does.
MCP tool name changes from "platform" to "paas".
This commit is contained in:
2026-02-24 22:04:47 -08:00
parent 0f3ad2483c
commit d43abebbe8
9 changed files with 26 additions and 26 deletions
@@ -58,7 +58,7 @@ PACKAGE_TOOL_PREFIXES: dict[str, list[str]] = {
"api": ["api"],
"auth": ["auth"],
"kms": ["kms"],
"platform": ["platform"],
"paas": ["paas"],
}
+1 -1
View File
@@ -42,7 +42,7 @@ dependencies = [
"hanzo-tools-api>=0.3.1",
"hanzo-tools-auth>=0.1.0",
"hanzo-tools-kms>=0.1.0",
"hanzo-tools-platform>=0.1.0",
"hanzo-tools-paas>=0.1.0",
"hanzo-persona>=1.0.0",
"uvloop>=0.22.1",
]
+3
View File
@@ -0,0 +1,3 @@
# hanzo-tools-paas
Hanzo PaaS MCP tool — deployments, environments, logs, IAM, and cloud services.
@@ -0,0 +1,7 @@
"""Hanzo PaaS Tools — deployments, IAM, and cloud services via MCP."""
from .paas_tool import PaaSTool
TOOLS = [PaaSTool]
__all__ = ["PaaSTool", "TOOLS"]
@@ -1,4 +1,4 @@
"""MCP tool for Hanzo platform services — PaaS, IAM, and cloud.
"""MCP tool for Hanzo PaaS — deployments, IAM, and cloud services.
Combines PaaS deployments, IAM user/org management, and cloud services
into a single MCP tool to avoid tool proliferation.
@@ -21,7 +21,7 @@ from hanzo_tools.core.base import BaseTool
logger = logging.getLogger(__name__)
DESCRIPTION = """Hanzo platform management — PaaS deployments, IAM, and cloud services.
DESCRIPTION = """Hanzo PaaS — deployments, IAM, and cloud services.
Requires authentication via `hanzo login` (stored at ~/.hanzo/auth/token.json).
@@ -51,12 +51,12 @@ def _get_session():
@final
class PlatformTool(BaseTool):
"""MCP tool for Hanzo platform operations."""
class PaaSTool(BaseTool):
"""MCP tool for Hanzo PaaS operations."""
@property
def name(self) -> str:
return "platform"
return "paas"
@property
def description(self) -> str:
@@ -110,8 +110,8 @@ class PlatformTool(BaseTool):
except RuntimeError as e:
return json.dumps({"error": str(e)})
except Exception as e:
logger.exception(f"Platform tool error: {e}")
return json.dumps({"error": f"Platform error: {e}"})
logger.exception(f"PaaS tool error: {e}")
return json.dumps({"error": f"PaaS error: {e}"})
# -- IAM actions ---------------------------------------------------------
@@ -267,14 +267,14 @@ class PlatformTool(BaseTool):
# -- Registration --------------------------------------------------------
def register(self, mcp_server: FastMCP) -> None:
"""Register platform tool with explicit parameters."""
"""Register PaaS tool with explicit parameters."""
tool_instance = self
@mcp_server.tool(
name="platform",
name="paas",
description=DESCRIPTION,
)
async def platform(
async def paas(
action: Annotated[
str,
Field(
@@ -1,12 +1,12 @@
[project]
name = "hanzo-tools-platform"
name = "hanzo-tools-paas"
version = "0.1.0"
description = "Hanzo platform MCP tool — PaaS deployments, IAM users/orgs, and cloud services"
description = "Hanzo PaaS MCP tool — deployments, environments, logs, IAM, and cloud services"
readme = "README.md"
requires-python = ">=3.12"
license = { text = "MIT" }
authors = [{ name = "Hanzo AI", email = "[email protected]" }]
keywords = ["hanzo", "mcp", "paas", "iam", "platform", "tools"]
keywords = ["hanzo", "mcp", "paas", "iam", "deploy", "tools"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
@@ -23,7 +23,7 @@ dependencies = [
]
[project.entry-points."hanzo.tools"]
platform = "hanzo_tools.platform:TOOLS"
paas = "hanzo_tools.paas:TOOLS"
[build-system]
requires = ["hatchling"]
-3
View File
@@ -1,3 +0,0 @@
# hanzo-tools-platform
Hanzo platform MCP tool — PaaS deployments, IAM, and cloud services.
@@ -1,7 +0,0 @@
"""Hanzo Platform Tools — PaaS, IAM, and cloud services via MCP."""
from .platform_tool import PlatformTool
TOOLS = [PlatformTool]
__all__ = ["PlatformTool", "TOOLS"]