efficient-gitlab-mcp-server 2.6.0 → 2.6.1
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/dist/index.js +12 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -53878,7 +53878,9 @@ var ListIssueDiscussionsSchema = exports_external.object({
|
|
|
53878
53878
|
var CreateIssueNoteSchema = exports_external.object({
|
|
53879
53879
|
project_id: exports_external.string().describe("Project ID or URL-encoded path"),
|
|
53880
53880
|
issue_iid: exports_external.number().describe("Issue IID"),
|
|
53881
|
-
body: exports_external.string().describe("Note body")
|
|
53881
|
+
body: exports_external.string().describe("Note body"),
|
|
53882
|
+
discussion_id: exports_external.string().optional().describe("Discussion thread ID to reply to instead of creating a top-level note"),
|
|
53883
|
+
created_at: exports_external.string().optional().describe("ISO 8601 creation date (admin/project owner only)")
|
|
53882
53884
|
});
|
|
53883
53885
|
var UpdateIssueNoteSchema = exports_external.object({
|
|
53884
53886
|
project_id: exports_external.string().describe("Project ID or URL-encoded path"),
|
|
@@ -54097,17 +54099,23 @@ function registerIssueTools(server, logger2) {
|
|
|
54097
54099
|
tools.set("list_issue_discussions", toolRef10);
|
|
54098
54100
|
const toolRef11 = server.registerTool("create_issue_note", {
|
|
54099
54101
|
title: "Create Issue Note",
|
|
54100
|
-
description: "Add a
|
|
54102
|
+
description: "Add a note to an issue, or reply to a discussion thread",
|
|
54101
54103
|
inputSchema: {
|
|
54102
54104
|
project_id: exports_external.string().describe("Project ID or URL-encoded path"),
|
|
54103
54105
|
issue_iid: exports_external.number().describe("Issue IID"),
|
|
54104
|
-
body: exports_external.string().describe("Note body")
|
|
54106
|
+
body: exports_external.string().describe("Note body"),
|
|
54107
|
+
discussion_id: exports_external.string().optional().describe("Discussion thread ID to reply to instead of creating a top-level note"),
|
|
54108
|
+
created_at: exports_external.string().optional().describe("ISO 8601 creation date (admin/project owner only)")
|
|
54105
54109
|
},
|
|
54106
54110
|
annotations: { destructiveHint: false }
|
|
54107
54111
|
}, async (params) => {
|
|
54108
54112
|
const args = CreateIssueNoteSchema.parse(params);
|
|
54109
54113
|
const projectId = encodeProjectId(args.project_id);
|
|
54110
|
-
const
|
|
54114
|
+
const endpoint = args.discussion_id ? `/projects/${projectId}/issues/${args.issue_iid}/discussions/${args.discussion_id}/notes` : `/projects/${projectId}/issues/${args.issue_iid}/notes`;
|
|
54115
|
+
const note = await defaultClient.post(endpoint, {
|
|
54116
|
+
body: args.body,
|
|
54117
|
+
...args.created_at && { created_at: args.created_at }
|
|
54118
|
+
});
|
|
54111
54119
|
return { content: [{ type: "text", text: JSON.stringify(note, null, 2) }] };
|
|
54112
54120
|
});
|
|
54113
54121
|
toolRef11.disable();
|
package/package.json
CHANGED