trackly-cli 0.5.0 → 0.5.1

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/lib/agent.js CHANGED
@@ -214,6 +214,13 @@ function mcpRegistrationState(client) {
214
214
  : claudeMcpRegistration(claudeConfigFiles);
215
215
  }
216
216
 
217
+ function isMissingMcpRegistrationError(result) {
218
+ const output = `${result.stderr || ''}\n${result.stdout || ''}`;
219
+ const lines = output.split(/\r?\n/).map((line) => line.trim()).filter(Boolean);
220
+ return lines.length === 1
221
+ && /^no mcp server named ["']?trackly["']? in user scope\.?$/i.test(lines[0]);
222
+ }
223
+
217
224
  function registerMcp(client) {
218
225
  const executable = client === 'codex' ? 'codex' : 'claude';
219
226
  if (!commandExists(executable)) return { status: 'missing_client', error: `${executable} is not installed` };
@@ -224,7 +231,8 @@ function registerMcp(client) {
224
231
  ? ['mcp', 'remove', 'trackly']
225
232
  : ['mcp', 'remove', '--scope', 'user', 'trackly'];
226
233
  const removed = spawnSync(executable, removeArgs, { encoding: 'utf8' });
227
- if (removed.status !== 0) {
234
+ const alreadyMissing = client === 'claude' && isMissingMcpRegistrationError(removed);
235
+ if (removed.status !== 0 && !alreadyMissing) {
228
236
  return { status: 'failed', error: (removed.stderr || removed.stdout || 'Unable to replace stale MCP registration').trim() };
229
237
  }
230
238
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trackly-cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "mcpName": "io.github.trackly-app/trackly",
5
5
  "description": "AI job search CLI + hosted MCP server with OAuth. 128K+ jobs, 1,900+ companies, 40+ ATS. Works with Claude, ChatGPT, Cursor, Windsurf, Codex via hosted streamable-http or local stdio.",
6
6
  "bin": {
package/server.json CHANGED
@@ -17,12 +17,12 @@
17
17
  ]
18
18
  }
19
19
  ],
20
- "version": "0.5.0",
20
+ "version": "0.5.1",
21
21
  "packages": [
22
22
  {
23
23
  "registryType": "npm",
24
24
  "identifier": "trackly-cli",
25
- "version": "0.5.0",
25
+ "version": "0.5.1",
26
26
  "runtimeHint": "npx",
27
27
  "runtimeArguments": [
28
28
  {