DocsFor agents and developers
MCP reference
Look up every tool the Sherpa MCP server gives an agent, with what it does and what it takes.
Everything a person can do on a Sherpa website is a tool an agent can call. This page lists every one, grouped by job, with whether it reads or writes and what it takes.
The server is at https://www.withsherpa.ai/mcp. New to it? Read How the Sherpa MCP works first.
Kind is Read when a tool never changes anything and Write when it does. Every tool also takes an optional rationale.
Find and read
| Tool | Kind | What it does | Takes |
|---|---|---|---|
list_websites | Read | Lists the workspaces the person belongs to, their role, and each website's id, name, address and dashboard links | Nothing |
list_files | Read | Lists a website's files with their sizes, from the published website or a change, optionally under one directory | website_id, change_id, directory, ref |
read_file | Read | Reads a file. Text comes back up to 2,000 lines at a time. PNG, JPEG, GIF and WebP come back as images | website_id, path, change_id, ref, start_line, end_line |
search_files | Read | Searches text files for a word, phrase or regular expression and returns matching lines with paths and line numbers | website_id, query, change_id, regex, case_sensitive, directory, extension, max_results |
get_file_history | Read | Lists the commits that changed a file, newest first | change_id, path, limit |
screenshot_page | Read | Captures a page of the live website or of a ready preview and returns the image | website_id, path, deployment_id, device, full_page |
Changes
| Tool | Kind | What it does | Takes |
|---|---|---|---|
start_change | Write | Starts a change, a separate branch copied from the live site. Returns the change id and the website's guide, skills and knowledge. Pass from_preview to build on someone's preview | website_id, title, from_preview |
list_changes | Read | Lists changes in progress, newest first, including teammates' | website_id, include_finished |
get_change | Read | A change's status. Its latest commit, whether the live site has moved on, the files it changes, its latest preview and its review | change_id |
edit_files | Write | Applies edits in order as one commit. Replace exact text, write a whole file, delete or move. Files under .github/ cannot be changed | change_id, message, edits |
get_change_diff | Read | Shows what a change does compared with the live site, per file | change_id, path |
import_file | Write | Adds any file up to 25 MB at a path. Image paths are converted to that format and scaled down. Takes one source, a url, a file or an upload_id | change_id, path, url or file or upload_id, max_width |
create_upload | Write | For an attached file the client cannot pass to a tool, such as in Claude. Returns a one-time upload URL and the command that sends the file from the agent's sandbox | website_id |
install_packages | Write | Adds, upgrades or removes npm packages and commits the lockfile. Install scripts never run | change_id, add, remove, dev |
revert_files | Write | Puts some of a change's files back to how they are on the live site, or at an earlier commit of the change | change_id, paths, to |
sync_change | Write | Merges the live site into the change when it has moved on. Returns conflicting files if both changed the same ones | change_id |
resolve_conflicts | Write | Finishes that merge. For every conflicting file, pass the merged content or keep one side | change_id, main_commit, files |
discard_change | Write | Withdraws a change's review and archives it, only when the person asks. A published change cannot be discarded | change_id |
restore_change | Write | Brings back a discarded change. Its old review is not reopened | change_id |
Preview and publish
| Tool | Kind | What it does | Takes |
|---|---|---|---|
preview_change | Write | Builds a shareable preview link. Each build adds a numbered version. Waits about 45 seconds. A failed build returns the end of its log | change_id, link (new or update), note |
get_preview_status | Read | Checks a preview build. Ready with its link, still building, or failed with the end of its log | deployment_id |
list_preview_links | Read | Lists a website's preview links, newest first, with each link's versions and notes | website_id, offset |
read_preview_comments | Read | Reads reviewers' comment threads on a preview link, across all its versions, with the page and element each points at | preview_id, status, thread_id, offset |
read_comment_image | Read | Returns an image attached to a preview comment | preview_id and the image's id |
submit_change | Write | Submits the change for review and returns the review link, only when the person asks to publish. They open it and press Publish. Refuses while CMS content would block publishing | change_id |
CMS
| Tool | Kind | What it does | Takes |
|---|---|---|---|
get_cms_schema | Read | Describes the CMS files. Each collection's _collection.json, each entry's file, field types and the rich text format | Nothing |
validate_cms | Read | Checks a change's cms/ files the way publishing does. Run it after editing content and fix every issue | change_id |
import_cms_image | Write | Adds an image to the CMS image library and returns its asset id, which image fields store | website_id, filename, url or file or upload_id |
Forms
| Tool | Kind | What it does | Takes |
|---|---|---|---|
manage_forms | Write | Lists, reads, creates and updates a website's forms, and lists their submissions. A form must exist in Sherpa before the website can submit to it | website_id, operation, input |
Analytics and funnels
| Tool | Kind | What it does | Takes |
|---|---|---|---|
get_analytics_schema | Read | Describes the tables, columns and query rules for one analytics source. Read it before writing a query | source |
query_analytics | Read | Runs one read-only query. SQL for sherpa, HogQL for posthog, a report request for ga4. Filter by time and add a limit | website_id, source, query |
list_funnels | Read | Lists a website's saved funnels with their keys and steps | website_id |
get_funnel | Read | Reads one saved funnel's full definition | website_id, key |
create_funnel | Write | Saves a funnel. Each step is one condition on a single event. Saving test-runs each step over the last 7 days and warns when one matches nothing | website_id, definition |
update_funnel | Write | Replaces a saved funnel's definition, keeping its key | website_id, key, definition |
delete_funnel | Write | Deletes a saved funnel, only when the person asks | website_id, key |
Experiments
| Tool | Kind | What it does | Takes |
|---|---|---|---|
validate_experiments | Read | Checks the experiment definitions in a change. Experiments are authored in sherpa.experiments.json and rendered in the page | change_id |
list_experiments | Read | Lists current experiment runs and the 50 most recent ended ones, with status, versions and traffic | website_id |
get_experiment_results | Read | Measures one run. Visitors per version and conversion through a funnel, with statistics that stay valid however often you look | website_id, experiment_id, funnel, refresh |
set_experiment_state | Write | Launches, pauses, resumes or ends a published run, only when the person asks. Ending is permanent | website_id, experiment_id, action |
set_experiment_allocations | Write | Sets the share of visitors each version gets, only when the person asks. Changing a running split moves some visitors to another version | website_id, experiment_id, allocations |
Domains
| Tool | Kind | What it does | Takes |
|---|---|---|---|
list_domains | Read | Lists custom domains, whether each is connected and the DNS records still needed | website_id |
add_domain | Write | Connects a domain the person owns and returns the DNS records to create. Adding the bare domain or www connects the other too | website_id, hostname |
check_domain | Write | Checks a domain's DNS records and certificate now | website_id, hostname |
set_primary_domain | Write | Makes one connected domain the main address. The others then redirect to it | website_id, hostname |
remove_domain | Write | Disconnects a domain, only when the person asks | website_id, hostname |
Domain tools are for workspace admins.
Team and workspaces
| Tool | Kind | What it does | Takes |
|---|---|---|---|
list_members | Read | Lists who can work on a workspace's websites, with roles and pending invites | workspace_id |
invite_member | Write | Emails an invitation. Only when the person asks in their own message, with the email and role they gave | workspace_id, email, role, client |
cancel_invite | Write | Cancels a pending invite so its link stops working. Admins only | workspace_id, email |
change_member_role | Write | Makes a member an admin or a member. Admins only. A workspace keeps at least one admin | workspace_id, email, role |
remove_member | Write | Removes someone from the workspace. Admins only. Confirm with the person first | workspace_id, email |
create_workspace | Write | Creates a workspace. Agency accounts only | name |
create_website | Write | Creates a website in a workspace and starts its first deployment | workspace_id, name, subdomain |
Feedback
| Tool | Kind | What it does | Takes |
|---|---|---|---|
send_feedback | Write | Sends the Sherpa team one message when something about Sherpa made the work harder | message, website_id |
Common questions
Which tools change something?
Each tool is marked Read or Write in the Kind column. Read tools never change anything.
How does an agent get a change published?
It calls submit_change, which sends the change for review. A person presses Publish.
What is the rationale argument?
An optional note every tool takes, saying why the agent is calling it.
Example prompts
Each one works as written in Claude or ChatGPT once Sherpa is connected. Swap in your own pages and dates.
List every Sherpa tool you have and group them by what they do.
Your agent's own view of this page.
Which of your Sherpa tools can change my website, and which only read?
The same Read and Write split, from the agent's side.
List my websites, then list the files under src/pages for the first one.
Two read-only calls that show the tools working.



