Sudomock

io.github.sudomock由 GitHub 帳號 sudomock 發布v3.9.1更新於 Nov 7, 2026

Turn product photos or PSDs into photorealistic mockups: place artwork, edit text, fix tile seams.

發布方自己的服務:SudoMock

已驗證STDIO僅桌面商業與電商媒體與設計

概覽

AI 產生的概覽

SudoMock 把 PSD 範本和產品照片轉成逼真的產品合成圖,讓助理放置圖稿、編輯文字圖層並算圖成圖片或影片。

可以做什麼
  • 列出、檢視、重新命名和刪除 PSD 合成圖範本,包含智慧物件 UUID、圖層與混合模式
  • 上傳 PSD/PSB 範本,並為本機檔案取得上傳網址
  • 以圖稿或可編輯文字算圖(可非同步),並把合成圖做成影片片段
  • 建立自動偵測可印刷表面的照片合成圖,把圖稿印滿整個表面或印入已儲存的印刷區域
  • 去除背景,檢查並修復重複圖樣磚的接縫
  • 追蹤非同步工作、管理 webhook 端點與投遞紀錄、列出字型,並查看方案、額度與餘額
適用情境
適合需要從 PSD 範本或產品照片製作產品或服飾合成圖的情況,讓助理在對話中完成放置設計、替換文字、去背、修復圖樣接縫,以及算圖成圖片或短片。
執行需求
以 stdio 本機程序執行,透過 npx 啟動,需要 Node.js 以及支援本機伺服器的 MCP 用戶端。需要 SudoMock 帳號,並以環境變數 SUDOMOCK_API_KEY 提供 API 金鑰。需要連線到 SudoMock API 的網路;目前尚未提供託管的遠端傳輸方式。
安裝前請注意
算圖、去背、接縫修復、照片合成圖和影片都會消耗付費額度,儲值餘額有最低付款金額;未儲值的帳號算圖結果會帶浮水印且尺寸受限。API 金鑰屬機密,透過 SUDOMOCK_API_KEY 傳入。多個工具會刪除範本、取代印刷區域、輪替 webhook 簽章金鑰並送出 webhook 測試事件。上傳的圖稿和範本會送到 SudoMock 服務,去背結果網址在 7 天內公開可存取。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Sudomock,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

SudoMock MCP Server

Generate photorealistic product mockups from Claude, Cursor, Windsurf, and VS Code.

Model Context Protocol server for the SudoMock mockup generation API. Upload PSD templates, place artwork onto smart objects, edit supported text layers, and get rendered image URLs -- all through natural language.

Quick Start

This is a local stdio server: your MCP client launches it as a child process via npx and authenticates with your SUDOMOCK_API_KEY.

bash
claude mcp add sudomock \  -e SUDOMOCK_API_KEY=sm_your_key_here \  -- npx -y @sudomock/mcp

Get your API key at sudomock.com/dashboard/api-keys.

JSON config for other clients (Cursor, Windsurf, VS Code)
json
{  "mcpServers": {    "sudomock": {      "command": "npx",      "args": ["-y", "@sudomock/mcp"],      "env": {        "SUDOMOCK_API_KEY": "sm_your_key_here"      }    }  }}

Note: A hosted remote (HTTP/OAuth) transport is not available yet. This package only ships the local stdio server shown above.

Tools

ToolDescriptionCredits
list_mockupsList your uploaded mockup templates0
get_mockup_detailsGet smart object UUIDs, dimensions, blend modes; with include_layers, every layer and its UUID, including the layers inside smart objects0
render_mockupRender a mockup with artwork and/or editable text; hidden_layers leaves chosen layers out1
remove_backgroundGet a transparent-PNG cutout at a public URL that stays available for 7 days5
check_seamsCheck whether a repeating pattern tile joins without a visible seam0
fix_seamsRepair a pattern tile's seams so it repeats cleanly (always async)60
list_fontsList the fonts available for text layers, including your uploads0
create_upload_urlGet an upload URL for a local file and the file URL it will have0
create_2d_mockupCreate a photo mockup and detect printable surfaces automatically25
render_2d_surfacePrint artwork across a whole surface (all-over)5
render_2d_print_areaPrint artwork into one saved print area (a drawn zone)5
render_videoAnimate a mockup into a video clip (always async)cost-based (one per account at no charge, then cost-based)
upload_psdUpload a Photoshop PSD/PSB template (sync or async)0
list_2d_mockupsList saved photo mockup templates; use customizable_only for shopper-ready items0
get_2d_mockupGet one photo mockup's saved print areas and its surfaces0
update_2d_print_areasReplace a photo mockup's print-area geometry0
delete_2d_mockupDelete a photo mockup template0
get_jobCheck the status of an async job by job_id0
wait_for_jobPoll an async job until it succeeds or fails0
list_jobsList async render, video, upload, and photo mockup jobs0
get_accountCheck plan, credits, prepaid balance, and usage0
update_mockupRename a mockup template0
delete_mockupDelete a mockup template0
create_webhook_endpointRegister a webhook for async job completion, pinned to an event naming0
list_webhook_endpointsList your webhook endpoints0
update_webhook_endpointEdit or enable/disable a webhook endpoint0
delete_webhook_endpointDelete a webhook endpoint0
rotate_webhook_secretRotate a webhook signing secret0
test_webhook_endpointSend a signed webhook.test event0
list_webhook_deliveriesList delivery attempts for an endpoint0
replay_webhook_deliveryReplay a single failed delivery0
replay_failed_webhook_deliveriesReplay every failed delivery for an endpoint0

Both spellings work

The product calls its two kinds of template PSD mockups and photo mockups, and the tools answer to those names too. Nothing above was renamed: every name in the table keeps working exactly as it always has, and the spelling beside it is the same tool with the same arguments. Reach for either.

Name in the tableAlso answers to
list_mockupslist_psd_mockups
get_mockup_detailsget_psd_mockup
update_mockupupdate_psd_mockup
delete_mockupdelete_psd_mockup
render_mockuprender_psd_mockup
create_2d_mockupcreate_photo_mockup
list_2d_mockupslist_photo_mockups
get_2d_mockupget_photo_mockup
update_2d_print_areasupdate_photo_mockup_print_areas
delete_2d_mockupdelete_photo_mockup
render_2d_surface, render_2d_print_arearender_photo_mockup
get_2d_mockupget_2d_mockup_details
test_webhook_endpointsend_webhook_test_event
render_photo_mockuprender_2d_mockup

render_photo_mockup is the one that is not simply a second name for a single tool. It renders either kind of target from one tool: pass the mockup as mockup_id and name exactly one of surface_uuid (sized by coverage or an explicit width + height) or print_area_uuid (sized by fit or an explicit width + height). Picking the target by picking a tool, with mockup_uuid, is what render_2d_surface and render_2d_print_area still do. render_2d_mockup is render_photo_mockup under a second name, with the mockup passed as mockup_uuid.

Async jobs

render_mockup, upload_psd, create_2d_mockup, and both photo mockup render tools accept is_async: true, and render_video and fix_seams are always async. These return a job_id immediately (HTTP 202) instead of a final result. (create_2d_mockup and the photo mockup render tools are synchronous by default and return the mockup / render directly.) Poll it with get_job, or let wait_for_job block until the job reaches a terminal status and hands back result_url, mockup_uuid, credits_charged, and payg ({credits, unit_price, cost} for pay-as-you-go jobs, otherwise null).

For a photo mockup render, pick the tool that matches the target you read from get_2d_mockup. Every printable product in the photo, and the main wall of a room photo, is a surface with its own surface_uuid: render_2d_surface prints across the whole of one, and takes either a coverage percentage or an explicit width + height. A print area is a bounded zone somebody drew on a product, such as a chest logo: render_2d_print_area takes its print_area_uuid, and either a fit or an explicit width + height. A product can have both, and they are separate targets -- a saved print area does not close off the surface it sits on.

Sizing has one answer per render: send the relative option or the exact box, never both, and send width and height together. position, offset_x, offset_y and rotation place the artwork on either kind of target. Anything you leave out is left out of the request, so the renderer's own default applies rather than a copy of it kept here.

Each entry in a photo mockup's surfaces carries a label, what was detected there, such as pillow or wall, so you can tell surfaces apart before you pick one. update_2d_print_areas takes an optional print_area_id on each area: an area that sends one of the mockup's ids keeps it, and an area without one gets a new id.

Patterns

tile repeats the artwork as a pattern across the whole target, and tile_spacing leaves a gap between the tiles: a percentage of the tile size, 0 to 100, so the horizontal gap is that percent of the tile width and the vertical gap that percent of the tile height. It is used only when tile is true.

  • On a PSD template both go in a smart_objects entry's asset on render_mockup. size is one tile, fit places the artwork inside each tile, and position sets where the grid starts.
  • render_video takes them as parameters for the smart object it fills, with asset_width and asset_height as the size of one tile.
  • The photo mockup render tools take them as parameters. The sizing answer (coverage, fit, or width and height) is one tile, and position with offset_x and offset_y sets where the grid starts.

A tile needs a size; without one the API answers 422.

Check the tile with check_seams before you render it. It answers at once, at no charge, with status: seamless, faint_seam or visible_seam. seams lists each side that does not join cleanly, left_right (where the right edge meets the left) or top_bottom (where the bottom edge meets the top), with the pixel ranges along it. fixable and unfixable_reason (transparent_edges or too_large) say whether the tile can be repaired, and previous_fix holds your latest fix of the same image, if there is one. Pass crop_aspect, the width divided by the height of one tile in your render, to check the image cropped to that shape the way fit: "crop" crops it.

fix_seams takes the same input and repairs the tile so it repeats without a visible seam. It is always async: read the job with get_job or wait_for_job. The finished job carries result_url, alternative_url (a second repaired version when one is available, otherwise null), result_status (the seam check of the result), changes (edges, whole_tile or rearranged) and fine_detail (unchanged or softer); while it runs, stage reads queued, fixing or finishing. A fix that fails with error_code TILE_NOT_FIXABLE carries error_details.reason: not_a_pattern_tile or no_clean_result. Seam fix: 60 credits, refunded automatically if the fix fails; seam check: free.

Background removal

remove_background returns a transparent-PNG URL valid for 7 days. You can pass that URL straight back as artwork_url during that window. To clean artwork inline during a single render instead, pass remove_background: true to render_mockup or either photo mockup render tool. Either way it costs 5 credits per artwork, refunded automatically if processing fails.

Webhooks

Register an endpoint with create_webhook_endpoint to be notified when async jobs finish. Deliveries are signed with TWO headers: X-SudoMock-Signature (a hex HMAC-SHA256 over ${timestamp}.${rawBody} using the secret returned at creation/rotation) and X-SudoMock-Timestamp (unix seconds). Verify in constant time and reject if |now - timestamp| > 300s.

Render, upload, and video job deliveries use {event, job_id, kind, status, result_url, error, created_at}. The typed photo mockup creation events add version, mockup_id, name, and either print_areas (ready) or reason (rejected). The typed photo mockup render events carry mockup_id, result_url, a public {error_code, message} failure when applicable, and optional export_format / duration_ms. Event types: render.succeeded, render.failed, upload.succeeded, video.succeeded, video.failed, photo_mockup.ready, photo_mockup.rejected, photo_mockup.failed, photo_mockup_render.succeeded, photo_mockup_render.failed, seam_fix.succeeded, seam_fix.failed, webhook.test. Seam fix deliveries carry result_url and alternative_url.

The five photo mockup events also have a legacy spelling: 2d_mockup.ready, 2d_mockup.rejected, 2d_mockup.failed, 2d_render.succeeded, 2d_render.failed (with kind 2d_create / 2d_render in the payload). Which spelling an endpoint receives is its event_naming pin, set at create_webhook_endpoint and returned on every endpoint: current (the names above) or legacy. A create without a pin takes current only when event_types names photo mockup events by their family names alone, and legacy otherwise, including an empty list. Endpoints registered before the pin existed stay on legacy, so a receiver written against the old names keeps working unchanged. Once that receiver handles the new names, move it with update_webhook_endpoint and event_naming: "current"; sent on its own, the re-pin re-spells the endpoint's stored subscription list to match.

Logs

Each tool call writes one JSON line to stderr, which your MCP host keeps in its log file: the tool name, how long the call took, and whether it succeeded, for example {"event":"mcp_tool_call","tool":"list_mockups","duration_ms":312,"ok":true}. Arguments, API keys, file contents and API responses are never logged. Every API request identifies this package as mcp-stdio/<version> in its User-Agent and X-SudoMock-Client headers.

Pricing and account limits

Subscriptions from $0.002 per render. Without one, $0.05 per render, the same rate standalone mockup APIs charge on a paid plan. Funding the balance takes a $5 minimum first payment. Photo mockups and video are priced by what they cost to produce rather than at the flat render rate, which is why the Credits column above is not uniform.

A new account starts with 500 credits, granted once, and needs no card to spend them. Until a card is verified and the $5 minimum is funded, that account is in trial, and every render it makes is watermarked and capped at 1,024 px. It can keep 5 PSD templates, run one render at a time, and a template that has gone 13 days without a render is removed.

Funding the balance lifts all of it at once. The watermark and the width cap come off, stored templates go to 150, renders run 25 at a time alongside 10 concurrent uploads, and templates stop being removed for sitting idle.

Trial is not a separate plan. It is the unfunded state of the pay-as-you-go tier, so get_account reports the same tier before and after funding; the balance is what changes.

Because of that, an account paying as it goes has no monthly allowance, and get_account reports credits_limit and credits_remaining as 0 while the account is perfectly able to pay. Read prepaid_balance alongside them, or read funding_summary, which states both in one line and never reports a funded account as 0 / 0.

Example requests

  • "List my mockup templates"
  • "Render the t-shirt mockup with this design: https://example.com/logo.png"
  • "Replace the editable headline text, then render the mockup"
  • "Cut out the background from this product photo, then render it on the tote bag"
  • "List my photo mockups, then render the first one with this artwork: https://example.com/logo.png"
  • "Render this design asynchronously and wait for it to finish"
  • "Queue that photo mockup render async and give me the job id to track"
  • "Check this pattern tile for seams, fix it if needed, then render it on the leggings mockup"
  • "Animate the hoodie mockup into a 5-second video clip"
  • "Upload this PSD as a new template: https://example.com/mockup.psd"
  • "Set up a webhook at https://example.com/hooks so I get notified when renders finish"
  • "How many credits do I have left?"

Links

License

MIT

來源:README.md,提交 1c85ac2

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

17
  1. v3.9.1最新Nov 7, 2026
  2. v3.9.0Nov 6, 2026
  3. v3.8.4Nov 3, 2026
  4. v3.8.3Nov 1, 2026
  5. v3.8.2Nov 1, 2026
  6. v3.8.1Oct 26, 2026
  7. v3.8.0Oct 25, 2026
  8. v3.7.0Oct 23, 2026
  9. v3.6.1Oct 18, 2026
  10. v3.6.0Oct 6, 2026
  11. v3.5.0Oct 6, 2026
  12. v3.4.0Oct 5, 2026
  13. v3.3.0Oct 5, 2026
  14. v3.2.0Sep 25, 2026
  15. v3.1.0Sep 24, 2026
  16. v3.0.0Sep 19, 2026
  17. v2.7.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Sudomock 整合