Add simple web UI for browsing the registry (#757)
## Summary Adds a clean, minimal web interface at `/` for browsing MCP servers in the registry. Built as a single self-contained HTML file embedded in the Go binary. ## Features - Responsive grid layout (1/2/3 columns based on screen size) - Search servers by name - Filter to show only latest versions (default on) - "Recently Updated" section for servers updated in the last hour - Expandable cards with full server metadata and JSON viewer - Debug modal to switch between production/staging/local/custom API endpoints - Full URL parameter support and browser history navigation ## Implementation - Single HTML file (~400 lines) with Tailwind CSS via CDN - Zero build dependencies - Embedded using `//go:embed` - Served directly from router at root path - Uses stable v0.1 API endpoints Fixes #99 --- AI disclosure: this is 99% vibed with Claude. It's intended as a v0 to get something up and working, and then maybe at a later date we can replace it with something more real.
This commit is contained in:
parent
ba5648cc3e
commit
8cf317af68
1 changed files with 540 additions and 3 deletions
13
internal/api/handlers/v0/ui.go
Normal file
13
internal/api/handlers/v0/ui.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package v0
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
)
|
||||
|
||||
//go:embed ui_index.html
|
||||
var embedUI string
|
||||
|
||||
// GetUIHTML returns the embedded HTML for the UI
|
||||
func GetUIHTML() string {
|
||||
return embedUI
|
||||
}
|
||||
Loading…
Reference in a new issue