@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.
Files changed (2) hide show
  1. package/dist/app.js +24 -21
  2. 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
- const bot_config_1 = require("./bot-config");
15
- const bug_fixer_tools_1 = require("./mcp/tools/bug-fixer-tools");
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 register when MCP_CLIENT_ENABLED=true (daemon mode)
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
- // Bot configuration tools
82
- core.addTool(bot_config_1.listBotsConfigTool);
83
- core.addTool(bot_config_1.enableBotTool);
84
- core.addTool(bot_config_1.disableBotTool);
85
- core.addTool(bot_config_1.checkSpecialistStatusTool);
86
- // Bug Fixer tools
87
- core.addTool(bug_fixer_tools_1.bugFixerFindAppTool);
88
- core.addTool(bug_fixer_tools_1.bugFixerListFilesTool);
89
- core.addTool(bug_fixer_tools_1.bugFixerReadFileTool);
90
- core.addTool(bug_fixer_tools_1.bugFixerWriteFileTool);
91
- core.addTool(bug_fixer_tools_1.bugFixerApplyFixTool);
92
- core.addTool(bug_fixer_tools_1.bugFixerRunBuildTool);
93
- core.addTool(bug_fixer_tools_1.bugFixerGitStatusTool);
94
- core.addTool(bug_fixer_tools_1.bugFixerGitPullTool);
95
- core.addTool(bug_fixer_tools_1.bugFixerGitCommitTool);
96
- core.addTool(bug_fixer_tools_1.bugFixerGitPushTool);
97
- core.addTool(bug_fixer_tools_1.bugFixerGitRevertTool);
98
- core.addTool(bug_fixer_tools_1.bugFixerPublishAppTool);
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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hailer/mcp",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "config": {
5
5
  "docker": {
6
6
  "registry": "registry.gitlab.com/hailer-repos/hailer-mcp"