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/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mcp-server-bitbucket",
|
|
3
|
+
"version": "0.11.0",
|
|
4
|
+
"description": "MCP server for Bitbucket API operations",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"mcp-server-bitbucket": "dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsup src/index.ts --format esm --dts --clean",
|
|
13
|
+
"dev": "tsup src/index.ts --format esm --watch",
|
|
14
|
+
"start": "node dist/index.js",
|
|
15
|
+
"test": "vitest run",
|
|
16
|
+
"test:watch": "vitest",
|
|
17
|
+
"lint": "eslint src/",
|
|
18
|
+
"typecheck": "tsc --noEmit",
|
|
19
|
+
"prepublishOnly": "npm run build"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"mcp",
|
|
23
|
+
"bitbucket",
|
|
24
|
+
"api",
|
|
25
|
+
"claude",
|
|
26
|
+
"ai",
|
|
27
|
+
"model-context-protocol"
|
|
28
|
+
],
|
|
29
|
+
"author": "Javier Aguilar",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/JaviMaligno/mcp-server-bitbucket"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/JaviMaligno/mcp-server-bitbucket#readme",
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/JaviMaligno/mcp-server-bitbucket/issues"
|
|
38
|
+
},
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=18.0.0"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
44
|
+
"axios": "^1.7.0",
|
|
45
|
+
"zod": "^3.23.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@types/node": "^20.0.0",
|
|
49
|
+
"tsup": "^8.0.0",
|
|
50
|
+
"typescript": "^5.4.0",
|
|
51
|
+
"vitest": "^2.0.0",
|
|
52
|
+
"eslint": "^8.57.0",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
54
|
+
"@typescript-eslint/parser": "^7.0.0"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
package/smithery.yaml
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
|
|
2
|
+
# This file configures how the MCP server is deployed and run on Smithery
|
|
3
|
+
# TypeScript version - located in typescript/ directory
|
|
4
|
+
|
|
5
|
+
startCommand:
|
|
6
|
+
type: stdio
|
|
7
|
+
configSchema:
|
|
8
|
+
type: object
|
|
9
|
+
properties:
|
|
10
|
+
BITBUCKET_WORKSPACE:
|
|
11
|
+
type: string
|
|
12
|
+
description: Bitbucket workspace slug (e.g., 'my-team')
|
|
13
|
+
BITBUCKET_EMAIL:
|
|
14
|
+
type: string
|
|
15
|
+
description: Account email for Bitbucket Basic Auth
|
|
16
|
+
BITBUCKET_API_TOKEN:
|
|
17
|
+
type: string
|
|
18
|
+
description: Repository access token from Bitbucket
|
|
19
|
+
API_TIMEOUT:
|
|
20
|
+
type: number
|
|
21
|
+
default: 30
|
|
22
|
+
description: Request timeout in seconds (max 300)
|
|
23
|
+
MAX_RETRIES:
|
|
24
|
+
type: number
|
|
25
|
+
default: 3
|
|
26
|
+
description: Max retry attempts for rate limiting (max 10)
|
|
27
|
+
required:
|
|
28
|
+
- BITBUCKET_WORKSPACE
|
|
29
|
+
- BITBUCKET_EMAIL
|
|
30
|
+
- BITBUCKET_API_TOKEN
|
|
31
|
+
commandFunction: |
|
|
32
|
+
(config) => ({
|
|
33
|
+
command: 'node',
|
|
34
|
+
args: ['dist/index.js'],
|
|
35
|
+
env: {
|
|
36
|
+
BITBUCKET_WORKSPACE: config.BITBUCKET_WORKSPACE,
|
|
37
|
+
BITBUCKET_EMAIL: config.BITBUCKET_EMAIL,
|
|
38
|
+
BITBUCKET_API_TOKEN: config.BITBUCKET_API_TOKEN,
|
|
39
|
+
API_TIMEOUT: config.API_TIMEOUT ? String(config.API_TIMEOUT) : "30",
|
|
40
|
+
MAX_RETRIES: config.MAX_RETRIES ? String(config.MAX_RETRIES) : "3"
|
|
41
|
+
}
|
|
42
|
+
})
|
|
43
|
+
exampleConfig:
|
|
44
|
+
BITBUCKET_WORKSPACE: my-workspace
|
|
45
|
+
BITBUCKET_EMAIL: user@example.com
|
|
46
|
+
BITBUCKET_API_TOKEN: your-api-token
|
|
47
|
+
|