mcp-server-bitbucket 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +32 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2976 -0
- package/docker-entrypoint.sh +6 -0
- package/package.json +57 -0
- package/smithery.yaml +47 -0
- package/src/client.ts +1102 -0
- package/src/index.ts +149 -0
- package/src/prompts.ts +208 -0
- package/src/resources.ts +160 -0
- package/src/settings.ts +63 -0
- package/src/tools/branches.ts +69 -0
- package/src/tools/commits.ts +186 -0
- package/src/tools/deployments.ts +100 -0
- package/src/tools/index.ts +112 -0
- package/src/tools/permissions.ts +205 -0
- package/src/tools/pipelines.ts +301 -0
- package/src/tools/projects.ts +63 -0
- package/src/tools/pull-requests.ts +321 -0
- package/src/tools/repositories.ts +208 -0
- package/src/tools/restrictions.ts +94 -0
- package/src/tools/source.ts +78 -0
- package/src/tools/tags.ts +88 -0
- package/src/tools/webhooks.ts +121 -0
- package/src/types.ts +369 -0
- package/src/utils.ts +83 -0
- package/tsconfig.json +25 -0
package/Dockerfile
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
|
|
2
|
+
FROM node:lts-alpine
|
|
3
|
+
WORKDIR /app
|
|
4
|
+
|
|
5
|
+
# Copy package files and install dependencies
|
|
6
|
+
COPY package.json package-lock.json* ./
|
|
7
|
+
RUN npm ci --ignore-scripts
|
|
8
|
+
|
|
9
|
+
# Copy TypeScript configuration
|
|
10
|
+
COPY tsconfig.json ./
|
|
11
|
+
|
|
12
|
+
# Copy all source files
|
|
13
|
+
COPY src/ ./src/
|
|
14
|
+
|
|
15
|
+
# Build the TypeScript source
|
|
16
|
+
RUN npm run build
|
|
17
|
+
|
|
18
|
+
# Copy and set up entrypoint script
|
|
19
|
+
COPY docker-entrypoint.sh /usr/local/bin/
|
|
20
|
+
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
|
21
|
+
|
|
22
|
+
# Create non-root user for security
|
|
23
|
+
RUN addgroup -g 1001 -S nodejs
|
|
24
|
+
RUN adduser -S bitbucket-mcp -u 1001
|
|
25
|
+
|
|
26
|
+
# Change ownership of the app directory
|
|
27
|
+
RUN chown -R bitbucket-mcp:nodejs /app
|
|
28
|
+
USER bitbucket-mcp
|
|
29
|
+
|
|
30
|
+
# Use entrypoint script for flexible configuration
|
|
31
|
+
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
|
32
|
+
CMD []
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|