@zereight/mcp-gitlab 2.3.28-next.237 → 2.3.28-next.238
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/build/tools/registry.js +29 -4
- package/package.json +1 -1
package/build/tools/registry.js
CHANGED
|
@@ -2351,6 +2351,16 @@ const allToolNames = new Set(allTools.map(tool => tool.name));
|
|
|
2351
2351
|
for (const tool of allTools) {
|
|
2352
2352
|
tool.description = getToolDescription(tool.name, tool.description, allToolNames);
|
|
2353
2353
|
}
|
|
2354
|
+
// The server and CLI command resolution both parse the same settings at startup;
|
|
2355
|
+
// print each configuration warning once per process.
|
|
2356
|
+
const emittedConfigWarnings = new Set();
|
|
2357
|
+
function warnOnce(message) {
|
|
2358
|
+
if (emittedConfigWarnings.has(message)) {
|
|
2359
|
+
return;
|
|
2360
|
+
}
|
|
2361
|
+
emittedConfigWarnings.add(message);
|
|
2362
|
+
console.warn(message);
|
|
2363
|
+
}
|
|
2354
2364
|
export function parseEnabledToolsets(raw) {
|
|
2355
2365
|
if (!raw || raw.trim() === "") {
|
|
2356
2366
|
return DEFAULT_TOOLSET_IDS;
|
|
@@ -2359,16 +2369,31 @@ export function parseEnabledToolsets(raw) {
|
|
|
2359
2369
|
if (trimmed === "all") {
|
|
2360
2370
|
return DISCOVERABLE_TOOLSET_IDS;
|
|
2361
2371
|
}
|
|
2362
|
-
const
|
|
2372
|
+
const names = trimmed
|
|
2363
2373
|
.split(",")
|
|
2364
2374
|
.map(s => s.trim())
|
|
2365
|
-
.filter(
|
|
2375
|
+
.filter(Boolean);
|
|
2376
|
+
const selected = new Set(names.filter(isToolsetId));
|
|
2377
|
+
const unknown = [...new Set(names.filter(name => !isToolsetId(name)))];
|
|
2378
|
+
const allHint = unknown.includes("all")
|
|
2379
|
+
? ' "all" only works on its own; to add an explicit-only toolset such as api, list every toolset by name.'
|
|
2380
|
+
: "";
|
|
2366
2381
|
if (selected.size === 0) {
|
|
2367
|
-
|
|
2382
|
+
warnOnce(`No valid toolsets found in configuration (${raw}). Falling back to default toolsets.${allHint} ${knownToolsetsHint()}`);
|
|
2368
2383
|
return DEFAULT_TOOLSET_IDS;
|
|
2369
2384
|
}
|
|
2385
|
+
if (unknown.length > 0) {
|
|
2386
|
+
warnOnce(`Unknown toolset names in GITLAB_TOOLSETS (will be ignored): ${unknown.join(", ")}.${allHint} ${knownToolsetsHint()}`);
|
|
2387
|
+
}
|
|
2370
2388
|
return selected;
|
|
2371
2389
|
}
|
|
2390
|
+
function isToolsetId(name) {
|
|
2391
|
+
const knownIds = ALL_TOOLSET_IDS;
|
|
2392
|
+
return knownIds.has(name);
|
|
2393
|
+
}
|
|
2394
|
+
function knownToolsetsHint() {
|
|
2395
|
+
return `Known toolsets: ${[...ALL_TOOLSET_IDS].join(", ")}.`;
|
|
2396
|
+
}
|
|
2372
2397
|
export function parseIndividualTools(raw) {
|
|
2373
2398
|
if (!raw || raw.trim() === "") {
|
|
2374
2399
|
return new Set();
|
|
@@ -2381,7 +2406,7 @@ export function parseIndividualTools(raw) {
|
|
|
2381
2406
|
.filter(Boolean);
|
|
2382
2407
|
const unknown = parsed.filter(name => !allToolNames.has(name));
|
|
2383
2408
|
if (unknown.length > 0) {
|
|
2384
|
-
|
|
2409
|
+
warnOnce(`Unknown tool names in GITLAB_TOOLS (will be ignored): ${unknown.join(", ")}`);
|
|
2385
2410
|
}
|
|
2386
2411
|
return new Set(parsed);
|
|
2387
2412
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zereight/mcp-gitlab",
|
|
3
|
-
"version": "2.3.28-next.
|
|
3
|
+
"version": "2.3.28-next.238",
|
|
4
4
|
"mcpName": "io.github.zereight/gitlab-mcp",
|
|
5
5
|
"description": "GitLab MCP server for projects, merge requests, issues, pipelines, wiki, releases, and more",
|
|
6
6
|
"keywords": [
|