diff --git a/mcp-gateway/gateway-proxy/user_dashboard_ui.py b/mcp-gateway/gateway-proxy/user_dashboard_ui.py new file mode 100644 index 0000000..d7df457 --- /dev/null +++ b/mcp-gateway/gateway-proxy/user_dashboard_ui.py @@ -0,0 +1,402 @@ +""" +Enhanced Dashboard with User Management UI +=========================================== +Provides a comprehensive web interface for managing users and API keys. +Vue 3 compatible. +""" + +from starlette.responses import HTMLResponse + + +USER_DASHBOARD_HTML = """ + + +
+ + +Leave both empty = access to all MCPs. Toggle to explicitly allow or block.
+ +POST /users
+{ "username": "alice", "email": "alice@example.com", "description": "Engineering" }
+ POST /users/{username}/keys
+{ "key_name": "my-key", "ttl_days": 90 }
+=> { "api_key": "mcpgw_..." } ← save immediately, shown once
+ PUT /users/{username}/mcp-access
+{ "allowed_mcps": ["erpnext", "wave"], "blocked_mcps": [] }
+ MCP Server URL: https://mcp.wilddragon.net/mcp +Authorization: Bearer mcpgw_...+