feat: add github-mcp Docker image

This commit is contained in:
tobjend 2026-06-21 17:59:17 +02:00
parent d7e9695959
commit be8784aedc
3 changed files with 45 additions and 0 deletions

View file

@ -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

7
github/Dockerfile Normal file
View file

@ -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"]

27
github/README.md Normal file
View file

@ -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.