Skip to content

Commit 93d98ca

Browse files
committed
Add simple web UI for browsing the registry
Implements a clean, minimal web interface at the root path (/) for browsing MCP servers. The UI is a single self-contained HTML file embedded in the Go binary with zero build dependencies. Key features: - Responsive grid layout (1/2/3 columns) - Search by server name with URL parameter support - "Show only latest versions" filter (default on) - Recently updated section (servers updated in last hour) - Expandable cards showing full server metadata - Debug modal to switch between prod/staging/local/custom APIs - Full browser history support with URL state Technical implementation: - Single HTML file with inline Tailwind CSS (via CDN) - Embedded using go:embed in the binary - Served directly from router at / - Uses v0.1 API endpoints - ~400 lines total Fixes #99
1 parent 4564cb3 commit 93d98ca

3 files changed

Lines changed: 537 additions & 3 deletions

File tree

‎internal/api/handlers/v0/ui.go‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package v0
2+
3+
import (
4+
_ "embed"
5+
)
6+
7+
//go:embed ui_index.html
8+
var embedUI string
9+
10+
// GetUIHTML returns the embedded HTML for the UI
11+
func GetUIHTML() string {
12+
return embedUI
13+
}

0 commit comments

Comments
 (0)