appshots-mcp

v0.6.0
appshots-mcp Checked 2 days ago Published 23 days ago

MCP server that composes App Store / Google Play screenshot projects and writes them as .appshots files for the AppShots editor.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_options List valid devices, bezels, fonts and locales

Every enumerated value the other tools accept: device classes with their exact export pixel sizes, layout templates, real-device bezel ids, built-in font families, App Store locale codes and shape kinds.

list_apps List apps and their platform projects

Every .appshots project in a folder, grouped by the app (bundle ID) it belongs to, with each project's platform, device, page count and locales — plus the projects that are in no app. Use it to add a platform to an existing app: create_project with the same bundleId and the locales its other projects use.

ParameterTypeDescription
dirstringFolder to scan; defaults to ~/Documents/AppShots, the one the desktop app lists.

create_project Create a screenshot project

Start a new project and make it the open one. The template decides the layout of every page — call list_options for the catalog, which says which devices and page counts each one takes. Most templates lay a painted background image (a locked "Background art" layer) under each page, matching the colour way; set_background replaces it with the colour you ask for.

ParameterTypeDescription
device *stringTarget store listing size; call list_options for the pixel dimensions of each.
name *string
bundleIdstringThe app this project belongs to (e.g. com.example.app). The desktop app groups every project with the same bundle ID as one app. Call list_apps to see the existing ones.
customHinteger
customWintegerRequired when device="custom".
localestringBase locale, e.g. en-US or zh-Hans.
orientationstringIgnored for devices locked to one orientation (Mac, Watch, Feature Graphic).
pagesintegerScreenshots in the set (App Store allows up to 10).
platformstringIts role in that app. Omit to infer it from the device; set it for a custom canvas, whose size alone is ambiguous.
templatestringLayout to seed the pages with; call list_options for the full catalog.
themestringColour way to build the template in; omit to use the template's own.

open_project Open an existing .appshots file

Load a saved project and make it the open one.

ParameterTypeDescription
path *stringPath to a .appshots file; ~ is expanded.

save_project Save the open project

Write the project to a .appshots file. With no path it saves back where it was opened from, or into ~/Documents/AppShots — the folder the desktop app lists on its home screen.

ParameterTypeDescription
pathstring

describe_project Describe the open project

The project settings plus every layer with its page, geometry (as fractions and as pixels) and ids. Call this to get layer ids before update_layer / remove_layer.

configure_project Change project-level settings

Rename, switch the default locale, map locales to fonts, or name the pages.

ParameterTypeDescription
backgroundPerPanelbooleantrue = repeat the background on every page; false = one gradient stretched across the whole band.
bundleIdstringFile the project under this app; an empty string takes it out of its app.
defaultLocalestringLocale used when a text layer has no string for the active one.
localeFontMapobjectLocale (or language prefix, e.g. "ja") → font family, overriding each text layer's own font.
namestring
pageNamesarray
platformstringIts role in the app.

set_background Set the background

Paint the whole band, or one page when `page` is given. A gradient with backgroundPerPanel=false spans the pages continuously, which is what makes a panorama set read as one image. Removes the template's painted background art from the pages it paints, since that art would cover it.

ParameterTypeDescription
anglenumberDegrees, CSS convention: 0 = bottom→top, 90 = left→right.
colorstringtype="solid" only.
fromstringtype="gradient": first stop.
kindstring
pageintegerOmit to set the shared background for the whole band.
stopsarrayOptional multi-stop gradient; `from`/`to` still drive the swatch preview.
tostringtype="gradient": last stop.
typestring

add_text Add a headline / text layer

Place text on a page. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. Supply one string per locale in `texts`; missing locales fall back to the default one. Text auto-shrinks for locales whose translation runs longer, so leave headroom below the box.

ParameterTypeDescription
page *integer1-based page number, matching the page labels in the app.
texts *objectLocale code → string, e.g. {"en-US": "Track every workout", "zh-Hans": "记录每一次训练"}.
alignstring
colorstring
fontFamilystringBuilt-in family (list_options); defaults to Inter, or Noto Sans SC for zh.
fontSizenumberFont size as a fraction of PAGE HEIGHT (0.036 ≈ a headline).
fontWeightinteger
italicboolean
letterSpacingnumber
lineHeightnumber
namestring
rotationnumberDegrees, clockwise.
shadowboolean
widthnumberText box width. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels.
xnumberLeft edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels.
ynumberTop edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels.

add_frame Add a device frame holding a screenshot

Place a device frame on a page. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. Only `width` is taken — the height follows the device's real aspect ratio. Pass `screenshot` to drop an image straight into the screen, or fill frames later with import_screenshots.

ParameterTypeDescription
page *integer1-based page number, matching the page labels in the app.
bezelstringReal-device bezel id from list_options; omit for the default one.
localestringWhich locale that screenshot belongs to (default: the project default).
namestring
rotationnumber
screenshotstringPath to the screenshot image to show inside the frame.
shadowboolean
statusBarbooleanDraw an iOS status bar over the screenshot.
statusBarStylestring
widthnumberFrame width. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. Height is derived, never passed.
xnumberLeft edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels.
ynumberTop edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels.

add_shape Add a decorative shape

Place a shape on a page. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. Sizes omitted fall back to the editor's per-shape defaults.

ParameterTypeDescription
page *integer1-based page number, matching the page labels in the app.
shape *string
x *numberLeft edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels.
y *numberTop edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels.
cornerRadiusnumberCorner radius (rect). Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels.
fillstring
heightnumber
namestring
opacitynumber
rotationnumber
shadowboolean
strokestring
strokeWidthnumberStroke width. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels.
widthnumber

add_image Add an image layer

Place an image (logo, badge, illustration) on a page. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. Give `width` alone and the height follows the image's aspect ratio.

ParameterTypeDescription
page *integer1-based page number, matching the page labels in the app.
path *stringPath to a png/jpg/webp/gif/svg on disk; ~ is expanded.
x *numberLeft edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels.
y *numberTop edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels.
cornerRadiusnumber
fitstring
heightnumber
namestring
opacitynumber
rotationnumber
shadowboolean
widthnumber

update_layer Move, resize or restyle a layer

Patch one layer; only the fields given change. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. Use `raw` for anything not covered here — it merges straight into the layer object in its own units (e.g. {"fill":"#ff0055"}, {"fontSize":120}, {"fillGradient":{...}}).

ParameterTypeDescription
id *string
heightnumber
lockedboolean
namestring
opacitynumber
pageintegerMove the layer to another page, keeping its position within the page.
rawobject
rotationnumber
visibleboolean
widthnumber
xnumber
ynumber

remove_layer Delete a layer

Remove one layer by id.

ParameterTypeDescription
id *string

set_locales Set the project locales

Replace the locale list. Text layers keep a string per locale; frames can hold a screenshot per locale. Translate the copy yourself and write it with set_text — the app needs no translation service.

ParameterTypeDescription
locales *arrayApp Store locale codes; see list_options.

set_text Set one locale's string on a text layer

Write (or overwrite) the copy for a single locale. Adds the locale to the project if new.

ParameterTypeDescription
id *string
locale *string
text *string

import_screenshots Fill the device frames from a folder

Walk a folder of screenshots and drop each into the right frame. Recognises the fastlane layout (screenshots/<locale>/whatever_01.png), a locale prefix (en-US_01.png), or a bare index (01.png); the trailing number is the page. Files with no index are assigned in order per locale.

ParameterTypeDescription
dir *stringFolder to walk recursively; ~ is expanded.
localestringLocale for files whose name says nothing (default: the project default).

render_preview Render the design and look at it

Render pages of the open project and return them as images, so you can see what you actually composed and fix it. Renders the unsaved in-memory project through the editor's own renderer, so it matches what the app would export. Use it after laying out a page and before save_project.

ParameterTypeDescription
localestringWhich locale's copy to draw (default: the project default).
maxWidthintegerPreview width in px. Keep it small — this is for looking, not for exporting.
pagesarray1-based page numbers; omit for every page.

export_screenshots Export the final PNGs

Render every page at the exact store pixel size and write them into a folder, in the layout fastlane deliver expects: <dir>/screenshots/<locale>/<device>_<orientation>_<nn>.png. Renders through the editor's own path, so the files match what the app's Export button produces.

ParameterTypeDescription
dir *stringOutput folder; created if missing. ~ is expanded.
formatstring
localesarrayLocales to export; omit for every locale in the project.
pagesarray1-based page numbers; omit for every page.