Ui Mcp

io.github.Forge-Space由 GitHub 账号 Forge-Space 发布v0.25.0更新于 Oct 24, 2026

Forge Space MCP server for UI and backend generation via stdio transport.

已验证STDIO仅桌面开发者工具媒体与设计

概览

AI 生成的概览

本地 MCP 服务器,可生成 React、Vue、Angular、Svelte 和 HTML 的界面组件、页面、原型与后端代码,并提供 Figma 与设计分析工具。

可以做什么
  • 搭建完整前端项目,并基于模板包生成多页应用
  • 生成 UI 组件、表单、页面模板和可交互原型,并按自然语言反馈改进组件
  • 生成 API 路由、后端功能模块和完整后端项目
  • 读取 Figma 文件与设计令牌、将设计令牌写回 Figma,并分析设计参考与组件库
  • 按 WCAG 2.1 做无障碍审计、分析设计图片、管理训练数据并提交反馈
适用场景
适合让助手快速搭建或扩展 Web 项目:按指定框架产出脚手架、组件、表单、页面或后端骨架,或把 Figma 设计和截图转成代码。
运行要求
以 stdio 在本地运行,通常通过 npx 或全局 npm 安装(需要 Node.js),文档也提供 Docker 方式。仅 Figma 相关工具需要 FIGMA_ACCESS_TOKEN,SENTRY_DSN 为可选的错误上报配置。清单未声明任何认证。
安装前请注意
Figma 工具需要 Figma 访问令牌,且 figma_push_variables 会把设计令牌写回 Figma 文件。工具列表中包含 payments_refund,使用前应确认其实际行为。生成的代码与设计数据来自随附的生成包,可选的 Sentry 上报会把错误数据发送给第三方。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Ui Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Forge Space]

@forgespace/ui-mcp

AI-driven UI and backend code generation via Model Context Protocol. 22 tools, 5 frameworks, brand-aware, npm-published, and MCP Registry-ready.

[npm version] [CI] [Coverage] [License: MIT] [TypeScript] [MCP] [Node.js]

Part of the Forge Space ecosystem.

[Siza Capabilities]

Architecture

@forgespace/ui-mcp is a thin protocol adapter. All AI/generation logic lives in @forgespace/siza-gen:

@forgespace/ui-mcp (~355 KB)       @forgespace/siza-gen (~1.8 MB)├── src/index.ts (MCP server)      ├── ml/        (embeddings, quality, training)├── tools/     (22 tool defs)      ├── generators/ (react, vue, angular, svelte, html)├── services/  (figma, analysis)   ├── registry/   (502 snippets, compositions, packs)├── resources/ (MCP resources)     ├── feedback/   (self-learning, pattern promotion)└── lib/       (browser, image)    └── quality/    (anti-generic rules, diversity)

Quick Start

bash
# NPX (instant)npx -y @forgespace/ui-mcp@latest
# Global installnpm install -g @forgespace/ui-mcp && forgespace-ui-mcp
# Dockerdocker build -t forgespace-ui-mcp . && docker run --rm -i forgespace-ui-mcp

IDE Integration

Add to your MCP configuration (Claude Code, Windsurf, Cursor, VS Code):

json
{  "mcpServers": {    "forgespace-ui-mcp": {      "command": "npx",      "args": ["-y", "@forgespace/ui-mcp@latest"],      "env": {        "FIGMA_ACCESS_TOKEN": "your_token_here"      }    }  }}

Tools

ToolCategoryDescription
scaffold_full_applicationCodeFull project boilerplate (React/Next.js/Vue/Angular/HTML + Tailwind)
generate_ui_componentCodeUI components with style audit, supports shadcn/ui, Radix, Headless UI, Material, PrimeVue
generate_formCodeProduction forms with Zod/Yup validation, multi-step flows, accessible markup
generate_page_templateCodePre-built pages (landing, dashboard, auth, pricing, CRUD)
generate_prototypeDesignInteractive HTML prototypes with navigation
generate_design_imageDesignSVG/PNG mockups of UI screens
image_to_componentCodeScreenshot/wireframe to framework-specific component
refine_componentCodeImprove components via natural language feedback
generate_api_routeBackendAPI routes with validation, auth, and error handling
generate_backend_moduleBackendFull feature modules with routes, services, middleware
scaffold_backendBackendComplete backend projects with auth, DB, monitoring
generate_from_template_packCodeMulti-page apps from curated packs (SaaS, Landing, AI Chat)
figma_context_parserContextRead Figma files, extract tokens, map to Tailwind
figma_push_variablesDesignWrite design tokens back to Figma
fetch_design_inspirationContextExtract visual metadata from URLs
analyze_design_referencesContextAnalyze design references, detect patterns
analyze_design_imageMLAnalyze design images for training data
analyze_component_libraryContextAnalyze component library patterns
audit_accessibilityQualityWCAG 2.1 audit with fix suggestions
submit_feedbackQualitySubmit feedback to improve future output
payments_refundBackendRequest payment refund with Zod-validated params (payment_id, amount, reason, currency)
manage_trainingMLTraining data ingestion and fine-tuning

Framework & Library Support

LibraryReactVueAngularSvelteHTML
shadcn/uishadcn/uishadcn-vueTailwindbits-uiTailwind
Radix@radix-ui/react@radix-ui/vueTailwind@radix-ui/svelteTailwind
Headless UI@headlessui/react@headlessui/vueTailwind@headlessui/svelteTailwind
Material@mui/materialVuetify@angular/material@smui/materialTailwind
PrimeVueHeadless UIprimevueprimengTailwindTailwind
noneTailwind CSSTailwind CSSTailwind CSSTailwind CSSTailwind CSS

Brand Identity Integration

All generation tools accept an optional brand_identity parameter — a JSON string from branding-mcp's generate_brand_identity tool. When provided, brand colors, typography, and spacing are injected into the design context.

Environment Variables

VariableRequiredDescription
FIGMA_ACCESS_TOKENOnly for Figma toolsToken from Figma Settings
SENTRY_DSNOptionalSentry DSN for error reporting (uncaught exceptions and unhandled rejections)

Distribution

  • npm — published as @forgespace/ui-mcp
  • MCP Registry metadata — repository includes server.json and mcpName metadata for registry submission
  • Tag release automation — pushing v* runs npm publish with provenance, then publishes the same version to the MCP Registry via GitHub OIDC
  • Weekly registry ops — .github/workflows/mcp-registry-status.yml refreshes one issue with npm and MCP Registry drift, visibility, and next actions
  • GitHub — source, issues, releases, and Discussions live under Forge Space

Development

bash
npm install && npm run buildnpm test                  # 437 tests, 35 suitesnpm run validate          # lint + format + typecheck + test

Community

GitHub Workflow

This repository follows the shared Forge Space GitHub work-management baseline:

  • Discussions for ideas, RFCs, Q&A, and announcements
  • Issues for actionable delivery work
  • Projects for roadmap visibility and cross-repo reporting

See Forge-Space/.github GOVERNANCE.md for the org-wide contract.

Scheduled monitoring runs that execute CodeQL require job-scoped security-events: write permission for SARIF upload.

The scheduled Security Monitoring workflow intentionally skips Codecov upload and relies on local coverage summary generation to reduce false alerting from third-party action download instability.

License

MIT

来源:README.md,提交 135a273

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.25.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分