@f2c/mcp 0.4.9 → 1.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,59 +1,55 @@
1
- # F2C MCP Server
2
- ![MCP Server](https://badge.mcpx.dev?type=server 'MCP Server')
3
- [![smithery badge](https://smithery.ai/badge/@f2c-ai/f2c-mcp)](https://smithery.ai/server/@f2c-ai/f2c-mcp)
4
- [![npm version][npm-version-src]][npm-version-href]
5
- [![npm downloads][npm-downloads-src]][npm-downloads-href]
6
- [![github][github-src]][github-href]
7
- [![node][node-src]][node-href]
8
-
9
-
10
- [npm-version-src]: https://img.shields.io/npm/v/@f2c/mcp?style=flat&colorA=18181B&colorB=F0DB4F
11
- [npm-version-href]: https://npmjs.com/package/@f2c/mcp
12
- [npm-downloads-src]: https://img.shields.io/npm/dm/@f2c/mcp?style=flat&colorA=18181B&colorB=F0DB4F
13
- [npm-downloads-href]: https://npmjs.com/package/@f2c/mcp
14
- [github-src]: https://img.shields.io/badge/github-@f2c/mcp-blue?style=flat&colorA=18181B&colorB=F0DB4F
15
- [github-href]: https://github.com/f2c-ai/f2c-mcp
16
- [node-src]: https://img.shields.io/node/v/@f2c/mcp?style=flat&colorA=18181B&colorB=F0DB4F
17
- [node-href]: https://nodejs.org/en/about/previous-releases
18
-
19
- English | [简体中文](./README-zh-CN.md)
20
-
21
- A Model Context Protocol server for Figma Design to Code using [F2C](https://f2c.yy.com/).
22
-
23
- <a href="https://glama.ai/mcp/servers/@f2c-ai/f2c-mcp">
24
- <img width="380" height="200" src="https://glama.ai/mcp/servers/@f2c-ai/f2c-mcp/badge" alt="f2c-mcp-server MCP server" />
25
- </a>
26
-
27
- ## Features
28
- <img alt="f2c" src="https://raw.githubusercontent.com/f2c-ai/f2c-mcp/main/docs/bannerv3.png" />
29
-
30
- - 🎨 Pixel-Perfect HTML/CSS:F2C converts Figma designs to pixel-perfect HTML/CSS with precision.
31
- - ⚛️ Multi-Framework Support:F2C generates React, CSS Modules, and Tailwind CSS code for fast development.
32
- - 🧠 Figma Design Context:F2C integrates design context, ensuring compatibility with AI tools like Cursor.
33
- - 🔗 Figma File URL Parsing:F2C converts design nodes via Figma URLs, streamlining workflows.
34
- - 🖼️ Remote Image Localization:F2C automates downloading Figma images to local assets for efficiency.
35
-
36
- ## How it works
37
- 1. [Configure the Server](docs/en/GettingStarted.md) in an MCP-supported IDE (e.g., Cursor, Trae).
38
- > recommended to use [Comate AI IDE](https://comate.baidu.com/zh/download/ai-ide)
39
- 2. Open your chat in IDE (e.g. agent mode in Cursor).
40
- 3. Paste a link to a Figma Node (Right-click any node in the Figma Layer panel to copy it).
41
- 4. Enter your requirements in the chat, such as fetching node data, downloading images, converting to code, etc.
42
-
43
- ## Configuration and Development
44
-
45
- See [Configuration and Development](docs/en/GettingStarted.md)
46
-
47
- ## Data Privacy Notice
48
- The logging tools integrated in this project are used solely for basic usage statistics and error log reporting. No sensitive information or user data is collected. All reported data is used exclusively to improve product quality and user experience.
49
-
50
- ## FAQ
51
- See [FAQ](docs/en/FAQ.md)
52
-
53
- ## Credits
54
-
55
- Thanks to:
56
-
57
- + [Framelink Figma MCP Server](https://github.com/GLips/Figma-Context-MCP) Give Cursor and other AI-powered coding tools access to your Figma files with this Model Context Protocol server.
58
- + [Cursor Talk to Figma MCP](https://github.com/sonnylazuardi/cursor-talk-to-figma-mcp) Allowing Cursor to communicate with Figma for reading designs and modifying them programmatically.
59
- + [Figma MCP Server](https://github.com/MatthewDailey/figma-mcp) This server provides tools for viewing, commenting, and analyzing Figma designs directly through the ModelContextProtocol.
1
+ # @f2c/mcp(alpha)
2
+
3
+ ## 版本说明
4
+ - 当前版本:`1.0.0-alpha.2`
5
+ - 该版本为早期预览,接口与参数可能迭代更新;后续会根据使用反馈持续完善
6
+
7
+
8
+ ## STDIO 模式运行
9
+ ```bash
10
+ npx -y @f2c/mcp@1.0.0-alpha.2 --mcpServer=http://localhost:3000 --accessToken=唯一令牌
11
+ ```
12
+ + `mcpServer` 为 MCP 服务器地址,默认值为 `https://f2c-figma-mcp.yy.com`
13
+ + `accessToken` 为 MCP 客户端令牌,默认值为空字符串
14
+
15
+ ## IDE 配置示例(STDIO)
16
+ ### macOS / Linux
17
+ ```json
18
+ {
19
+ "mcpServers": {
20
+ "f2c-mcp": {
21
+ "type": "stdio",
22
+ "command": "npx",
23
+ "args": [
24
+ "-y",
25
+ "@f2c/mcp@1.0.0-alpha.2",
26
+ "--mcpServer=https://f2c-figma-mcp.yy.com",
27
+ "--accessToken=xxx-xxx-xxx-xxx"
28
+ ]
29
+ }
30
+ }
31
+ }
32
+ ```
33
+
34
+ ### Windows
35
+ ```json
36
+ {
37
+ "mcpServers": {
38
+ "f2c-mcp": {
39
+ "type": "stdio",
40
+ "command": "cmd",
41
+ "args": [
42
+ "/c",
43
+ "npx",
44
+ "-y",
45
+ "@f2c/mcp@1.0.0-alpha.2",
46
+ "--mcpServer=https://f2c-figma-mcp.yy.com",
47
+ "--accessToken=xxx-xxx-xxx-xxx"
48
+ ]
49
+ }
50
+ }
51
+ }
52
+ ```
53
+
54
+ ## 注意事项(alpha)
55
+ - 当前为 alpha 版本,后续将继续更新