Skip to content

Getting Started

Get from zero to a running local site in under two minutes.

  • Node.js 18 or later
  • npm 9 or later
  • A GitHub repository (for deployment)

Run the init CLI from your project root:

Terminal window
npx @mcptoolshop/site-theme init

This creates a site/ directory containing:

  • Astro project with Tailwind CSS v4 pre-wired
  • Theme CSS imports and @source path configured
  • A starter site-config.ts with example content
  • GitHub Pages workflow (.github/workflows/pages.yml)
Terminal window
cd site
npm install
npm run dev

Open http://localhost:4321 to see your site.

The default scaffold uses the default template (a single landing page). To start with a different template:

Terminal window
npx @mcptoolshop/site-theme init --template docs
npx @mcptoolshop/site-theme init --template product
npx @mcptoolshop/site-theme init --template portfolio
npx @mcptoolshop/site-theme init --template app

Preview what files will be created without writing anything:

Terminal window
npx @mcptoolshop/site-theme init --template app --dry-run

Scaffold into a different directory (useful for monorepos):

Terminal window
npx @mcptoolshop/site-theme init --out ../other-repo

See the Templates page for details on each option.

The init command handles all the wiring so you do not need to configure anything manually:

  1. CSS importsglobal.css imports Tailwind and the theme stylesheet
  2. @source path — Points Tailwind at the theme’s component files so utilities are generated
  3. Base path — Set to your repo name for GitHub Pages compatibility
  4. CI workflow.github/workflows/pages.yml builds and deploys on push to site/
  • Edit site/src/site-config.ts to customize your content
  • Override design tokens to change colors
  • Push to GitHub and deploy