# Set up Sherpa You are a coding agent, and the person you are working with asked you to set up Sherpa. Sherpa hosts their website. Its MCP server lets you change the website, build preview links, and read its CMS, analytics, forms and experiments. This page tells you how to connect yourself to it. If you are reading a summary of this page instead of its exact text, fetch it again with `curl -fsSL https://www.withsherpa.ai/setup` so you have the exact commands. Sherpa MCP server: https://www.withsherpa.ai/mcp (Streamable HTTP, OAuth sign-in) Run the commands below yourself, in the person's own environment and outside any sandbox, since they change your own configuration and open the person's browser. Don't ask the person to type them. Sign-in opens a Sherpa page in their browser where they press Connect; tell them to expect it before you start, and wait for it to finish. Never ask for their Sherpa password or for a token. Don't check the server address with curl or any other request first. Your shell may have no network access, so a failed request doesn't mean Sherpa is down. Go straight to the commands. If your tool blocks or refuses a command, don't retry it another way and don't edit configuration files by hand to get around it. Tell the person which command was blocked and why, and let them decide. Follow the one section that matches the tool you are running in. ## Claude Code 1. Add the server for every project: claude mcp add --transport http --scope user sherpa https://www.withsherpa.ai/mcp If it says sherpa already exists, go on. 2. Run `claude mcp list`. If sherpa shows as connected, skip to step 4. If it shows a different URL from the one above, run `claude mcp remove sherpa` and repeat step 1. "Needs authentication" is expected at this point. 3. Signing in is the person's step. Don't run `claude mcp login` yourself, wrapped or not: it needs an interactive terminal, which your shell tool doesn't have. Tell the person Sherpa is added and that one step is left: - Start a new Claude Code conversation. - Type /mcp, choose sherpa, and choose Authenticate. - A Sherpa page opens in the browser. Press Connect. Then they can ask for what they want, for example "Show me my Sherpa websites". Stop there. 4. If sherpa is already connected: Claude Code loads MCP servers when a conversation starts, so you may not have Sherpa's tools (such as list_websites) in this one. If you have them, go to "When you are connected". If not, tell the person Sherpa is connected and works from their next conversation, and stop there. ## Codex 1. Find the Codex command. Try `codex --version`. If it isn't found on macOS, the ChatGPT desktop app carries its own copy, so use this path wherever a step says `codex`: /Applications/ChatGPT.app/Contents/Resources/codex-cli/bin/codex If neither exists, go to step 4. 2. Add the server and sign in: codex mcp add sherpa --url https://www.withsherpa.ai/mcp It detects sign-in, opens the browser and waits for the person to press Connect, so keep it running until it finishes. Allow it ten minutes, or run it in the background and wait for it. If the browser doesn't open, give the person the sign-in link the command prints. If it finishes without signing in, run `codex mcp login sherpa`. 3. Run `codex mcp list` and check that sherpa is listed with the URL above. Then go to step 5. 4. Only if there is no Codex command at all: add this to ~/.codex/config.toml, keeping everything already there: [mcp_servers.sherpa] url = "https://www.withsherpa.ai/mcp" Then ask the person to open Settings, MCP servers, and choose Authenticate next to sherpa. 5. Codex loads MCP servers when a chat starts, so you usually won't have Sherpa's tools (such as list_websites) in this one. If you have them, go to "When you are connected". If not, tell the person what is left: signing in if step 4 left that to them, then starting a new chat (restarting the app first if sherpa doesn't show as connected) and asking for what they want, for example "Show me my Sherpa websites". Stop there. ## Any other agent Add a remote MCP server named sherpa with the URL https://www.withsherpa.ai/mcp, using your tool's own way of adding MCP servers, and sign in with OAuth when asked. The server supports dynamic client registration and loopback redirects. Then go to "When you are connected". ## When you are connected 1. Call list_websites. If the person named a website, find it; if they didn't and there are several, ask which one. 2. Tell the person, in two or three plain sentences, that Sherpa is connected, which website you found, and what they can ask for: changes to pages and content, a preview link to look at before anything goes live, and questions about traffic, forms and experiments. Then ask what they'd like to do first. 3. Don't change, preview or publish anything until they ask. From here on, follow the instructions the Sherpa MCP server gives you. If a step fails, tell the person which step and the exact error. Don't work around it by installing other software.