mcp-server-bitbucket 0.12.0 → 0.19.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 CHANGED
@@ -1,5 +1,6 @@
1
1
  # Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2
- FROM node:lts-alpine
2
+ FROM node:24.22.1-alpine
3
+ RUN apk add --no-cache --upgrade ca-certificates && update-ca-certificates
3
4
  WORKDIR /app
4
5
 
5
6
  # Copy package files and install dependencies
@@ -14,6 +15,7 @@ COPY src/ ./src/
14
15
 
15
16
  # Build the TypeScript source
16
17
  RUN npm run build
18
+ COPY scripts/check-ca-bundles.cjs ./scripts/
17
19
 
18
20
  # Copy and set up entrypoint script
19
21
  COPY docker-entrypoint.sh /usr/local/bin/
@@ -26,6 +28,12 @@ RUN adduser -S bitbucket-mcp -u 1001
26
28
  # Change ownership of the app directory
27
29
  RUN chown -R bitbucket-mcp:nodejs /app
28
30
  USER bitbucket-mcp
31
+ RUN node scripts/check-ca-bundles.cjs
32
+
33
+ # Default to HTTP transport for remote deployment
34
+ ENV MCP_TRANSPORT=http
35
+ ENV PORT=3000
36
+ EXPOSE 3000
29
37
 
30
38
  # Use entrypoint script for flexible configuration
31
39
  ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
package/dist/index.d.ts CHANGED
@@ -1 +1,17 @@
1
1
  #!/usr/bin/env node
2
+ import { RequestListener } from 'node:http';
3
+
4
+ /**
5
+ * Bitbucket MCP Server - TypeScript Implementation
6
+ *
7
+ * Provides tools for interacting with Bitbucket repositories,
8
+ * pull requests, pipelines, branches, commits, deployments, and webhooks.
9
+ *
10
+ * Supports two transport modes:
11
+ * - stdio (default): For local MCP clients like Claude Desktop
12
+ * - http: For remote MCP clients via Streamable HTTP (set MCP_TRANSPORT=http)
13
+ */
14
+
15
+ declare function createHttpHandler(): RequestListener;
16
+
17
+ export { createHttpHandler };