mcp-server-bitbucket 0.11.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 +9 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.js +906 -139
- package/package.json +14 -12
- package/scripts/check-ca-bundles.cjs +27 -0
- package/smithery.yaml +10 -4
- package/src/auth.ts +330 -0
- package/src/client.ts +253 -123
- package/src/http-input.ts +36 -0
- package/src/index.ts +274 -13
- package/src/oauth-proxy.ts +298 -0
- package/src/prompts.ts +1 -1
- package/src/settings.ts +51 -10
- package/src/tools/commits.ts +65 -33
- package/src/tools/index.ts +0 -3
- package/src/tools/pipelines.ts +41 -0
- package/src/tools/source.ts +23 -0
- package/src/tools/tags.ts +21 -6
- package/src/types.ts +9 -0
- package/tests/auth.test.ts +277 -0
- package/tests/history.test.ts +284 -0
- package/tests/http-handler.test.ts +67 -0
- package/tests/http-input.test.ts +40 -0
- package/tests/network-resilience.test.ts +113 -0
- package/tests/oauth-proxy.test.ts +286 -0
- package/tests/settings.test.ts +110 -0
- package/tests/stdio.test.ts +20 -0
- package/tests/test-remote.mjs +22 -0
package/Dockerfile
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
|
|
2
|
-
FROM node:
|
|
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 };
|