mirror of
https://github.com/coleam00/Archon.git
synced 2025-12-24 02:39:17 -05:00
Based on latest PR #306 review feedback: Fixed Issues: - Replaced last remaining basic error handling with MCPErrorFormatter in version_tools.py get_version function - Added proper error handling for invalid env vars in get_max_polling_attempts - Improved type hints with TaskUpdateFields TypedDict for better validation - All tools now consistently use get_default_timeout() (verified with grep) Test Improvements: - Added comprehensive tests for MCPErrorFormatter utility (10 tests) - Added tests for timeout_config utility (13 tests) - All 43 MCP tests passing with new utilities - Tests verify structured error format and timeout configuration Type Safety: - Created TaskUpdateFields TypedDict to specify exact allowed fields - Documents valid statuses and assignees in type comments - Improves IDE support and catches type errors at development time This completes all priority actions from the review: ✅ Fixed inconsistent timeout usage (was already done) ✅ Fixed error handling inconsistency ✅ Improved type hints for update_fields ✅ Added tests for utility modules
1 line
43 B
Python
1 line
43 B
Python
"""Tests for MCP server utility modules.""" |