Usage
You can easily set up Pacy Devtools with an existing project, or you can scaffold a new project from the CLI.
Installation
Section titled “Installation”- First, install Pacy Devtools globally using
npm i -g pacy-devtools. If you’re going to use Pacy Devtools only with Claude Code or Codex, you can skip the following steps. - Install the IDE extension using the following link:
- Then, install the MCP server using
pacy install-mcpcommand. This CLI command will walk you through the process to install the MCP server for multiple AI agents at once. This step is crucial for receiving messages back from your AI agents.
Creating a new project
Section titled “Creating a new project”To create a new Vite project with Pacy Devtools, use one of these commands:
npm create pacy@latestyarn create pacypnpm create pacydeno init --npm pacyThis will set up a new project with Pacy Devtools already configured and ready to use. The installation will walk you through the steps to select one of the following options:
- React (
react,react-ts,react-swc,react-swc-ts) - Vue (
vue,vue-ts) - Svelte (
svelte,svelte-ts) - Preact (
preact,preact-ts) - Solid (
solid,solid-ts) - Qwik (
qwik,qwik-ts)
These are adapted from official Vite templates.
Using with an existing project
Section titled “Using with an existing project”Using it with an existing project is also a simple, two-step process.
-
Configure the project
This step might be optional depending on the project, but it’s recommended.
Pacy works out of the box with React (v17-18), Vue, and Svelte, when used with Vite. For other setups, a bundler plugin called
@pacy-dev/plugin-devtoolsis used. You can use this guide to configure your project. -
Run your project with
pacySimply run
pacyinstead of your “npm run dev” command. If you’re using a custom dev command, you can usepacy -c "npm run dev"with your custom command.How this works
This command will detect your npm client and it will run the
devcommand if it exists in the package.json. While running the command, it will detect the port of your dev server, and run a proxy server with the Pacy Devtools UI. You’ll see a message in the terminal such as:Pacy Devtools: 5173 -> http://localhost:15173. You can also use the--portor-poption to specify the port of your dev server instead of detecting it automatically.
Happy building! 🚀