@zereight/mcp-gitlab 1.0.6 → 1.0.8

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 +2 -1
  2. package/package.json +3 -2
package/build/index.js CHANGED
@@ -345,7 +345,8 @@ async function updateMergeRequest(projectId, mergeRequestIid, options) {
345
345
  async function createNote(projectId, noteableType, // 'issue' 또는 'merge_request' 타입 명시
346
346
  noteableIid, body) {
347
347
  // ⚙️ 응답 타입은 GitLab API 문서에 따라 조정 가능
348
- const url = new URL(`${GITLAB_API_URL}/api/v4/projects/${encodeURIComponent(projectId)}/${noteableType}/${noteableIid}/notes`);
348
+ const url = new URL(`${GITLAB_API_URL}/projects/${encodeURIComponent(projectId)}/${noteableType}s/${noteableIid}/notes` // Using plural form (issues/merge_requests) as per GitLab API documentation
349
+ );
349
350
  const response = await fetch(url.toString(), {
350
351
  method: "POST",
351
352
  headers: DEFAULT_HEADERS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zereight/mcp-gitlab",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "MCP server for using the GitLab API",
5
5
  "license": "MIT",
6
6
  "author": "zereight",
@@ -18,7 +18,8 @@
18
18
  "scripts": {
19
19
  "build": "tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"",
20
20
  "prepare": "npm run build",
21
- "watch": "tsc --watch"
21
+ "watch": "tsc --watch",
22
+ "publish": "npm run build && npm publish"
22
23
  },
23
24
  "dependencies": {
24
25
  "@modelcontextprotocol/sdk": "1.0.1",