@hailer/mcp 1.1.8 → 1.1.9

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.
@@ -0,0 +1 @@
1
+ {"sessionId":"a3f80f7e-ef83-490b-8222-5edd12bd0654","toolCalls":2,"compactCount":0,"lastWarning":"none","stopBlocks":0}
@@ -0,0 +1 @@
1
+ 2026-02-24T10:50:17.248Z
package/.mcp.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "mcpServers": {
3
3
  "hailer": {
4
4
  "type": "stdio",
5
- "command": "sh",
5
+ "command": "npx",
6
6
  "args": [
7
- "-c",
8
- "PORT=$(cat .hailer-mcp-port 2>/dev/null || echo 3030) && npx mcp-remote \"http://localhost:$PORT/api/mcp?apiKey=unique-api-key-for-this-agent\""
7
+ "mcp-remote",
8
+ "http://localhost:3031/api/mcp?apiKey=unique-api-key-for-this-agent"
9
9
  ],
10
10
  "env": {}
11
11
  }
@@ -474,12 +474,27 @@ class MCPServerService {
474
474
  healthCheck: `http://localhost:${port}/health`,
475
475
  mcpEndpoint: `http://localhost:${port}/api/mcp`
476
476
  });
477
- // Write port file so .mcp.json can dynamically connect
477
+ // Update .mcp.json with the actual port so Claude Code connects to the right server
478
478
  const fs = require('fs');
479
479
  const path = require('path');
480
- const portFile = path.join(process.cwd(), '.hailer-mcp-port');
481
- fs.writeFileSync(portFile, String(port));
482
- this.logger.debug('Port file written', { portFile, port });
480
+ const mcpJsonPath = path.join(process.cwd(), '.mcp.json');
481
+ try {
482
+ if (fs.existsSync(mcpJsonPath)) {
483
+ const mcpJson = JSON.parse(fs.readFileSync(mcpJsonPath, 'utf-8'));
484
+ const hailerServer = mcpJson?.mcpServers?.hailer;
485
+ if (hailerServer?.args) {
486
+ const urlIndex = hailerServer.args.findIndex((arg) => typeof arg === 'string' && arg.includes('localhost:'));
487
+ if (urlIndex !== -1) {
488
+ hailerServer.args[urlIndex] = hailerServer.args[urlIndex].replace(/localhost:\d+/, `localhost:${port}`);
489
+ fs.writeFileSync(mcpJsonPath, JSON.stringify(mcpJson, null, 2) + '\n');
490
+ this.logger.debug('.mcp.json updated with port', { port });
491
+ }
492
+ }
493
+ }
494
+ }
495
+ catch (err) {
496
+ this.logger.debug('Could not update .mcp.json', { error: err.message });
497
+ }
483
498
  resolve();
484
499
  });
485
500
  this.server.on('error', (error) => {
@@ -0,0 +1,3 @@
1
+ {"ts":"2026-02-13T08:23:26.264Z","agent":"general-purpose","status":"unknown","project":"hailer-mcp","description":"Convert new agents to OpenCode"}
2
+ {"ts":"2026-02-16T05:26:20.980Z","agent":"agent-svetlana-code-review","status":"unknown","project":"hailer-mcp","description":"Check bot date handling code"}
3
+ {"ts":"2026-02-16T05:32:29.203Z","agent":"agent-giuseppe-app-builder","status":"error","project":"hailer-mcp","description":"Add date validation to bot+tools"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hailer/mcp",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "config": {
5
5
  "docker": {
6
6
  "registry": "registry.gitlab.com/hailer-repos/hailer-mcp"