mcp-bitbucket-server 1.10.0 → 1.10.2
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/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/projects/list_projects.d.ts.map +1 -1
- package/dist/tools/projects/list_projects.js +1 -1
- package/dist/tools/projects/list_projects.js.map +1 -1
- package/dist/tools/pull-requests/add_pr_comment.d.ts.map +1 -1
- package/dist/tools/pull-requests/add_pr_comment.js +1 -1
- package/dist/tools/pull-requests/add_pr_comment.js.map +1 -1
- package/dist/tools/pull-requests/add_pr_comment_reaction.d.ts.map +1 -1
- package/dist/tools/pull-requests/add_pr_comment_reaction.js +1 -1
- package/dist/tools/pull-requests/add_pr_comment_reaction.js.map +1 -1
- package/dist/tools/pull-requests/add_pr_file_comment.d.ts.map +1 -1
- package/dist/tools/pull-requests/add_pr_file_comment.js +1 -1
- package/dist/tools/pull-requests/add_pr_file_comment.js.map +1 -1
- package/dist/tools/pull-requests/add_pr_line_comment.d.ts.map +1 -1
- package/dist/tools/pull-requests/add_pr_line_comment.js +1 -1
- package/dist/tools/pull-requests/add_pr_line_comment.js.map +1 -1
- package/dist/tools/pull-requests/create_pull_request.d.ts.map +1 -1
- package/dist/tools/pull-requests/create_pull_request.js +3 -3
- package/dist/tools/pull-requests/create_pull_request.js.map +1 -1
- package/dist/tools/pull-requests/delete_pr_comment.d.ts.map +1 -1
- package/dist/tools/pull-requests/delete_pr_comment.js +1 -1
- package/dist/tools/pull-requests/delete_pr_comment.js.map +1 -1
- package/dist/tools/pull-requests/get_inbox_pull_requests.d.ts.map +1 -1
- package/dist/tools/pull-requests/get_inbox_pull_requests.js +1 -1
- package/dist/tools/pull-requests/get_inbox_pull_requests.js.map +1 -1
- package/dist/tools/pull-requests/get_pr_activities.d.ts.map +1 -1
- package/dist/tools/pull-requests/get_pr_activities.js +4 -7
- package/dist/tools/pull-requests/get_pr_activities.js.map +1 -1
- package/dist/tools/pull-requests/get_pr_changes.d.ts.map +1 -1
- package/dist/tools/pull-requests/get_pr_changes.js +1 -1
- package/dist/tools/pull-requests/get_pr_changes.js.map +1 -1
- package/dist/tools/pull-requests/get_pr_details.d.ts.map +1 -1
- package/dist/tools/pull-requests/get_pr_details.js +1 -1
- package/dist/tools/pull-requests/get_pr_details.js.map +1 -1
- package/dist/tools/pull-requests/get_pr_diff.d.ts.map +1 -1
- package/dist/tools/pull-requests/get_pr_diff.js +1 -1
- package/dist/tools/pull-requests/get_pr_diff.js.map +1 -1
- package/dist/tools/pull-requests/get_pr_file_diff.d.ts.map +1 -1
- package/dist/tools/pull-requests/get_pr_file_diff.js +1 -1
- package/dist/tools/pull-requests/get_pr_file_diff.js.map +1 -1
- package/dist/tools/pull-requests/remove_pr_comment_reaction.d.ts.map +1 -1
- package/dist/tools/pull-requests/remove_pr_comment_reaction.js +1 -1
- package/dist/tools/pull-requests/remove_pr_comment_reaction.js.map +1 -1
- package/dist/tools/pull-requests/update_review_status.d.ts.map +1 -1
- package/dist/tools/pull-requests/update_review_status.js +1 -1
- package/dist/tools/pull-requests/update_review_status.js.map +1 -1
- package/dist/tools/repositories/list_repositories.d.ts.map +1 -1
- package/dist/tools/repositories/list_repositories.js +1 -1
- package/dist/tools/repositories/list_repositories.js.map +1 -1
- package/dist/tools/tools.types.d.ts +1 -2
- package/dist/tools/tools.types.d.ts.map +1 -1
- package/dist/tools/users/get_all_users.d.ts.map +1 -1
- package/dist/tools/users/get_all_users.js +1 -1
- package/dist/tools/users/get_all_users.js.map +1 -1
- package/dist/tools/users/get_user_profile.d.ts.map +1 -1
- package/dist/tools/users/get_user_profile.js +1 -1
- package/dist/tools/users/get_user_profile.js.map +1 -1
- package/package.json +26 -55
- package/BitbucketServerSwagger.json +0 -67522
- package/CLAUDE.md +0 -691
- package/LICENSE +0 -21
- package/biome.json +0 -35
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AASA,cAAc,8BAA8B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// ============ Library Exports ============
|
|
3
3
|
// Re-export the Bitbucket client library (use bitbucket-data-center-client directly for library usage)
|
|
4
|
-
export * from 'bitbucket-data-center-client';
|
|
5
4
|
// ============ MCP Server Setup ============
|
|
6
5
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
6
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
8
7
|
import { registerTools } from './tools/index.js';
|
|
8
|
+
export * from 'bitbucket-data-center-client';
|
|
9
9
|
async function startMcpServer() {
|
|
10
10
|
const server = new McpServer({
|
|
11
11
|
name: 'mcp-bitbucket-server',
|
|
@@ -20,7 +20,8 @@ async function main() {
|
|
|
20
20
|
await startMcpServer();
|
|
21
21
|
}
|
|
22
22
|
main().catch((error) => {
|
|
23
|
-
|
|
23
|
+
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
24
|
+
console.error('Error:', message);
|
|
24
25
|
process.exit(1);
|
|
25
26
|
});
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,4CAA4C;AAC5C,uGAAuG;AACvG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,4CAA4C;AAC5C,uGAAuG;AACvG,6CAA6C;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,cAAc,8BAA8B,CAAC;AAE7C,KAAK,UAAU,cAAc;IAC3B,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;QAC3B,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,OAAO;KACjB,CAAC,CAAC;IAEH,aAAa,CAAC,MAAM,CAAC,CAAC;IAEtB,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;AAChD,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,MAAM,cAAc,EAAE,CAAC;AACzB,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC9B,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;IACzE,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACjC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,QA0B9C"}
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,wBAAwB,EACxB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,yBAAyB,EACzB,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGvE,MAAM,UAAU,aAAa,CAAC,MAAiB;IAC7C,aAAa;IACb,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC3B,eAAe,CAAC,MAAM,CAAC,CAAC;IAExB,gBAAgB;IAChB,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAEzB,mBAAmB;IACnB,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAE7B,qBAAqB;IACrB,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC9B,wBAAwB,CAAC,MAAM,CAAC,CAAC;IACjC,yBAAyB,CAAC,MAAM,CAAC,CAAC;IAClC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACzB,wBAAwB,CAAC,MAAM,CAAC,CAAC;IACjC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAC7B,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAC7B,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC5B,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACzB,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC/B,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC1B,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC5B,2BAA2B,CAAC,MAAM,CAAC,CAAC;IACpC,sBAAsB,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_projects.d.ts","sourceRoot":"","sources":["../../../src/tools/projects/list_projects.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list_projects.d.ts","sourceRoot":"","sources":["../../../src/tools/projects/list_projects.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AASzE,eAAO,MAAM,gBAAgB,GAAI,QAAQ,SAAS,SAsBjD,CAAC"}
|
|
@@ -12,7 +12,7 @@ export const listProjectsTool = (server) => {
|
|
|
12
12
|
description: 'Retrieve a page of projects. Only projects for which the authenticated user has PROJECT_VIEW permission will be returned. Can filter by name or permission level.',
|
|
13
13
|
inputSchema: schema.shape,
|
|
14
14
|
}, async ({ name, permission, start, limit }) => {
|
|
15
|
-
const result = await bitbucketService.
|
|
15
|
+
const result = await bitbucketService.projects.list({ name, permission, start, limit });
|
|
16
16
|
return {
|
|
17
17
|
content: [
|
|
18
18
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_projects.js","sourceRoot":"","sources":["../../../src/tools/projects/list_projects.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list_projects.js","sourceRoot":"","sources":["../../../src/tools/projects/list_projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IAC/E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yEAAyE,CAAC;IACrH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IACnF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oDAAoD,CAAC;CAC5F,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACpD,MAAM,CAAC,YAAY,CACjB,eAAe,EACf;QACE,KAAK,EAAE,eAAe;QACtB,WAAW,EACT,mKAAmK;QACrK,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;QAC3C,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QAExF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add_pr_comment.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_comment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add_pr_comment.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_comment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAUzE,eAAO,MAAM,gBAAgB,GAAI,QAAQ,SAAS,SAgCjD,CAAC"}
|
|
@@ -13,7 +13,7 @@ export const addPrCommentTool = (server) => {
|
|
|
13
13
|
description: 'Add a general comment to a pull request (not attached to any specific file or line). Use parentId to reply to an existing comment. For file or line-specific comments, use add_pr_file_comment or add_pr_line_comment instead.',
|
|
14
14
|
inputSchema: schema.shape,
|
|
15
15
|
}, async ({ projectKey, repositorySlug, pullRequestId, text, parentId }) => {
|
|
16
|
-
const result = await bitbucketService.
|
|
16
|
+
const result = await bitbucketService.pullRequests.addComment({
|
|
17
17
|
projectKey,
|
|
18
18
|
repositorySlug,
|
|
19
19
|
pullRequestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add_pr_comment.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_comment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add_pr_comment.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IAC7C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mDAAmD,CAAC;CAC9F,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACpD,MAAM,CAAC,YAAY,CACjB,gBAAgB,EAChB;QACE,KAAK,EAAE,kCAAkC;QACzC,WAAW,EACT,gOAAgO;QAClO,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;QACtE,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,YAAY,CAAC,UAAU,CAAC;YAC5D,UAAU;YACV,cAAc;YACd,aAAa;YACb,IAAI;YACJ,QAAQ;SACT,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,QAAQ;YACtB,CAAC,CAAC,yCAAyC,MAAM,CAAC,EAAE,EAAE;YACtD,CAAC,CAAC,2CAA2C,MAAM,CAAC,EAAE,EAAE,CAAC;QAE3D,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,OAAO;iBACd;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add_pr_comment_reaction.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_comment_reaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add_pr_comment_reaction.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_comment_reaction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAYzE,eAAO,MAAM,wBAAwB,GAAI,QAAQ,SAAS,SA4BzD,CAAC"}
|
|
@@ -15,7 +15,7 @@ export const addPrCommentReactionTool = (server) => {
|
|
|
15
15
|
description: 'Add an emoticon reaction to a pull request comment. Supported emoticons: thumbsup, thumbsdown, heart, thinking_face, laughing. The operation is idempotent - adding the same reaction twice will succeed.',
|
|
16
16
|
inputSchema: schema.shape,
|
|
17
17
|
}, async ({ projectKey, repositorySlug, pullRequestId, commentId, emoticon }) => {
|
|
18
|
-
const result = await bitbucketService.
|
|
18
|
+
const result = await bitbucketService.pullRequests.addReaction({
|
|
19
19
|
projectKey,
|
|
20
20
|
repositorySlug,
|
|
21
21
|
pullRequestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add_pr_comment_reaction.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_comment_reaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add_pr_comment_reaction.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_comment_reaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAChD,QAAQ,EAAE,CAAC;SACR,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;SACtE,QAAQ,CAAC,4EAA4E,CAAC;CAC1F,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,MAAiB,EAAE,EAAE;IAC5D,MAAM,CAAC,YAAY,CACjB,yBAAyB,EACzB;QACE,KAAK,EAAE,qCAAqC;QAC5C,WAAW,EACT,2MAA2M;QAC7M,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC3E,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,YAAY,CAAC,WAAW,CAAC;YAC7D,UAAU;YACV,cAAc;YACd,aAAa;YACb,SAAS;YACT,QAAQ;SACT,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,aAAa,MAAM,CAAC,QAAQ,CAAC,QAAQ,mCAAmC,SAAS,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,GAAG;iBACzH;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add_pr_file_comment.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_file_comment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add_pr_file_comment.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_file_comment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAUzE,eAAO,MAAM,oBAAoB,GAAI,QAAQ,SAAS,SA4BrD,CAAC"}
|
|
@@ -13,7 +13,7 @@ export const addPrFileCommentTool = (server) => {
|
|
|
13
13
|
description: 'Add a comment attached to a specific file in a pull request (not to a specific line). The comment will appear at the file level in the PR diff view. To reply to an existing comment (including file/line comments), use add_pr_comment instead.',
|
|
14
14
|
inputSchema: schema.shape,
|
|
15
15
|
}, async ({ projectKey, repositorySlug, pullRequestId, text, path }) => {
|
|
16
|
-
const result = await bitbucketService.
|
|
16
|
+
const result = await bitbucketService.pullRequests.addComment({
|
|
17
17
|
projectKey,
|
|
18
18
|
repositorySlug,
|
|
19
19
|
pullRequestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add_pr_file_comment.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_file_comment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add_pr_file_comment.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_file_comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;CACtF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACxD,MAAM,CAAC,YAAY,CACjB,qBAAqB,EACrB;QACE,KAAK,EAAE,qCAAqC;QAC5C,WAAW,EACT,kPAAkP;QACpP,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE;QAClE,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,YAAY,CAAC,UAAU,CAAC;YAC5D,UAAU;YACV,cAAc;YACd,aAAa;YACb,IAAI;YACJ,IAAI;SACL,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,gDAAgD,MAAM,CAAC,EAAE,EAAE;iBAClE;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add_pr_line_comment.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_line_comment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add_pr_line_comment.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_line_comment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAezE,eAAO,MAAM,oBAAoB,GAAI,QAAQ,SAAS,SA+BrD,CAAC"}
|
|
@@ -18,7 +18,7 @@ export const addPrLineCommentTool = (server) => {
|
|
|
18
18
|
description: 'Add an inline comment to a specific line in a pull request. Use the line numbers from get_pull_request_file_diff (destination line for TO side, source line for FROM side). Match the lineType to the segment type from the diff (ADDED/REMOVED/CONTEXT). To reply to an existing comment (including file/line comments), use add_pr_comment instead.',
|
|
19
19
|
inputSchema: schema.shape,
|
|
20
20
|
}, async ({ projectKey, repositorySlug, pullRequestId, text, path, line, lineType, fileType }) => {
|
|
21
|
-
const result = await bitbucketService.
|
|
21
|
+
const result = await bitbucketService.pullRequests.addComment({
|
|
22
22
|
projectKey,
|
|
23
23
|
repositorySlug,
|
|
24
24
|
pullRequestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add_pr_line_comment.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_line_comment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add_pr_line_comment.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/add_pr_line_comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MA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CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,gDAAgD,MAAM,CAAC,EAAE,EAAE;iBAClE;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create_pull_request.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/create_pull_request.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create_pull_request.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/create_pull_request.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAYzE,eAAO,MAAM,qBAAqB,GAAI,QAAQ,SAAS,SA6CtD,CAAC"}
|
|
@@ -18,8 +18,8 @@ export const createPullRequestTool = (server) => {
|
|
|
18
18
|
let finalReviewers = reviewers;
|
|
19
19
|
// Auto-fetch default reviewers if none provided
|
|
20
20
|
if (!reviewers || reviewers.length === 0) {
|
|
21
|
-
const repo = await bitbucketService.
|
|
22
|
-
const defaultReviewers = await bitbucketService.getRequiredReviewers({
|
|
21
|
+
const repo = await bitbucketService.repositories.get({ projectKey, repositorySlug });
|
|
22
|
+
const defaultReviewers = await bitbucketService.pullRequests.getRequiredReviewers({
|
|
23
23
|
projectKey,
|
|
24
24
|
repositorySlug,
|
|
25
25
|
repositoryId: repo.id,
|
|
@@ -28,7 +28,7 @@ export const createPullRequestTool = (server) => {
|
|
|
28
28
|
});
|
|
29
29
|
finalReviewers = defaultReviewers.map((r) => r.name);
|
|
30
30
|
}
|
|
31
|
-
const result = await bitbucketService.
|
|
31
|
+
const result = await bitbucketService.pullRequests.create({
|
|
32
32
|
projectKey,
|
|
33
33
|
repositorySlug,
|
|
34
34
|
title,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create_pull_request.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/create_pull_request.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create_pull_request.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/create_pull_request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;IACzE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IAClE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC;IACtC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IAChF,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;CACzF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACzD,MAAM,CAAC,YAAY,CACjB,qBAAqB,EACrB;QACE,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EACT,mVAAmV;QACrV,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,EAAE;QAC5F,IAAI,cAAc,GAAG,SAAS,CAAC;QAE/B,gDAAgD;QAChD,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzC,MAAM,IAAI,GAAG,MAAM,gBAAgB,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC,CAAC;YACrF,MAAM,gBAAgB,GAAG,MAAM,gBAAgB,CAAC,YAAY,CAAC,oBAAoB,CAAC;gBAChF,UAAU;gBACV,cAAc;gBACd,YAAY,EAAE,IAAI,CAAC,EAAE;gBACrB,YAAY,EAAE,UAAU;gBACxB,YAAY,EAAE,QAAQ;aACvB,CAAC,CAAC;YACH,cAAc,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACvD,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,YAAY,CAAC,MAAM,CAAC;YACxD,UAAU;YACV,cAAc;YACd,KAAK;YACL,WAAW;YACX,UAAU;YACV,QAAQ;YACR,SAAS,EAAE,cAAc;SAC1B,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete_pr_comment.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/delete_pr_comment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete_pr_comment.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/delete_pr_comment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAUzE,eAAO,MAAM,mBAAmB,GAAI,QAAQ,SAAS,SA4BpD,CAAC"}
|
|
@@ -13,7 +13,7 @@ export const deletePrCommentTool = (server) => {
|
|
|
13
13
|
description: 'Delete a pull request comment. You can delete your own comments. Only REPO_ADMIN users can delete comments created by others. Comments with replies cannot be deleted. You must provide the comment version to prevent concurrent modification conflicts - get the version from the comment object.',
|
|
14
14
|
inputSchema: schema.shape,
|
|
15
15
|
}, async ({ projectKey, repositorySlug, pullRequestId, commentId, version }) => {
|
|
16
|
-
await bitbucketService.
|
|
16
|
+
await bitbucketService.pullRequests.deleteComment({
|
|
17
17
|
projectKey,
|
|
18
18
|
repositorySlug,
|
|
19
19
|
pullRequestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete_pr_comment.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/delete_pr_comment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete_pr_comment.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/delete_pr_comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IACjE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;CAC9F,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACvD,MAAM,CAAC,YAAY,CACjB,mBAAmB,EACnB;QACE,KAAK,EAAE,6BAA6B;QACpC,WAAW,EACT,qSAAqS;QACvS,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1E,MAAM,gBAAgB,CAAC,YAAY,CAAC,aAAa,CAAC;YAChD,UAAU;YACV,cAAc;YACd,aAAa;YACb,SAAS;YACT,OAAO;SACR,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,WAAW,SAAS,wBAAwB;iBACnD;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_inbox_pull_requests.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_inbox_pull_requests.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_inbox_pull_requests.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_inbox_pull_requests.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAOzE,eAAO,MAAM,wBAAwB,GAAI,QAAQ,SAAS,SAyCzD,CAAC"}
|
|
@@ -10,7 +10,7 @@ export const getInboxPullRequestsTool = (server) => {
|
|
|
10
10
|
description: "Returns pull requests in the authenticated user's inbox where they are assigned as a reviewer. Returns PRs across all projects and repositories in one call. Each PR includes only essential review information: id, title, description, state, author name, projectKey, and repositorySlug - everything needed to review the PR using other tools. Response is heavily optimized to reduce token usage by ~92%.",
|
|
11
11
|
inputSchema: schema.shape,
|
|
12
12
|
}, async ({ start, limit }) => {
|
|
13
|
-
const result = await bitbucketService.
|
|
13
|
+
const result = await bitbucketService.pullRequests.getInbox({ start, limit });
|
|
14
14
|
const minimal = {
|
|
15
15
|
size: result.size,
|
|
16
16
|
limit: result.limit,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_inbox_pull_requests.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_inbox_pull_requests.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_inbox_pull_requests.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_inbox_pull_requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAI/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IACnF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yDAAyD,CAAC;CACjG,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,MAAiB,EAAE,EAAE;IAC5D,MAAM,CAAC,YAAY,CACjB,yBAAyB,EACzB;QACE,KAAK,EAAE,yBAAyB;QAChC,WAAW,EACT,kZAAkZ;QACpZ,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;QACzB,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QAE9E,MAAM,OAAO,GAA8B;YACzC,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;gBACjC,EAAE,EAAE,EAAE,CAAC,EAAE;gBACT,KAAK,EAAE,EAAE,CAAC,KAAK;gBACf,WAAW,EAAE,EAAE,CAAC,WAAW;gBAC3B,KAAK,EAAE,EAAE,CAAC,KAAK;gBACf,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW;gBAClC,UAAU,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG;gBAC3C,cAAc,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI;gBACxC,WAAW,EAAE,EAAE,CAAC,WAAW;gBAC3B,WAAW,EAAE,EAAE,CAAC,WAAW;aAC5B,CAAC,CAAC;SACJ,CAAC;QAEF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;iBACvC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_pr_activities.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_activities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_pr_activities.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_activities.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAqCzE,eAAO,MAAM,mBAAmB,GAAI,QAAQ,SAAS,SAiGpD,CAAC"}
|
|
@@ -36,7 +36,7 @@ export const getPrActivitiesTool = (server) => {
|
|
|
36
36
|
description: "Gets activity on a pull request including comments, approvals, merges, reviews, and updates. Can optionally filter by activity types (e.g., only comments). Returns a paginated list with action types like COMMENTED, APPROVED, DECLINED, MERGED, REVIEWED, etc. Use activityTypes parameter to filter: e.g., ['COMMENTED', 'REVIEW_COMMENTED'] for only comments. Response is optimized for token usage - use commentAnchor.path with get_pr_file_diff to fetch code context when needed.",
|
|
37
37
|
inputSchema: schema.shape,
|
|
38
38
|
}, async ({ projectKey, repositorySlug, pullRequestId, activityTypes, start, limit }) => {
|
|
39
|
-
const response = await bitbucketService.
|
|
39
|
+
const response = await bitbucketService.pullRequests.getActivities({
|
|
40
40
|
projectKey,
|
|
41
41
|
repositorySlug,
|
|
42
42
|
pullRequestId,
|
|
@@ -45,8 +45,7 @@ export const getPrActivitiesTool = (server) => {
|
|
|
45
45
|
});
|
|
46
46
|
// Helper function to strip user links (API returns links but we exclude from type)
|
|
47
47
|
const stripUserBloat = (user) => {
|
|
48
|
-
|
|
49
|
-
const { links, ...userWithoutLinks } = user;
|
|
48
|
+
const { links: _links, ...userWithoutLinks } = user;
|
|
50
49
|
return userWithoutLinks;
|
|
51
50
|
};
|
|
52
51
|
// Helper function to simplify reactions to just counts
|
|
@@ -64,8 +63,7 @@ export const getPrActivitiesTool = (server) => {
|
|
|
64
63
|
};
|
|
65
64
|
// Helper function to strip bloat from comments
|
|
66
65
|
const stripBloatFromComment = (comment) => {
|
|
67
|
-
|
|
68
|
-
const { anchor, permittedOperations, ...rest } = comment;
|
|
66
|
+
const { anchor: _anchor, permittedOperations: _permittedOperations, ...rest } = comment;
|
|
69
67
|
// Build optimized comment with stripped user and simplified properties
|
|
70
68
|
const optimizedComment = {
|
|
71
69
|
...rest,
|
|
@@ -82,8 +80,7 @@ export const getPrActivitiesTool = (server) => {
|
|
|
82
80
|
};
|
|
83
81
|
// Strip bloat from all activities (remove diff field which is large)
|
|
84
82
|
const strippedValues = response.values.map((activity) => {
|
|
85
|
-
|
|
86
|
-
const { diff, ...rest } = activity;
|
|
83
|
+
const { diff: _diff, ...rest } = activity;
|
|
87
84
|
// Build clean activity with stripped user and comment
|
|
88
85
|
const cleanActivity = {
|
|
89
86
|
...rest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_pr_activities.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_activities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_pr_activities.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_activities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAU/D,sDAAsD;AACtD,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC;IAC1B,UAAU;IACV,sBAAsB;IACtB,sBAAsB;IACtB,WAAW;IACX,UAAU;IACV,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,kBAAkB;IAClB,iBAAiB;IACjB,UAAU;IACV,YAAY;IACZ,SAAS;CACV,CAAC,CAAC;AAEH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,aAAa,EAAE,CAAC;SACb,KAAK,CAAC,YAAY,CAAC;SACnB,QAAQ,EAAE;SACV,QAAQ,CACP,0IAA0I,CAC3I;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IACnF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iDAAiD,CAAC;CACzF,CAAC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ChF,CAAC;YAEF,OAAO,aAAa,CAAC;QACvB,CAAC,CAAC,CAAC;QAEH,wCAAwC;QACxC,IAAI,YAAY,GAAgC;YAC9C,GAAG,QAAQ;YACX,MAAM,EAAE,cAAc;SACvB,CAAC;QAEF,IAAI,aAAa,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9C,MAAM,cAAc,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;YACpG,YAAY,GAAG;gBACb,GAAG,QAAQ;gBACX,MAAM,EAAE,cAAc;gBACtB,IAAI,EAAE,cAAc,CAAC,MAAM;aAC5B,CAAC;QACJ,CAAC;QAED,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;iBAC5C;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_pr_changes.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_changes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_pr_changes.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_changes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AASzE,eAAO,MAAM,gBAAgB,GAAI,QAAQ,SAAS,SA2BjD,CAAC"}
|
|
@@ -12,7 +12,7 @@ export const getPrChangesTool = (server) => {
|
|
|
12
12
|
description: 'Gets a list of all changed files in a pull request with file-level metadata (file paths, change types like ADD/MODIFY/DELETE, content IDs). This is useful for getting an overview of what files changed. For line-by-line diff data, use get_pull_request_file_diff.',
|
|
13
13
|
inputSchema: schema.shape,
|
|
14
14
|
}, async ({ projectKey, repositorySlug, pullRequestId, limit }) => {
|
|
15
|
-
const result = await bitbucketService.
|
|
15
|
+
const result = await bitbucketService.pullRequests.getChanges({
|
|
16
16
|
projectKey,
|
|
17
17
|
repositorySlug,
|
|
18
18
|
pullRequestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_pr_changes.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_changes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_pr_changes.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sEAAsE,CAAC;CAC9G,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACpD,MAAM,CAAC,YAAY,CACjB,0BAA0B,EAC1B;QACE,KAAK,EAAE,0BAA0B;QACjC,WAAW,EACT,uQAAuQ;QACzQ,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,EAAE;QAC7D,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,YAAY,CAAC,UAAU,CAAC;YAC5D,UAAU;YACV,cAAc;YACd,aAAa;YACb,KAAK;SACN,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_pr_details.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_details.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_pr_details.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_details.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAQzE,eAAO,MAAM,yBAAyB,GAAI,QAAQ,SAAS,SA0B1D,CAAC"}
|
|
@@ -11,7 +11,7 @@ export const getPullRequestDetailsTool = (server) => {
|
|
|
11
11
|
description: 'Retrieve full details for a pull request including title, description, author, state, source branch (fromRef), destination branch (toRef), created/updated dates, reviewers, and participants. Use this to get comprehensive PR metadata.',
|
|
12
12
|
inputSchema: schema.shape,
|
|
13
13
|
}, async ({ projectKey, repositorySlug, pullRequestId }) => {
|
|
14
|
-
const result = await bitbucketService.
|
|
14
|
+
const result = await bitbucketService.pullRequests.get({
|
|
15
15
|
projectKey,
|
|
16
16
|
repositorySlug,
|
|
17
17
|
pullRequestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_pr_details.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_details.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_pr_details.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_details.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;CAC1D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAAiB,EAAE,EAAE;IAC7D,MAAM,CAAC,YAAY,CACjB,kBAAkB,EAClB;QACE,KAAK,EAAE,0BAA0B;QACjC,WAAW,EACT,2OAA2O;QAC7O,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,EAAE,EAAE;QACtD,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,YAAY,CAAC,GAAG,CAAC;YACrD,UAAU;YACV,cAAc;YACd,aAAa;SACd,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_pr_diff.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_diff.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_pr_diff.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_diff.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAiBzE,eAAO,MAAM,sBAAsB,GAAI,QAAQ,SAAS,SAgCvD,CAAC"}
|
|
@@ -20,7 +20,7 @@ export const getPullRequestDiffTool = (server) => {
|
|
|
20
20
|
description: 'Retrieve diff for a pull request. Omit the path parameter to get the full PR diff, or specify a file path to get diff for a specific file. Use format="text" (default) for raw unified diff format, or format="json" for structured diff with hunks and segments. Use contextLines to control how many unchanged lines are shown around changes. Use sinceId and untilId to get diff between specific commits (useful for reviewing incremental changes).',
|
|
21
21
|
inputSchema: schema.shape,
|
|
22
22
|
}, async ({ projectKey, repositorySlug, pullRequestId, path, sinceId, untilId, contextLines, whitespace, format }) => {
|
|
23
|
-
const result = await bitbucketService.
|
|
23
|
+
const result = await bitbucketService.pullRequests.getDiff({
|
|
24
24
|
projectKey,
|
|
25
25
|
repositorySlug,
|
|
26
26
|
pullRequestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_pr_diff.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_diff.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_pr_diff.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_diff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;IAChG,O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CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBAC5E;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_pr_file_diff.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_file_diff.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_pr_file_diff.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_file_diff.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAUzE,eAAO,MAAM,iBAAiB,GAAI,QAAQ,SAAS,SA4BlD,CAAC"}
|
|
@@ -13,7 +13,7 @@ export const getPrFileDiffTool = (server) => {
|
|
|
13
13
|
description: 'Gets a structured line-by-line diff for a specific file in a pull request. Returns JSON with hunks, segments, and exact line numbers (source and destination). Includes existing comments embedded in the diff. Whitespace changes are always included. This is essential for commenting on specific lines - use the line numbers from this response when adding comments.',
|
|
14
14
|
inputSchema: schema.shape,
|
|
15
15
|
}, async ({ projectKey, repositorySlug, pullRequestId, path, contextLines }) => {
|
|
16
|
-
const result = await bitbucketService.
|
|
16
|
+
const result = await bitbucketService.pullRequests.getFileDiff({
|
|
17
17
|
projectKey,
|
|
18
18
|
repositorySlug,
|
|
19
19
|
pullRequestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_pr_file_diff.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_file_diff.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_pr_file_diff.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/get_pr_file_diff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MA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[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove_pr_comment_reaction.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/remove_pr_comment_reaction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAYzE,eAAO,MAAM,2BAA2B,GAAI,QAAQ,SAAS,SA4B5D,CAAC"}
|
|
@@ -15,7 +15,7 @@ export const removePrCommentReactionTool = (server) => {
|
|
|
15
15
|
description: 'Remove an emoticon reaction from a pull request comment. Only the user who added the reaction can remove it. Supported emoticons: thumbsup, thumbsdown, heart, thinking_face, laughing.',
|
|
16
16
|
inputSchema: schema.shape,
|
|
17
17
|
}, async ({ projectKey, repositorySlug, pullRequestId, commentId, emoticon }) => {
|
|
18
|
-
await bitbucketService.
|
|
18
|
+
await bitbucketService.pullRequests.removeReaction({
|
|
19
19
|
projectKey,
|
|
20
20
|
repositorySlug,
|
|
21
21
|
pullRequestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove_pr_comment_reaction.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/remove_pr_comment_reaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove_pr_comment_reaction.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/remove_pr_comment_reaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAChD,QAAQ,EAAE,CAAC;SACR,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;SACtE,QAAQ,CAAC,+EAA+E,CAAC;CAC7F,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,MAAiB,EAAE,EAAE;IAC/D,MAAM,CAAC,YAAY,CACjB,4BAA4B,EAC5B;QACE,KAAK,EAAE,0CAA0C;QACjD,WAAW,EACT,yLAAyL;QAC3L,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC3E,MAAM,gBAAgB,CAAC,YAAY,CAAC,cAAc,CAAC;YACjD,UAAU;YACV,cAAc;YACd,aAAa;YACb,SAAS;YACT,QAAQ;SACT,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,aAAa,QAAQ,uCAAuC,SAAS,GAAG;iBAC/E;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update_review_status.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/update_review_status.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update_review_status.d.ts","sourceRoot":"","sources":["../../../src/tools/pull-requests/update_review_status.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAazE,eAAO,MAAM,sBAAsB,GAAI,QAAQ,SAAS,SA2BvD,CAAC"}
|
|
@@ -14,7 +14,7 @@ export const updateReviewStatusTool = (server) => {
|
|
|
14
14
|
description: 'Change the review status for a pull request. Sets the authenticated user\'s review status to APPROVED (approve the PR), NEEDS_WORK (request changes - shows as "Requested changes" in UI), or UNAPPROVED (neutral/remove approval). Automatically detects the authenticated user and adds them as a participant/reviewer if not already. Updates lastReviewedCommit to the latest commit when approving or requesting changes. Requires REPO_READ permission.',
|
|
15
15
|
inputSchema: schema.shape,
|
|
16
16
|
}, async ({ projectKey, repositorySlug, pullRequestId, status }) => {
|
|
17
|
-
const result = await bitbucketService.updateReviewStatus({
|
|
17
|
+
const result = await bitbucketService.pullRequests.updateReviewStatus({
|
|
18
18
|
projectKey,
|
|
19
19
|
repositorySlug,
|
|
20
20
|
pullRequestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update_review_status.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/update_review_status.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update_review_status.js","sourceRoot":"","sources":["../../../src/tools/pull-requests/update_review_status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACzD,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;SAC9C,QAAQ,CACP,8GAA8G,CAC/G;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,MAAiB,EAAE,EAAE;IAC1D,MAAM,CAAC,YAAY,CACjB,sBAAsB,EACtB;QACE,KAAK,EAAE,mCAAmC;QAC1C,WAAW,EACT,+bAA+b;QACjc,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE;QAC9D,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,YAAY,CAAC,kBAAkB,CAAC;YACpE,UAAU;YACV,cAAc;YACd,aAAa;YACb,MAAM;SACP,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_repositories.d.ts","sourceRoot":"","sources":["../../../src/tools/repositories/list_repositories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list_repositories.d.ts","sourceRoot":"","sources":["../../../src/tools/repositories/list_repositories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAMzE,eAAO,MAAM,oBAAoB,GAAI,QAAQ,SAAS,SAqBrD,CAAC"}
|
|
@@ -9,7 +9,7 @@ export const listRepositoriesTool = (server) => {
|
|
|
9
9
|
description: 'List all repositories in a Bitbucket Server project',
|
|
10
10
|
inputSchema: schema.shape,
|
|
11
11
|
}, async ({ projectKey }) => {
|
|
12
|
-
const result = await bitbucketService.
|
|
12
|
+
const result = await bitbucketService.repositories.list({ projectKey });
|
|
13
13
|
return {
|
|
14
14
|
content: [
|
|
15
15
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_repositories.js","sourceRoot":"","sources":["../../../src/tools/repositories/list_repositories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list_repositories.js","sourceRoot":"","sources":["../../../src/tools/repositories/list_repositories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;CACpE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAiB,EAAE,EAAE;IACxD,MAAM,CAAC,YAAY,CACjB,mBAAmB,EACnB;QACE,KAAK,EAAE,6BAA6B;QACpC,WAAW,EAAE,qDAAqD;QAClE,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;QACvB,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC;QAExE,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -32,8 +32,7 @@ export interface MinimalPullRequest {
|
|
|
32
32
|
* Response type for inbox pull requests tool (optimized).
|
|
33
33
|
* Contains paginated list of minimal PRs.
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
36
|
-
}
|
|
35
|
+
export type InboxPullRequestsResponse = PaginatedResponse<MinimalPullRequest>;
|
|
37
36
|
/**
|
|
38
37
|
* Optimized comment reaction with simplified count (no users array).
|
|
39
38
|
* Used by MCP tools to reduce token usage.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.types.d.ts","sourceRoot":"","sources":["../../src/tools/tools.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAMlH;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,sBAAsB;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,KAAK,EAAE,gBAAgB,CAAC;IACxB,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,cAAc,EAAE,MAAM,CAAC;IACvB,yBAAyB;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,4BAA4B;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"tools.types.d.ts","sourceRoot":"","sources":["../../src/tools/tools.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAMlH;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,sBAAsB;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,KAAK,EAAE,gBAAgB,CAAC;IACxB,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,cAAc,EAAE,MAAM,CAAC;IACvB,yBAAyB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;IACf,2BAA2B;IAC3B,MAAM,EAAE,cAAc,CAAC;IACvB,kDAAkD;IAClD,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wCAAwC;IACxC,MAAM,CAAC,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,uDAAuD;IACvD,cAAc,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC5B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,CAAC,4BAA4B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_all_users.d.ts","sourceRoot":"","sources":["../../../src/tools/users/get_all_users.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_all_users.d.ts","sourceRoot":"","sources":["../../../src/tools/users/get_all_users.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAMzE,eAAO,MAAM,eAAe,GAAI,QAAQ,SAAS,SAuBhD,CAAC"}
|
|
@@ -10,7 +10,7 @@ export const getAllUsersTool = (server) => {
|
|
|
10
10
|
inputSchema: schema.shape,
|
|
11
11
|
}, async ({ filter }) => {
|
|
12
12
|
// Call service method
|
|
13
|
-
const response = await bitbucketService.
|
|
13
|
+
const response = await bitbucketService.users.getAll(filter ? { filter } : undefined);
|
|
14
14
|
// Return full data
|
|
15
15
|
return {
|
|
16
16
|
content: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_all_users.js","sourceRoot":"","sources":["../../../src/tools/users/get_all_users.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_all_users.js","sourceRoot":"","sources":["../../../src/tools/users/get_all_users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iEAAiE,CAAC;CAC1G,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAiB,EAAE,EAAE;IACnD,MAAM,CAAC,YAAY,CACjB,eAAe,EACf;QACE,KAAK,EAAE,yBAAyB;QAChC,WAAW,EAAE,oFAAoF;QACjG,WAAW,EAAE,MAAM,CAAC,KAAK;KAC1B,EACD,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;QACnB,sBAAsB;QACtB,MAAM,QAAQ,GAAG,MAAM,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QAEtF,mBAAmB;QACnB,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;iBACxC;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_user_profile.d.ts","sourceRoot":"","sources":["../../../src/tools/users/get_user_profile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get_user_profile.d.ts","sourceRoot":"","sources":["../../../src/tools/users/get_user_profile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAMzE,eAAO,MAAM,kBAAkB,GAAI,QAAQ,SAAS,SAuBnD,CAAC"}
|