jd-intel-mcp 0.6.0 → 0.8.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # jd-intel-mcp
2
2
 
3
- MCP server for [jd-intel](https://github.com/prPMDev/jd-intel). Lets any AI assistant (Claude Desktop, Cursor, Windsurf) search open job listings across Greenhouse, Lever, Ashby, SmartRecruiters, Teamtailor, Recruitee, and Workday through natural conversation.
3
+ MCP server for [jd-intel](https://github.com/prPMDev/jd-intel). Lets any AI assistant (Claude Desktop, Claude Code, Cursor, Windsurf, VS Code) search open job listings across Greenhouse, Lever, Ashby, SmartRecruiters, Teamtailor, Recruitee, and Workday through natural conversation.
4
4
 
5
5
  > **Stop pasting job descriptions into AI assistants. Let your AI fetch them directly.**
6
6
 
@@ -17,9 +17,31 @@ The AI handles the phrasing. The MCP server handles the calls, filters, and norm
17
17
 
18
18
  ---
19
19
 
20
- ## Install (Claude Desktop)
20
+ ## Install
21
21
 
22
- Add this to your Claude Desktop config file:
22
+ ### Claude Desktop (one-file install, no terminal)
23
+
24
+ Download [jd-intel.mcpb](https://github.com/prPMDev/jd-intel/releases/latest/download/jd-intel.mcpb), then in Claude Desktop open **Settings**, then **Extensions**, then **Advanced settings**, and click **Install Extension**. Pick the file, review the access summary, click **Install**, and start a new chat. No Node.js needed (Claude Desktop runs it on its own bundled runtime). It's open source and unsigned, so choose **Install Anyway** if prompted.
25
+
26
+ Prefer the terminal? Install [Node.js 18+](https://nodejs.org/), then run:
27
+
28
+ ```bash
29
+ npx jd-intel-mcp install
30
+ ```
31
+
32
+ This locates the Claude Desktop config, adds the entry alongside any existing servers, and writes back valid JSON. Quit and reopen Claude Desktop.
33
+
34
+ ### Other clients (Claude Code, Cursor, Windsurf, VS Code)
35
+
36
+ The same server runs via `npx` (needs Node.js 18+):
37
+
38
+ - **Claude Code:** `claude mcp add jd-intel -- npx -y jd-intel-mcp`
39
+ - **Cursor / Windsurf:** add under `mcpServers` (`command: "npx"`, `args: ["-y", "jd-intel-mcp"]`) in the client's MCP config.
40
+ - **VS Code (Copilot agent):** add under `servers` with `"type": "stdio"` in `.vscode/mcp.json`.
41
+
42
+ ### Manual config (fallback)
43
+
44
+ Edit Claude Desktop's config file directly:
23
45
 
24
46
  **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
25
47
  **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
@@ -37,13 +59,6 @@ Add this to your Claude Desktop config file:
37
59
 
38
60
  Restart Claude Desktop. The tools appear automatically.
39
61
 
40
- **One-command install (avoids hand-editing the config):**
41
- ```bash
42
- npx jd-intel-mcp install
43
- ```
44
-
45
- This detects your OS, locates the Claude Desktop config, adds the entry alongside any existing servers, and writes back valid JSON. Prevents the "paste-a-snippet-into-existing-config" hand-editing error.
46
-
47
62
  ---
48
63
 
49
64
  ## Tools exposed
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jd-intel-mcp",
3
- "version": "0.6.0",
4
- "description": "MCP server for jd-intel. Your AI assistant fetches and reasons over full job descriptions, no copy-paste.",
3
+ "version": "0.8.0",
4
+ "description": "MCP server for jd-intel. Your AI assistant fetches and reads full job descriptions across seven ATS platforms, no copy-paste.",
5
5
  "type": "module",
6
6
  "main": "server.js",
7
7
  "bin": {
@@ -16,6 +16,7 @@
16
16
  "errors.js",
17
17
  "descriptions.js",
18
18
  "install.js",
19
+ "version.js",
19
20
  "README.md"
20
21
  ],
21
22
  "scripts": {
@@ -27,7 +28,7 @@
27
28
  },
28
29
  "dependencies": {
29
30
  "@modelcontextprotocol/sdk": "^1.0.0",
30
- "jd-intel": "^0.6.0",
31
+ "jd-intel": "^0.8.0",
31
32
  "zod": "^3.23.0"
32
33
  },
33
34
  "keywords": [
package/server.js CHANGED
@@ -23,11 +23,23 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
23
23
 
24
24
  import { registerTools } from './tools.js';
25
25
  import { registerResources } from './resources.js';
26
+ import { VERSION } from './version.js';
26
27
 
27
28
  async function main() {
29
+ // Claude Desktop runs this on its OWN bundled Node, not the user's system
30
+ // Node. Log which version that is (read it in Claude Desktop's MCP logs),
31
+ // and fail loudly with a human message instead of a cryptic SDK crash if
32
+ // the runtime is too old.
33
+ const nodeMajor = Number(process.versions.node.split('.')[0]);
34
+ console.error(`[jd-intel] runtime check: Node ${process.version} on ${process.platform}/${process.arch}`);
35
+ if (nodeMajor < 18) {
36
+ console.error(`[jd-intel] Needs Node 18 or newer, but this runtime is ${process.version}. If you installed via Claude Desktop, update Claude Desktop to the latest version and try again.`);
37
+ process.exit(1);
38
+ }
39
+
28
40
  const server = new McpServer({
29
41
  name: 'jd-intel',
30
- version: '0.1.0',
42
+ version: VERSION,
31
43
  });
32
44
 
33
45
  registerTools(server);
@@ -37,7 +49,7 @@ async function main() {
37
49
  await server.connect(transport);
38
50
 
39
51
  // Log to stderr so stdout stays clean for MCP protocol traffic
40
- console.error('jd-intel MCP server running on stdio');
52
+ console.error(`jd-intel MCP server ${VERSION} running on stdio`);
41
53
  }
42
54
 
43
55
  main().catch((err) => {
package/tools.js CHANGED
@@ -10,11 +10,15 @@
10
10
  */
11
11
 
12
12
  import { z } from 'zod';
13
- import { fetchJobs, detectAts as libDetectAts, registry } from 'jd-intel';
13
+ import { fetchJobs, detectAts as libDetectAts, registry, ATS_NAMES } from 'jd-intel';
14
14
 
15
15
  const { search: searchRegistry, findAtsBySlug } = registry;
16
+ // Tolerate an older jd-intel that predates getSource. The bundle always
17
+ // vendors a matching version; this only guards a skewed local/global install.
18
+ const getRegistrySource = registry.getSource || (() => 'unknown');
16
19
  import { success, partial, error } from './envelope.js';
17
20
  import { ERROR_CODES } from './errors.js';
21
+ import { VERSION } from './version.js';
18
22
  import {
19
23
  FETCH_JOBS,
20
24
  SEARCH_REGISTRY,
@@ -80,20 +84,43 @@ export function registerTools(server, deps = {}) {
80
84
  const normalizedSlug = args.company.toLowerCase().replace(/[^a-z0-9]/g, '');
81
85
  const registryAts = await _findAtsBySlug(normalizedSlug);
82
86
 
87
+ // Discovery miss: not in the registry and no board returned anything.
88
+ // Guard on !config so a valid Workday override that returns 0 jobs is not
89
+ // mislabeled; a registry hit with 0 open roles stays a success([]).
90
+ if (!config && registryAts === null && jobs.length === 0) {
91
+ return error(
92
+ ERROR_CODES.COMPANY_NOT_FOUND,
93
+ `No board found for "${args.company}" on any supported ATS. Check the slug, or pass an explicit workday {tenant,env,site} for a Workday board.`
94
+ );
95
+ }
96
+
83
97
  return success(jobs, {
84
98
  count: jobs.length,
85
99
  registry_hit: registryAts !== null,
86
100
  ats: config ? 'workday' : registryAts,
87
101
  workday_override: Boolean(config),
102
+ version: VERSION,
103
+ registry_source: getRegistrySource(),
88
104
  });
89
105
  } catch (err) {
90
106
  const msg = err.message || 'Unknown error';
107
+ // Map the library error to the advertised taxonomy. Order matters: a rate
108
+ // limit surfaces as "...API error...: 429", so the 429 check must run
109
+ // before the generic /API error/ check. This string-matches the adapters'
110
+ // message wording (the contained trade-off vs typed errors in the library).
91
111
  if (config && /Workday API error/.test(msg)) {
112
+ // Keep the Workday triple-repair hint even on a 429.
92
113
  return error(
93
114
  ERROR_CODES.ATS_UNREACHABLE,
94
115
  `Workday rejected ${config.tenant}/${config.env}/${config.site}: ${msg}. Verify the triple against the careers URL https://{tenant}.{env}.myworkdayjobs.com/{site}.`
95
116
  );
96
117
  }
118
+ if (/:\s*429\b/.test(msg)) {
119
+ return error(ERROR_CODES.RATE_LIMITED, msg);
120
+ }
121
+ if (/API error/.test(msg)) {
122
+ return error(ERROR_CODES.ATS_UNREACHABLE, msg);
123
+ }
97
124
  return error(ERROR_CODES.INVALID_ARGS, msg);
98
125
  }
99
126
  }
@@ -128,6 +155,8 @@ export function registerTools(server, deps = {}) {
128
155
  count: filtered.length,
129
156
  query: args.query || null,
130
157
  sector: args.sector || null,
158
+ version: VERSION,
159
+ registry_source: getRegistrySource(),
131
160
  });
132
161
  }
133
162
  );
@@ -145,12 +174,12 @@ export function registerTools(server, deps = {}) {
145
174
  const results = await libDetectAts(args.company);
146
175
 
147
176
  if (results.length === 0) {
148
- return success(null, { attempted: ['greenhouse', 'lever', 'ashby'], succeeded: [] });
177
+ return success(null, { attempted: ATS_NAMES, succeeded: [] });
149
178
  }
150
179
 
151
180
  if (results.length === 1) {
152
181
  return success(results[0].ats, {
153
- attempted: ['greenhouse', 'lever', 'ashby'],
182
+ attempted: ATS_NAMES,
154
183
  succeeded: [results[0].ats],
155
184
  });
156
185
  }
@@ -159,7 +188,7 @@ export function registerTools(server, deps = {}) {
159
188
  return partial(
160
189
  results[0].ats,
161
190
  {
162
- attempted: ['greenhouse', 'lever', 'ashby'],
191
+ attempted: ATS_NAMES,
163
192
  succeeded: results.map((r) => r.ats),
164
193
  notes: [`Company found on multiple platforms: ${results.map((r) => r.ats).join(', ')}. Returning first match.`],
165
194
  }
package/version.js ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Single source of the server version.
3
+ *
4
+ * Read from package.json via createRequire — works on every Node 18+ with no
5
+ * import-attribute version concerns (Claude Desktop's bundled Node version is
6
+ * not known ahead of time). server.js reports this to the MCP host; tools.js
7
+ * surfaces it in response metadata so the AI can tell the user what's running.
8
+ */
9
+ import { createRequire } from 'node:module';
10
+
11
+ const require = createRequire(import.meta.url);
12
+ export const VERSION = require('./package.json').version;