appshots-mcp
v0.6.0MCP 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.
| Parameter | Type | Description |
|---|---|---|
dir | string | Folder 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.
| Parameter | Type | Description |
|---|---|---|
device * | string | Target store listing size; call list_options for the pixel dimensions of each. |
name * | string | |
bundleId | string | The 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. |
customH | integer | |
customW | integer | Required when device="custom". |
locale | string | Base locale, e.g. en-US or zh-Hans. |
orientation | string | Ignored for devices locked to one orientation (Mac, Watch, Feature Graphic). |
pages | integer | Screenshots in the set (App Store allows up to 10). |
platform | string | Its role in that app. Omit to infer it from the device; set it for a custom canvas, whose size alone is ambiguous. |
template | string | Layout to seed the pages with; call list_options for the full catalog. |
theme | string | Colour 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path 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.
| Parameter | Type | Description |
|---|---|---|
path | string |
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.
| Parameter | Type | Description |
|---|---|---|
backgroundPerPanel | boolean | true = repeat the background on every page; false = one gradient stretched across the whole band. |
bundleId | string | File the project under this app; an empty string takes it out of its app. |
defaultLocale | string | Locale used when a text layer has no string for the active one. |
localeFontMap | object | Locale (or language prefix, e.g. "ja") → font family, overriding each text layer's own font. |
name | string | |
pageNames | array | |
platform | string | Its 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.
| Parameter | Type | Description |
|---|---|---|
angle | number | Degrees, CSS convention: 0 = bottom→top, 90 = left→right. |
color | string | type="solid" only. |
from | string | type="gradient": first stop. |
kind | string | |
page | integer | Omit to set the shared background for the whole band. |
stops | array | Optional multi-stop gradient; `from`/`to` still drive the swatch preview. |
to | string | type="gradient": last stop. |
type | string |
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.
| Parameter | Type | Description |
|---|---|---|
page * | integer | 1-based page number, matching the page labels in the app. |
texts * | object | Locale code → string, e.g. {"en-US": "Track every workout", "zh-Hans": "记录每一次训练"}. |
align | string | |
color | string | |
fontFamily | string | Built-in family (list_options); defaults to Inter, or Noto Sans SC for zh. |
fontSize | number | Font size as a fraction of PAGE HEIGHT (0.036 ≈ a headline). |
fontWeight | integer | |
italic | boolean | |
letterSpacing | number | |
lineHeight | number | |
name | string | |
rotation | number | Degrees, clockwise. |
shadow | boolean | |
width | number | Text box width. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. |
x | number | Left edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. |
y | number | Top 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.
| Parameter | Type | Description |
|---|---|---|
page * | integer | 1-based page number, matching the page labels in the app. |
bezel | string | Real-device bezel id from list_options; omit for the default one. |
locale | string | Which locale that screenshot belongs to (default: the project default). |
name | string | |
rotation | number | |
screenshot | string | Path to the screenshot image to show inside the frame. |
shadow | boolean | |
statusBar | boolean | Draw an iOS status bar over the screenshot. |
statusBarStyle | string | |
width | number | Frame width. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. Height is derived, never passed. |
x | number | Left edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. |
y | number | Top 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.
| Parameter | Type | Description |
|---|---|---|
page * | integer | 1-based page number, matching the page labels in the app. |
shape * | string | |
x * | number | Left edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. |
y * | number | Top edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. |
cornerRadius | number | Corner radius (rect). Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. |
fill | string | |
height | number | |
name | string | |
opacity | number | |
rotation | number | |
shadow | boolean | |
stroke | string | |
strokeWidth | number | Stroke width. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. |
width | number |
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.
| Parameter | Type | Description |
|---|---|---|
page * | integer | 1-based page number, matching the page labels in the app. |
path * | string | Path to a png/jpg/webp/gif/svg on disk; ~ is expanded. |
x * | number | Left edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. |
y * | number | Top edge. Fraction of one page (0 = left/top edge, 1 = full page width/height), not pixels. |
cornerRadius | number | |
fit | string | |
height | number | |
name | string | |
opacity | number | |
rotation | number | |
shadow | boolean | |
width | number |
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":{...}}).
| Parameter | Type | Description |
|---|---|---|
id * | string | |
height | number | |
locked | boolean | |
name | string | |
opacity | number | |
page | integer | Move the layer to another page, keeping its position within the page. |
raw | object | |
rotation | number | |
visible | boolean | |
width | number | |
x | number | |
y | number |
remove_layer Delete a layer
Remove one layer by id.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
locales * | array | App 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
dir * | string | Folder to walk recursively; ~ is expanded. |
locale | string | Locale 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.
| Parameter | Type | Description |
|---|---|---|
locale | string | Which locale's copy to draw (default: the project default). |
maxWidth | integer | Preview width in px. Keep it small — this is for looking, not for exporting. |
pages | array | 1-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.
| Parameter | Type | Description |
|---|---|---|
dir * | string | Output folder; created if missing. ~ is expanded. |
format | string | |
locales | array | Locales to export; omit for every locale in the project. |
pages | array | 1-based page numbers; omit for every page. |