@zereight/mcp-gitlab 1.0.66 → 1.0.67

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.
Files changed (2) hide show
  1. package/build/index.js +6 -0
  2. package/package.json +1 -1
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zereight/mcp-gitlab",
3
- "version": "1.0.66",
3
+ "version": "1.0.67",
4
4
  "description": "MCP server for using the GitLab API",
5
5
  "license": "MIT",
6
6
  "author": "zereight",