Skip to content

Commit 78980fd

Browse files
authored
Merge pull request #2 from smithery-ai/smithery/config-av0r
Deployment: Dockerfile and Smithery config
2 parents 601dc45 + 3ecf433 commit 78980fd

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed

Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2+
FROM node:18-alpine AS builder
3+
4+
WORKDIR /app
5+
6+
# Copy source files
7+
COPY src /app/src
8+
COPY package.json package-lock.json tsconfig.json /app/
9+
10+
# Install dependencies and build the project
11+
RUN npm install && npm run build
12+
13+
# Production image
14+
FROM node:18-alpine
15+
16+
WORKDIR /app
17+
18+
COPY --from=builder /app/build /app/build
19+
COPY --from=builder /app/package.json /app/package-lock.json /app/
20+
21+
# Install only production dependencies
22+
RUN npm ci --omit=dev
23+
24+
# Environment variables (replace with your actual values)
25+
ENV BITBUCKET_URL=https://your-bitbucket-server.com
26+
ENV BITBUCKET_TOKEN=your-access-token
27+
28+
ENTRYPOINT ["node", "build/index.js"]

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
MCP (Model Context Protocol) server for Bitbucket Server Pull Request management. This server provides tools and resources to interact with the Bitbucket Server API through the MCP protocol.
44

5+
[![smithery badge](https://smithery.ai/badge/@garc33/bitbucket-server-mcp-server)](https://smithery.ai/server/@garc33/bitbucket-server-mcp-server)
56
<a href="https://glama.ai/mcp/servers/jskr5c1zq3"><img width="380" height="200" src="https://glama.ai/mcp/servers/jskr5c1zq3/badge" alt="Bitbucket Server MCP server" /></a>
67

78
## Requirements
@@ -10,6 +11,15 @@ MCP (Model Context Protocol) server for Bitbucket Server Pull Request management
1011

1112
## Installation
1213

14+
### Installing via Smithery
15+
16+
To install Bitbucket Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@garc33/bitbucket-server-mcp-server):
17+
18+
```bash
19+
npx -y @smithery/cli install @garc33/bitbucket-server-mcp-server --client claude
20+
```
21+
22+
### Manual Installation
1323
```bash
1424
npm install
1525
```

smithery.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
2+
3+
startCommand:
4+
type: stdio
5+
configSchema:
6+
# JSON Schema defining the configuration options for the MCP.
7+
type: object
8+
required:
9+
- bitbucketUrl
10+
properties:
11+
bitbucketUrl:
12+
type: string
13+
description: Base URL of your Bitbucket Server instance.
14+
bitbucketToken:
15+
type: string
16+
description: Personal access token.
17+
bitbucketUsername:
18+
type: string
19+
description: Username for basic authentication.
20+
bitbucketPassword:
21+
type: string
22+
description: Password for basic authentication.
23+
commandFunction:
24+
# A function that produces the CLI command to start the MCP on stdio.
25+
|-
26+
(config) => ({
27+
command: 'node',
28+
args: ['build/index.js'],
29+
env: {
30+
BITBUCKET_URL: config.bitbucketUrl,
31+
BITBUCKET_TOKEN: config.bitbucketToken,
32+
BITBUCKET_USERNAME: config.bitbucketUsername,
33+
BITBUCKET_PASSWORD: config.bitbucketPassword
34+
}
35+
})

0 commit comments

Comments
 (0)