Merge pull request #2 from smithery-ai/smithery/config-fy90

Deployment: Dockerfile and Smithery config
This commit is contained in:
zereight
2025-02-13 05:53:00 +09:00
committed by GitHub
3 changed files with 69 additions and 0 deletions

37
Dockerfile Normal file
View File

@ -0,0 +1,37 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use an official Node.js image as the base image
FROM node:16-alpine AS builder
# Set the working directory
WORKDIR /app
# Copy package.json and package-lock.json files
COPY package.json package-lock.json ./
# Install dependencies
RUN npm install --ignore-scripts
# Copy the rest of the application code
COPY . .
# Build the application
RUN npm run build
# Use a smaller image for the runtime
FROM node:16-alpine AS runner
# Set the working directory
WORKDIR /app
# Copy the build output and package.json
COPY --from=builder /app/build ./build
COPY --from=builder /app/package.json ./
# Set environment variables
ENV GITLAB_API_URL=https://gitlab.com/api/v4
# Define the command to run the application
ENTRYPOINT ["node", "build/index.js"]
# This image requires the following environment variable at runtime:
# - GITLAB_PERSONAL_ACCESS_TOKEN: Your GitLab personal access token

View File

@ -1,11 +1,22 @@
# @zereight/mcp-gitlab # @zereight/mcp-gitlab
[![smithery badge](https://smithery.ai/badge/@zereight/gitlab-mcp)](https://smithery.ai/server/@zereight/gitlab-mcp)
GitLab MCP(Model Context Protocol) Server. GitLab MCP(Model Context Protocol) Server.
<a href="https://glama.ai/mcp/servers/7jwbk4r6d7"><img width="380" height="200" src="https://glama.ai/mcp/servers/7jwbk4r6d7/badge" alt="gitlab mcp MCP server" /></a> <a href="https://glama.ai/mcp/servers/7jwbk4r6d7"><img width="380" height="200" src="https://glama.ai/mcp/servers/7jwbk4r6d7/badge" alt="gitlab mcp MCP server" /></a>
## Installation and Execution ## Installation and Execution
### Installing via Smithery
To install GitLab MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@zereight/gitlab-mcp):
```bash
npx -y @smithery/cli install @zereight/gitlab-mcp --client claude
```
### Manual Installation
```bash ```bash
npx @zereight/mcp-gitlab npx @zereight/mcp-gitlab
``` ```

21
smithery.yaml Normal file
View File

@ -0,0 +1,21 @@
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- gitlabPersonalAccessToken
properties:
gitlabPersonalAccessToken:
type: string
description: Your GitLab personal access token.
gitlabApiUrl:
type: string
default: https://gitlab.com/api/v4
description: "Your GitLab API URL. Default: https://gitlab.com/api/v4"
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
(config) => ({ command: 'node', args: ['build/index.js'], env: { GITLAB_PERSONAL_ACCESS_TOKEN: config.gitlabPersonalAccessToken, GITLAB_API_URL: config.gitlabApiUrl } })