@tarot-ai/pixel 0.0.1

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 ADDED
@@ -0,0 +1,49 @@
1
+ # @tarot-ai/pixel
2
+
3
+ `@tarot-ai/pixel` 是 Tarot Pixel 的 MCP Runtime,向兼容的 MCP Client
4
+ 提供本地设计稿读取、分析、渲染和资源生成能力。
5
+
6
+ 通常不需要单独启动该包,Tarot Pixel 的 Qoder 插件会固定 Runtime
7
+ 版本并自动建立 stdio MCP 连接。
8
+
9
+ ## 运行要求
10
+
11
+ - Node.js 20.19.0 或更高版本。
12
+ - npm 需要具备读取 `@tarot-ai/pixel` 的权限。
13
+ - 截图和组合图片功能需要本机安装 Chrome、Chromium、Edge 或 Brave。
14
+
15
+ ## 手动启动
16
+
17
+ ```bash
18
+ npx --yes --package=@tarot-ai/pixel@0.0.1 -- qoder-pixel
19
+ ```
20
+
21
+ 该命令启动 stdio MCP Server。标准输出仅用于 MCP 协议消息,运行日志写入标准错误或
22
+ 本地日志文件。
23
+
24
+ MCP Client 可以使用以下配置:
25
+
26
+ ```json
27
+ {
28
+ "mcpServers": {
29
+ "tarot-pixel": {
30
+ "type": "stdio",
31
+ "command": "npx",
32
+ "args": ["--yes", "--package=@tarot-ai/pixel@0.0.1", "--", "qoder-pixel"]
33
+ }
34
+ }
35
+ }
36
+ ```
37
+
38
+ 生产环境应把示例版本替换为经过验证的精确版本,不建议直接使用 `latest`。
39
+
40
+ ## 数据与隐私
41
+
42
+ - Runtime 默认在当前用户的本地数据目录保存设计稿、资源和渲染结果。
43
+ - 包内不包含 npm token、设计工具凭据或用户密钥。
44
+ - 本地 URL、资源 URI、数据目录和临时渲染路径不应提交到业务仓库。
45
+ - 生成的资源应复制到目标项目后再由业务代码引用。
46
+
47
+ ## 许可证
48
+
49
+ 该包为专有软件,不授予开源许可。随包分发的第三方组件保留各自的许可证声明。