Token导航 LogoToken导航TokenDH.com
MCP Psd2x logo
设计创作未说明官方级别未说明来源级核验

MCP Psd2x

MCP Server

一款基于MCP协议的服务器工具,用于检查和导出Adobe Photoshop(PSD)文件,支持图层树查看、详细图层信息获取及多种格式导出。

工具数

8

提示词数

0

GitHub Stars

0

资源数

0
C++Claude设计Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

signal-slot

提供方

signal-slot

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

mcp-psd2x

工具

工具参数说明
load_psdpath加载PSD文件以供检查和导出
get_layer_tree获取完整的层层次结构
get_layer_detailslayerId获取图层的详细信息(文本运行、形状路径、链接文件、不透明度、导出提示)
get_layer_imagelayerId获取特定层的渲染图像(作为MCP图像内容返回)
set_export_hintlayerId, type, options配置导出图层的方式
do_exportformat, outputDir, options将PSD导出为目标格式
list_exporters列出可用的导出器插件
save_hints将导出提示保留到 .psd_ sidecar文件

set_export_hint

  • 图层ID (int)--要配置的层ID
  • 类型 (字符串)-- embed, merge, custom, native, skip,或 none
  • 选项 (string)--带可选键的JSON对象:

- visible (bool)--导出时该层是否可见 - componentName (string)--组件名称 custom 类型 - baseElement (字符串)-- Container, TouchArea, Button,或 Button_Highlighted 为了 native 类型

do_导出

  • 格式 (string)--导出器插件密钥(例如。 QtQuick, Flutter, SwiftUI)
  • outputDir (string)--输出目录的绝对路径
  • 选项 (string)--带可选键的JSON对象:

- width (int)--输出宽度(像素)(0或省略=原始) - height (int)--输出高度(像素)(0或省略=原始) - fontScaleFactor (double)--字体比例因子(默认值:1.0) - imageScaling (bool)--启用图像缩放(默认值:false) - makeCompact (bool)--启用压缩输出(默认值:false)

构建

需要Qt 6。

使用子模块(推荐)

git clone --recursive https://github.com/signal-slot/mcp-psd2x.git
cd mcp-psd2x
./build.sh

或者,如果已经克隆:

git submodule update --init --recursive
./build.sh

使用外部构建

cmake -B build -DQT_ADDITIONAL_PACKAGES_PREFIX_PATH=";"
cmake --build build

用法

stdio(默认)

使用子模块构建:

export QT_PLUGIN_PATH="$PWD/build-qtmcp/lib64/qt6/plugins:$PWD/build-qtpsd/lib64/qt6/plugins"
./build/mcp-psd2x

对于外部构建:

export QT_PLUGIN_PATH="/lib64/qt6/plugins:/lib64/qt6/plugins"
./build/mcp-psd2x

上海证券交易所

./build/mcp-psd2x --backend sse --address 127.0.0.1:8000

Claude桌面配置

使用子模块构建:

{
  "mcpServers": {
    "psd2x": {
      "command": "/path/to/mcp-psd2x/build/mcp-psd2x",
      "env": {
        "QT_PLUGIN_PATH": "/path/to/mcp-psd2x/build-qtmcp/lib64/qt6/plugins:/path/to/mcp-psd2x/build-qtpsd/lib64/qt6/plugins",
        "LD_LIBRARY_PATH": "/path/to/mcp-psd2x/build-qtmcp/lib64:/path/to/mcp-psd2x/build-qtpsd/lib64"
      }
    }
  }
}

许可证

BSD-3条款

目录标签

目录标签

C++Claude设计混合部署PSD处理文件导出图层管理设计工具

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

8

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP