Skip to content

Commit 8cf317a

Browse files
authored
Add simple web UI for browsing the registry (modelcontextprotocol#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 modelcontextprotocol#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.
1 parent ba5648c commit 8cf317a

3 files changed

Lines changed: 540 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)