Setup Guides

Configure MCP with your preferred AI assistant. GitHub Copilot is recommended for the best experience.

1

Install GitHub Copilot

Install the GitHub Copilot and GitHub Copilot Chat extensions in VS Code.

Install from Marketplace
2

Create MCP Configuration

Create a .vscode/mcp.json file in your project root:

json .vscode/mcp.json
{
  "servers": {
    "Azure Developer CLI - App Extension": {
      "command": "azd",
      "args": ["app", "mcp", "serve"]
    }
  }
}

This file tells VS Code how to connect to the azd-app MCP server. The server starts automatically when you open Copilot Chat.

3

Restart VS Code

Close and reopen VS Code to load the new MCP configuration.

4

Start Your Services

Run your services so Copilot can access their status and logs:

bash
azd app run
5

Open Copilot Chat

Open GitHub Copilot Chat with Ctrl+Shift+I (or Cmd+Shift+I on Mac).

Try asking:

"What services are running?" "Show me errors from the API service" "Why is my database connection failing?"

Verify It's Working

When MCP is working correctly, you'll see Copilot reference your actual service names and show real-time data from your running services.

Troubleshooting

MCP server not connecting

Make sure:

  • azd-app is installed: run azd app --help
  • The mcp.json file is in the correct location
  • You've restarted your editor/application
  • Your services are running with azd app run
Copilot doesn't show service information

The MCP server needs running services to report on. Make sure:

  • You have an azure.yaml file in your project
  • Services are running with azd app run
  • Try asking: "List the MCP tools available"
Getting permission errors

On macOS/Linux, you may need to grant terminal access. Check:

  • System Preferences → Security & Privacy → Privacy → Developer Tools
  • Ensure your editor has permission to run terminal commands

Next Steps