efficient-gitlab-mcp-server 2.5.0 → 2.6.0
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 +46 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -53886,6 +53886,17 @@ var UpdateIssueNoteSchema = exports_external.object({
|
|
|
53886
53886
|
note_id: exports_external.number().describe("Note ID"),
|
|
53887
53887
|
body: exports_external.string().describe("New note body")
|
|
53888
53888
|
});
|
|
53889
|
+
var GetIssueLinkSchema = exports_external.object({
|
|
53890
|
+
project_id: exports_external.string().describe("Project ID or URL-encoded path"),
|
|
53891
|
+
issue_iid: exports_external.number().describe("Issue IID"),
|
|
53892
|
+
issue_link_id: exports_external.number().describe("ID of the issue relationship")
|
|
53893
|
+
});
|
|
53894
|
+
var CreateNoteSchema = exports_external.object({
|
|
53895
|
+
project_id: exports_external.string().describe("Project ID or URL-encoded path"),
|
|
53896
|
+
notable_type: exports_external.enum(["issue", "merge_request"]).describe("Type of notable (issue or merge_request)"),
|
|
53897
|
+
notable_iid: exports_external.string().describe("IID of the issue or merge request"),
|
|
53898
|
+
body: exports_external.string().describe("Note content")
|
|
53899
|
+
});
|
|
53889
53900
|
function registerIssueTools(server, logger2) {
|
|
53890
53901
|
logger2.debug("Registering issue tools");
|
|
53891
53902
|
const tools = new Map;
|
|
@@ -54119,6 +54130,41 @@ function registerIssueTools(server, logger2) {
|
|
|
54119
54130
|
});
|
|
54120
54131
|
toolRef12.disable();
|
|
54121
54132
|
tools.set("update_issue_note", toolRef12);
|
|
54133
|
+
const toolRef13 = server.registerTool("get_issue_link", {
|
|
54134
|
+
title: "Get Issue Link",
|
|
54135
|
+
description: "Get a single issue link/relationship by ID",
|
|
54136
|
+
inputSchema: {
|
|
54137
|
+
project_id: exports_external.string().describe("Project ID or URL-encoded path"),
|
|
54138
|
+
issue_iid: exports_external.number().describe("Issue IID"),
|
|
54139
|
+
issue_link_id: exports_external.number().describe("ID of the issue relationship")
|
|
54140
|
+
},
|
|
54141
|
+
annotations: { readOnlyHint: true }
|
|
54142
|
+
}, async (params) => {
|
|
54143
|
+
const args = GetIssueLinkSchema.parse(params);
|
|
54144
|
+
const projectId = encodeProjectId(args.project_id);
|
|
54145
|
+
const link = await defaultClient.get(`/projects/${projectId}/issues/${args.issue_iid}/links/${args.issue_link_id}`);
|
|
54146
|
+
return { content: [{ type: "text", text: JSON.stringify(link, null, 2) }] };
|
|
54147
|
+
});
|
|
54148
|
+
toolRef13.disable();
|
|
54149
|
+
tools.set("get_issue_link", toolRef13);
|
|
54150
|
+
const toolRef14 = server.registerTool("create_note", {
|
|
54151
|
+
title: "Create Note",
|
|
54152
|
+
description: "Create a note/comment on an issue or merge request. Use notable_type to specify which.",
|
|
54153
|
+
inputSchema: {
|
|
54154
|
+
project_id: exports_external.string().describe("Project ID or URL-encoded path"),
|
|
54155
|
+
notable_type: exports_external.enum(["issue", "merge_request"]).describe("Type of notable (issue or merge_request)"),
|
|
54156
|
+
notable_iid: exports_external.string().describe("IID of the issue or merge request"),
|
|
54157
|
+
body: exports_external.string().describe("Note content")
|
|
54158
|
+
}
|
|
54159
|
+
}, async (params) => {
|
|
54160
|
+
const args = CreateNoteSchema.parse(params);
|
|
54161
|
+
const projectId = encodeProjectId(args.project_id);
|
|
54162
|
+
const notablePlural = args.notable_type === "issue" ? "issues" : "merge_requests";
|
|
54163
|
+
const note = await defaultClient.post(`/projects/${projectId}/${notablePlural}/${args.notable_iid}/notes`, { body: args.body });
|
|
54164
|
+
return { content: [{ type: "text", text: JSON.stringify(note, null, 2) }] };
|
|
54165
|
+
});
|
|
54166
|
+
toolRef14.disable();
|
|
54167
|
+
tools.set("create_note", toolRef14);
|
|
54122
54168
|
logger2.debug("Issue tools registered", { count: tools.size });
|
|
54123
54169
|
return tools;
|
|
54124
54170
|
}
|
package/package.json
CHANGED