Skip to content

Commit bf965f1

Browse files
committed
Add GITHUB_COPILOT_MCP_JSON environment variable to copilot job
1 parent bdd12c9 commit bf965f1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/copilot-test-tools.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,19 @@ jobs:
3232
- run: copilot -p "$PROMPT" --allow-all-tools --log-level debug --log-dir ~/.copilot/logs
3333
id: copilot
3434
env:
35+
GITHUB_COPILOT_CLI_MODE: true # This skips default servers
3536
GITHUB_COPILOT_3P_MCP_ENABLED: true
37+
GITHUB_COPILOT_MCP_JSON: |
38+
{
39+
"mcpServers": {
40+
"actions-toolkit-mcp": {
41+
"type": "local",
42+
"command": "npx",
43+
"tools": [ "*" ],
44+
"args": ["-y", "actions-toolkit-mcp"]
45+
}
46+
}
47+
}
3648
GH_TOKEN: ${{ secrets.PAT }}
3749
PROMPT: |
3850
list all your tools.

0 commit comments

Comments
 (0)