hackpsd
A tool for manipulating PSD files, exposing functionality through the Model Context Protocol (MCP).
Installation
npm install -g hackpsd
Usage
The tool can be used in two ways:
- As a command-line tool:
npx hackpsd
- As an MCP server that exposes the following tools:
updatePsd
Updates a PSD file with a new image and outputs a PNG.
Parameters:
originalPsdPath
: Path to the original PSD filenewImagePath
: Path to the new image to insertoutputPngPath
: Path where the output PNG should be saved
Example:
const result = await client.callTool("updatePsd", {
originalPsdPath: "path/to/template.psd",
newImagePath: "path/to/new-image.png",
outputPngPath: "path/to/output.png"
});
Development
- Clone the repository
- Install dependencies:
npm install
- Build the project:
npm run build
- Run the MCP server:
npm run mcp-server
License
ISC