mirror of
https://github.com/hanzoai/mcp.git
synced 2026-10-29 02:55:49 +00:00
- Add docker-publish.yml workflow for ghcr.io - Add production-ready Dockerfile (if missing) - Enable automated builds on push to main - Support for semantic versioning tags
2.0 KiB
2.0 KiB
Release Notes - hanzo-mcp v0.6.13
๐ Successfully Published to PyPI
Package: https://pypi.org/project/hanzo-mcp/0.6.13/
๐ Critical Bug Fix
Context Parameter Issue (FIXED)
- Problem: MCP tools were failing when called externally through the protocol because the Context parameter was being passed as a string (e.g., "{}") instead of a proper MCPContext object
- Solution: Implemented automatic context normalization at the server level using decorators
๐๏ธ Architecture Improvements
Uniform Context Handling
- Created
@with_context_normalizationdecorator that automatically handles various context types - Introduced
EnhancedFastMCPserver that applies context normalization to ALL tools automatically - No more copy-paste code - single point of implementation
- Works transparently for both internal and external calls
Key Files Added
hanzo_mcp/tools/common/decorators.py- Core decorator implementationhanzo_mcp/server_enhanced.py- Enhanced server with automatic normalizationhanzo_mcp/tools/common/enhanced_base.py- Enhanced base classes for tools
๐งน Major Cleanup
Removed Files (30+)
- All test files moved from root to
tests/directory - Removed temporary scripts and backup files
- Cleaned up unified tool implementations that were causing issues
- Removed icon creation utilities and demo files
Project Structure
- Clean separation of concerns
- All tests properly organized in
tests/ - No duplicate or temporary files
- Proper modular architecture
๐ป Installation
pip install --upgrade hanzo-mcp==0.6.13
๐ Migration
No changes required for existing users. The context normalization is applied automatically and transparently.
โ What This Fixes
Tools now properly handle:
- Standard MCPContext objects โ
- String contexts (e.g., "{}") โ
- None contexts โ
- Dictionary contexts โ
This ensures MCP tools work reliably whether called internally by the server or externally through the MCP protocol.