shopbuddy

v0.3.1
io.github.tmill313/shopbuddy Checked 1 day ago Published 3 months ago

Safe Shopify theme changes for AI agents: staging, validation, visual review, approval, rollback.

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

shopbuddy_login

Sign in to the shopbuddy platform. Opens the user's browser to approve a short code; call again until status is 'approved'. Not needed when SHOPBUDDY_API_KEY is configured.

ParameterTypeDescription
apiUrlstringPlatform URL; defaults to the configured one

shopbuddy_list_stores

Connected Shopify stores. If none are connected, returns the URL where the user connects one (their Theme Access password is entered in the browser, never through the agent).

shopbuddy_connect_store

Opens the browser page where the user connects a Shopify store. The Theme Access password must be entered there by the human.

shopbuddy_start_change

Create a change request for a store (duplicates the live theme into an unpublished staging theme) and pull the theme into a local workspace directory. Returns the absolute workspace path to edit files in.

ParameterTypeDescription
store *stringStore domain or id from shopbuddy_list_stores
title *stringShort title, e.g. 'Sticky add to cart on mobile'
directorystringWhere to create the workspace; defaults to ./shopify-changes/<slug> under the current directory
previewPagesarrayStorefront paths to screenshot, e.g. ['/', '/products/some-handle']
requeststringWhat the merchant asked for, verbatim if possible

shopbuddy_pull

Re-download the staging theme into the workspace (resets local edits to the server baseline).

ParameterTypeDescription
workspacestring

shopbuddy_status

Change request status plus local files added/modified/deleted vs the baseline, and whether they are pushed yet.

ParameterTypeDescription
workspacestring

shopbuddy_validate

Run Shopify Theme Check and JSON checks on the workspace, scoped to changed files. Fix every error before pushing.

ParameterTypeDescription
workspacestring

shopbuddy_push_preview

Upload changed files to the unpublished staging theme, run server-side validation, and queue before/after screenshots. Returns the revision with previewUrl, validation, risk, and any pushError.

ParameterTypeDescription
message *stringOne-line summary of what changed
workspacestring

shopbuddy_submit

Mark the latest pushed revision ready for human review (pushes first if there are unpushed changes). Share the returned reviewUrl with the user.

ParameterTypeDescription
message *stringWhat changed and why, for the reviewer
workspacestring

shopbuddy_review

Full detail of the change request: revisions, files with diffs, validation, screenshots, approval, deployments.

ParameterTypeDescription
workspacestring

shopbuddy_set_preview_pages

Set which storefront paths get screenshotted for this change (e.g. ['/', '/products/handle']). Applies to the next push.

ParameterTypeDescription
pages *array
workspacestring