Skip to content

Commit 288e1be

Browse files
committed
Sync from internal 744c24e3
0 parents  commit 288e1be

31 files changed

Lines changed: 7235 additions & 0 deletions

.env.example

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Authentication — choose ONE method:
2+
#
3+
# Option A: API Token (recommended)
4+
# BITBUCKET_API_TOKEN=your-api-token
5+
#
6+
# Option B: App Password (legacy — being deprecated by Bitbucket)
7+
BITBUCKET_USERNAME=your-email@company.com
8+
BITBUCKET_APP_PASSWORD=your-app-password
9+
10+
# Required
11+
BITBUCKET_WORKSPACE=your-workspace-slug
12+
13+
# Optional — defaults shown
14+
# BITBUCKET_API_URL=https://api.bitbucket.org/2.0
15+
# LOG_LEVEL=info
16+
# NODE_ENV=production
17+
18+
# Transport mode: "stdio" (default, local dev) or "http" (VPC service)
19+
# MCP_TRANSPORT=stdio
20+
# MCP_PORT=3000
21+
# MCP_HOST=0.0.0.0

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
validate:
14+
name: Typecheck, Lint & Test
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node-version: [22, 24]
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: npm
25+
- run: npm ci --ignore-scripts
26+
- run: npx tsc --noEmit
27+
- run: npm run lint
28+
- run: npm test
29+
30+
docker:
31+
name: Docker Build
32+
runs-on: ubuntu-latest
33+
needs: validate
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: docker/setup-buildx-action@v3
37+
- uses: docker/build-push-action@v6
38+
with:
39+
context: .
40+
push: false
41+
tags: bitbucket-mcp-server:${{ github.sha }}
42+
cache-from: type=gha
43+
cache-to: type=gha,mode=max

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# ── Build artifacts ───────────────────────────────────────────────────────────
2+
build/
3+
dist/
4+
5+
# ── Dependencies ─────────────────────────────────────────────────────────────
6+
node_modules/
7+
8+
# ── Env / secrets ────────────────────────────────────────────────────────────
9+
.env
10+
.env.local
11+
.env.*.local
12+
13+
# ── IDE / OS ─────────────────────────────────────────────────────────────────
14+
.idea/
15+
.vscode/
16+
*.swp
17+
*.swo
18+
.DS_Store
19+
Thumbs.db
20+
21+
# ── Test / coverage ──────────────────────────────────────────────────────────
22+
coverage/
23+
*.lcov
24+
25+
# ── Misc ─────────────────────────────────────────────────────────────────────
26+
*.log
27+
npm-debug.log*

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"printWidth": 100,
6+
"tabWidth": 2
7+
}

0 commit comments

Comments
 (0)