Skip to Content
AI IDE SetupGitHub Copilot

GitHub Copilot

Set up VS Code with GitHub Copilot to start AI-ready development with your Buildpad.ai project. Your AI assistant connects directly to your backend so it can understand your data, generate code, and follow your project’s conventions.

Download a ready-to-use starter project for VS Code. It includes your project credentials and backend connections so your AI assistant can access your data and follow your project’s conventions from the start.

Prerequisites

  • Visual Studio Code  installed on your machine.
  • GitHub Copilot extension installed and activated (requires a GitHub Copilot subscription).
  • A Buildpad.ai project with a running environment.

Download the Starter Project

From your project’s Details page in Buildpad.ai, find the AI IDE Setup section and click Download Starter under the VS Code GitHub Copilot card. A microapp’s Detail tab has the same AI IDE Setup section, where the card is called VS Code.

The starter carries the project’s tokens, so only the project’s Admins can download it. On the Details page, other people see a note in place of the downloads that says only the project’s Admins can download them. On a microapp’s Detail tab, the download is refused with a message that only people who can manage the project can use its credentials. To get the download, ask a project Admin to give you the Admin role on the project’s Access page. See Roles and Access.

The download contains a ready-to-use project with Copilot instructions, 70 agent skills, and backend connections — everything your AI assistant needs to understand your project and start coding.

AI IDE setup showing VS Code download option

Explore the Project Structure

The starter project comes with a rich set of agent skills and backend connections for your AI assistant:

      • copilot-instructions.md

Key components:

  • .github/copilot-instructions.md — Core rules and guidelines that Copilot follows when assisting with your project.
  • .github/instructions/ — Scoped standards that VS Code loads only for matching files: api-standards.instructions.md for API routes (app/api/**/*.ts) and component-standards.instructions.md for components (**/*.tsx). skills-index.instructions.md holds the skill catalog. It does not load automatically: attach it to chat when you need the full list, or type /.
  • .github/skills/ — 70 agent skills that teach Copilot how to perform tasks like creating API routes, generating tests, scaffolding features, and more — including the spec-driven development workflow (/buildpad-spec-*). Skills are activated automatically when your request matches what they do.
  • .github/agents/ — Three subagents: code-reviewer, test-engineer and security-auditor. .github/references/ — Checklists for accessibility, module access, performance, security and testing.
  • .github/templates/ — Project templates (minimal, standard, enterprise) for bootstrapping new applications.
  • .vscode/mcp.json — Connects your AI assistant to three backend services using the Model Context Protocol (MCP) , an open standard for connecting AI tools to external services.
  • .buildpad/project.json — Records the project’s backend (engine or supabase). The skills read it, and the kit holds only the guidance for that backend. Commit this file with your code.

Configure MCP Servers

The .vscode/mcp.json file connects Copilot to three backend services:

  • buildpad — Gives Copilot access to the Buildpad UI component library, API patterns, and platform conventions so it can write code that follows your project’s standards.
  • daas — Connects Copilot to your project’s live backend, giving it direct access to your database collections, schemas, and runtime environment for accurate code generation.
  • buildpad-platform — Connects Copilot to the Buildpad platform, giving it access to your full project context: organization, project configuration, microapps, and environment URLs.
.vscode/mcp.json
{ "servers": { "buildpad": { "command": "npx", "args": ["-y", "@buildpad/mcp@latest"] }, "daas": { "type": "http", "url": "<Engine URL>/api/mcp", "headers": { "Authorization": "Bearer <your-service-token>" } }, "buildpad-platform": { "type": "http", "url": "https://app.buildpad.ai/api/tools/mcp", "headers": { "Authorization": "Bearer <your-mcp-token>" } } } }
.vscode/mcp.json
{ "servers": { "buildpad": { "command": "npx", "args": ["-y", "@buildpad/mcp@latest"] }, "daas": { "type": "http", "url": "https://<your-project-id>.daas.buildpad.ai/api/mcp", "headers": { "Authorization": "Bearer <your-daas-token>" } }, "buildpad-platform": { "type": "http", "url": "https://app.buildpad.ai/api/tools/mcp", "headers": { "Authorization": "Bearer <your-mcp-token>" } } } }
✅

Your credentials are pre-filled — When you download the starter from the platform, your project’s backend URL and tokens are filled in automatically. No manual configuration needed!

On a Buildpad Engine project, daas points at <Engine URL>/api/mcp and carries the project’s service token. The service token works for MCP only: the Engine refuses it on its data API. See The Starter Kit.

On a Supabase project, daas points at the project’s DaaS (*.daas.buildpad.ai) and carries the project’s DaaS token. See The Starter Kit.

On both backends, buildpad-platform carries a personal token (bpu_…) that the platform creates for you at each download. You can have up to 25 active personal tokens per project. At the limit, the download is refused (409) until you revoke tokens you no longer use. Downloading the starter again for the same AI IDE and app replaces your earlier starter token: the old one stops working.

The starter kit connects buildpad-platform with your personal MCP token. You can instead connect it to https://app.buildpad.ai/api/mcp with no token and sign in with your Buildpad.ai account. One sign-in then reaches all your projects. See Platform MCP.

Start the Backend Connections

Once you open the project in VS Code:

  1. VS Code will detect the .vscode/mcp.json and prompt you to start the backend connections. Click Start to activate them.
  2. Alternatively, open the Command Palette (Cmd+Shift+P on macOS / Ctrl+Shift+P on Windows) and run MCP: List Servers to view and manage your connections.
  3. Once running, Copilot can query your database, look up component documentation, and generate code that works with your actual data.

To let the agent look things up in the Buildpad docs too, add the read-only docs MCP server. See Docs for AI Agents.

Start Building with AI

With the backend connections active, open Copilot Chat in agent mode and start describing what you want to build. Copilot will use the skills and backend connections to:

  • Create projects — Bootstrap a full Next.js application with DaaS integration.
  • Scaffold features — Generate CRUD pages, forms, and API routes from your collection schemas.
  • Generate tests — Create Playwright end-to-end tests for your application.
  • Manage data — Create collections and set up role-based access control. A Buildpad Engine project has no migrations: the agent uses the create-collection and create-rbac skills instead.On a Supabase project, the agent also writes database migrations.
  • Add UI components — Install and configure Buildpad UI packages for forms, tables, and more.
  • Add AI features — Add a chat with a Chocolate Factory agent (the add-ai-chat skill), or an MCP server that lets AI agents use your app’s own data (the add-mcp-server skill). A starter downloaded before these skills were added can get them with npx skills add buildpad-ai/skills. See Chat With Your Data.

Updating Skills

The skills in your starter are a snapshot from download time, vendored from the canonical buildpad-ai/skills  repository. As Buildpad ships new and improved skills, pull them into your project with the skills CLI  — no re-download needed:

npx skills add buildpad-ai/skills --all

Then check and update later with npx skills check and npx skills update.

📁

This starter keeps Copilot skills in .github/skills/, while the skills CLI may install them to .agents/skills/ (the cross-agent convention VS Code also reads). Pick one location and stick with it — having both copies leads to drift.

Additional Resources

Last updated on