Setup Wizard
The BookYourPTO wizard is a small command-line tool that connects the AI assistants on your computer to BookYourPTO in one step. Run it, choose your clients, restart them, and ask your assistant about your time off.
npx -y @bookyourpto/wizard@latest mcp add
It needs Node.js 18 or later, which also provides npx. Nothing is installed permanently: npx downloads the wizard, runs it and leaves it in its cache.
When it finishes, each client you picked is connected to https://mcp.bookyourpto.com/mcp, and the first question you ask opens BookYourPTO's sign-in page in your browser.
How it works
- Looks for the AI clients installed on your computer (see Supported AI clients).
- Lists the ones it found and asks which to connect. Press Enter for all of them, or type numbers such as
1,3. - Adds a server named
bookyourptoto each chosen client's MCP settings. Only the server address is written. - Backs up every settings file before changing it, and leaves all your other servers exactly as they were.
- For clients that are connected from inside the app rather than from a settings file, prints the steps to follow.
- Tells you to restart the clients. The first time one of them uses BookYourPTO, your browser opens so you can sign in, with two-factor authentication if your account has it.
Supported AI clients
| Client | Found when | What the wizard does |
|---|---|---|
| Claude Code | The claude command is installed | Runs claude mcp add --transport http --scope user bookyourpto https://mcp.bookyourpto.com/mcp, so the server is available in every project |
| Cursor | ~/.cursor exists | Adds bookyourpto to ~/.cursor/mcp.json |
| VS Code (GitHub Copilot) | Your VS Code user settings folder exists | Adds bookyourpto to your user mcp.json, available in every workspace |
| Windsurf | ~/.codeium/windsurf exists | Adds bookyourpto to ~/.codeium/windsurf/mcp_config.json |
| Claude Desktop and claude.ai | The Claude desktop app is installed (macOS or Windows) | Prints the in-app steps: Settings → Connectors → Add custom connector |
ChatGPT and other clients that are set up in their own app are not changed by the wizard. Follow the steps for your client in Connecting.
Commands
Running npx @bookyourpto/wizard mcp add starts the setup. The wizard also has these commands:
| Command | What it does |
|---|---|
npx @bookyourpto/wizard mcp add | Connect BookYourPTO to the clients you choose |
npx @bookyourpto/wizard mcp status | Show which clients have BookYourPTO set up, and where |
npx @bookyourpto/wizard mcp remove | Remove BookYourPTO from the clients you choose |
npx @bookyourpto/wizard --help | Show every command and option |
Options
Options work with every command.
| Option | What it does |
|---|---|
--client <ids> | Only these clients, comma-separated: claude-code, cursor, vscode, windsurf, claude-desktop. Skips the question |
--all | Every client the wizard finds, without asking |
--dry-run | Show what would change, and change nothing |
--url <url> | Connect to a different server address, such as a self-hosted server. Must use https (plain http is allowed only for localhost) |
For example, to connect only Cursor and VS Code without being asked:
npx -y @bookyourpto/wizard@latest mcp add --client cursor,vscode
When the wizard is not run in an interactive terminal (in a script, for example), it connects every client it finds, as if --all were given.
What it changes on your computer
- Settings files. Only the
bookyourptoentry is added, updated or removed. Before writing, the wizard copies the file to<file>.bak-<date and time>next to it, then saves the new version in one step, so an interrupted run never leaves a half-written file. Files it creates can be read only by you. - Claude Code. Changes go through Claude Code's own
claude mcpcommand rather than editing its files directly. If BookYourPTO is already set up, the wizard replaces the entry so a new address takes effect. - Files it cannot read safely. If a settings file contains comments or is not plain JSON, the wizard leaves it untouched and prints the exact entry for you to add yourself.
- Nothing else. The wizard sends no analytics and makes no network requests of its own. The only download is the wizard itself, fetched by
npx.
--url with an address that is not mcp.bookyourpto.com, the wizard warns you before continuing. Only connect to a server you set up yourself: it receives everything your AI assistant sends it.Troubleshooting
"No supported AI client was found on this computer"
The wizard looks for each client's settings folder. Open the client once so it creates them, then run the wizard again. You can also add the server by hand: see Connecting.
A client shows "not changed" and prints an entry
Its settings file has comments or is not plain JSON, so the wizard did not risk rewriting it. Paste the printed entry into the file yourself.
npx is not found
Install Node.js 18 or later from nodejs.org, open a new terminal, and run the command again.
The tools do not appear after setup
Restart the client completely. In Claude Code, run /mcp to see the server and start the sign-in. Then check Troubleshooting in Connecting.
Undoing it
Run npx @bookyourpto/wizard mcp remove, or restore the .bak- copy the wizard made next to the settings file.
Feedback
The wizard is open to everyone at npmjs.com/package/@bookyourpto/wizard. If a client you use is missing, or the wizard did something unexpected, email support@bookyourpto.com.
Overview
Connect AI assistants to your BookYourPTO workspace using the Model Context Protocol (MCP). Manage leaves, time tracking, expenses, schedules, HR, performance, and more from any MCP-compatible client.
Connecting
Connect your AI tool to BookYourPTO with one command, or step by step. Supports Claude.ai connectors, Claude Code, Cursor, VS Code, Claude Desktop, Windsurf, and ChatGPT.