From 857c10aed866fa4e8dc57f5d763f0c3420ed0a0b Mon Sep 17 00:00:00 2001 From: andig Date: Tue, 1 Jul 2025 11:07:48 +0200 Subject: [PATCH] chore: move mcp servers to file --- .github/workflows/claude-issue-triage.yml | 43 +++++++++++++++++------ 1 file changed, 33 insertions(+), 10 deletions(-) diff --git a/.github/workflows/claude-issue-triage.yml b/.github/workflows/claude-issue-triage.yml index 24675a64e..f9d3c8af9 100644 --- a/.github/workflows/claude-issue-triage.yml +++ b/.github/workflows/claude-issue-triage.yml @@ -12,21 +12,44 @@ jobs: contents: read issues: write steps: + - name: Setup GitHub MCP Server + run: | + mkdir -p /tmp/mcp-config + cat > /tmp/mcp-config/mcp-servers.json << 'EOF' + { + "github": { + "command": "docker", + "args": [ + "run", + "-i", + "--rm", + "-e", + "GITHUB_PERSONAL_ACCESS_TOKEN", + "ghcr.io/github/github-mcp-server:sha-7aced2b" + ], + "env": { + "GITHUB_PERSONAL_ACCESS_TOKEN": "${{ secrets.GITHUB_TOKEN }}" + } + } + } + EOF + - name: Run Claude Code uses: anthropics/claude-code-base-action@beta env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - mcp_servers: | - { - "github": { - "command": "npx", - "args": ["-y", "@modelcontextprotocol/server-github"], - "env": { - "GITHUB_PERSONAL_ACCESS_TOKEN": "${{ secrets.GITHUB_TOKEN }}" - } - } - } + mcp_config: /tmp/mcp-config/mcp-servers.json + # mcp_servers: | + # { + # "github": { + # "command": "npx", + # "args": ["-y", "@modelcontextprotocol/server-github"], + # "env": { + # "GITHUB_PERSONAL_ACCESS_TOKEN": "${{ secrets.GITHUB_TOKEN }}" + # } + # } + # } prompt: | You're an issue triage assistant for GitHub issues. Your task is to analyze the issue and select appropriate labels from the provided list.