@zereight/mcp-gitlab 2.3.25-next.224 → 2.3.26-next.227

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/README.ko.md CHANGED
@@ -258,7 +258,7 @@ command = lib.getExe inputs.gitlab-mcp.packages.${system}.default;
258
258
 
259
259
  예시는 기존 `mcp-gitlab`보다 충돌 가능성이 낮은 `zereight-mcp-gitlab` 별칭을 사용합니다. MCP 클라이언트가 찾지 못하면 `which zereight-mcp-gitlab`의 절대 경로를 사용하세요.
260
260
 
261
- 전역 설치를 쓰지 않으려면 `npx -y @zereight/mcp-gitlab@2.3.23`처럼 직전 안정 버전(문서가 권장하는 버전)으로 고정하세요. 항상 최신 버전을 원하면 `npx -y @zereight/mcp-gitlab@latest`를 사용하세요. `main`에 머지된 수정을 다음 안정 버전 전에 확인하려면 프리릴리스 빌드인 `npx -y @zereight/mcp-gitlab@next`를 사용하세요(운영 환경용이 아닙니다). 새 버전이 나오면 서버가 시작 시 stderr로 알려줍니다(`GITLAB_DISABLE_VERSION_CHECK=true`로 비활성화 가능).
261
+ 전역 설치를 쓰지 않으려면 `npx -y @zereight/mcp-gitlab@2.3.24`처럼 직전 안정 버전(문서가 권장하는 버전)으로 고정하세요. 항상 최신 버전을 원하면 `npx -y @zereight/mcp-gitlab@latest`를 사용하세요. `main`에 머지된 수정을 다음 안정 버전 전에 확인하려면 프리릴리스 빌드인 `npx -y @zereight/mcp-gitlab@next`를 사용하세요(운영 환경용이 아닙니다). 새 버전이 나오면 서버가 시작 시 stderr로 알려줍니다(`GITLAB_DISABLE_VERSION_CHECK=true`로 비활성화 가능).
262
262
 
263
263
  #### Claude Desktop 원클릭 설치(MCP Bundle)
264
264
 
package/README.md CHANGED
@@ -263,7 +263,7 @@ The store path is pinned by your lock file; update it with `nix flake update git
263
263
 
264
264
  The examples use `zereight-mcp-gitlab`, a less collision-prone alias for the legacy `mcp-gitlab` binary. If your MCP client cannot find it, use the absolute path from `which zereight-mcp-gitlab`.
265
265
 
266
- No global install? Pin `npx` to the previous stable release (the version these docs recommend), for example `npx -y @zereight/mcp-gitlab@2.3.23`. If you always want the newest release, use `npx -y @zereight/mcp-gitlab@latest` instead. To try a fix merged to `main` before the next stable release, use `npx -y @zereight/mcp-gitlab@next`, a pre-release build that is not meant for production. The server prints a notice to stderr on startup when a newer version is available (disable with `GITLAB_DISABLE_VERSION_CHECK=true`).
266
+ No global install? Pin `npx` to the previous stable release (the version these docs recommend), for example `npx -y @zereight/mcp-gitlab@2.3.24`. If you always want the newest release, use `npx -y @zereight/mcp-gitlab@latest` instead. To try a fix merged to `main` before the next stable release, use `npx -y @zereight/mcp-gitlab@next`, a pre-release build that is not meant for production. The server prints a notice to stderr on startup when a newer version is available (disable with `GITLAB_DISABLE_VERSION_CHECK=true`).
267
267
 
268
268
  #### Claude Desktop one-click install (MCP Bundle)
269
269
 
package/README.pt-BR.md CHANGED
@@ -258,7 +258,7 @@ O caminho no store é fixado pelo seu lock file; atualize-o com `nix flake updat
258
258
 
259
259
  Os exemplos usam `zereight-mcp-gitlab`, um alias com menor chance de conflito que o binário legado `mcp-gitlab`. Se o seu cliente MCP não o encontrar, use o caminho absoluto retornado por `which zereight-mcp-gitlab`.
260
260
 
261
- Não quer instalar globalmente? Fixe o `npx` na versão estável anterior (a versão recomendada por esta documentação), por exemplo `npx -y @zereight/mcp-gitlab@2.3.23`. Se quiser sempre a versão mais recente, use `npx -y @zereight/mcp-gitlab@latest`. Para testar uma correção já mesclada na `main` antes da próxima versão estável, use `npx -y @zereight/mcp-gitlab@next`, um build de pré-lançamento que não é indicado para produção. O servidor exibe um aviso no stderr durante a inicialização quando existe uma versão mais nova disponível (desative com `GITLAB_DISABLE_VERSION_CHECK=true`).
261
+ Não quer instalar globalmente? Fixe o `npx` na versão estável anterior (a versão recomendada por esta documentação), por exemplo `npx -y @zereight/mcp-gitlab@2.3.24`. Se quiser sempre a versão mais recente, use `npx -y @zereight/mcp-gitlab@latest`. Para testar uma correção já mesclada na `main` antes da próxima versão estável, use `npx -y @zereight/mcp-gitlab@next`, um build de pré-lançamento que não é indicado para produção. O servidor exibe um aviso no stderr durante a inicialização quando existe uma versão mais nova disponível (desative com `GITLAB_DISABLE_VERSION_CHECK=true`).
262
262
 
263
263
  #### Instalação com um clique no Claude Desktop (MCP Bundle)
264
264
 
package/README.zh-CN.md CHANGED
@@ -258,7 +258,7 @@ command = lib.getExe inputs.gitlab-mcp.packages.${system}.default;
258
258
 
259
259
  示例使用 `zereight-mcp-gitlab`,这是比旧的 `mcp-gitlab` 更不容易冲突的别名。如果 MCP 客户端找不到它,请使用 `which zereight-mcp-gitlab` 输出的绝对路径。
260
260
 
261
- 如果不想全局安装,请将 `npx` 固定到上一个稳定版本(即文档推荐的版本),例如 `npx -y @zereight/mcp-gitlab@2.3.23`。如果始终想使用最新版本,请改用 `npx -y @zereight/mcp-gitlab@latest`。如需在下一个稳定版本发布前试用已合并到 `main` 的修复,请使用 `npx -y @zereight/mcp-gitlab@next`(预发布版本,不适用于生产环境)。有新版本发布时,服务器会在启动时通过 stderr 提示(可用 `GITLAB_DISABLE_VERSION_CHECK=true` 关闭)。
261
+ 如果不想全局安装,请将 `npx` 固定到上一个稳定版本(即文档推荐的版本),例如 `npx -y @zereight/mcp-gitlab@2.3.24`。如果始终想使用最新版本,请改用 `npx -y @zereight/mcp-gitlab@latest`。如需在下一个稳定版本发布前试用已合并到 `main` 的修复,请使用 `npx -y @zereight/mcp-gitlab@next`(预发布版本,不适用于生产环境)。有新版本发布时,服务器会在启动时通过 stderr 提示(可用 `GITLAB_DISABLE_VERSION_CHECK=true` 关闭)。
262
262
 
263
263
  #### Claude Desktop 一键安装(MCP Bundle)
264
264
 
package/build/index.js CHANGED
@@ -1376,6 +1376,9 @@ const GROUP_NOT_FOUND_HINT = "check group_id (numeric ID or URL-encoded path suc
1376
1376
  const WORK_ITEM_NOT_FOUND_HINT = "check project_id and the work item iid (the #number shown in GitLab, not the global ID).";
1377
1377
  const WORK_ITEM_TYPE_NOT_FOUND_HINT = "this project does not offer that work item type (some types need a higher GitLab tier or are turned off); use another type, such as issue or task.";
1378
1378
  const VULNERABILITY_NOT_FOUND_HINT = "check vulnerability_id; list_project_vulnerabilities lists the vulnerabilities the token can read.";
1379
+ // Unlike the generic getEffectiveProjectId hint, this one does not suggest setting
1380
+ // GITLAB_PROJECT_ID: fork_repository is rejected whenever GITLAB_PROJECT_ID is set.
1381
+ const FORK_PROJECT_ID_REQUIRED_HINT = "pass project_id (numeric ID or group%2Fproject).";
1379
1382
  /**
1380
1383
  * Utility function for handling GitLab API errors
1381
1384
  * API 에러 처리를 위한 유틸리티 함수 (Utility function for handling API errors)
@@ -1485,6 +1488,12 @@ function rejectIfProjectScopedDeployment(toolName) {
1485
1488
  */
1486
1489
  async function forkProject(projectId, namespace) {
1487
1490
  projectId = decodeURIComponent(projectId); // Decode project ID
1491
+ // fork_repository has already rejected GITLAB_PROJECT_ID and allowlist setups, so there is
1492
+ // no default project to fall back to. Fail here with a fork-specific hint instead of the
1493
+ // generic getEffectiveProjectId one.
1494
+ if (!projectId) {
1495
+ throw new ToolInputError(withRecoveryHint("No project ID provided", FORK_PROJECT_ID_REQUIRED_HINT));
1496
+ }
1488
1497
  const effectiveProjectId = getEffectiveProjectId(projectId);
1489
1498
  const url = new URL(`${getEffectiveApiUrl()}/projects/${encodeGitLabPathSegment(effectiveProjectId)}/fork`);
1490
1499
  if (namespace) {
@@ -8047,6 +8056,11 @@ async function handleToolCall(params) {
8047
8056
  };
8048
8057
  }
8049
8058
  catch (forkError) {
8059
+ // Argument errors (e.g. an empty project_id) belong to the central handler, which
8060
+ // returns them as isError results with a Next: hint.
8061
+ if (forkError instanceof ToolInputError) {
8062
+ throw forkError;
8063
+ }
8050
8064
  logger.error({ err: forkError }, "Error forking repository");
8051
8065
  let forkErrorMessage = "Failed to fork repository";
8052
8066
  if (forkError instanceof Error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zereight/mcp-gitlab",
3
- "version": "2.3.25-next.224",
3
+ "version": "2.3.26-next.227",
4
4
  "mcpName": "io.github.zereight/gitlab-mcp",
5
5
  "description": "GitLab MCP server for projects, merge requests, issues, pipelines, wiki, releases, and more",
6
6
  "keywords": [