Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Self-hosted gallery for AI-generated mockups. MCP interface; token-efficient curl uploads.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
https://{host}/mcp地址中有只有你知道的 {…} 部分(例如你的账户),请复制后自行填写。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"mockups-gallery": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/kgnatx/mockups-mpc:1.5.1"
]
}
}
}在终端中运行这条命令
claude mcp add --transport http mockups-gallery 'https://{host}/mcp'claude mcp add mockups-gallery -- docker run -i --rm ghcr.io/kgnatx/mockups-mpc:1.5.1地址中有只有你知道的 {…} 部分(例如你的账户),请复制后自行填写。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"mockups-gallery": {
"url": "https://{host}/mcp"
}
}
}粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"mockups-gallery": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/kgnatx/mockups-mpc:1.5.1"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
地址中有只有你知道的 {…} 部分(例如你的账户),请复制后自行填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"mockups-gallery": {
"type": "http",
"url": "https://{host}/mcp"
}
}
}粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"mockups-gallery": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/kgnatx/mockups-mpc:1.5.1"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
https://{host}/mcp地址中有只有你知道的 {…} 部分(例如你的账户),请复制后自行填写。
菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 kgNatx 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
这个地址需要填入你自己的账户信息,所以我们无法替你检查
这个地址需要填入你自己的账户信息,所以我们无法替你检查
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
两种方式都可以:安装在你的电脑上,或者连接云端版本。
GitHub 仓库最后更新于–,最新版本(1.5.1)于44天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:Spec Driven Development, Remote Desktop Commander, alalanet — check before you pay
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Check packages, MCP servers and x402 endpoints before agents install or pay. Signed.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A self-hosted gallery for AI-generated mockups — with an MCP interface. Instead of cluttering your repo, mockups get a permanent home and a clean web gallery you can browse. AI tools upload them over a direct curl call; MCP handles only the lightweight coordination — listing, metadata, tagging, and retrieval.
Token-efficient by design. MCP tool parameters flow through the model context, so sending a large HTML file via a tool call wastes tokens. Mockups MPC provides an HTTP upload endpoint (POST /api/upload) — the AI writes the file locally and curls it to the server, keeping file content entirely out of the model context. MCP tools handle lightweight operations only: listing, metadata, tagging, and deletion.
Every time an AI tool generates a mockup, there's no consistent place for it to go — so they pile up in your repo or get scattered across temp dirs, sessions lose track of them, and there's no history. Mockups MPC gives them a permanent home instead: the AI pushes the mockup to the gallery, you browse it there, and the local file gets cleaned up. One place for everything, nothing cluttering your project.
┌─────────────────┐ MCP (HTTP/SSE) ┌──────────────────────┐
│ Claude Code / │ ◄───────────────────── │ │ │ Claude Desktop │ send/list/get/update │ Mockups MPC │ │ Any MCP Client │ delete/tag │ (FastAPI) │ └─────────────────┘ │ │ │ ┌────────────────┐ │ Browser │ │ MCP Server │ │ ┌──────────┐ GET / │ │ (fastmcp) │ │ │ Gallery │ ◄──────────────────────── │ └────────────────┘ │ │ Viewer │ │ ┌────────────────┐ │ └──────────┘ │ │ JSON API │ │ │ │ /api/* │ │ │ └────────────────┘ │ │ ┌────────────────┐ │ │ │ SQLite (WAL) │ │ │ │ + Filesystem │ │ │ └────────────────┘ │ └──────────────────────┘
Single Docker container running a FastAPI app that serves two roles:
/mcp/ (HTTP transport) and /mcp/sse (SSE transport). AI tools connect here to send and manage mockups./. Sidebar with project list and chronological feed, main viewer with iframe/image display.data/{project_slug}/{uuid}.{ext}data/ directory next to the compose fileThere is no built-in authentication. All API endpoints and MCP tools are open to anyone who can reach the server. This is designed for trusted networks (LAN, VPN, Tailscale) or behind a reverse proxy that handles auth. If you deploy this on a public network, add authentication at the proxy layer.
A mockup ("design") can hold more than one version — every revision of the same screen, kept in one place instead of scattering separate mockups.
-F parent= (a design or alias id). It's added as the next version; earlier versions and their files are kept.parent and the server still checks for a match. If exactly one design in the same project has the same *base title* — the title with trailing markers like v2, draft 3, rev 2, r5, a bare trailing number, or trailing parentheticals such as (rail fixed) stripped — the upload becomes a new version of it automatically. Variant markers (option B, variant C, a standalone trailing letter) are never stripped, so "Hero — option B" and "Hero — option C" stay separate designs. Zero or several matches also create a new design. Pass -F fold=false to always create a new design regardless of title. An auto-folded upload's response carries folded: true and a note saying how to split it back out if the match was wrong./view/{id}/v/{n} serves that exact version. /view/{id} serves the latest version when {id} is a design id, and the pinned version when {id} is an alias id (see below)./view/…, get_mockup, etc.) resolves it transparently. A version link minted before the fold (/view/{old id}/v/1) keeps working too./view/{design}/v/{n} link returns 404 (the new design reuses the version's alias id when it has one, so that id keeps working). Deleting a version removes it and any alias pinned to it.split_version(id, version) pulls one version back out into its own standalone design, reusing its old alias id if it has one.If you were already uploading revisions as separate mockups before this feature existed, python -m app.fold finds and merges them:
python -m app.fold --dry-run # print the proposed groups, change nothing
python -m app.fold --apply # perform them python -m app.fold --dry-run --data-dir /path/to/copy # run against another data directory
--data-dir points the command at a different data directory (the one holding mockups.db) instead of the configured one — useful for trying the fold on a scratch copy of your data before running it for real.
It groups designs that share a project and a base title, oldest first, and folds each group into one design (the oldest survives; the rest become versions, with their old ids kept as aliases). This never runs automatically — it's a command you run by hand, and only after reviewing the dry-run output, since merging is not reversible in bulk (each design can still be split back out individually with split_version).
| Tool | Description |
|---|---|
send_mockup | Send HTML/SVG (raw string) or PNG/JPG (base64) to the gallery. Supports parent and fold (see Versions). Returns a gallery URL. |
list_mockups | List mockups reverse-chronologically, optionally filtered by project. |
get_mockup | Get a specific mockup by UUID with view and gallery URLs, plus its version list. Curl the view_url to read the file content. |
update_mockup | Update metadata (title, description, tags), or add a new version by supplying content (earlier versions are kept). |
split_version | Split one version out of its design into its own standalone mockup — reverses a fold. |
delete_mockup | Delete a mockup, or (with version) just one version — removes the DB record(s) and file(s) on disk. |
tag_mockup | Add or remove tags on an existing mockup. |
set_created_at | Change the created date of a mockup (or one version). Useful for backdating uploads or reordering the timeline. |
The server stores all content permanently. AI clients can clean up local files when they're no longer needed, or retrieve content later via get_mockup.
| Route | Purpose |
|---|---|
GET / | Gallery UI |
GET /view/{id} | Raw mockup: the latest version for a design id, the pinned version for an alias id (HTML rendered, images served with correct MIME type) |
GET /view/{id}/v/{n} | Raw mockup, one specific version |
GET /api/mockups | JSON listing with limit, offset, project filter |
GET /api/mockups/{id} | Single mockup metadata, including its versions list; ?v={n} points view_url at that version |
POST /api/mockups/{id}/versions/{n}/split | Split that version out into its own standalone mockup |
DELETE /api/mockups/{id}/versions/{n} | Delete one version (refused on the last remaining one) |
GET /api/projects | Project list with counts |
POST /api/upload | Upload a mockup file (multipart form: file, project, title, description?, tags?, parent?, fold?) — see Versions |
GET /health | Health check |
git clone https://github.com/kgNatx/mockups-mpc.git
cd mockups-mpc
Quick start (pre-built image):
docker compose -f docker-compose.local.yml up -d
Build from source:
docker compose -f docker-compose.local.yml up -d --build
Production (with Traefik):
cp .env.example .env
docker compose up -d --build
curl http://localhost:8000/health
claude mcp add-json mockups-gallery '{"type":"http","url":"https://your-domain.com/mcp"}'
Or add to .mcp.json (project-level) or ~/.claude/.mcp.json (global):
{
"mcpServers": { "mockups-gallery": { "type": "http", "url": "https://your-domain.com/mcp" } } }
Add to your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": { "mockups-gallery": { "type": "sse", "url": "https://your-domain.com/mcp/sse" } } }
Add instructions to your CLAUDE.md (or equivalent) so your AI uploads mockups via curl instead of passing file content through the model context:
# Mockups
When generating UI mockups, design concepts, or visual prototypes, write the file locally then upload it to the Mockups MPC gallery via curl:
curl -s -X POST https://your-domain.com/api/upload \ -F file=@/path/to/file.html -F project=name -F title=name \ [-F description=text] [-F "tags=a,b,c"]
To revise a mockup you already uploaded, add -F parent= (the id from the earlier upload response): the gallery keeps it as a new version of the same design. Use -F fold=false only for a deliberate separate variant.
To read a mockup's content later, use get_mockup to get its view_url, then curl it.
Add to ~/.claude/CLAUDE.md for all projects, or a project's CLAUDE.md for specific ones. The in-app Setup Guide carries the same snippet; an existing install gets the updated guide as a new version of its Setup Guide on the first start after upgrading.
The gallery auto-seeds a Setup Guide as the first entry on fresh installs. The guide covers all configuration methods with copy-able code blocks.
Layout: Sidebar (project list + chronological feed with title filter + infinite scroll) + main viewer (iframe for HTML, img for images/SVG) + metadata bar + pop-out link.
Theme: Tech
只显示了开头部分;其余内容请在仓库中阅读