Subchapter 5.17
references/setup/github_copilot.mdMarkdown3 KBView on GitHub
To get the most out of Firebase with GitHub Copilot in VS Code, follow these steps to install the agent skills and the MCP server.
The agent skills and MCP server should be installed globally for consistent access across projects.
Check if the skills are already installed before proceeding:
npx skills list --agent github-copilot. If the
output includes firebase-basics, the skills are already installed locally.npx skills list --global --agent github-copilotfirebase-basics, the skills are already installed
globally.npx skills add firebase/agent-skills --agent github-copilot --skill "*"--yes and --global to choose the installation location
manually. If prompted interactively in the terminal, ensure you send the
appropriate user choices via standard input to complete the installation.firebase-basics is now available.The MCP server allows GitHub Copilot to interact directly with Firebase projects.
Locate mcp.json: Find the configuration file for your environment:
.vscode/mcp.jsonmcp.json file.Note: If the .vscode/ directory or mcp.json file does not exist, create
them and initialize the file with { "mcp": { "servers": {} } } before
proceeding.
Check Existing Configuration: Open the mcp.json file and check the
mcp.servers object for a firebase entry.
command is "firebase" OR if the
command is "npx" with "firebase-tools" and "mcp" in the args.firebase entry is found, the MCP server is
already configured. Skip step 3 and proceed directly to step 4.Example valid configurations:
"firebase": {
"type": "stdio",
"command": "npx",
"args": ["-y", "firebase-tools@latest", "mcp"]
}OR
"firebase": {
"type": "stdio",
"command": "firebase",
"args": ["mcp"]
}Add or Update Configuration: If the firebase block is missing or
incorrect, add it to the mcp.servers object:
"firebase": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"firebase-tools@latest",
"mcp"
]
}CRITICAL: Merge this configuration into the existing mcp.json file under
the mcp.servers object. You MUST preserve any other existing servers inside
mcp.servers.
Verify Configuration: Save the file and confirm the firebase block is
present and properly formatted JSON.