mcp-gitlab 0.25.0__tar.gz → 0.25.2__tar.gz

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 (80) hide show
  1. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.claude-plugin/plugin.json +1 -1
  2. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.mcp.json +1 -1
  3. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/AGENTS.md +3 -1
  4. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/CHANGELOG.md +15 -0
  5. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/PKG-INFO +16 -8
  6. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/README.md +15 -7
  7. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/gemini-extension.json +2 -2
  8. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/llms-full.txt +1 -1
  9. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/llms.txt +1 -1
  10. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/pyproject.toml +1 -1
  11. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/server.json +95 -2
  12. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/servers/gitlab.py +6 -0
  13. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_tools.py +12 -0
  14. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/uv.lock +150 -165
  15. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.copier-answers.yml +0 -0
  16. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.dockerignore +0 -0
  17. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.env.example +0 -0
  18. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  19. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  20. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.github/conformance-baseline.yml +0 -0
  21. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.github/conformance-env +0 -0
  22. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.github/dependabot.yml +0 -0
  23. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.github/workflows/link-check.yml +0 -0
  24. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.github/workflows/lint.yml +0 -0
  25. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.github/workflows/publish.yml +0 -0
  26. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.github/workflows/reconcile.yml +0 -0
  27. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.github/workflows/release.yml +0 -0
  28. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.github/workflows/tests.yml +0 -0
  29. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/.gitignore +0 -0
  30. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/Dockerfile +0 -0
  31. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/LICENSE +0 -0
  32. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/assets/icon.svg +0 -0
  33. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/docs/oauth.md +0 -0
  34. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/docs/specs/2026-09-21-test-confidence-and-error-contract.md +0 -0
  35. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/evaluations/eval.xml +0 -0
  36. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/glama.json +0 -0
  37. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/ruff.toml +0 -0
  38. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/__init__.py +0 -0
  39. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/__main__.py +0 -0
  40. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/client.py +0 -0
  41. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/config.py +0 -0
  42. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/exceptions.py +0 -0
  43. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/local_auth.py +0 -0
  44. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/oauth.py +0 -0
  45. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/py.typed +0 -0
  46. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/resources/approval-workflow.md +0 -0
  47. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/resources/code-review.md +0 -0
  48. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/resources/codeowners.md +0 -0
  49. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/resources/conventional-commits.md +0 -0
  50. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/resources/git-workflow.md +0 -0
  51. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/resources/gitlab-ci.md +0 -0
  52. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/resources/mr-hygiene.md +0 -0
  53. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/resources/prompts/approve-mr.md +0 -0
  54. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/resources/prompts/diagnose-pipeline.md +0 -0
  55. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/resources/prompts/prepare-release.md +0 -0
  56. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/resources/prompts/review-mr.md +0 -0
  57. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/resources/prompts/setup-branch-protection.md +0 -0
  58. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/resources/prompts/triage-issues.md +0 -0
  59. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/servers/__init__.py +0 -0
  60. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/servers/_helpers.py +0 -0
  61. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/servers/prompts.py +0 -0
  62. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/src/mcp_gitlab/servers/resources.py +0 -0
  63. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/__init__.py +0 -0
  64. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/conftest.py +0 -0
  65. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/test_links.py +0 -0
  66. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/__init__.py +0 -0
  67. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_cli.py +0 -0
  68. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_client.py +0 -0
  69. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_config.py +0 -0
  70. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_exceptions.py +0 -0
  71. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_health.py +0 -0
  72. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_local_auth.py +0 -0
  73. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_oauth.py +0 -0
  74. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_oauth_http.py +0 -0
  75. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_prompts.py +0 -0
  76. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_read_only_lock.py +0 -0
  77. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_resources.py +0 -0
  78. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_server_assembly.py +0 -0
  79. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_tool_contract.py +0 -0
  80. {mcp_gitlab-0.25.0 → mcp_gitlab-0.25.2}/tests/unit/test_toolsets.py +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mcp-gitlab",
3
3
  "displayName": "GitLab",
4
- "version": "0.25.0",
4
+ "version": "0.25.2",
5
5
  "description": "GitLab MCP server (MCP 2026-07-28): projects, MRs, pipelines, CI/CD, issues; writes or read-only",
6
6
  "author": {
7
7
  "name": "vish288"
@@ -3,7 +3,7 @@
3
3
  "gitlab": {
4
4
  "command": "uvx",
5
5
  "args": [
6
- "mcp-gitlab@0.25.0"
6
+ "mcp-gitlab@0.25.2"
7
7
  ],
8
8
  "env": {
9
9
  "GITLAB_TOKEN": "${user_config.gitlab_token}",
@@ -13,7 +13,9 @@ clients. Built on FastMCP 4.x and the MCP Python SDK 2.x. Verified over `stdio`
13
13
  Transports: `stdio` (default), `streamable-http` (recommended for remote), and `sse`. The
14
14
  2026-07-28 specification deprecates `sse`, so the server prints a warning when you use it. The
15
15
  server uses no roots, sampling, logging, elicitation, or resource subscriptions, so the
16
- 2026-07-28 deprecations do not affect it.
16
+ 2026-07-28 deprecations do not affect it. The server disables `subscriptions/listen` and advertises
17
+ `listChanged` and `resources.subscribe` as false, because its tool, prompt, and resource lists never
18
+ change after startup.
17
19
 
18
20
  Authorization: with `--auth oauth` (streamable-http only) the server is an MCP 2026-07-28 resource
19
21
  server and OAuth proxy in front of GitLab (RFC 9728 PRM, RFC 8414 AS metadata, PKCE S256, per-user
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.25.2] - 2026-11-30
4
+
5
+ ### Bug Fixes
6
+ - fix: disable subscriptions/listen so capabilities match behaviour (7dcc52e)
7
+
8
+ ### Chores
9
+ - chore(deps): weekly patch 2026-11-29 (2b8b5bd)
10
+
11
+
12
+ ## [0.25.1] - 2026-11-23
13
+
14
+ ### Features
15
+ - feat(release): list the GHCR image in the MCP registry (0333b99)
16
+
17
+
3
18
  ## [0.25.0] - 2026-11-23
4
19
 
5
20
  ### Tests
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: mcp-gitlab
3
- Version: 0.25.0
3
+ Version: 0.25.2
4
4
  Summary: GitLab MCP server for the MCP 2026-07-28 specification (MCP 2.0): projects, MRs, pipelines, CI/CD, approvals and issues for AI assistants. Runs with writes, or locked read-only via MCP_READ_ONLY
5
5
  Project-URL: Homepage, https://github.com/vish288/mcp-gitlab
6
6
  Project-URL: Repository, https://github.com/vish288/mcp-gitlab
@@ -342,7 +342,7 @@ mcp-gitlab implements the Model Context Protocol. It supports the 2026-07-28 spe
342
342
  - **Legacy clients**: 2025-11-25 clients still work.
343
343
  - **Built on**: FastMCP 4.x and the MCP Python SDK 2.x.
344
344
  - **Transports**: `stdio` (default) and `streamable-http` (recommended for remote). The `sse` (HTTP+SSE) transport still works, but the 2026-07-28 specification deprecates it. The server prints a warning when you use it.
345
- - **Capabilities**: tools, resources, and prompts. The server uses no roots, sampling, logging, elicitation, or resource subscriptions, so the 2026-07-28 deprecations do not affect it.
345
+ - **Capabilities**: tools, resources, and prompts. The server uses no roots, sampling, logging, elicitation, or resource subscriptions, so the 2026-07-28 deprecations do not affect it. The server disables `subscriptions/listen` and advertises `listChanged` and `resources.subscribe` as false, because its tool, prompt, and resource lists never change after startup.
346
346
  - **Server identity and cache hints**: `serverInfo` reports the installed package version and the install page as `websiteUrl`, so every response names the exact release. List results carry the 2026-07-28 cache hints `ttlMs: 300000` (5-minute TTL) and `cacheScope: private` — private because `resources/read` can vary by the per-user token. Both are inert for clients that do not read them.
347
347
 
348
348
  ### Error results
@@ -702,27 +702,35 @@ propagation without emitting spans).
702
702
 
703
703
  ## Docker
704
704
 
705
- A minimal non-root image builds straight from this repo (uv, the committed `uv.lock`). The image
706
- defaults to locked read-only (`MCP_READ_ONLY=true`); override it to allow writes.
705
+ The image is published to GHCR for linux/amd64 and linux/arm64. It is minimal, runs as a non-root
706
+ user, and defaults to locked read-only (`MCP_READ_ONLY=true`); override it to allow writes.
707
707
 
708
708
  ```bash
709
- docker build -t mcp-gitlab .
710
-
711
709
  # locked read-only (the image default) — stdio for an MCP client
712
710
  docker run --rm -i \
713
711
  -e GITLAB_URL=https://gitlab.example.com -e GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx \
714
- mcp-gitlab
712
+ ghcr.io/vish288/mcp-gitlab:0.25.2
715
713
 
716
714
  # allow writes: override the read-only default
717
715
  docker run --rm -i \
718
716
  -e MCP_READ_ONLY=false \
719
717
  -e GITLAB_URL=https://gitlab.example.com -e GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx \
720
- mcp-gitlab
718
+ ghcr.io/vish288/mcp-gitlab:0.25.2
721
719
  ```
722
720
 
723
721
  For an HTTP transport, append `--transport streamable-http --host 0.0.0.0`; a non-loopback bind in
724
722
  token mode needs `GITLAB_HTTP_BEARER_TOKEN` (≥ 16 chars) or `GITLAB_AUTH=oauth` (see above).
725
723
 
724
+ Verify the build provenance before you run it. The attestation is signed by the shared
725
+ publish workflow in `vish288/.github`, not by this repo, hence `--signer-repo`:
726
+
727
+ ```bash
728
+ gh attestation verify oci://ghcr.io/vish288/mcp-gitlab:0.25.2 -R vish288/mcp-gitlab --signer-repo vish288/.github
729
+ ```
730
+
731
+ To build from source instead (uv, the committed `uv.lock`), run `docker build -t mcp-gitlab .` and
732
+ use `mcp-gitlab` as the image name.
733
+
726
734
  ## FAQ
727
735
 
728
736
  ### Does mcp-gitlab support MCP 2.0?
@@ -307,7 +307,7 @@ mcp-gitlab implements the Model Context Protocol. It supports the 2026-07-28 spe
307
307
  - **Legacy clients**: 2025-11-25 clients still work.
308
308
  - **Built on**: FastMCP 4.x and the MCP Python SDK 2.x.
309
309
  - **Transports**: `stdio` (default) and `streamable-http` (recommended for remote). The `sse` (HTTP+SSE) transport still works, but the 2026-07-28 specification deprecates it. The server prints a warning when you use it.
310
- - **Capabilities**: tools, resources, and prompts. The server uses no roots, sampling, logging, elicitation, or resource subscriptions, so the 2026-07-28 deprecations do not affect it.
310
+ - **Capabilities**: tools, resources, and prompts. The server uses no roots, sampling, logging, elicitation, or resource subscriptions, so the 2026-07-28 deprecations do not affect it. The server disables `subscriptions/listen` and advertises `listChanged` and `resources.subscribe` as false, because its tool, prompt, and resource lists never change after startup.
311
311
  - **Server identity and cache hints**: `serverInfo` reports the installed package version and the install page as `websiteUrl`, so every response names the exact release. List results carry the 2026-07-28 cache hints `ttlMs: 300000` (5-minute TTL) and `cacheScope: private` — private because `resources/read` can vary by the per-user token. Both are inert for clients that do not read them.
312
312
 
313
313
  ### Error results
@@ -667,27 +667,35 @@ propagation without emitting spans).
667
667
 
668
668
  ## Docker
669
669
 
670
- A minimal non-root image builds straight from this repo (uv, the committed `uv.lock`). The image
671
- defaults to locked read-only (`MCP_READ_ONLY=true`); override it to allow writes.
670
+ The image is published to GHCR for linux/amd64 and linux/arm64. It is minimal, runs as a non-root
671
+ user, and defaults to locked read-only (`MCP_READ_ONLY=true`); override it to allow writes.
672
672
 
673
673
  ```bash
674
- docker build -t mcp-gitlab .
675
-
676
674
  # locked read-only (the image default) — stdio for an MCP client
677
675
  docker run --rm -i \
678
676
  -e GITLAB_URL=https://gitlab.example.com -e GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx \
679
- mcp-gitlab
677
+ ghcr.io/vish288/mcp-gitlab:0.25.2
680
678
 
681
679
  # allow writes: override the read-only default
682
680
  docker run --rm -i \
683
681
  -e MCP_READ_ONLY=false \
684
682
  -e GITLAB_URL=https://gitlab.example.com -e GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx \
685
- mcp-gitlab
683
+ ghcr.io/vish288/mcp-gitlab:0.25.2
686
684
  ```
687
685
 
688
686
  For an HTTP transport, append `--transport streamable-http --host 0.0.0.0`; a non-loopback bind in
689
687
  token mode needs `GITLAB_HTTP_BEARER_TOKEN` (≥ 16 chars) or `GITLAB_AUTH=oauth` (see above).
690
688
 
689
+ Verify the build provenance before you run it. The attestation is signed by the shared
690
+ publish workflow in `vish288/.github`, not by this repo, hence `--signer-repo`:
691
+
692
+ ```bash
693
+ gh attestation verify oci://ghcr.io/vish288/mcp-gitlab:0.25.2 -R vish288/mcp-gitlab --signer-repo vish288/.github
694
+ ```
695
+
696
+ To build from source instead (uv, the committed `uv.lock`), run `docker build -t mcp-gitlab .` and
697
+ use `mcp-gitlab` as the image name.
698
+
691
699
  ## FAQ
692
700
 
693
701
  ### Does mcp-gitlab support MCP 2.0?
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "mcp-gitlab",
3
- "version": "0.25.0",
3
+ "version": "0.25.2",
4
4
  "description": "GitLab MCP server (MCP 2026-07-28): projects, MRs, pipelines, CI/CD, issues; writes or read-only",
5
5
  "mcpServers": {
6
6
  "mcp-gitlab": {
7
7
  "command": "uvx",
8
8
  "args": [
9
- "mcp-gitlab@0.25.0"
9
+ "mcp-gitlab@0.25.2"
10
10
  ]
11
11
  }
12
12
  },
@@ -5,7 +5,7 @@
5
5
  MCP server that wraps the GitLab REST API. Works with GitLab.com and self-hosted instances (CE/EE). No GitLab Duo or Premium required. Built with FastMCP, httpx, and Pydantic.
6
6
 
7
7
  - **Install**: `uvx mcp-gitlab`
8
- - **Version**: 0.25.0
8
+ - **Version**: 0.25.2
9
9
  - **Python**: >=3.11
10
10
  - **License**: MIT
11
11
  - **Protocol**: MCP 2026-07-28 (MCP 2.0); compatible with 2025-11-25 clients; built on FastMCP 4.x
@@ -5,7 +5,7 @@
5
5
  MCP server that wraps the GitLab REST API. Works with GitLab.com and self-hosted instances (CE/EE). No GitLab Duo or Premium required. Built with FastMCP, httpx, and Pydantic.
6
6
 
7
7
  - **Install**: `uvx mcp-gitlab`
8
- - **Version**: 0.25.0
8
+ - **Version**: 0.25.2
9
9
  - **Python**: >=3.11
10
10
  - **License**: MIT
11
11
  - **Protocol**: MCP 2026-07-28 (MCP 2.0); compatible with 2025-11-25 clients; built on FastMCP 4.x
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mcp-gitlab"
3
- version = "0.25.0"
3
+ version = "0.25.2"
4
4
  description = "GitLab MCP server for the MCP 2026-07-28 specification (MCP 2.0): projects, MRs, pipelines, CI/CD, approvals and issues for AI assistants. Runs with writes, or locked read-only via MCP_READ_ONLY"
5
5
  readme = "README.md"
6
6
  license = {text = "MIT"}
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/vish288/mcp-gitlab",
8
8
  "source": "github"
9
9
  },
10
- "version": "0.25.0",
10
+ "version": "0.25.2",
11
11
  "websiteUrl": "https://vish288.github.io/mcp-install?server=mcp-gitlab",
12
12
  "icons": [
13
13
  {
@@ -22,7 +22,7 @@
22
22
  {
23
23
  "registryType": "pypi",
24
24
  "identifier": "mcp-gitlab",
25
- "version": "0.25.0",
25
+ "version": "0.25.2",
26
26
  "runtimeHint": "uvx",
27
27
  "transport": {
28
28
  "type": "stdio"
@@ -113,6 +113,99 @@
113
113
  "isSecret": true
114
114
  }
115
115
  ]
116
+ },
117
+ {
118
+ "registryType": "oci",
119
+ "identifier": "ghcr.io/vish288/mcp-gitlab:0.25.2",
120
+ "transport": {
121
+ "type": "stdio"
122
+ },
123
+ "environmentVariables": [
124
+ {
125
+ "name": "GITLAB_TOKEN",
126
+ "description": "GitLab personal access token (token mode). Optional after `mcp-gitlab auth login`; also accepts GITLAB_PAT, GITLAB_PERSONAL_ACCESS_TOKEN, GITLAB_API_TOKEN",
127
+ "isRequired": false,
128
+ "format": "string",
129
+ "isSecret": true
130
+ },
131
+ {
132
+ "name": "GITLAB_URL",
133
+ "description": "GitLab instance URL (e.g. https://gitlab.com)",
134
+ "isRequired": true,
135
+ "format": "string",
136
+ "isSecret": false
137
+ },
138
+ {
139
+ "name": "GITLAB_READ_ONLY",
140
+ "description": "Alias for MCP_READ_ONLY. Any value other than false/0/no/off/empty locks the server read-only; --read-only can only raise the lock",
141
+ "isRequired": false,
142
+ "format": "string",
143
+ "isSecret": false
144
+ },
145
+ {
146
+ "name": "MCP_READ_ONLY",
147
+ "description": "Locks the server read-only: write tools and write-workflow prompts are not listed and nothing lifts the lock at runtime. Shared name across the mcp-* servers; set it in the deployer's env",
148
+ "isRequired": false,
149
+ "format": "string",
150
+ "isSecret": false
151
+ },
152
+ {
153
+ "name": "MCP_TOOLSETS",
154
+ "description": "Comma list of tool groups to expose (code, review, ci, issues, release, admin); unset or 'all' lists every tool. Shrinks tools/list for clients with a tool budget; MCP_READ_ONLY still applies after the selection",
155
+ "isRequired": false,
156
+ "format": "string",
157
+ "isSecret": false
158
+ },
159
+ {
160
+ "name": "GITLAB_AUTH",
161
+ "description": "Authentication mode: token (default) or oauth (OAuth 2.1 proxy; streamable-http only)",
162
+ "isRequired": false,
163
+ "format": "string",
164
+ "isSecret": false
165
+ },
166
+ {
167
+ "name": "GITLAB_OAUTH_CLIENT_ID",
168
+ "description": "Application ID of the GitLab OAuth app (oauth mode, or local sign-in on a self-managed instance)",
169
+ "isRequired": false,
170
+ "format": "string",
171
+ "isSecret": false
172
+ },
173
+ {
174
+ "name": "GITLAB_OAUTH_CLIENT_SECRET",
175
+ "description": "Secret of the GitLab OAuth app (oauth mode)",
176
+ "isRequired": false,
177
+ "format": "string",
178
+ "isSecret": true
179
+ },
180
+ {
181
+ "name": "GITLAB_OAUTH_BASE_URL",
182
+ "description": "Public URL of this server, no trailing slash (oauth mode); redirect URI is <base>/auth/callback",
183
+ "isRequired": false,
184
+ "format": "string",
185
+ "isSecret": false
186
+ },
187
+ {
188
+ "name": "GITLAB_OAUTH_SCOPES",
189
+ "description": "Space-separated GitLab scopes required on every request (oauth mode; default api)",
190
+ "isRequired": false,
191
+ "format": "string",
192
+ "isSecret": false
193
+ },
194
+ {
195
+ "name": "GITLAB_OAUTH_JWT_KEY",
196
+ "description": "FastMCP JWT signing key, >=32 random chars (oauth mode; defaults to one derived from the client secret)",
197
+ "isRequired": false,
198
+ "format": "string",
199
+ "isSecret": true
200
+ },
201
+ {
202
+ "name": "GITLAB_HTTP_BEARER_TOKEN",
203
+ "description": "Bearer token (min 16 chars) required to bind an HTTP transport to a non-loopback host; clients send it as 'Authorization: Bearer <token>' (token mode; --auth oauth has its own sign-in)",
204
+ "isRequired": false,
205
+ "format": "string",
206
+ "isSecret": true
207
+ }
208
+ ]
116
209
  }
117
210
  ]
118
211
  }
@@ -15,6 +15,7 @@ from importlib.metadata import version
15
15
  from typing import Annotated, Any, Literal
16
16
  from urllib.parse import quote
17
17
 
18
+ import fastmcp
18
19
  import httpx
19
20
  from fastmcp import Context, FastMCP
20
21
  from fastmcp.exceptions import ToolError
@@ -174,6 +175,11 @@ async def lifespan(server: FastMCP) -> AsyncIterator[dict[str, Any]]:
174
175
  await client.close()
175
176
 
176
177
 
178
+ # The tool/prompt/resource lists are fixed at startup and there are no resource subscriptions, so
179
+ # do not advertise listChanged/subscribe (fastmcp >= 4.2.5 turns subscriptions/listen on by
180
+ # default). Read during FastMCP() construction, so this must stay above it.
181
+ fastmcp.settings.enable_subscriptions_listen = False
182
+
177
183
  mcp = FastMCP(
178
184
  name="GitLab MCP Server",
179
185
  version=version("mcp-gitlab"),
@@ -2142,6 +2142,18 @@ class TestStoredCredentialScope:
2142
2142
  assert created["id"] == 5
2143
2143
 
2144
2144
 
2145
+ class TestNoListenCapabilities:
2146
+ """fastmcp >= 4.2.5 turns subscriptions/listen on by default; the server turns it off."""
2147
+
2148
+ async def test_list_changed_and_subscribe_not_advertised(self):
2149
+ async with _creds_tool_client(["api"]) as (client, _):
2150
+ caps = client.server_capabilities
2151
+ assert caps is not None
2152
+ assert not (caps.tools and caps.tools.list_changed)
2153
+ assert not (caps.prompts and caps.prompts.list_changed)
2154
+ assert not (caps.resources and caps.resources.subscribe)
2155
+
2156
+
2145
2157
  class TestLifespanPrecedence:
2146
2158
  """R4 precedence matrix, exercised through the real lifespan."""
2147
2159