New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@textile-designer-ai/mcp

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textile-designer-ai/mcp

MCP server for Textile Designer AI: run the design tools from Claude Code, Claude Desktop, Codex or any MCP client.

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@textile-designer-ai/mcp

MCP server for Textile Designer AI. It lets Claude Code, Claude Desktop, Codex, Cursor or any other MCP client run the Textile Designer tools on image files: upscale, repeat, background removal, channeling, colourways, vectorizer and the rest.

It is a thin client of https://www.textile-designer.ai/api/plugin/*, the same API the Photoshop plugins use. You log in with your Textile Designer account; credits, plan access and enabled tools are decided by the server. Photoshop is not involved: inputs are image files or URLs, outputs are files.

Requires Node.js 18 or newer.

Install

Claude Code

claude mcp add textile-designer-ai -- npx -y @textile-designer-ai/mcp

Claude Desktop

Add to claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "textile-designer-ai": {
      "command": "npx",
      "args": ["-y", "@textile-designer-ai/mcp"]
    }
  }
}

Codex

Add to ~/.codex/config.toml:

[mcp_servers.textile_designer_ai]
command = "npx"
args = ["-y", "@textile-designer-ai/mcp"]

Cursor

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

{
  "mcpServers": {
    "textile-designer-ai": {
      "command": "npx",
      "args": ["-y", "@textile-designer-ai/mcp"]
    }
  }
}

On Windows, if npx is not found by the client, use "command": "npx.cmd" or the full path to it.

Logging in

Ask the assistant to connect, or call the login tool. The server starts a device-code login: it opens textile-designer.ai/plugin-auth in your browser with a short code, you confirm it there, and the server picks up the session in the background. whoami confirms the connection and shows your credits, plan access and enabled tools. logout ends the session.

The session token is stored in ~/.textile-designer/mcp-session.json (readable only by you). It is never printed.

Example conversation:

Connect to Textile Designer, then make a half-drop repeat of C:\designs\paisley.png at 300 dpi and tell me what it cost.

Tools

Account and jobs:

ToolWhat it does
loginStart the device-code login (opens the browser; wait_seconds blocks until linked).
whoamiEmail, organisation, credits, plan access, enabled tools.
logoutEnd the session and forget the token.
job_statusStatus / progress of a job by task_id; wait_seconds polls until done.
download_resultSave a completed job's outputs to disk.
list_toolsEvery design tool with a one-line description and its credit rule.
describe_toolOne tool's best use, how it compares with similar tools, what its settings change, its outputs, modes and credit rule.
guideAnswers "which tool should I use", typical workflows (digital, screen or rotary, garment to collection, vector), comparisons, print basics, results, credits and plans.
boost_unlimitedTruly Unlimited only: use a Boost to double today's budget and start queued slow-lane jobs now. Claude asks you first; it spends a boost.

Design tools (website names):

ToolWebsite labelResult
td_ready_to_printReady to Printimage
td_anti_blurAnti-Blurimage
td_super_scalerSuper Scalerimage
td_background_removalBackground Removalimage
td_watermark_removalWatermark Removalimage
td_repeat_setRepeat Setimage
td_design_extensionDesign Extensionimage
td_border_outlineBorder Outlineimage
td_object_layeringObject LayeringPSD
td_colour_layeringColour LayeringPSD
td_style_transferStyle Transfer (library style or style_image)image
td_dress_to_designDress to Design1-4 images
td_channelingChannelingmultichannel PSD + preview
td_color_transferColor Transfer (needs palette_image)image
td_color_matching_extract_colorsColor Matching: extract paletteJSON
td_color_matching_suggestColor Matching: Suggest Colors (market, palette type)JSON + ready-made replace sets
td_color_matching_match_referenceColor Matching: match colours from reference imagesJSON + replace sets
td_color_matching_swatch_gridColor Matching Auto, step 1 (extract colours first)grid image
td_color_matching_regenerateColor Matching Auto, step 2images
td_color_matching_replaceColor Matching: Replace Colorimage(s)
td_vectorizerVectorizer (Photoshop-Ready or Illustrator-Ready)png / tiff / eps (Photoshop-Ready), svg / pdf / eps (Illustrator-Ready)
td_3d_effect3D Effectimages
td_embroidery_effectEmbroidery Effectimage
td_fabric_texture_removalFabric Texture Removalimages
td_sketch_to_designSketch to Designimage
td_foil_separationFoil Separationimage / eps
td_design_generationDesign Generation (Image+Text, Image to Image, Inpaint)image
td_design_creationDesign Creation (prime / new / old / reference)images
td_colourwaysColourwaysbuyer sheet or images
td_spec_boardSpec Boardimage

Color Matching (FREE) / psd_variant is not available: it runs inside Photoshop and has no server job.

Every design tool accepts:

  • image: local path or http(s) URL. PNG, JPEG or WebP, up to 80 MB and 5000 px per side.
  • output_dir: where to save. Default: the input image's folder (the current directory for URL inputs). Existing files are never overwritten.
  • dpi (tools with a DPI control on the website): output resolution 72-500. Omit to keep the image's own resolution.
  • review_settings: when you give no mode or settings, the tool asks first: the mode, then "use the recommended settings, or adjust them one by one?". true goes straight to each setting; false runs with the given or recommended settings (Claude passes it after you chose).
  • unlimited_bundle: request the Unlimited bundle for this run (Unlimited plans only; the server decides).
  • estimate_only: return the credit estimate without uploading or charging.
  • wait (default true) and timeout_seconds (default 240): wait for the job and save the outputs. If the job takes longer, the tool returns the task_id and status processing; use job_status then download_result. wait: false returns right after submit.

Tool-specific parameters are exactly the controls the website form shows (same labels, options, ranges and recommended values), described in each tool's schema. Creativity is shown as a percentage, as on the website, and sent as a decimal. Nothing runs until the mode and settings are settled, and prices are quoted only when you ask (estimate_only).

Truly Unlimited plans

  • One image per run: the number-of-outputs question is skipped and 1 is sent (Dress to Design All Modes still returns one image per mode).
  • Super Scaler 8x is not offered.
  • Runs over today's budget are queued in the slow lane: the tool returns at once with the expected time; check later with job_status. whoami shows today's usage and boosts left, and boost_unlimited starts queued jobs now (only after you say yes).

Modes and costs

Tools with modes (Super Scaler's AI Mode, Dress to Design's extraction models, Design Creation's variants, and so on) describe every option in their schema as value (website label): what it does, and they refuse to run until that mode argument is given. When the client supports MCP elicitation (a form prompt), the server asks you directly with the website default marked "(Recommended)" and preselected; otherwise the call returns status: mode_required with the menu, nothing is uploaded or charged, and the assistant is instructed to present the modes as options and let you pick. Website defaults are documented but never applied silently.

After the mode, the server asks once whether to run with the recommended settings or adjust them; "adjust" (or review_settings: true) then asks each website control in turn, one question at a time, in the website's order, with the recommended value (or the value already given) preselected. Declining any question runs nothing. Without elicitation the result lists the same questions, numbered, with the recommended answer marked. Two read-only tools back this up:

  • list_tools: every design tool with a one-line description and its credit rule, for "what can you do?".
  • describe_tool: one tool's modes with what each option does, its settings (website controls with ranges and recommended values), its credit rule, required inputs and result kind, for "what does Prism Shift do?".

Credit figures in descriptions are the website's price list. The server's estimate is authoritative: ask "what would this cost?" and the assistant calls the tool with estimate_only: true, which uploads nothing and charges nothing. After a run, the result carries the credits actually charged.

Prompts (guided workflows)

The server also publishes three MCP prompts. In Claude Code they appear as slash commands (/textile-designer-ai:print_ready_pipeline and so on); other clients list them under prompts. Each one fills in a message that walks the assistant through a fixed sequence, with the rule that every paid step is estimated and shown to you first, any unsettled mode is asked for, credits are reported after each step, and steps are chained by the saved file paths.

PromptArgumentsSteps
print_ready_pipelineimage, scale (2/3/4), repeat_type, screens (2-35)Ready to Print -> Repeat Set -> Channeling
garment_to_collectionimage (garment photo), mode (Dress to Design mode), colourway_count (6/12/24/48)Dress to Design -> Colourways -> Spec Board (garment type asked)
vector_packimage, ready_for (photoshop/illustrator)Vectorizer (format asked from the chosen set) -> Border Outline

Every tool also carries MCP annotations: the account, job-status and catalogue tools are read-only; download_result writes files but charges nothing; every td_* tool is marked as a paid, non-idempotent run.

Interactive previews (MCP Apps)

In hosts that support MCP Apps (claude.ai and Claude Desktop, ChatGPT, VS Code, Goose, Postman as of the ext-apps 1.7 docs), every td_* result renders as a small panel in the conversation: the saved images, their paths and the credits charged, or the mode menu when a run still needs a mode. The Color Matching swatch grid renders as a picker: click the cells you like and the panel sends the chosen variant numbers back so the assistant can estimate and run td_color_matching_regenerate. The pages are self-contained (no CDN, no network), follow the host's light / dark theme, and are built into the package by npm run build:mcp from packages/mcp/apps/. Hosts without MCP Apps (Claude Code's terminal, Codex, Cursor) ignore them and get the normal text result with the first image inline.

Suggestions

After a run completes and its files are saved, the server may add one tip line to the result (and structuredContent.suggestions):

  • Image Search, when the input image's folder holds 50 or more designs.
  • Cataloguing, after the third Dress to Design run in a session.

Each tip appears at most once per server session, never after a failed or estimate-only call, and never for an account that already has the product (/me.products.<product>.active). If the server could not check Image Search ownership (checked: false) the tip is held back. Servers that do not report products at all get each tip once.

Results

Files are saved as <input name>_<tool>[_<n>].<ext>:

  • Images: one file per output. Multi-output tools that deliver a zip are unpacked into <input name>_<tool>_<task id>/.
  • Object / Colour Layering: a .psd.
  • Channeling: the separation .psd (one spot channel per screen) unpacked from the bundle, plus <input name>_channeling_preview.png.
  • Color Matching extract: a .json palette; the parsed colours are also in the structured result.

The tool result lists the paths, the credits charged and the task_id, and includes the first image inline (when it is small enough) so the assistant can look at it. Results are also kept in your Library on the website.

Environment variables

VariablePurpose
TD_API_BASE_URLAPI origin. Default https://www.textile-designer.ai. Use http://localhost:3000 against a local backend.
TD_TOKENUse this session token instead of the stored one (scripted agents, CI).
TD_SESSION_FILEWhere to store the token. Default ~/.textile-designer/mcp-session.json.

Set them in the client's MCP config (env block) when needed.

Development

From the repository root:

npm install
npm run build:mcp      # -> packages/mcp/dist/index.js (single file, no runtime deps)
npm run test:mcp       # node --test; runs against a local fake API, never production
node packages/mcp/src/index.js   # run unbundled (stdio)

Try it with the MCP Inspector:

npx @modelcontextprotocol/inspector node packages/mcp/dist/index.js

Against a local backend:

TD_API_BASE_URL=http://localhost:3000 node packages/mcp/src/index.js

Wire parameters for every tool are copied from the UXP plugin's toolParams(); test/params.test.mjs pins them. When a tool's shape changes in UXP, update the matching module in packages/mcp-core/src/tools/ and the test.

Publishing

npm login                              # once, with an account in the textile-designer-ai org
npm run build:mcp                      # from the repo root
cd packages/mcp
npm publish --access public            # scoped packages default to private

Bump version in packages/mcp/package.json first; it is sent to the server as X-TD-Plugin: mcp/<version>.

Keywords

mcp

FAQs

Package last updated on 23 Oct 2026

Related posts