Getting Started
Get from zero to a running local site in under two minutes.
Prerequisites
Section titled “Prerequisites”- Node.js 18 or later
- npm 9 or later
- A GitHub repository (for deployment)
Scaffold a new site
Section titled “Scaffold a new site”Run the init CLI from your project root:
npx @mcptoolshop/site-theme initThis creates a site/ directory containing:
- Astro project with Tailwind CSS v4 pre-wired
- Theme CSS imports and
@sourcepath configured - A starter
site-config.tswith example content - GitHub Pages workflow (
.github/workflows/pages.yml)
Install and run
Section titled “Install and run”cd sitenpm installnpm run devOpen http://localhost:4321 to see your site.
Choose a template
Section titled “Choose a template”The default scaffold uses the default template (a single landing page). To start with a different template:
npx @mcptoolshop/site-theme init --template docsnpx @mcptoolshop/site-theme init --template productnpx @mcptoolshop/site-theme init --template portfolionpx @mcptoolshop/site-theme init --template appPreview what files will be created without writing anything:
npx @mcptoolshop/site-theme init --template app --dry-runScaffold into a different directory (useful for monorepos):
npx @mcptoolshop/site-theme init --out ../other-repoSee the Templates page for details on each option.
What the CLI sets up
Section titled “What the CLI sets up”The init command handles all the wiring so you do not need to configure anything manually:
- CSS imports —
global.cssimports Tailwind and the theme stylesheet @sourcepath — Points Tailwind at the theme’s component files so utilities are generated- Base path — Set to your repo name for GitHub Pages compatibility
- CI workflow —
.github/workflows/pages.ymlbuilds and deploys on push tosite/
Next steps
Section titled “Next steps”- Edit
site/src/site-config.tsto customize your content - Override design tokens to change colors
- Push to GitHub and deploy