logoAnt Design

⌘ K
  • 设计
  • 研发
  • 组件
  • 博客
  • 资源
  • 国内镜像
6.3.3
  • Ant Design of React
  • 更新日志
    v6.3.3
  • 如何使用
    • 快速上手
    • 在 Vite 中使用
    • 在 Next.js 中使用
      更新
    • 在 Umi 中使用
    • 在 Rsbuild 中使用
    • 在 Farm 中使用
    • 使用 Refine
  • AI
    • LLMs.txt
      新增
    • MCP Server
      新增
  • 进阶使用
    • 定制主题
    • 样式兼容
    • 服务端渲染
    • 使用自定义日期库
    • 国际化
    • 通用属性
  • 迁移
    • 从 v5 到 v6
  • 其他
    • 社区精选组件
    • 贡献指南
    • 赞助
    • FAQ
什么是 MCP?
社区 MCP Server
在 AI 工具中的使用
备选方案:使用 LLMs.txt
了解更多

MCP Server

文档贡献者
    LLMs.txt定制主题

    相关资源

    Ant Design X
    Ant Design Charts
    Ant Design Pro
    Pro Components
    Ant Design Mobile
    Ant Design Mini
    Ant Design Web3
    Ant Design Landing-首页模板集
    Scaffolds-脚手架市场
    Umi-React 应用开发框架
    dumi-组件/文档研发工具
    qiankun-微前端框架
    Ant Motion-设计动效
    国内镜像站点 🇨🇳

    社区

    Awesome Ant Design
    Medium
    X
    yuque logoAnt Design 语雀专栏
    Ant Design 知乎专栏
    体验科技专栏
    seeconf logoSEE Conf-蚂蚁体验科技大会
    加入我们

    帮助

    GitHub
    更新日志
    常见问题
    报告 Bug
    议题
    讨论区
    StackOverflow
    SegmentFault

    Ant XTech logo更多产品

    yuque logo语雀-构建你的数字花园
    AntV logoAntV-数据可视化解决方案
    Egg logoEgg-企业级 Node.js 框架
    Kitchen logoKitchen-Sketch 工具集
    Galacean logoGalacean-互动图形解决方案
    WeaveFox logoWeaveFox-前端智能研发
    xtech logo蚂蚁体验科技
    主题编辑器
    Made with ❤ by
    蚂蚁集团和 Ant Design 开源社区

    本指南介绍如何通过 Model Context Protocol (MCP) 在 AI 工具中使用 Ant Design。

    什么是 MCP?

    Model Context Protocol (MCP) 是一个开放协议,使 AI 模型能够与外部工具和数据源进行交互。通过 MCP,AI 助手可以访问实时文档、代码示例和 API 参考资料。

    社区 MCP Server

    Ant Design 推荐使用社区维护的 MCP server:@jzone-mcp/antd-components-mcp

    该 MCP server 提供以下功能:

    • list-components - 列出所有可用的 Ant Design 组件
    • get-component-docs - 获取指定组件的详细文档
    • list-component-examples - 获取组件的代码示例
    • get-component-changelog - 获取组件的更新日志

    在 AI 工具中的使用

    工具说明提示词
    Cursor添加到 .cursor/mcp.json 或设置 → 功能 → MCP。文档添加 Ant Design MCP 服务器。配置: { "mcpServers": { "antd-components": { "command": "npx", "args": ["-y", "@jzone-mcp/antd-components-mcp"] } } }
    Windsurf添加到 ~/.codeium/windsurf/mcp_config.json。文档添加 Ant Design MCP 服务器。配置: { "mcpServers": { "antd-components": { "command": "npx", "args": ["-y", "@jzone-mcp/antd-components-mcp"] } } }
    Claude Code添加到 Claude 设置的 mcpServers。文档添加 Ant Design MCP 服务器。配置: { "mcpServers": { "antd-components": { "command": "npx", "args": ["-y", "@jzone-mcp/antd-components-mcp"] } } }
    Codex添加到 .codex/mcp.json。文档添加 Ant Design MCP 服务器。配置: { "mcpServers": { "antd-components": { "command": "npx", "args": ["-y", "@jzone-mcp/antd-components-mcp"] } } }
    Gemini CLI添加到 MCP 配置。文档添加 Ant Design MCP 服务器。配置: { "mcpServers": { "antd-components": { "command": "npx", "args": ["-y", "@jzone-mcp/antd-components-mcp"] } } }
    Trae添加到 MCP 设置。文档添加 Ant Design MCP 服务器。配置: { "mcpServers": { "antd-components": { "command": "npx", "args": ["-y", "@jzone-mcp/antd-components-mcp"] } } }
    Qoder添加到 MCP 配置。文档添加 Ant Design MCP 服务器。配置: { "mcpServers": { "antd-components": { "command": "npx", "args": ["-y", "@jzone-mcp/antd-components-mcp"] } } }
    Neovate Code在设置中配置 MCP 或使用提示词描述任务。文档添加 Ant Design MCP 服务器。配置: { "mcpServers": { "antd-components": { "command": "npx", "args": ["-y", "@jzone-mcp/antd-components-mcp"] } } }

    备选方案:使用 LLMs.txt

    如果您的 AI 工具不支持 MCP,可以使用我们的 LLMs.txt 支持。我们提供:

    • llms.txt - 所有组件的结构化概览
    • llms-full.txt - 包含示例的完整文档

    了解更多

    • Model Context Protocol 文档
    • Ant Design LLMs.txt 指南
    • @jzone-mcp/antd-components-mcp npm 地址