The official CLI to get started with Smithery.
This package helps you set up a new Smithery project for building MCPs.
To create a new Smithery project, run the following command in your terminal:
npm create smithery
You will be prompted to enter a name for your project. A new directory will be created with that name, containing a basic Smithery project structure.
Alternatively, you can specify the project name directly:
npm create smithery <your-project-name>
You can specify a package manager to use for installing dependencies. By default, it uses npm
.
To use a different package manager, use the --package-manager
flag:
npm create smithery -- --package-manager <yarn|pnpm|bun>
Note the extra --
which is needed to pass flags to the underlying script.
To work on this package locally:
- Clone the repository.
- Run
npm install
to install dependencies. - Run
npm run build
to build the project. - To test your local changes, you can run
node dist/index.js <test-project-name>
.