mcp-context-forge
mcp-context-forge copied to clipboard
fix: Bundle UI files on PyPI build
🐛 Bug-fix PR
Closes: #5199
📌 Summary
Adds a build hook to the PyPI build to bundle the UI and include it in the package.
🔁 Reproduction Steps
- Run the
uvxpackage
BASIC_AUTH_PASSWORD=changeme \
JWT_SECRET_KEY=your-secret-key-at-least-32-characters \
MCPGATEWAY_UI_ENABLED=true \
MCPGATEWAY_ADMIN_API_ENABLED=true \
[email protected] \
PLATFORM_ADMIN_PASSWORD=SecurePass123 \
PLATFORM_ADMIN_FULL_NAME="Admin User" \
uvx --from mcp-contextforge-gateway mcpgateway --host 0.0.0.0 --port 4444
- Access the Admin UI
- Login
- Observe the Admin UI not being interactible
🐞 Root Cause
The UI files were not packaged in the wheel file.
💡 Fix Description
Add a build hook to bundle the UI files and include them in the manifest file.
✅ Checklist
- [X] Code formatted (
make black isort pre-commit) - [X] No secrets/credentials committed