Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

github-actions-mcp-config

БесплатноБез исполняемых скриптовНе проверен

MCP server config for GitHub Actions — tool permissions, env vars, multi-server setups. Use when configuring MCP servers in GitHub Actions workflows.

laurigatesот laurigates★ 61 звезда на GitHub

Об этом скилле

GitHub Actions MCP Configuration

When to Use This Skill

Use this skill when... Use claude-code-github-workflows instead when...
Wiring --mcp-config JSON into anthropics/claude-code-action@v1 Designing the workflow trigger, permissions block, or job structure
Constraining tool access via --allowedTools / --disallowedTools patterns Authoring PR-review, issue-triage, or CI-failure-autofix prompts
Adding a Python (uvx) or Node MCP server with secret-backed env vars Setting up the auth method (API key vs Bedrock vs Vertex) — see github-actions-auth-security

Expert knowledge for configuring MCP (Model Context Protocol) servers in GitHub Actions workflows, including tool permissions and multi-server coordination.

Core Expertise

MCP Server Configuration

  • Single and multi-server setups
  • Environment variable management
  • Server initialization and validation
  • Tool permission patterns

Tool Access Control

  • Allowed and disallowed tool patterns
  • Command-specific permissions
  • Security boundaries and restrictions
  • Language-specific tool configurations

MCP Server Configuration

Single MCP Server (Node.js)

- uses: anthropics/[email protected]
  with:
    anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
    claude_args: |
      --mcp-config '{"mcpServers":{"github":{"command":"node","args":["/path/to/server.js"]}}}'

Multiple MCP Servers with Secrets

- uses: anthropics/[email protected]
  with:
    anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
    claude_args: |
      --mcp-config '{
        "mcpServers": {
          "github": {
            "command": "node",
            "args": ["./github-mcp/dist/index.js"],
            "env": {"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}"}
          },
          "postgres": {
            "command": "uvx",
            "args": ["mcp-server-postgres", "--connection-string", "${{ secrets.DB_URL }}"]
          }
        }
      }'

Python MCP Server with uv

- uses: anthropics/[email protected]
  with:
    anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
    claude_args: |
      --mcp-config '{
        "mcpServers": {
          "data-processor": {
            "command": "uvx",
            "args": ["--from", "my-mcp-package", "run-server"],
            "env": {
              "API_KEY": "${{ secrets.API_KEY }}"
            }
          }
        }
      }'

Tool Access Control

Allow Specific Bash Commands

claude_args: |
  --allowedTools 'Bash(npm *)' 'Bash(pytest *)' 'Bash(cargo *)'

Enable GitHub Actions Access

permissions:
  actions: read  # Required for CI/CD tools

claude_args: |
  --allowedTools 'Bash(gh run *)' 'Bash(gh workflow *)'

Allow Test and Lint Commands

claude_args: |
  --allowedTools 'Bash(npm test *)' 'Bash(npm run lint *)' 'Bash(pre-commit *)'

Allow Build Commands with Restrictions

claude_args: |
  --allowedTools 'Bash(make *)' 'Bash(docker build *)'
  --disallowedTools 'Bash(docker push *)' 'Bash(rm -rf *)'

Block Dangerous Operations

claude_args: |
  --allowedTools 'Bash(docker build *)'
  --disallowedTools 'Bash(docker push *)' 'Bash(rm -rf *)' 'Bash(curl *)' 'Bash(wget *)'

Tool Permission Reference

Always Enabled (No Configuration Needed)

  • Read, Write, Edit, Glob, Grep - File operations
  • mcp__github - GitHub operations
  • Basic Claude Code tools

Language-Specific Tool Patterns

Pattern Purpose Example
'Bash(npm *)' All npm commands npm test, npm run build
'Bash(pytest *)' Python testing pytest, pytest --cov
'Bash(cargo *)' Rust commands cargo test, cargo build
'Bash(go test *)' Go testing go test ./...
'Bash(git *)' All git commands git status, git commit
'Bash(pre-commit *)' Pre-commit hooks pre-commit run --all-files
'Bash(actionlint *)' Action linting actionlint .github/workflows/
'Bash(gh *)' GitHub CLI gh pr create, gh issue list

Build and Deployment Tools

Pattern Purpose Use Case
'Bash(make *)' Make commands Build automation
'Bash(docker build *)' Docker build only Container creation
'Bash(kubectl *)' Kubernetes CLI K8s operations
'Bash(terraform *)' Infrastructure as Code Terraform operations

MCP Server Best Practices

Configuration

  • Always use GitHub secrets for sensitive credentials
  • Validate MCP server availability before workflow execution
  • Use environment variables for dynamic configuration
  • Document required secrets in repository README
  • Test MCP servers locally before deploying to CI

Error Handling

# Verify server availability
- run: node ./mcp-server/index.js --version

# Check environment variables
- run: env | grep API_KEY

# Test server local
Полный SKILL.md на GitHub

Установить github-actions-mcp-config в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(actionlint *)
Bash(gh run list *)
Read
Write
Edit
Grep
Glob
WebFetch

FAQ

Что делает скилл github-actions-mcp-config?

MCP server config for GitHub Actions — tool permissions, env vars, multi-server setups. Use when configuring MCP servers in GitHub Actions workflows.

Как установить скилл github-actions-mcp-config?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл github-actions-mcp-config запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить github-actions-mcp-config с