mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
MCPServerConnection only spawned stdio servers, so an endpoint a process already serves - Next 16's /_next/mcp, vite-plugin-mcp's /__mcp/sse - had no client in this repo. MCPServerConfig now takes a url. connect lists the tools and call_tool calls one through the SDK's streamable HTTP or SSE client, a session per request, and returns the same JSON-RPC result the stdio path returns. A loopback URL skips TLS verification, since a local dev certificate is self-signed. A failed connect says why in .error. Claude-Session: https://claude.ai/code/session_01Dc8DXc3fEQCRHUa6XWK4Ku
hanzo-tools-mcp
MCP server management tools for Hanzo AI.
Tools
mcp- Unified MCP server management (list, add, remove, enable, disable, restart)mcp_add- Add new MCP serversmcp_remove- Remove MCP serversmcp_stats- MCP server statistics
Installation
pip install hanzo-tools-mcp
Usage
from hanzo_tools.mcp_tools import TOOLS, register_tools
# Register with MCP server
register_tools(mcp_server)
Part of hanzo-tools
This package is part of the modular hanzo-tools ecosystem.