@hailer/mcp 1.0.30 → 1.0.31-beta.0

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/cli.js +37 -7
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -45,7 +45,26 @@ const fs = __importStar(require("fs"));
45
45
  const path = __importStar(require("path"));
46
46
  const os = __importStar(require("os"));
47
47
  const readline = __importStar(require("readline"));
48
- const CLAUDE_CONFIG_DIR = path.join(os.homedir(), 'Library', 'Application Support', 'Claude');
48
+ /**
49
+ * Get Claude Desktop config directory based on platform
50
+ * - macOS: ~/Library/Application Support/Claude/
51
+ * - Windows: %APPDATA%\Claude\
52
+ * - Linux: ~/.config/Claude/
53
+ */
54
+ function getClaudeConfigDir() {
55
+ switch (process.platform) {
56
+ case 'win32':
57
+ return path.join(process.env.APPDATA || path.join(os.homedir(), 'AppData', 'Roaming'), 'Claude');
58
+ case 'darwin':
59
+ return path.join(os.homedir(), 'Library', 'Application Support', 'Claude');
60
+ case 'linux':
61
+ return path.join(os.homedir(), '.config', 'Claude');
62
+ default:
63
+ // Fallback to Linux-style for unknown platforms
64
+ return path.join(os.homedir(), '.config', 'Claude');
65
+ }
66
+ }
67
+ const CLAUDE_CONFIG_DIR = getClaudeConfigDir();
49
68
  const CLAUDE_CONFIG_FILE = path.join(CLAUDE_CONFIG_DIR, 'claude_desktop_config.json');
50
69
  // Credentials file for publish and other tools that need direct auth
51
70
  const HAILER_MCP_DIR = path.join(os.homedir(), '.hailer-mcp');
@@ -132,11 +151,14 @@ function findPackagePath() {
132
151
  async function runSetup() {
133
152
  console.log('\nšŸ”§ Hailer MCP Setup for Claude Desktop\n');
134
153
  console.log('This will configure Claude Desktop to use Hailer MCP tools.\n');
135
- // Check if macOS
136
- if (process.platform !== 'darwin') {
137
- console.log('āš ļø This setup is designed for macOS. For other platforms, please configure manually.');
138
- console.log(' See: https://github.com/hailer/hailer-mcp#claude-desktop-setup\n');
139
- }
154
+ // Show platform info
155
+ const platformNames = {
156
+ darwin: 'macOS',
157
+ win32: 'Windows',
158
+ linux: 'Linux',
159
+ };
160
+ const platformName = platformNames[process.platform] || process.platform;
161
+ console.log(`Platform detected: ${platformName}\n`);
140
162
  // Get credentials
141
163
  const email = await prompt('Hailer email: ');
142
164
  if (!email) {
@@ -220,7 +242,15 @@ async function runSetup() {
220
242
  console.log(` Claude Desktop: ${CLAUDE_CONFIG_FILE}`);
221
243
  console.log(` Credentials: ${CREDENTIALS_FILE}`);
222
244
  console.log('\nšŸš€ Next steps:');
223
- console.log(' 1. Quit Claude Desktop completely (Cmd+Q)');
245
+ if (process.platform === 'darwin') {
246
+ console.log(' 1. Quit Claude Desktop completely (Cmd+Q)');
247
+ }
248
+ else if (process.platform === 'win32') {
249
+ console.log(' 1. Quit Claude Desktop completely (close from system tray)');
250
+ }
251
+ else {
252
+ console.log(' 1. Quit Claude Desktop completely');
253
+ }
224
254
  console.log(' 2. Reopen Claude Desktop');
225
255
  console.log(' 3. Look for "hailer" in the MCP tools list');
226
256
  console.log('\nšŸ’” Tip: Use a dedicated bot account, not your personal account.\n');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hailer/mcp",
3
- "version": "1.0.30",
3
+ "version": "1.0.31-beta.0",
4
4
  "config": {
5
5
  "docker": {
6
6
  "registry": "registry.gitlab.com/hailer-repos/hailer-mcp"