@zereight/mcp-gitlab 1.0.57 → 1.0.58
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.md +1 -1
- package/build/index.js +4 -2
- package/build/schemas.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/build/index.js
CHANGED
|
@@ -1780,6 +1780,8 @@ async function listWikiPages(projectId, options = {}) {
|
|
|
1780
1780
|
url.searchParams.append("page", options.page.toString());
|
|
1781
1781
|
if (options.per_page)
|
|
1782
1782
|
url.searchParams.append("per_page", options.per_page.toString());
|
|
1783
|
+
if (options.with_content)
|
|
1784
|
+
url.searchParams.append("with_content", options.with_content.toString());
|
|
1783
1785
|
const response = await fetch(url.toString(), {
|
|
1784
1786
|
...DEFAULT_FETCH_CONFIG,
|
|
1785
1787
|
});
|
|
@@ -2701,8 +2703,8 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
2701
2703
|
};
|
|
2702
2704
|
}
|
|
2703
2705
|
case "list_wiki_pages": {
|
|
2704
|
-
const { project_id, page, per_page } = ListWikiPagesSchema.parse(request.params.arguments);
|
|
2705
|
-
const wikiPages = await listWikiPages(project_id, { page, per_page });
|
|
2706
|
+
const { project_id, page, per_page, with_content } = ListWikiPagesSchema.parse(request.params.arguments);
|
|
2707
|
+
const wikiPages = await listWikiPages(project_id, { page, per_page, with_content });
|
|
2706
2708
|
return {
|
|
2707
2709
|
content: [{ type: "text", text: JSON.stringify(wikiPages, null, 2) }],
|
|
2708
2710
|
};
|
package/build/schemas.js
CHANGED
|
@@ -1086,6 +1086,7 @@ export const ListGroupProjectsSchema = z.object({
|
|
|
1086
1086
|
// Add wiki operation schemas
|
|
1087
1087
|
export const ListWikiPagesSchema = z.object({
|
|
1088
1088
|
project_id: z.string().describe("Project ID or URL-encoded path"),
|
|
1089
|
+
with_content: z.boolean().optional().describe("Include content of the wiki pages"),
|
|
1089
1090
|
}).merge(PaginationOptionsSchema);
|
|
1090
1091
|
export const GetWikiPageSchema = z.object({
|
|
1091
1092
|
project_id: z.string().describe("Project ID or URL-encoded path"),
|
|
@@ -1113,7 +1114,7 @@ export const GitLabWikiPageSchema = z.object({
|
|
|
1113
1114
|
title: z.string(),
|
|
1114
1115
|
slug: z.string(),
|
|
1115
1116
|
format: z.string(),
|
|
1116
|
-
content: z.string(),
|
|
1117
|
+
content: z.string().optional(),
|
|
1117
1118
|
created_at: z.string().optional(),
|
|
1118
1119
|
updated_at: z.string().optional(),
|
|
1119
1120
|
});
|