@zereight/mcp-gitlab 1.0.29 → 1.0.30

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 +10 -1
  2. package/package.json +2 -2
package/build/index.js CHANGED
@@ -278,7 +278,16 @@ const DEFAULT_HEADERS = {
278
278
  async function handleGitLabError(response) {
279
279
  if (!response.ok) {
280
280
  const errorBody = await response.text();
281
- throw new Error(`GitLab API error: ${response.status} ${response.statusText}\n${errorBody}`);
281
+ // Check specifically for Rate Limit error
282
+ if (response.status === 403 && errorBody.includes("User API Key Rate limit exceeded")) {
283
+ console.error("GitLab API Rate Limit Exceeded:", errorBody);
284
+ console.log("User API Key Rate limit exceeded. Please try again later.");
285
+ throw new Error(`GitLab API Rate Limit Exceeded: ${errorBody}`);
286
+ }
287
+ else {
288
+ // Handle other API errors
289
+ throw new Error(`GitLab API error: ${response.status} ${response.statusText}\n${errorBody}`);
290
+ }
282
291
  }
283
292
  }
284
293
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zereight/mcp-gitlab",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "MCP server for using the GitLab API",
5
5
  "license": "MIT",
6
6
  "author": "zereight",
@@ -32,4 +32,4 @@
32
32
  "typescript": "^5.8.2",
33
33
  "zod": "^3.24.2"
34
34
  }
35
- }
35
+ }