@zereight/mcp-gitlab 1.0.59 → 1.0.60

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/build/index.js CHANGED
@@ -695,15 +695,16 @@ async function listIssues(projectId, options = {}) {
695
695
  // Add all query parameters
696
696
  Object.entries(options).forEach(([key, value]) => {
697
697
  if (value !== undefined) {
698
- if (key === "labels") {
698
+ const keys = ["labels", "assignee_username"];
699
+ if (keys.includes(key)) {
699
700
  if (Array.isArray(value)) {
700
701
  // Handle array of labels
701
702
  value.forEach(label => {
702
- url.searchParams.append("labels[]", label.toString());
703
+ url.searchParams.append(`${key}[]`, label.toString());
703
704
  });
704
705
  }
705
706
  else {
706
- url.searchParams.append("labels[]", value.toString());
707
+ url.searchParams.append(`${key}[]`, value.toString());
707
708
  }
708
709
  }
709
710
  else {
@@ -915,6 +916,8 @@ async function createMergeRequest(projectId, options) {
915
916
  labels: options.labels?.join(","),
916
917
  allow_collaboration: options.allow_collaboration,
917
918
  draft: options.draft,
919
+ remove_source_branch: options.remove_source_branch,
920
+ squash: options.squash,
918
921
  }),
919
922
  });
920
923
  if (response.status === 400) {
package/build/schemas.js CHANGED
@@ -427,6 +427,8 @@ export const CreateMergeRequestOptionsSchema = z.object({
427
427
  labels: z.array(z.string()).optional(),
428
428
  allow_collaboration: z.boolean().optional(), // Changed from maintainer_can_modify to match GitLab API
429
429
  draft: z.boolean().optional(),
430
+ remove_source_branch: z.boolean().optional().describe("Flag indicating if a merge request should remove the source branch when merging."),
431
+ squash: z.boolean().optional().describe("If true, squash all commits into a single commit on merge.")
430
432
  });
431
433
  export const GitLabDiffSchema = z.object({
432
434
  old_path: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zereight/mcp-gitlab",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
4
4
  "description": "MCP server for using the GitLab API",
5
5
  "license": "MIT",
6
6
  "author": "zereight",
@@ -21,6 +21,7 @@
21
21
  "watch": "tsc --watch",
22
22
  "deploy": "npm publish --access public",
23
23
  "generate-tools": "npx ts-node scripts/generate-tools-readme.ts",
24
+ "changelog": "auto-changelog -p",
24
25
  "test": "node test/validate-api.js",
25
26
  "test:integration": "node test/validate-api.js",
26
27
  "lint": "eslint . --ext .ts",
@@ -48,6 +49,7 @@
48
49
  "prettier": "^3.4.2",
49
50
  "ts-node": "^10.9.2",
50
51
  "typescript": "^5.8.2",
51
- "zod": "^3.24.2"
52
+ "zod": "^3.24.2",
53
+ "auto-changelog": "^2.4.0"
52
54
  }
53
55
  }