Skip to content

Commit 8831f92

Browse files
committed
Add configuration for local MCP server in CI action
1 parent 39f610a commit 8831f92

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/actions/ci-fix/action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@ runs:
1414
- uses: actions/checkout@v5
1515
- run: npm install -g @github/copilot
1616
shell: bash
17+
- run: |
18+
mkdir -p ~/.copilot
19+
cat > ~/.copilot/mcp-config.json << 'EOF'
20+
{
21+
"mcpServers": {
22+
"actions-toolkit-mcp": {
23+
"type": "local",
24+
"command": "npx",
25+
"tools": [ "*" ],
26+
"args": ["-y", "actions-toolkit-mcp"]
27+
}
28+
}
29+
}
30+
EOF
31+
shell: bash
1732
- run: copilot -p "$PROMPT" --allow-all-tools
1833
id: copilot
1934
shell: bash

0 commit comments

Comments
 (0)