@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 +55 -59
- package/dist/index.js +118 -0
- package/dist/index.js.map +171 -0
- package/package.json +63 -77
- package/dist/cli.js +0 -48
- package/dist/cli.js.map +0 -141
- package/dist/stdio.js +0 -47
- package/dist/stdio.js.map +0 -141
- package/dist/streamable-http.js +0 -331
- package/dist/streamable-http.js.map +0 -273
package/README.md
CHANGED
|
@@ -1,59 +1,55 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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 版本,后续将继续更新
|