@zereight/mcp-gitlab 1.0.66 → 1.0.68

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
@@ -2596,6 +2596,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
2596
2596
  }
2597
2597
  switch (request.params.name) {
2598
2598
  case "fork_repository": {
2599
+ if (GITLAB_PROJECT_ID) {
2600
+ throw new Error("Direct project ID is set. So fork_repository is not allowed");
2601
+ }
2599
2602
  const forkArgs = ForkRepositorySchema.parse(request.params.arguments);
2600
2603
  try {
2601
2604
  const forkedProject = await forkProject(forkArgs.project_id, forkArgs.namespace);
@@ -2659,6 +2662,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
2659
2662
  };
2660
2663
  }
2661
2664
  case "create_repository": {
2665
+ if (GITLAB_PROJECT_ID) {
2666
+ throw new Error("Direct project ID is set. So fork_repository is not allowed");
2667
+ }
2662
2668
  const args = CreateRepositorySchema.parse(request.params.arguments);
2663
2669
  const repository = await createRepository(args);
2664
2670
  return {
package/build/schemas.js CHANGED
@@ -809,7 +809,14 @@ export const UpdateMergeRequestSchema = GetMergeRequestSchema.extend({
809
809
  title: z.string().optional().describe("The title of the merge request"),
810
810
  description: z.string().optional().describe("The description of the merge request"),
811
811
  target_branch: z.string().optional().describe("The target branch"),
812
- assignee_ids: z.array(z.number()).optional().describe("The ID of the users to assign the MR to"),
812
+ assignee_ids: z
813
+ .array(z.number())
814
+ .optional()
815
+ .describe("The ID of the users to assign the MR to"),
816
+ reviewer_ids: z
817
+ .array(z.number())
818
+ .optional()
819
+ .describe("The ID of the users to assign as reviewers of the MR"),
813
820
  labels: z.array(z.string()).optional().describe("Labels for the MR"),
814
821
  state_event: z
815
822
  .enum(["close", "reopen"])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zereight/mcp-gitlab",
3
- "version": "1.0.66",
3
+ "version": "1.0.68",
4
4
  "description": "MCP server for using the GitLab API",
5
5
  "license": "MIT",
6
6
  "author": "zereight",