@hailer/mcp 0.2.1 → 0.2.2
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/app.js +24 -21
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -11,8 +11,8 @@ const user_1 = require("./mcp/tools/user");
|
|
|
11
11
|
const workflow_1 = require("./mcp/tools/workflow");
|
|
12
12
|
const insight_1 = require("./mcp/tools/insight");
|
|
13
13
|
const app_1 = require("./mcp/tools/app");
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
// Bot config and bug-fixer tools are dynamically imported only when MCP_CLIENT_ENABLED=true
|
|
15
|
+
// This allows the npm package to work without these modules
|
|
16
16
|
const core = new core_1.Core();
|
|
17
17
|
logger.info('Registering tools...');
|
|
18
18
|
logger.info('Nuclear tools status', { enabled: config_1.environment.ENABLE_NUCLEAR_TOOLS });
|
|
@@ -76,26 +76,29 @@ core.addTool(app_1.getProductManifestTool);
|
|
|
76
76
|
// Marketplace app tools
|
|
77
77
|
core.addTool(app_1.publishAppTool);
|
|
78
78
|
core.addTool(app_1.installMarketplaceAppTool);
|
|
79
|
-
// Bot-internal tools - only
|
|
79
|
+
// Bot-internal tools - dynamically imported only when MCP_CLIENT_ENABLED=true
|
|
80
|
+
// This allows npm package to work without bot-config and bug-fixer modules
|
|
80
81
|
if (config_1.environment.MCP_CLIENT_ENABLED) {
|
|
81
|
-
//
|
|
82
|
-
|
|
83
|
-
core.addTool(
|
|
84
|
-
core.addTool(
|
|
85
|
-
core.addTool(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
core.addTool(
|
|
90
|
-
core.addTool(
|
|
91
|
-
core.addTool(
|
|
92
|
-
core.addTool(
|
|
93
|
-
core.addTool(
|
|
94
|
-
core.addTool(
|
|
95
|
-
core.addTool(
|
|
96
|
-
core.addTool(
|
|
97
|
-
core.addTool(
|
|
98
|
-
core.addTool(
|
|
82
|
+
// Dynamic import bot-config tools
|
|
83
|
+
const { listBotsConfigTool, enableBotTool, disableBotTool, checkSpecialistStatusTool } = require('./bot-config');
|
|
84
|
+
core.addTool(listBotsConfigTool);
|
|
85
|
+
core.addTool(enableBotTool);
|
|
86
|
+
core.addTool(disableBotTool);
|
|
87
|
+
core.addTool(checkSpecialistStatusTool);
|
|
88
|
+
// Dynamic import bug-fixer tools
|
|
89
|
+
const { bugFixerFindAppTool, bugFixerListFilesTool, bugFixerReadFileTool, bugFixerWriteFileTool, bugFixerApplyFixTool, bugFixerRunBuildTool, bugFixerGitStatusTool, bugFixerGitPullTool, bugFixerGitCommitTool, bugFixerGitPushTool, bugFixerGitRevertTool, bugFixerPublishAppTool } = require('./mcp/tools/bug-fixer-tools');
|
|
90
|
+
core.addTool(bugFixerFindAppTool);
|
|
91
|
+
core.addTool(bugFixerListFilesTool);
|
|
92
|
+
core.addTool(bugFixerReadFileTool);
|
|
93
|
+
core.addTool(bugFixerWriteFileTool);
|
|
94
|
+
core.addTool(bugFixerApplyFixTool);
|
|
95
|
+
core.addTool(bugFixerRunBuildTool);
|
|
96
|
+
core.addTool(bugFixerGitStatusTool);
|
|
97
|
+
core.addTool(bugFixerGitPullTool);
|
|
98
|
+
core.addTool(bugFixerGitCommitTool);
|
|
99
|
+
core.addTool(bugFixerGitPushTool);
|
|
100
|
+
core.addTool(bugFixerGitRevertTool);
|
|
101
|
+
core.addTool(bugFixerPublishAppTool);
|
|
99
102
|
logger.info('Bot-internal tools registered (MCP_CLIENT_ENABLED=true)');
|
|
100
103
|
}
|
|
101
104
|
logger.info('All tools registered successfully');
|