Skip to content

Commit d0c7740

Browse files
authored
Merge pull request Jeetanshu18#1 from Jeetanshu18/smithery/config-fdad
Deployment: Dockerfile and Smithery config
2 parents 3499709 + 98b8adf commit d0c7740

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config
2+
FROM node:lts-alpine
3+
4+
# Create app directory
5+
WORKDIR /app
6+
7+
# Copy package.json and package-lock for dependencies
8+
COPY package*.json ./
9+
10+
# Install dependencies without running any prepare scripts
11+
RUN npm ci --ignore-scripts
12+
13+
# Copy the rest of the application code
14+
COPY . .
15+
16+
# Use a non-root user (optional)
17+
# RUN addgroup -S appgroup && adduser -S appuser -G appgroup
18+
# USER appuser
19+
20+
# Set the entrypoint for stdio server
21+
ENTRYPOINT ["node", "src/index.js"]

readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,18 @@ A Node.js implementation of a Git repository browser using the Model Context Pro
44

55
[![GitHub Repository](https://img.shields.io/badge/GitHub-Repository-blue.svg)](https://github.com/bsreeram08/git-commands-mcp)
66
[![npm package](https://img.shields.io/npm/v/git-commands-mcp.svg)](https://www.npmjs.com/package/git-commands-mcp)
7+
[![smithery badge](https://smithery.ai/badge/@Jeetanshu18/git-commands-mcp)](https://smithery.ai/server/@Jeetanshu18/git-commands-mcp)
78

89
## Installation
910

11+
### Installing via Smithery
12+
13+
To install git-commands-mcp for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@Jeetanshu18/git-commands-mcp):
14+
15+
```bash
16+
npx -y @smithery/cli install @Jeetanshu18/git-commands-mcp --client claude
17+
```
18+
1019
### NPM (Recommended)
1120

1221
```bash

smithery.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Smithery configuration file: https://smithery.ai/docs/build/project-config
2+
3+
startCommand:
4+
type: stdio
5+
commandFunction:
6+
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
7+
|-
8+
(config) => ({ command: 'node', args: ['src/index.js'], env: {} })
9+
configSchema:
10+
# JSON Schema defining the configuration options for the MCP.
11+
type: object
12+
properties: {}
13+
exampleConfig: {}

0 commit comments

Comments
 (0)