mcp-context-forge icon indicating copy to clipboard operation
mcp-context-forge copied to clipboard

fix: Bundle UI files on PyPI build

Open gcgoncalves opened this issue 5 months ago • 0 comments

🐛 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

  1. Run the uvx package
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
  1. Access the Admin UI
  2. Login
  3. 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

gcgoncalves avatar Jun 12 '26 10:06 gcgoncalves