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

[BUG]: Admin UI JS bundle not being packaged in the PyPI release

Open gcgoncalves opened this issue 5 months ago • 4 comments

🐞 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

  1. Run the uvx one-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
  1. Access the Admin UI
  2. Login
  3. 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 avatar Jun 12 '26 09:06 gcgoncalves

@gcgoncalves - Is there a workaround for new pypi install until this fix is released? The UI is unusable with missing static JS

zoomingrocket avatar Jun 16 '26 23:06 zoomingrocket

@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 avatar Jun 17 '26 12:06 gcgoncalves

@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 avatar Jun 17 '26 13:06 zoomingrocket

@zoomingrocket We're aiming for early next week, but there might be a deploy sooner. I'll ping you when that happens.

gcgoncalves avatar Jun 17 '26 13:06 gcgoncalves