design-os-migration-mcp

design-os-migration-mcp

Bridges Design OS exported component packages into target projects, handling migrations across different CSS, component, and icon libraries.

Category
访问服务器

README

Design OS Migration MCP Server

An MCP server that bridges Design OS exported component packages into target projects with different CSS approaches, component libraries, icon libraries, and file conventions.

Prerequisites

  • Node.js 18+
  • npm
  • Claude Code CLI

Setup

# 1. Clone or download this repo
git clone <repo-url>
cd design-os-migration-mcp

# 2. Install dependencies
npm install

# 3. Build
npm run build

Register with Claude Code

Run from inside the project directory — $PWD resolves automatically.

Production (built server)

npm run mcp:add

Equivalent to:

claude mcp add design-os-migration -- node $PWD/dist/index.js

Development (no build step)

npm run mcp:add:dev

Equivalent to:

claude mcp add design-os-migration-dev -- npx tsx $PWD/src/index.ts

Restart Claude Code after source changes to reload the server.

Remove

npm run mcp:remove      # production
npm run mcp:remove:dev  # dev

Scopes

By default, the server is registered locally (current project only). Pass --scope to share it:

# Share with your team via .mcp.json
claude mcp add --scope project design-os-migration -- node $PWD/dist/index.js

# Available across all your projects
claude mcp add --scope user design-os-migration -- node $PWD/dist/index.js

Manual config (alternative)

Edit ~/.claude/mcp.json directly if you prefer not to use the CLI:

{
  "mcpServers": {
    "design-os-migration": {
      "command": "node",
      "args": ["/absolute/path/to/design-os-migration-mcp/dist/index.js"]
    }
  }
}

Restart Claude Code after editing manually.

Development scripts

Script Description
npm run build Compile TypeScript to dist/
npm run dev Run directly with tsx (no build)
npm start Run the compiled server
npm run mcp:add Register production server with Claude Code
npm run mcp:add:dev Register dev server with Claude Code
npm run mcp:remove Remove production registration
npm run mcp:remove:dev Remove dev registration
npm run mcp:inspect Open MCP Inspector UI against the built server
npm run mcp:inspect:dev Open MCP Inspector UI against the tsx dev server

Testing with the MCP Inspector

The MCP Inspector gives you an interactive UI at http://localhost:6274 to call tools, fill in parameters, and inspect responses — no Claude Code needed.

# Test the built server
npm run mcp:inspect

# Test without building (uses tsx)
npm run mcp:inspect:dev

Once open, you can:

  • Browse all registered tools, prompts, and resources
  • Call any tool with a generated form and see the JSON response
  • Iterate quickly without restarting Claude Code

Tools

Tool Parameters Description
list_sections exportPath List all sections with component counts and available files
read_export_package exportPath Summarize the full export structure (sections, design system, shell, data model, instructions)
read_component exportPath, section, component Read a component's source and parsed metadata (imports, Tailwind classes, icons, props, callbacks)
read_export_file exportPath, path Read any file from the export by relative path
analyze_target_project targetPath Detect framework, CSS approach, component library, icon library, TypeScript usage, and file conventions
read_target_docs targetPath, path? List all doc files, or read a specific one
get_migration_context exportPath, targetPath, section? Build a full source→target mapping (colors, icons, CSS, components, imports, file structure, naming)

Prompts

Prompt Parameters Description
migrate-component exportPath, targetPath, section, component Ready-to-execute migration instructions for a single component
migrate-section exportPath, targetPath, section Migration instructions for an entire section (types → components → barrel → tests)
migrate-design-system exportPath, targetPath Token and theme translation from Design OS to the target styling system
full-migration exportPath, targetPath Complete multi-phase migration plan covering design system, data model, shell, and all sections

Resources

URI Description
designos://export/overview?exportPath=… Product overview markdown
designos://export/design-system?exportPath=… Design tokens, color reference, and typography
designos://export/data-model?exportPath=… Data model README and TypeScript types
designos://export/section/{sectionId}?exportPath=… Section overview, types, and component list
designos://export/instructions/one-shot?exportPath=… One-shot implementation guide
designos://export/instructions/{milestone}?exportPath=… Incremental milestone instructions
designos://export/component-patterns Design OS component pattern reference (import patterns, Tailwind conventions, callbacks)

Usage example

# 1. See what's in the export
list_sections exportPath=~/ravn/my-product/product-plan

# 2. Understand the target project
analyze_target_project targetPath=~/ravn/my-target-app

# 3. Get the full migration mapping
get_migration_context exportPath=~/ravn/my-product/product-plan targetPath=~/ravn/my-target-app

# 4. Generate migration instructions for a section
migrate-section exportPath=~/ravn/my-product/product-plan targetPath=~/ravn/my-target-app section=sessions

# 5. Or target a single component
migrate-component exportPath=~/ravn/my-product/product-plan targetPath=~/ravn/my-target-app section=sessions component=SessionList.tsx

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选