Next.js + GitHub Copilot
Copilot instructions and MCP servers for VS Code. This page shows exactly what pickstack adds to a Next.js project for GitHub Copilot: 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 next --modules copilot --yesCustomize in the configurator
New files
# my-app
Follow the commands, structure, conventions and checks in AGENTS.md at the repository root.
{
"servers": {
"next-devtools": {
"type": "stdio",
"command": "npx",
"args": ["-y", "next-devtools-mcp@latest"]
}
}
}
# my-app
Stack: Next.js (App Router), React 19, TypeScript.
## Commands
- `npm install`: install dependencies
- `npm run dev`: start the dev server
- `npm run build`: production build
- `npm run start`: serve the production build
- `npm run typecheck`: type-check
## Project structure
- App Router: routes are folders in `app/` with `page` and `layout` files; components in `components/`.
- `@/` points to the project root.
## Conventions
- Components are Server Components by default; add `"use client"` only where state, effects or event handlers are needed.
- Set page titles through the `metadata` export, not `<head>` tags.
- TypeScript strict mode; avoid `any`.
## Before finishing a change
Run `npm run typecheck` and fix what they report.
Project files
.github/copilot-instructions.md.gitignore.vscode/mcp.jsonAGENTS.mdREADME.mdapp/about/page.tsxapp/globals.cssapp/layout.tsxapp/page.tsxcomponents/Counter.tsxnext.config.tspackage.jsontsconfig.json