@girardmedia/bootspring 2.3.3 → 2.3.4
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/core.js +47 -2
- package/dist/mcp-server.js +1 -1
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -1600,7 +1600,7 @@ var require_package = __commonJS({
|
|
|
1600
1600
|
"package.json"(exports2, module2) {
|
|
1601
1601
|
module2.exports = {
|
|
1602
1602
|
name: "@girardmedia/bootspring",
|
|
1603
|
-
version: "2.3.
|
|
1603
|
+
version: "2.3.4",
|
|
1604
1604
|
description: "Thin client for Bootspring cloud MCP, hosted agents, and paywalled workflow intelligence",
|
|
1605
1605
|
keywords: [
|
|
1606
1606
|
"ai",
|
|
@@ -5278,6 +5278,7 @@ var mcp_config_exports = {};
|
|
|
5278
5278
|
__export(mcp_config_exports, {
|
|
5279
5279
|
PACKAGE_NAME: () => PACKAGE_NAME,
|
|
5280
5280
|
PROJECT_MCP_FILENAME: () => PROJECT_MCP_FILENAME,
|
|
5281
|
+
ensureClaudeMcpEnabled: () => ensureClaudeMcpEnabled,
|
|
5281
5282
|
ensureProjectMcpConfig: () => ensureProjectMcpConfig,
|
|
5282
5283
|
getManagedMcpServerConfig: () => getManagedMcpServerConfig,
|
|
5283
5284
|
isManagedMcpServerConfig: () => isManagedMcpServerConfig
|
|
@@ -5376,7 +5377,49 @@ function ensureProjectMcpConfig(projectRoot = process.cwd(), options = {}) {
|
|
|
5376
5377
|
};
|
|
5377
5378
|
}
|
|
5378
5379
|
}
|
|
5379
|
-
|
|
5380
|
+
function ensureClaudeMcpEnabled(projectRoot = process.cwd()) {
|
|
5381
|
+
const claudeDir = path8.join(projectRoot, CLAUDE_SETTINGS_DIR);
|
|
5382
|
+
const settingsPath = path8.join(claudeDir, CLAUDE_SETTINGS_LOCAL);
|
|
5383
|
+
try {
|
|
5384
|
+
if (!fs7.existsSync(claudeDir)) {
|
|
5385
|
+
fs7.mkdirSync(claudeDir, { recursive: true });
|
|
5386
|
+
}
|
|
5387
|
+
let settings = {};
|
|
5388
|
+
let existed = false;
|
|
5389
|
+
if (fs7.existsSync(settingsPath)) {
|
|
5390
|
+
existed = true;
|
|
5391
|
+
try {
|
|
5392
|
+
settings = JSON.parse(fs7.readFileSync(settingsPath, "utf8"));
|
|
5393
|
+
} catch {
|
|
5394
|
+
settings = {};
|
|
5395
|
+
}
|
|
5396
|
+
}
|
|
5397
|
+
const hasEnableAll = settings.enableAllProjectMcpServers === true;
|
|
5398
|
+
const currentEnabled = Array.isArray(settings.enabledMcpjsonServers) ? settings.enabledMcpjsonServers : [];
|
|
5399
|
+
const hasBootspring = currentEnabled.includes("bootspring");
|
|
5400
|
+
if (hasEnableAll && hasBootspring) {
|
|
5401
|
+
return { status: "unchanged", changed: false, path: settingsPath };
|
|
5402
|
+
}
|
|
5403
|
+
settings.enableAllProjectMcpServers = true;
|
|
5404
|
+
if (!hasBootspring) {
|
|
5405
|
+
settings.enabledMcpjsonServers = [...currentEnabled, "bootspring"];
|
|
5406
|
+
}
|
|
5407
|
+
fs7.writeFileSync(settingsPath, JSON.stringify(settings, null, 2) + "\n");
|
|
5408
|
+
return {
|
|
5409
|
+
status: existed ? "updated" : "created",
|
|
5410
|
+
changed: true,
|
|
5411
|
+
path: settingsPath
|
|
5412
|
+
};
|
|
5413
|
+
} catch (error) {
|
|
5414
|
+
return {
|
|
5415
|
+
status: "error",
|
|
5416
|
+
changed: false,
|
|
5417
|
+
path: settingsPath,
|
|
5418
|
+
error: error instanceof Error ? error : new Error(String(error))
|
|
5419
|
+
};
|
|
5420
|
+
}
|
|
5421
|
+
}
|
|
5422
|
+
var fs7, path8, PACKAGE_NAME, PROJECT_MCP_FILENAME, CLAUDE_SETTINGS_DIR, CLAUDE_SETTINGS_LOCAL;
|
|
5380
5423
|
var init_mcp_config = __esm({
|
|
5381
5424
|
"src/core/mcp-config.ts"() {
|
|
5382
5425
|
"use strict";
|
|
@@ -5385,6 +5428,8 @@ var init_mcp_config = __esm({
|
|
|
5385
5428
|
path8 = __toESM(require("path"));
|
|
5386
5429
|
PACKAGE_NAME = "@girardmedia/bootspring";
|
|
5387
5430
|
PROJECT_MCP_FILENAME = ".mcp.json";
|
|
5431
|
+
CLAUDE_SETTINGS_DIR = ".claude";
|
|
5432
|
+
CLAUDE_SETTINGS_LOCAL = "settings.local.json";
|
|
5388
5433
|
}
|
|
5389
5434
|
});
|
|
5390
5435
|
|
package/dist/mcp-server.js
CHANGED
|
@@ -45,7 +45,7 @@ var require_package = __commonJS({
|
|
|
45
45
|
"package.json"(exports2, module2) {
|
|
46
46
|
module2.exports = {
|
|
47
47
|
name: "@girardmedia/bootspring",
|
|
48
|
-
version: "2.3.
|
|
48
|
+
version: "2.3.4",
|
|
49
49
|
description: "Thin client for Bootspring cloud MCP, hosted agents, and paywalled workflow intelligence",
|
|
50
50
|
keywords: [
|
|
51
51
|
"ai",
|