Astro + Cursor
A Cursor project rule and MCP servers for your stack. This page shows exactly what pickstack adds to a Astro project for Cursor: the packages, the new files and the changes to existing ones. Every combination is installed, built, linted and tested in CI.
$ npm create pickstack@latest my-app -- --framework astro --modules cursor --yesCustomize in the configurator
New files
{
"mcpServers": {
"astro-docs": {
"type": "http",
"url": "https://mcp.docs.astro.build/mcp"
}
}
}
---
description: Project structure, conventions and checks for source files
globs: "src/**/*.{astro,ts,js}"
alwaysApply: false
---
Follow the structure, conventions and checks in AGENTS.md at the repository root.
# my-app
Stack: Astro, TypeScript.
## Commands
- `npm install`: install dependencies
- `npm run dev`: start the dev server
- `npm run build`: production build
- `npm run preview`: serve the production build
- `npm run astro`
- `npm run typecheck`: type-check
## Project structure
- Pages are `.astro` files in `src/pages/`; layouts in `src/layouts/`, components in `src/components/`.
## Conventions
- Pages render to static HTML; interactivity goes in `<script>` tags or client islands.
- TypeScript strict mode; avoid `any`.
## Before finishing a change
Run `npm run typecheck` and fix what they report.
Project files
.cursor/mcp.json.cursor/rules/astro.mdc.gitignoreAGENTS.mdREADME.mdastro.config.mjspackage.jsonsrc/components/Counter.astrosrc/layouts/Layout.astrosrc/pages/about.astrosrc/pages/index.astrosrc/styles/global.csstsconfig.json