5.0.2 • Published 9 months ago
hackpsd v5.0.2
hackpsd
A tool for manipulating PSD files, exposing functionality through the Model Context Protocol (MCP).
Installation
npm install -g hackpsdUsage
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-serverLicense
ISC