@zereight/mcp-gitlab 2.1.66 → 2.1.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.
package/README.ko.md CHANGED
@@ -111,7 +111,7 @@ command = lib.getExe inputs.gitlab-mcp.packages.${system}.default;
111
111
 
112
112
  예시는 기존 `mcp-gitlab`보다 충돌 가능성이 낮은 `zereight-mcp-gitlab` 별칭을 사용합니다. MCP 클라이언트가 찾지 못하면 `which zereight-mcp-gitlab`의 절대 경로를 사용하세요.
113
113
 
114
- 전역 설치를 쓰지 않으려면 `npx -y @zereight/mcp-gitlab@2.1.65`처럼 직전 안정 버전(문서가 권장하는 버전)으로 고정하세요. 항상 최신 버전을 원하면 `npx -y @zereight/mcp-gitlab@latest`를 사용하세요. 새 버전이 나오면 서버가 시작 시 stderr로 알려줍니다(`GITLAB_DISABLE_VERSION_CHECK=true`로 비활성화 가능).
114
+ 전역 설치를 쓰지 않으려면 `npx -y @zereight/mcp-gitlab@2.1.66`처럼 직전 안정 버전(문서가 권장하는 버전)으로 고정하세요. 항상 최신 버전을 원하면 `npx -y @zereight/mcp-gitlab@latest`를 사용하세요. 새 버전이 나오면 서버가 시작 시 stderr로 알려줍니다(`GITLAB_DISABLE_VERSION_CHECK=true`로 비활성화 가능).
115
115
 
116
116
  #### CLI 인자 사용하기(환경 변수 문제가 있는 클라이언트용)
117
117
 
package/README.md CHANGED
@@ -116,7 +116,7 @@ The store path is pinned by your lock file; update it with `nix flake update git
116
116
 
117
117
  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`.
118
118
 
119
- No global install? Pin `npx` to the previous stable release (the version these docs recommend), for example `npx -y @zereight/mcp-gitlab@2.1.65`. If you always want the newest release, use `npx -y @zereight/mcp-gitlab@latest` instead. The server prints a notice to stderr on startup when a newer version is available (disable with `GITLAB_DISABLE_VERSION_CHECK=true`).
119
+ No global install? Pin `npx` to the previous stable release (the version these docs recommend), for example `npx -y @zereight/mcp-gitlab@2.1.66`. If you always want the newest release, use `npx -y @zereight/mcp-gitlab@latest` instead. The server prints a notice to stderr on startup when a newer version is available (disable with `GITLAB_DISABLE_VERSION_CHECK=true`).
120
120
 
121
121
  #### Using CLI Arguments (for clients with env var issues)
122
122
 
package/README.zh-CN.md CHANGED
@@ -111,7 +111,7 @@ command = lib.getExe inputs.gitlab-mcp.packages.${system}.default;
111
111
 
112
112
  示例使用 `zereight-mcp-gitlab`,这是比旧的 `mcp-gitlab` 更不容易冲突的别名。如果 MCP 客户端找不到它,请使用 `which zereight-mcp-gitlab` 输出的绝对路径。
113
113
 
114
- 如果不想全局安装,请将 `npx` 固定到上一个稳定版本(即文档推荐的版本),例如 `npx -y @zereight/mcp-gitlab@2.1.65`。如果始终想使用最新版本,请改用 `npx -y @zereight/mcp-gitlab@latest`。有新版本发布时,服务器会在启动时通过 stderr 提示(可用 `GITLAB_DISABLE_VERSION_CHECK=true` 关闭)。
114
+ 如果不想全局安装,请将 `npx` 固定到上一个稳定版本(即文档推荐的版本),例如 `npx -y @zereight/mcp-gitlab@2.1.66`。如果始终想使用最新版本,请改用 `npx -y @zereight/mcp-gitlab@latest`。有新版本发布时,服务器会在启动时通过 stderr 提示(可用 `GITLAB_DISABLE_VERSION_CHECK=true` 关闭)。
115
115
 
116
116
  #### 使用 CLI 参数(适用于环境变量有问题的客户端)
117
117
 
package/build/schemas.js CHANGED
@@ -1355,6 +1355,9 @@ export const GitLabDiffSchema = z.object({
1355
1355
  new_file: z.coerce.boolean(),
1356
1356
  renamed_file: z.coerce.boolean(),
1357
1357
  deleted_file: z.coerce.boolean(),
1358
+ generated_file: z.coerce.boolean().optional(),
1359
+ too_large: z.coerce.boolean().optional(),
1360
+ collapsed: z.coerce.boolean().optional(),
1358
1361
  });
1359
1362
  // Response schemas for operations
1360
1363
  export const GitLabCreateUpdateFileResponseSchema = z.object({
@@ -0,0 +1,36 @@
1
+ import assert from "node:assert/strict";
2
+ import { test } from "node:test";
3
+ import { GitLabDiffSchema } from "../schemas.js";
4
+ test("diff schema keeps GitLab's generated_file, too_large and collapsed flags", () => {
5
+ const parsed = GitLabDiffSchema.parse({
6
+ diff: "@@ -1 +1 @@",
7
+ new_path: "src/Foo.php",
8
+ old_path: "src/Foo.php",
9
+ a_mode: "100644",
10
+ b_mode: "100644",
11
+ new_file: false,
12
+ renamed_file: false,
13
+ deleted_file: false,
14
+ generated_file: true,
15
+ too_large: true,
16
+ collapsed: false,
17
+ });
18
+ assert.equal(parsed.generated_file, true);
19
+ assert.equal(parsed.too_large, true);
20
+ assert.equal(parsed.collapsed, false);
21
+ });
22
+ test("diff schema still parses entries without the optional flags", () => {
23
+ const parsed = GitLabDiffSchema.parse({
24
+ diff: "@@ -1 +1 @@",
25
+ new_path: "src/Foo.php",
26
+ old_path: "src/Foo.php",
27
+ a_mode: "100644",
28
+ b_mode: "100644",
29
+ new_file: false,
30
+ renamed_file: false,
31
+ deleted_file: false,
32
+ });
33
+ assert.equal("generated_file" in parsed, false);
34
+ assert.equal("too_large" in parsed, false);
35
+ assert.equal("collapsed" in parsed, false);
36
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zereight/mcp-gitlab",
3
- "version": "2.1.66",
3
+ "version": "2.1.67",
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": [