[BUG]: Admin UI JS bundle not being packaged in the PyPI release
🐞 Bug Summary
The UI bundle is not included in the PyPI package, causing the UI to be unusable when running through UVX.
🧩 Affected Component
Select the area of the project impacted:
- [ ]
mcpgateway- API - [X]
mcpgateway- UI (admin panel) - [ ]
mcpgateway.wrapper- stdio wrapper - [ ] Federation or Transports
- [ ] CLI, Makefiles, or shell scripts
- [ ] Container setup (Docker/Podman/Compose)
- [X] Other: PyPI package
🔁 Steps to Reproduce
- Run the
uvxone-line starter:
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
🤔 Expected Behavior
User should see the home screen and be able to navigate between tabs
📓 Logs / Error Output
GET
http://127.0.0.1:4444/static/bundle-C-XqnmJd.js
NS_ERROR_CORRUPTED_CONTENT
The resource from “http://127.0.0.1:4444/static/bundle-C-XqnmJd.js” was blocked due to MIME type (“application/json”) mismatch (X-Content-Type-Options: nosniff). [admin](http://127.0.0.1:4444/admin/)
🧠 Environment Info
You can retrieve most of this from the /version endpoint.
| Key | Value |
|---|---|
| Version or commit | @latest |
| Runtime | uvx |
| Platform / OS | all |
| Container | none |
🧩 Additional Context (optional)
Add any configuration details, flags, or related issues.
@gcgoncalves - Is there a workaround for new pypi install until this fix is released? The UI is unusable with missing static JS
@zoomingrocket You can fetch the patched commit and package it locally (use the make dist command), and use the local build with uvx.
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 ${WHEEL_FILE_PATH} --host 127.0.0.1 --port 4444
@gcgoncalves - Thanks! I won't be able to compile from source in a corporate setting, so any tentative date for updated PyPI packages to be released?
@zoomingrocket We're aiming for early next week, but there might be a deploy sooner. I'll ping you when that happens.