From be8784aedc892c343597656afa934df067ce3227 Mon Sep 17 00:00:00 2001 From: tobjend Date: Sun, 21 Jun 2026 17:59:17 +0200 Subject: [PATCH] feat: add github-mcp Docker image --- .woodpecker.yml | 11 +++++++++++ github/Dockerfile | 7 +++++++ github/README.md | 27 +++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 github/Dockerfile create mode 100644 github/README.md diff --git a/.woodpecker.yml b/.woodpecker.yml index 72dba7b..bdb6c06 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -34,3 +34,14 @@ pipeline: - docker login forgejo.corentic.eu -u tobi -p $FORGEJO_REGISTRY_TOKEN - docker build -t forgejo.corentic.eu/corentic/mcp-fleet-semaphore:latest -f semaphore/Dockerfile semaphore/ - docker push forgejo.corentic.eu/corentic/mcp-fleet-semaphore:latest + + build-github: + image: docker:latest + volumes: + - /var/run/docker.sock:/var/run/docker.sock + secrets: + - forgejo_registry_token + commands: + - docker login forgejo.corentic.eu -u tobi -p $FORGEJO_REGISTRY_TOKEN + - docker build -t forgejo.corentic.eu/corentic/mcp-fleet-github:latest -f github/Dockerfile github/ + - docker push forgejo.corentic.eu/corentic/mcp-fleet-github:latest diff --git a/github/Dockerfile b/github/Dockerfile new file mode 100644 index 0000000..ec7880b --- /dev/null +++ b/github/Dockerfile @@ -0,0 +1,7 @@ +FROM node:22-slim + +RUN npm install -g mcp-proxy@6.5.2 @modelcontextprotocol/server-github@2025.4.8 + +EXPOSE 8104 + +CMD ["mcp-proxy", "--port", "8104", "--host", "0.0.0.0", "--", "mcp-server-github"] diff --git a/github/README.md b/github/README.md new file mode 100644 index 0000000..f40a77a --- /dev/null +++ b/github/README.md @@ -0,0 +1,27 @@ +# github-mcp + +MCP server for interacting with the GitHub API. + +Source: [`@modelcontextprotocol/server-github`](https://www.npmjs.com/package/@modelcontextprotocol/server-github) + +> **Note:** This package is deprecated by the publisher. It remains functional for now. When a replacement is available, this image will be updated. + +## Environment Variables + +| Variable | Required | Description | +|----------|----------|-------------| +| `GITHUB_PERSONAL_ACCESS_TOKEN` | Yes | GitHub personal access token with appropriate scopes | + +## Usage + +```bash +docker run -d \ + --name github-mcp \ + -p 8104:8104 \ + -e GITHUB_PERSONAL_ACCESS_TOKEN=your_token_here \ + forgejo.corentic.eu/corentic/mcp-fleet-github:latest +``` + +## Tools + +Provides GitHub API tools: repositories, issues, pull requests, actions, contents, search, and more.