You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dashboard will open automatically at `http://localhost:5050`.
52
+
15
53
## Demonstrating AI Debugging
16
54
17
-
This project includes an **intentional bug** for demonstrating AI debugging capabilities:
55
+
This project includes an **intentional bug** for demonstrating AI debugging capabilities.
18
56
19
57
### The Bug
20
58
@@ -34,9 +72,9 @@ curl -X POST http://localhost:3000/items \
34
72
35
73
### Using Copilot to Debug
36
74
37
-
1. Run the service with `azd-app run`
75
+
1. Run the service with `azdapp run`
38
76
2. Trigger the bug with the curl command above
39
-
3. Open GitHub Copilot and ask:
77
+
3. Open GitHub Copilot Chat (<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>I</kbd> on Windows/Linux or <kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>I</kbd> on macOS) and ask:
40
78
41
79
> "Check the API logs for errors"
42
80
@@ -56,31 +94,46 @@ curl -X POST http://localhost:3000/items \
56
94
57
95
## MCP Configuration
58
96
59
-
The `.vscode/mcp.json` file configures the azd-app MCP server for Copilot:
97
+
The `.vscode/mcp.json` file configures the azdapp MCP server for Copilot:
60
98
61
99
```json
62
100
{
63
101
"servers": {
64
-
"azd-app": {
65
-
"type": "stdio",
66
-
"command": "azd-app",
67
-
"args": ["mcp"]
102
+
"Azure Developer CLI - App Extension": {
103
+
"command": "azd",
104
+
"args": ["app", "mcp", "serve"]
68
105
}
69
106
}
70
107
}
71
108
```
72
109
73
110
## Available MCP Tools
74
111
75
-
When debugging with Copilot, these tools are available:
112
+
When debugging with Copilot, 10 tools are available across three categories:
76
113
114
+
### Observe
77
115
| Tool | Description |
78
116
|------|-------------|
79
-
|`get_services`| List all services and their status |
80
-
|`get_service_logs`| Fetch logs from a running service |
81
-
|`restart_service`| Restart a service after code changes |
117
+
|`get_services`| List all services with status, ports, and health |
118
+
|`get_service_logs`| Fetch logs with optional filtering by level and time |
82
119
|`get_project_info`| Get azure.yaml configuration |
0 commit comments