Skip to content

Commit 1288221

Browse files
committed
fix: update AKS MCP URL to correct port and enhance health check workflow with Copilot integration
1 parent 0042074 commit 1288221

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

.copilot/mcp-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"aks-mcp": {
1212
"type": "http",
13-
"url": "http://localhost:8080/mcp/",
13+
"url": "http://localhost:8000/mcp/",
1414
"tools": ["*"]
1515
}
1616
}

.github/workflows/copilot-aks.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,22 @@ jobs:
8989
--name ${{ steps.cluster-info.outputs.CLUSTER_NAME }} \
9090
--overwrite-existing
9191
echo "Kubeconfig fetched successfully!"
92-
- name: Run AKS agent health check (TTY-safe)
93-
uses: azure/CLI@v2
94-
with:
95-
inlineScript: |
96-
set -euo pipefail
9792
98-
# `script` provides a pseudo-TTY so the exec-in-pod path doesn't crash in CI
99-
script -q -e -c \
100-
'az aks agent "Is my cluster healthy?"--resource-group ${{ steps.cluster-info.outputs.RESOURCE_GROUP }} --name ${{ steps.cluster-info.outputs.CLUSTER_NAME }} --namespace aks-mcp --no-interactive' \
101-
/dev/null
93+
- name: Run Copilot to get AKS info
94+
env:
95+
GITHUB_MCP_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Workflow token for MCP GitHub operations (issues)
96+
GITHUB_TOKEN: ${{ secrets.COPILOT_CLI_TOKEN }} # Personal PAT for Copilot API authentication
97+
run: |
98+
echo "Analyzing issue #${{ github.event.issue.number }}"
99+
echo "Loading documentation criteria from prompt..."
100+
101+
export PROMPT="How many nodes are in my AKS Cluster? Once you have that info, create a new GitHub Issue in this repository with the AKS Cluster node count information."
102+
103+
echo "Delegating to GitHub Copilot..."
104+
echo "- Copilot will use MCP to examine the AKS Cluster"
105+
echo "- Copilot will use MCP to write the info to a new GitHub Issue"
106+
echo ""
107+
108+
copilot -p "$PROMPT" \
109+
--additional-mcp-config @'.copilot/mcp-config.json' \
110+
--allow-all-tools

0 commit comments

Comments
 (0)