Hotfix: Python -m Execution Support for CI/CD
This hotfix resolves GitHub Actions failures introduced in v8.56.0 server refactoring.
Fixed
- CI/CD: Added
server/__main__.pyto fixpython -mexecution- Resolves GitHub Actions failures in Docker and uvx tests
- Regression from v8.56.0 server refactoring (server.py → server/ package)
- Implements --version and --help flag handling
- Properly exits after flag processing (no server startup hang)
Root Cause
The v8.56.0 refactoring changed server.py to server/ package structure but forgot to add __main__.py. This broke python -m mcp_memory_service.server used in:
- GitHub Actions workflows (publish-and-test.yml)
- Docker container tests
- uvx compatibility tests
Changes
- NEW:
src/mcp_memory_service/server/__main__.py- Handles --version and --help flags
- Calls main() from server_impl.py
- Dynamic version import from _version.py
Verification
All GitHub Actions workflows should now pass after this release.
Full Changelog: v8.57.0...v8.57.1