resuml 1.21.0 → 3.0.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/DOCS.md +320 -0
- package/README.md +7 -2
- package/data/skills/emerging.json +59 -11
- package/data/skills/skills.json +14964 -1
- package/dist/chunk-R4MD5YMV.js +17434 -0
- package/dist/chunk-R4MD5YMV.js.map +1 -0
- package/dist/index.d.ts +452 -3
- package/dist/index.js +268 -116
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +132 -141
- package/dist/mcp/server.js.map +1 -1
- package/package.json +26 -56
- package/dist/api.d.ts +0 -9
- package/dist/api.js +0 -20
- package/dist/api.js.map +0 -1
- package/dist/chunk-4ZOTZUAW.js +0 -6666
- package/dist/chunk-4ZOTZUAW.js.map +0 -1
- package/dist/chunk-JP7UCR3P.js +0 -182
- package/dist/chunk-JP7UCR3P.js.map +0 -1
- package/dist/chunk-KRJMZ2RQ.js +0 -1621
- package/dist/chunk-KRJMZ2RQ.js.map +0 -1
- package/dist/chunk-ZLA7NFYP.js +0 -90
- package/dist/chunk-ZLA7NFYP.js.map +0 -1
- package/dist/index-yHdKpxms.d.ts +0 -422
- package/dist/themeLoader-ZGWEGYXG.js +0 -7
- package/dist/themeLoader-ZGWEGYXG.js.map +0 -1
- package/scripts/build-builder.js +0 -25
- package/scripts/build-skills-db.js +0 -314
- package/scripts/bundle-themes.js +0 -1118
- package/scripts/dev-server.js +0 -392
- package/scripts/enrich-themes-manifest.mjs +0 -156
- package/scripts/generate-types.cjs +0 -55
- package/scripts/mcp-call.mjs +0 -99
- package/scripts/quick-bundle.cjs +0 -129
- package/scripts/render-theme-thumbs.mjs +0 -117
- package/scripts/test-mcp.mjs +0 -583
package/dist/mcp/server.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KNOWN_THEMES,
|
|
3
|
+
analyzeAts,
|
|
3
4
|
generateResumeYaml,
|
|
4
5
|
getInstalledVersion,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
getRubricEntry,
|
|
7
|
+
isThemeInstalled,
|
|
8
|
+
listRubricMarkdown,
|
|
9
|
+
loadConfig,
|
|
10
|
+
loadTheme,
|
|
9
11
|
processResumeData
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import {
|
|
12
|
-
loadTheme
|
|
13
|
-
} from "../chunk-ZLA7NFYP.js";
|
|
12
|
+
} from "../chunk-R4MD5YMV.js";
|
|
14
13
|
|
|
15
14
|
// src/mcp/server.ts
|
|
16
15
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -137,87 +136,10 @@ languages:
|
|
|
137
136
|
- Never use first person (I, my, me, we)
|
|
138
137
|
- Summary: 2-4 sentences positioning the candidate for the specific role
|
|
139
138
|
`;
|
|
140
|
-
var ATS_SCORING_RUBRIC = `# ATS Scoring Rubric
|
|
141
|
-
|
|
142
|
-
resuml performs deterministic, offline ATS (Applicant Tracking System) analysis.
|
|
143
|
-
|
|
144
|
-
## Scoring system
|
|
145
|
-
|
|
146
|
-
### Rating scale
|
|
147
|
-
| Score | Rating | Description |
|
|
148
|
-
|-------|--------|-------------|
|
|
149
|
-
| 90-100 | Excellent | Resume is well-optimized for ATS |
|
|
150
|
-
| 75-89 | Good | Resume passes most ATS checks |
|
|
151
|
-
| 60-74 | Needs Work | Several improvements recommended |
|
|
152
|
-
| 0-59 | Poor | Significant issues found |
|
|
153
|
-
|
|
154
|
-
### Weight system
|
|
155
|
-
Each check has a weight that affects the final score:
|
|
156
|
-
- **High weight (3x)**: Critical checks that significantly impact ATS parsing
|
|
157
|
-
- **Medium weight (2x)**: Important but not critical checks
|
|
158
|
-
- **Low weight (1x)**: Nice-to-have improvements
|
|
159
|
-
|
|
160
|
-
### Combined scoring (with job description)
|
|
161
|
-
When a job description is provided:
|
|
162
|
-
- Generic checks: 60% of final score
|
|
163
|
-
- Keyword match: 40% of final score
|
|
164
|
-
|
|
165
|
-
## Checks performed
|
|
166
|
-
|
|
167
|
-
### Contact Information (category: contact)
|
|
168
|
-
| Check | Weight | What it verifies |
|
|
169
|
-
|-------|--------|-----------------|
|
|
170
|
-
| contact-complete | High | Name, email, phone, and city are all present |
|
|
171
|
-
| has-linkedin | Medium | LinkedIn profile exists in profiles section |
|
|
172
|
-
|
|
173
|
-
### Content Quality (category: content)
|
|
174
|
-
| Check | Weight | What it verifies |
|
|
175
|
-
|-------|--------|-----------------|
|
|
176
|
-
| has-summary | High | Professional summary exists (15-100 words) |
|
|
177
|
-
| work-highlights | High | Each work entry has at least 2 highlights |
|
|
178
|
-
| action-verbs | Medium | Highlights start with action verbs |
|
|
179
|
-
| quantified-impact | Medium | 50%+ of highlights include numbers/metrics |
|
|
180
|
-
| no-first-person | Low | No first-person pronouns (I, my, me, we) |
|
|
181
|
-
|
|
182
|
-
### Resume Structure (category: structure)
|
|
183
|
-
| Check | Weight | What it verifies |
|
|
184
|
-
|-------|--------|-----------------|
|
|
185
|
-
| date-consistency | Medium | All dates are valid ISO 8601 format |
|
|
186
|
-
| skills-populated | Medium | At least 3 skill categories defined |
|
|
187
|
-
| education-complete | Medium | Education section has institution and area |
|
|
188
|
-
| essential-sections | High | Work, education, and skills sections present |
|
|
189
|
-
|
|
190
|
-
## Job description matching
|
|
191
|
-
When a job description is provided, resuml extracts keywords using TF-based extraction
|
|
192
|
-
and matches them against the resume using stem matching. Results include:
|
|
193
|
-
- **matched**: Keywords found in the resume
|
|
194
|
-
- **missing**: Keywords not found (add these to improve score)
|
|
195
|
-
- **matchPercentage**: Percentage of JD keywords found in resume
|
|
196
|
-
|
|
197
|
-
## Fit Assessment
|
|
198
|
-
When a job description is provided, a \`fitAssessment\` field is included in the result:
|
|
199
|
-
| Match % | Level | Meaning |
|
|
200
|
-
|---------|-------|---------|
|
|
201
|
-
| >= 70% | strong | Resume aligns well with the job description |
|
|
202
|
-
| 50-69% | partial | Some alignment; emphasize transferable skills |
|
|
203
|
-
| < 50% | weak | Significant skill gaps; role may not match profile |
|
|
204
|
-
|
|
205
|
-
The assessment includes the top 5 missing keywords as specific gaps to address.
|
|
206
|
-
Use this to advise users whether to apply or focus effort elsewhere.
|
|
207
|
-
|
|
208
|
-
## Tips for improving ATS score
|
|
209
|
-
1. Include all contact information (name, email, phone, city)
|
|
210
|
-
2. Add a LinkedIn profile URL
|
|
211
|
-
3. Write a 2-4 sentence professional summary
|
|
212
|
-
4. Use action verbs to start each highlight
|
|
213
|
-
5. Quantify achievements with numbers (%, $, time saved, team size)
|
|
214
|
-
6. Include at least 3 skill categories with relevant keywords
|
|
215
|
-
7. When targeting a job, mirror exact terminology from the job description
|
|
216
|
-
`;
|
|
217
139
|
function createServer() {
|
|
218
140
|
const server = new McpServer({
|
|
219
141
|
name: "resuml",
|
|
220
|
-
version: "
|
|
142
|
+
version: "2.0.0"
|
|
221
143
|
});
|
|
222
144
|
server.registerResource(
|
|
223
145
|
"json-resume-schema",
|
|
@@ -227,26 +149,30 @@ function createServer() {
|
|
|
227
149
|
mimeType: "text/markdown"
|
|
228
150
|
},
|
|
229
151
|
() => ({
|
|
230
|
-
contents: [
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
152
|
+
contents: [
|
|
153
|
+
{
|
|
154
|
+
uri: "resuml://schema/json-resume",
|
|
155
|
+
mimeType: "text/markdown",
|
|
156
|
+
text: JSON_RESUME_SCHEMA_REFERENCE
|
|
157
|
+
}
|
|
158
|
+
]
|
|
235
159
|
})
|
|
236
160
|
);
|
|
237
161
|
server.registerResource(
|
|
238
|
-
"ats-
|
|
239
|
-
"resuml://docs/ats-
|
|
162
|
+
"ats-rubric",
|
|
163
|
+
"resuml://docs/ats-rubric",
|
|
240
164
|
{
|
|
241
|
-
description: "ATS
|
|
165
|
+
description: "Tiered ATS rubric: every check, its tier, weight, evidence level, description, and source URL.",
|
|
242
166
|
mimeType: "text/markdown"
|
|
243
167
|
},
|
|
244
168
|
() => ({
|
|
245
|
-
contents: [
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
169
|
+
contents: [
|
|
170
|
+
{
|
|
171
|
+
uri: "resuml://docs/ats-rubric",
|
|
172
|
+
mimeType: "text/markdown",
|
|
173
|
+
text: listRubricMarkdown()
|
|
174
|
+
}
|
|
175
|
+
]
|
|
250
176
|
})
|
|
251
177
|
);
|
|
252
178
|
server.registerResource(
|
|
@@ -265,11 +191,13 @@ function createServer() {
|
|
|
265
191
|
version: getInstalledVersion(t.pkg)
|
|
266
192
|
}));
|
|
267
193
|
return {
|
|
268
|
-
contents: [
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
194
|
+
contents: [
|
|
195
|
+
{
|
|
196
|
+
uri: "resuml://themes/catalog",
|
|
197
|
+
mimeType: "application/json",
|
|
198
|
+
text: JSON.stringify({ themes, totalCount: themes.length }, null, 2)
|
|
199
|
+
}
|
|
200
|
+
]
|
|
273
201
|
};
|
|
274
202
|
}
|
|
275
203
|
);
|
|
@@ -282,15 +210,18 @@ function createServer() {
|
|
|
282
210
|
jobDescription: z.string().describe("The full job description text"),
|
|
283
211
|
candidateName: z.string().optional().describe("Candidate full name"),
|
|
284
212
|
candidateEmail: z.string().optional().describe("Candidate email address"),
|
|
285
|
-
candidateBackground: z.string().optional().describe(
|
|
213
|
+
candidateBackground: z.string().optional().describe(
|
|
214
|
+
"Brief summary of the candidate background, skills, and experience to incorporate"
|
|
215
|
+
)
|
|
286
216
|
}
|
|
287
217
|
},
|
|
288
218
|
({ jobDescription, candidateName, candidateEmail, candidateBackground }) => ({
|
|
289
|
-
messages: [
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
219
|
+
messages: [
|
|
220
|
+
{
|
|
221
|
+
role: "user",
|
|
222
|
+
content: {
|
|
223
|
+
type: "text",
|
|
224
|
+
text: `Create a tailored resume in YAML format optimized for the following job description.
|
|
294
225
|
|
|
295
226
|
## Job Description
|
|
296
227
|
${jobDescription}
|
|
@@ -314,13 +245,14 @@ ${candidateEmail ? `10. Use candidate email: ${candidateEmail}` : ""}
|
|
|
314
245
|
## Workflow
|
|
315
246
|
After generating the YAML:
|
|
316
247
|
1. Use \`resuml_validate\` to check schema compliance
|
|
317
|
-
2. Use \`resuml_ats_check\` with the job description text. Target:
|
|
248
|
+
2. Use \`resuml_ats_check\` with the job description text. Target: total >= 75, parsing tier grade A, hard-skill-overlap >= 70%
|
|
318
249
|
3. If ATS score is low, revise the YAML and re-check
|
|
319
250
|
4. Use \`resuml_render\` with theme "even" for the final output
|
|
320
251
|
|
|
321
252
|
Output the resume YAML first, then run the validation and ATS check tools.`
|
|
253
|
+
}
|
|
322
254
|
}
|
|
323
|
-
|
|
255
|
+
]
|
|
324
256
|
})
|
|
325
257
|
);
|
|
326
258
|
server.registerPrompt(
|
|
@@ -335,11 +267,12 @@ Output the resume YAML first, then run the validation and ATS check tools.`
|
|
|
335
267
|
}
|
|
336
268
|
},
|
|
337
269
|
({ resumeYaml, jobDescription, targetScore }) => ({
|
|
338
|
-
messages: [
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
270
|
+
messages: [
|
|
271
|
+
{
|
|
272
|
+
role: "user",
|
|
273
|
+
content: {
|
|
274
|
+
type: "text",
|
|
275
|
+
text: `Optimize this resume YAML to maximize its ATS score${targetScore ? ` (target: ${targetScore})` : " (target: 85+)"}.
|
|
343
276
|
|
|
344
277
|
## Current Resume YAML
|
|
345
278
|
\`\`\`yaml
|
|
@@ -352,7 +285,7 @@ ${jobDescription}
|
|
|
352
285
|
## Instructions
|
|
353
286
|
|
|
354
287
|
1. First, run \`resuml_ats_check\` on the current YAML${jobDescription ? " with the job description" : ""} to get the baseline score
|
|
355
|
-
2. Read the ATS
|
|
288
|
+
2. Read the ATS rubric (resuml://docs/ats-rubric) to understand what checks are performed, their tier, and weight
|
|
356
289
|
3. Review each failed or low-scoring check and fix the issues:
|
|
357
290
|
- Missing contact info \u2192 add it
|
|
358
291
|
- No summary \u2192 write a 2-4 sentence professional summary
|
|
@@ -363,8 +296,9 @@ ${jobDescription}
|
|
|
363
296
|
5. Repeat until the target score is reached
|
|
364
297
|
|
|
365
298
|
Output the improved YAML with a summary of changes made.`
|
|
299
|
+
}
|
|
366
300
|
}
|
|
367
|
-
|
|
301
|
+
]
|
|
368
302
|
})
|
|
369
303
|
);
|
|
370
304
|
server.registerPrompt(
|
|
@@ -377,11 +311,12 @@ Output the improved YAML with a summary of changes made.`
|
|
|
377
311
|
}
|
|
378
312
|
},
|
|
379
313
|
({ resumeYaml }) => ({
|
|
380
|
-
messages: [
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
314
|
+
messages: [
|
|
315
|
+
{
|
|
316
|
+
role: "user",
|
|
317
|
+
content: {
|
|
318
|
+
type: "text",
|
|
319
|
+
text: `Perform a comprehensive review of this resume.
|
|
385
320
|
|
|
386
321
|
## Resume YAML
|
|
387
322
|
\`\`\`yaml
|
|
@@ -404,8 +339,9 @@ ${resumeYaml}
|
|
|
404
339
|
- **Strengths**: What the resume does well
|
|
405
340
|
- **Improvements**: Specific, actionable suggestions
|
|
406
341
|
- **Revised YAML**: An improved version if significant changes are recommended`
|
|
342
|
+
}
|
|
407
343
|
}
|
|
408
|
-
|
|
344
|
+
]
|
|
409
345
|
})
|
|
410
346
|
);
|
|
411
347
|
server.registerTool(
|
|
@@ -443,13 +379,20 @@ ${resumeYaml}
|
|
|
443
379
|
await processResumeData([yaml]);
|
|
444
380
|
restoreStdout();
|
|
445
381
|
return {
|
|
446
|
-
content: [
|
|
382
|
+
content: [
|
|
383
|
+
{ type: "text", text: JSON.stringify({ valid: true, errors: [] }, null, 2) }
|
|
384
|
+
]
|
|
447
385
|
};
|
|
448
386
|
} catch (e) {
|
|
449
387
|
restoreStdout();
|
|
450
388
|
const message = e instanceof Error ? e.message : String(e);
|
|
451
389
|
return {
|
|
452
|
-
content: [
|
|
390
|
+
content: [
|
|
391
|
+
{
|
|
392
|
+
type: "text",
|
|
393
|
+
text: JSON.stringify({ valid: false, errors: [message] }, null, 2)
|
|
394
|
+
}
|
|
395
|
+
]
|
|
453
396
|
};
|
|
454
397
|
}
|
|
455
398
|
}
|
|
@@ -469,9 +412,11 @@ ${resumeYaml}
|
|
|
469
412
|
suppressStdout();
|
|
470
413
|
try {
|
|
471
414
|
const resume = await processResumeData([yaml]);
|
|
415
|
+
const cfg = loadConfig();
|
|
472
416
|
const result = analyzeAts(resume, {
|
|
473
|
-
language: language ??
|
|
474
|
-
jobDescription
|
|
417
|
+
language: language ?? cfg.locale,
|
|
418
|
+
jobDescription,
|
|
419
|
+
config: cfg
|
|
475
420
|
});
|
|
476
421
|
restoreStdout();
|
|
477
422
|
return {
|
|
@@ -480,12 +425,42 @@ ${resumeYaml}
|
|
|
480
425
|
} catch (e) {
|
|
481
426
|
restoreStdout();
|
|
482
427
|
return {
|
|
483
|
-
content: [
|
|
428
|
+
content: [
|
|
429
|
+
{
|
|
430
|
+
type: "text",
|
|
431
|
+
text: JSON.stringify({ error: e instanceof Error ? e.message : String(e) })
|
|
432
|
+
}
|
|
433
|
+
],
|
|
484
434
|
isError: true
|
|
485
435
|
};
|
|
486
436
|
}
|
|
487
437
|
}
|
|
488
438
|
);
|
|
439
|
+
server.registerTool(
|
|
440
|
+
"resuml_ats_explain",
|
|
441
|
+
{
|
|
442
|
+
title: "ATS Rubric Explain",
|
|
443
|
+
description: "Return the rubric entry (tier, weight, evidence level, description, source) for a given check id.",
|
|
444
|
+
inputSchema: {
|
|
445
|
+
checkId: z.string().describe("Check id, e.g. quantification-density")
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
({ checkId }) => {
|
|
449
|
+
const entry = getRubricEntry(checkId);
|
|
450
|
+
if (!entry) {
|
|
451
|
+
return {
|
|
452
|
+
content: [
|
|
453
|
+
{
|
|
454
|
+
type: "text",
|
|
455
|
+
text: JSON.stringify({ error: `Unknown check id: ${checkId}` })
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
isError: true
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
return { content: [{ type: "text", text: JSON.stringify(entry, null, 2) }] };
|
|
462
|
+
}
|
|
463
|
+
);
|
|
489
464
|
server.registerTool(
|
|
490
465
|
"resuml_render",
|
|
491
466
|
{
|
|
@@ -549,7 +524,9 @@ ${resumeYaml}
|
|
|
549
524
|
theme: z.string().default("even").describe("Theme name"),
|
|
550
525
|
format: z.enum(["A4", "Letter"]).default("A4").describe("Paper format"),
|
|
551
526
|
locale: z.string().optional().describe("Locale for theme rendering (e.g. en, de)"),
|
|
552
|
-
margin: z.string().optional().describe(
|
|
527
|
+
margin: z.string().optional().describe(
|
|
528
|
+
'Page margins. Single value (e.g. "10mm") for all sides, two values (e.g. "10mm,15mm") for vertical/horizontal, or four values (e.g. "10mm,15mm,10mm,15mm") for top/right/bottom/left'
|
|
529
|
+
)
|
|
553
530
|
}
|
|
554
531
|
},
|
|
555
532
|
async (args) => {
|
|
@@ -570,7 +547,14 @@ ${resumeYaml}
|
|
|
570
547
|
} catch {
|
|
571
548
|
restoreStdout();
|
|
572
549
|
return {
|
|
573
|
-
content: [
|
|
550
|
+
content: [
|
|
551
|
+
{
|
|
552
|
+
type: "text",
|
|
553
|
+
text: JSON.stringify({
|
|
554
|
+
error: "Playwright is not installed. Run: npm install playwright"
|
|
555
|
+
})
|
|
556
|
+
}
|
|
557
|
+
],
|
|
574
558
|
isError: true
|
|
575
559
|
};
|
|
576
560
|
}
|
|
@@ -586,19 +570,26 @@ ${resumeYaml}
|
|
|
586
570
|
await browser.close();
|
|
587
571
|
restoreStdout();
|
|
588
572
|
return {
|
|
589
|
-
content: [
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
573
|
+
content: [
|
|
574
|
+
{
|
|
575
|
+
type: "text",
|
|
576
|
+
text: JSON.stringify({
|
|
577
|
+
pdf: Buffer.from(pdfBuffer).toString("base64"),
|
|
578
|
+
encoding: "base64",
|
|
579
|
+
format
|
|
580
|
+
})
|
|
581
|
+
}
|
|
582
|
+
]
|
|
597
583
|
};
|
|
598
584
|
} catch (e) {
|
|
599
585
|
restoreStdout();
|
|
600
586
|
return {
|
|
601
|
-
content: [
|
|
587
|
+
content: [
|
|
588
|
+
{
|
|
589
|
+
type: "text",
|
|
590
|
+
text: JSON.stringify({ error: e instanceof Error ? e.message : String(e) })
|
|
591
|
+
}
|
|
592
|
+
],
|
|
602
593
|
isError: true
|
|
603
594
|
};
|
|
604
595
|
}
|
package/dist/mcp/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/mcp/server.ts"],"sourcesContent":["import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { z } from 'zod';\nimport { processResumeData } from '../core';\nimport { analyzeAts } from '../ats/index';\nimport { loadTheme } from '../utils/themeLoader';\nimport { generateResumeYaml } from '../utils/resumeTemplate';\nimport { KNOWN_THEMES, isThemeInstalled, getInstalledVersion } from '../utils/themeInfo';\n\n// Redirect console.log to stderr so it doesn't corrupt the MCP stdio channel\nconst originalLog = console.log;\nconst originalWarn = console.warn;\n\nfunction suppressStdout() {\n console.log = (...args: unknown[]) => { console.error('[resuml]', ...args); };\n console.warn = (...args: unknown[]) => { console.error('[resuml]', ...args); };\n}\n\nfunction restoreStdout() {\n console.log = originalLog;\n console.warn = originalWarn;\n}\n\n// ── Shared data ─────────────────────────────────────────────────────\n\nconst JSON_RESUME_SCHEMA_REFERENCE = `# JSON Resume Schema Reference\n\nThe JSON Resume schema defines the structure for resume data. resuml uses YAML as the input format.\n\n## Top-level sections\n\n| Section | Required | Description |\n|---------|----------|-------------|\n| basics | Yes | Name, label, email, phone, url, summary, location, profiles |\n| work | Recommended | Work experience entries |\n| education | Recommended | Education entries |\n| skills | Recommended | Skill categories with keywords |\n| projects | Optional | Project entries |\n| volunteer | Optional | Volunteer experience |\n| awards | Optional | Awards and honors |\n| certificates | Optional | Professional certifications |\n| publications | Optional | Published works |\n| languages | Optional | Language proficiencies |\n| interests | Optional | Personal interests |\n| references | Optional | Professional references |\n\n## Section schemas\n\n### basics\n\\`\\`\\`yaml\nbasics:\n name: \"Full Name\" # required\n label: \"Professional Title\"\n email: \"email@example.com\"\n phone: \"+1-555-123-4567\"\n url: \"https://website.com\"\n summary: \"2-4 sentence professional summary\"\n location:\n city: \"City\"\n countryCode: \"US\"\n region: \"State\"\n profiles:\n - network: \"LinkedIn\"\n username: \"username\"\n url: \"https://linkedin.com/in/username\"\n\\`\\`\\`\n\n### work\n\\`\\`\\`yaml\nwork:\n - name: \"Company Name\"\n position: \"Job Title\"\n url: \"https://company.com\"\n startDate: \"2020-01-01\" # ISO 8601\n endDate: \"2023-12-31\" # omit for current position\n summary: \"Role description\"\n highlights:\n - \"Achievement with measurable result\"\n\\`\\`\\`\n\n### education\n\\`\\`\\`yaml\neducation:\n - institution: \"University\"\n area: \"Field of Study\"\n studyType: \"Degree Type\" # e.g. Bachelor, Master, PhD\n startDate: \"2014-09-01\"\n endDate: \"2018-06-01\"\n\\`\\`\\`\n\n### skills\n\\`\\`\\`yaml\nskills:\n - name: \"Category\"\n level: \"Expert\" # Master, Expert, Advanced, Intermediate, Beginner\n keywords: [\"Skill1\", \"Skill2\"]\n\\`\\`\\`\n\n### projects\n\\`\\`\\`yaml\nprojects:\n - name: \"Project Name\"\n description: \"What it does\"\n highlights: [\"Key achievement\"]\n keywords: [\"Tech1\", \"Tech2\"]\n startDate: \"2023-01-01\"\n url: \"https://github.com/...\"\n\\`\\`\\`\n\n### certificates\n\\`\\`\\`yaml\ncertificates:\n - name: \"Certificate Name\"\n date: \"2023-01-01\"\n issuer: \"Issuing Organization\"\n url: \"https://credential-url.com\"\n\\`\\`\\`\n\n### languages\n\\`\\`\\`yaml\nlanguages:\n - language: \"English\"\n fluency: \"Native speaker\" # Native speaker, Fluent, Advanced, Intermediate, Elementary\n\\`\\`\\`\n\n## Formatting rules\n- Dates: ISO 8601 format (YYYY-MM-DD or YYYY-MM)\n- Start highlights with action verbs: Developed, Implemented, Led, Optimized, Reduced, Built, Designed\n- Include numbers in 50%+ of highlights (e.g., \"Reduced latency by 40%\")\n- Never use first person (I, my, me, we)\n- Summary: 2-4 sentences positioning the candidate for the specific role\n`;\n\nconst ATS_SCORING_RUBRIC = `# ATS Scoring Rubric\n\nresuml performs deterministic, offline ATS (Applicant Tracking System) analysis.\n\n## Scoring system\n\n### Rating scale\n| Score | Rating | Description |\n|-------|--------|-------------|\n| 90-100 | Excellent | Resume is well-optimized for ATS |\n| 75-89 | Good | Resume passes most ATS checks |\n| 60-74 | Needs Work | Several improvements recommended |\n| 0-59 | Poor | Significant issues found |\n\n### Weight system\nEach check has a weight that affects the final score:\n- **High weight (3x)**: Critical checks that significantly impact ATS parsing\n- **Medium weight (2x)**: Important but not critical checks\n- **Low weight (1x)**: Nice-to-have improvements\n\n### Combined scoring (with job description)\nWhen a job description is provided:\n- Generic checks: 60% of final score\n- Keyword match: 40% of final score\n\n## Checks performed\n\n### Contact Information (category: contact)\n| Check | Weight | What it verifies |\n|-------|--------|-----------------|\n| contact-complete | High | Name, email, phone, and city are all present |\n| has-linkedin | Medium | LinkedIn profile exists in profiles section |\n\n### Content Quality (category: content)\n| Check | Weight | What it verifies |\n|-------|--------|-----------------|\n| has-summary | High | Professional summary exists (15-100 words) |\n| work-highlights | High | Each work entry has at least 2 highlights |\n| action-verbs | Medium | Highlights start with action verbs |\n| quantified-impact | Medium | 50%+ of highlights include numbers/metrics |\n| no-first-person | Low | No first-person pronouns (I, my, me, we) |\n\n### Resume Structure (category: structure)\n| Check | Weight | What it verifies |\n|-------|--------|-----------------|\n| date-consistency | Medium | All dates are valid ISO 8601 format |\n| skills-populated | Medium | At least 3 skill categories defined |\n| education-complete | Medium | Education section has institution and area |\n| essential-sections | High | Work, education, and skills sections present |\n\n## Job description matching\nWhen a job description is provided, resuml extracts keywords using TF-based extraction\nand matches them against the resume using stem matching. Results include:\n- **matched**: Keywords found in the resume\n- **missing**: Keywords not found (add these to improve score)\n- **matchPercentage**: Percentage of JD keywords found in resume\n\n## Fit Assessment\nWhen a job description is provided, a \\`fitAssessment\\` field is included in the result:\n| Match % | Level | Meaning |\n|---------|-------|---------|\n| >= 70% | strong | Resume aligns well with the job description |\n| 50-69% | partial | Some alignment; emphasize transferable skills |\n| < 50% | weak | Significant skill gaps; role may not match profile |\n\nThe assessment includes the top 5 missing keywords as specific gaps to address.\nUse this to advise users whether to apply or focus effort elsewhere.\n\n## Tips for improving ATS score\n1. Include all contact information (name, email, phone, city)\n2. Add a LinkedIn profile URL\n3. Write a 2-4 sentence professional summary\n4. Use action verbs to start each highlight\n5. Quantify achievements with numbers (%, $, time saved, team size)\n6. Include at least 3 skill categories with relevant keywords\n7. When targeting a job, mirror exact terminology from the job description\n`;\n\nfunction createServer(): McpServer {\n const server = new McpServer({\n name: 'resuml',\n version: '1.0.0',\n });\n\n // ═══════════════════════════════════════════════════════════════════\n // RESOURCES\n // ═══════════════════════════════════════════════════════════════════\n\n // ── JSON Resume Schema Reference ──────────────────────────────────\n\n server.registerResource(\n 'json-resume-schema',\n 'resuml://schema/json-resume',\n {\n description: 'JSON Resume schema reference with all sections, field types, and formatting rules',\n mimeType: 'text/markdown',\n },\n () => ({\n contents: [{\n uri: 'resuml://schema/json-resume',\n mimeType: 'text/markdown',\n text: JSON_RESUME_SCHEMA_REFERENCE,\n }],\n }),\n );\n\n // ── ATS Scoring Rubric ────────────────────────────────────────────\n\n server.registerResource(\n 'ats-scoring-rubric',\n 'resuml://docs/ats-scoring',\n {\n description: 'ATS scoring rubric: checks performed, weight system, rating scale, and tips for improving score',\n mimeType: 'text/markdown',\n },\n () => ({\n contents: [{\n uri: 'resuml://docs/ats-scoring',\n mimeType: 'text/markdown',\n text: ATS_SCORING_RUBRIC,\n }],\n }),\n );\n\n // ── Theme Catalog ─────────────────────────────────────────────────\n\n server.registerResource(\n 'theme-catalog',\n 'resuml://themes/catalog',\n {\n description: 'Available resume themes with descriptions and installation status',\n mimeType: 'application/json',\n },\n () => {\n const themes = KNOWN_THEMES.map((t) => ({\n name: t.name,\n package: t.pkg,\n description: t.description,\n installed: isThemeInstalled(t.pkg),\n version: getInstalledVersion(t.pkg),\n }));\n return {\n contents: [{\n uri: 'resuml://themes/catalog',\n mimeType: 'application/json',\n text: JSON.stringify({ themes, totalCount: themes.length }, null, 2),\n }],\n };\n },\n );\n\n // ═══════════════════════════════════════════════════════════════════\n // PROMPTS\n // ═══════════════════════════════════════════════════════════════════\n\n // ── Tailor Resume to Job Description ──────────────────────────────\n\n server.registerPrompt(\n 'tailor-resume-to-jd',\n {\n title: 'Tailor Resume to Job Description',\n description: 'Generate a tailored resume YAML optimized for a specific job description',\n argsSchema: {\n jobDescription: z.string().describe('The full job description text'),\n candidateName: z.string().optional().describe('Candidate full name'),\n candidateEmail: z.string().optional().describe('Candidate email address'),\n candidateBackground: z.string().optional().describe('Brief summary of the candidate background, skills, and experience to incorporate'),\n },\n },\n ({ jobDescription, candidateName, candidateEmail, candidateBackground }) => ({\n messages: [{\n role: 'user',\n content: {\n type: 'text',\n text: `Create a tailored resume in YAML format optimized for the following job description.\n\n## Job Description\n${jobDescription}\n\n${candidateBackground ? `## Candidate Background\\n${candidateBackground}\\n` : ''}\n## Instructions\n\n1. Analyze the job description to identify required skills, technologies, experience level, and industry terms\n2. Generate a complete resume YAML following the JSON Resume schema (read the resuml://schema/json-resume resource for the full schema)\n3. Mirror exact terminology from the job description in skills and highlights\n4. Start every highlight with an action verb (Developed, Implemented, Led, Optimized, Reduced, Built, Designed)\n5. Include numbers in 50%+ of highlights (e.g., \"Reduced latency by 40%\", \"Managed team of 8\")\n6. Never use \"I\", \"my\", \"me\", \"we\"\n7. Write a 2-4 sentence summary positioning the candidate for this specific role\n8. Use ISO 8601 dates (YYYY-MM-DD or YYYY-MM)\n${candidateName ? `9. Use candidate name: ${candidateName}` : ''}\n${candidateEmail ? `10. Use candidate email: ${candidateEmail}` : ''}\n\n## Workflow\nAfter generating the YAML:\n1. Use \\`resuml_validate\\` to check schema compliance\n2. Use \\`resuml_ats_check\\` with the job description text. Target: score >= 75, keyword match >= 70%\n3. If ATS score is low, revise the YAML and re-check\n4. Use \\`resuml_render\\` with theme \"even\" for the final output\n\nOutput the resume YAML first, then run the validation and ATS check tools.`,\n },\n }],\n }),\n );\n\n // ── Optimize ATS Score ────────────────────────────────────────────\n\n server.registerPrompt(\n 'optimize-ats-score',\n {\n title: 'Optimize ATS Score',\n description: 'Analyze and improve an existing resume YAML to maximize its ATS score',\n argsSchema: {\n resumeYaml: z.string().describe('The current resume YAML content'),\n jobDescription: z.string().optional().describe('Optional job description to optimize against'),\n targetScore: z.string().optional().describe('Target ATS score (default: 85)'),\n },\n },\n ({ resumeYaml, jobDescription, targetScore }) => ({\n messages: [{\n role: 'user',\n content: {\n type: 'text',\n text: `Optimize this resume YAML to maximize its ATS score${targetScore ? ` (target: ${targetScore})` : ' (target: 85+)'}.\n\n## Current Resume YAML\n\\`\\`\\`yaml\n${resumeYaml}\n\\`\\`\\`\n\n${jobDescription ? `## Job Description\\n${jobDescription}\\n` : ''}\n## Instructions\n\n1. First, run \\`resuml_ats_check\\` on the current YAML${jobDescription ? ' with the job description' : ''} to get the baseline score\n2. Read the ATS scoring rubric (resuml://docs/ats-scoring) to understand what checks are performed\n3. Review each failed or low-scoring check and fix the issues:\n - Missing contact info → add it\n - No summary → write a 2-4 sentence professional summary\n - Weak highlights → rewrite with action verbs and quantified metrics\n - Missing keywords → incorporate them naturally into skills and highlights\n - Structural issues → ensure all essential sections are present\n4. Run \\`resuml_ats_check\\` again to verify improvement\n5. Repeat until the target score is reached\n\nOutput the improved YAML with a summary of changes made.`,\n },\n }],\n }),\n );\n\n // ── Review Resume ─────────────────────────────────────────────────\n\n server.registerPrompt(\n 'review-resume',\n {\n title: 'Review Resume',\n description: 'Comprehensive review of a resume YAML with ATS analysis and improvement suggestions',\n argsSchema: {\n resumeYaml: z.string().describe('The resume YAML content to review'),\n },\n },\n ({ resumeYaml }) => ({\n messages: [{\n role: 'user',\n content: {\n type: 'text',\n text: `Perform a comprehensive review of this resume.\n\n## Resume YAML\n\\`\\`\\`yaml\n${resumeYaml}\n\\`\\`\\`\n\n## Review steps\n\n1. Run \\`resuml_validate\\` to check schema compliance\n2. Run \\`resuml_ats_check\\` for ATS analysis\n3. Review content quality:\n - Is the summary compelling and role-specific?\n - Do highlights use strong action verbs?\n - Are achievements quantified with metrics?\n - Are skills well-organized and comprehensive?\n - Is the work history clear and impactful?\n4. Provide a structured review with:\n - **ATS Score**: Current score and rating\n - **Schema Issues**: Any validation errors\n - **Strengths**: What the resume does well\n - **Improvements**: Specific, actionable suggestions\n - **Revised YAML**: An improved version if significant changes are recommended`,\n },\n }],\n }),\n );\n\n // ═══════════════════════════════════════════════════════════════════\n // TOOLS\n // ═══════════════════════════════════════════════════════════════════\n\n // ── resuml_init_resume ──────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_init_resume',\n {\n title: 'Init Resume',\n description: 'Generate a starter resume YAML template following the JSON Resume schema',\n inputSchema: {\n name: z.string().optional().describe('Full name for the resume'),\n title: z.string().optional().describe('Professional title/label'),\n email: z.string().optional().describe('Email address'),\n },\n },\n ({ name, title, email }) => {\n const yaml = generateResumeYaml(\n name ?? 'Your Name',\n email ?? 'email@example.com',\n title ?? 'Professional Title',\n );\n return { content: [{ type: 'text' as const, text: yaml }] };\n },\n );\n\n // ── resuml_validate ─────────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_validate',\n {\n title: 'Validate Resume',\n description: 'Validate resume YAML against the JSON Resume schema',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n },\n },\n async ({ yaml }) => {\n suppressStdout();\n try {\n await processResumeData([yaml]);\n restoreStdout();\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ valid: true, errors: [] }, null, 2) }],\n };\n } catch (e: unknown) {\n restoreStdout();\n const message = e instanceof Error ? e.message : String(e);\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ valid: false, errors: [message] }, null, 2) }],\n };\n }\n },\n );\n\n // ── resuml_ats_check ────────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_ats_check',\n {\n title: 'ATS Check',\n description: 'Run ATS (Applicant Tracking System) analysis on a resume, optionally matching against a job description',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n jobDescription: z.string().optional().describe('Job description text to match keywords against'),\n language: z.enum(['en', 'de']).optional().describe('Language for analysis (default: en)'),\n },\n },\n async ({ yaml, jobDescription, language }) => {\n suppressStdout();\n try {\n const resume = await processResumeData([yaml]);\n const result = analyzeAts(resume, {\n language: language ?? 'en',\n jobDescription,\n });\n restoreStdout();\n return {\n content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }],\n };\n } catch (e: unknown) {\n restoreStdout();\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ error: e instanceof Error ? e.message : String(e) }) }],\n isError: true,\n };\n }\n },\n );\n\n // ── resuml_render ───────────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_render',\n {\n title: 'Render Resume',\n description: 'Render a resume to HTML using a specified theme',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n theme: z.string().default('even').describe('Theme name (e.g. even, stackoverflow, elegant, paper, kendall)'),\n locale: z.string().optional().describe('Locale for theme rendering (e.g. en, de)'),\n },\n },\n async (args) => {\n const { yaml, theme } = args;\n const locale = args['locale'];\n suppressStdout();\n try {\n const resume = await processResumeData([yaml]);\n const themeModule = loadTheme(theme, { autoInstall: false });\n const renderOptions: Record<string, unknown> = {};\n if (locale) renderOptions['locale'] = locale;\n const html = await themeModule.render(resume as unknown as Record<string, unknown>, renderOptions);\n restoreStdout();\n return { content: [{ type: 'text' as const, text: html }] };\n } catch (e: unknown) {\n restoreStdout();\n const message = e instanceof Error ? e.message : String(e);\n const hint = message.includes('Cannot find module')\n ? `. Install with: resuml themes --install ${theme}`\n : '';\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ error: message + hint }) }],\n isError: true,\n };\n }\n },\n );\n\n // ── resuml_list_themes ──────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_list_themes',\n {\n title: 'List Themes',\n description: 'List available resume themes with their installation status',\n },\n () => {\n const themes = KNOWN_THEMES.map((t) => ({\n name: t.name,\n package: t.pkg,\n description: t.description,\n installed: isThemeInstalled(t.pkg),\n version: getInstalledVersion(t.pkg),\n }));\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ themes }, null, 2) }],\n };\n },\n );\n\n // ── resuml_export_pdf ───────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_export_pdf',\n {\n title: 'Export PDF',\n description: 'Export a resume as PDF (requires Playwright to be installed)',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n theme: z.string().default('even').describe('Theme name'),\n format: z.enum(['A4', 'Letter']).default('A4').describe('Paper format'),\n locale: z.string().optional().describe('Locale for theme rendering (e.g. en, de)'),\n margin: z.string().optional().describe('Page margins. Single value (e.g. \"10mm\") for all sides, two values (e.g. \"10mm,15mm\") for vertical/horizontal, or four values (e.g. \"10mm,15mm,10mm,15mm\") for top/right/bottom/left'),\n },\n },\n async (args) => {\n const { yaml, theme, format } = args;\n const locale = args['locale'];\n const margin = args['margin'];\n suppressStdout();\n try {\n const resume = await processResumeData([yaml]);\n const themeModule = loadTheme(theme, { autoInstall: false });\n const renderOptions: Record<string, unknown> = {};\n if (locale) renderOptions['locale'] = locale;\n const html = await themeModule.render(resume as unknown as Record<string, unknown>, renderOptions);\n\n let chromium;\n try {\n const pw = await import('playwright');\n chromium = pw.chromium;\n } catch {\n restoreStdout();\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ error: 'Playwright is not installed. Run: npm install playwright' }) }],\n isError: true,\n };\n }\n\n const parsedMargin = parseMargin(margin);\n const browser = await chromium.launch({ headless: true });\n const page = await browser.newPage();\n await page.setContent(html, { waitUntil: 'networkidle' });\n const pdfBuffer = await page.pdf({\n format,\n printBackground: true,\n margin: parsedMargin,\n });\n await browser.close();\n restoreStdout();\n\n return {\n content: [{\n type: 'text' as const,\n text: JSON.stringify({\n pdf: Buffer.from(pdfBuffer).toString('base64'),\n encoding: 'base64',\n format,\n }),\n }],\n };\n } catch (e: unknown) {\n restoreStdout();\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ error: e instanceof Error ? e.message : String(e) }) }],\n isError: true,\n };\n }\n },\n );\n\n return server;\n}\n\nfunction parseMargin(margin?: string): Record<string, string> {\n const defaultMargin = { top: '10mm', right: '10mm', bottom: '10mm', left: '10mm' };\n if (!margin) return defaultMargin;\n\n const parts = margin.split(',').map((s) => s.trim());\n if (parts.length === 1 && parts[0]) {\n return { top: parts[0], right: parts[0], bottom: parts[0], left: parts[0] };\n }\n if (parts.length === 2 && parts[0] && parts[1]) {\n return { top: parts[0], right: parts[1], bottom: parts[0], left: parts[1] };\n }\n if (parts.length === 4 && parts[0] && parts[1] && parts[2] && parts[3]) {\n return { top: parts[0], right: parts[1], bottom: parts[2], left: parts[3] };\n }\n return defaultMargin;\n}\n\nexport async function startMcpServer(): Promise<void> {\n const server = createServer();\n const transport = new StdioServerTransport();\n await server.connect(transport);\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,SAAS,iBAAiB;AAC1B,SAAS,4BAA4B;AACrC,SAAS,SAAS;AAQlB,IAAM,cAAc,QAAQ;AAC5B,IAAM,eAAe,QAAQ;AAE7B,SAAS,iBAAiB;AACxB,UAAQ,MAAM,IAAI,SAAoB;AAAE,YAAQ,MAAM,YAAY,GAAG,IAAI;AAAA,EAAG;AAC5E,UAAQ,OAAO,IAAI,SAAoB;AAAE,YAAQ,MAAM,YAAY,GAAG,IAAI;AAAA,EAAG;AAC/E;AAEA,SAAS,gBAAgB;AACvB,UAAQ,MAAM;AACd,UAAQ,OAAO;AACjB;AAIA,IAAM,+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C,OAAQ,QAAO;AAEpB,QAAM,QAAQ,OAAO,MAAM,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC;AACnD,MAAI,MAAM,WAAW,KAAK,MAAM,CAAC,GAAG;AAClC,WAAO,EAAE,KAAK,MAAM,CAAC,GAAG,OAAO,MAAM,CAAC,GAAG,QAAQ,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,EAAE;AAAA,EAC5E;AACA,MAAI,MAAM,WAAW,KAAK,MAAM,CAAC,KAAK,MAAM,CAAC,GAAG;AAC9C,WAAO,EAAE,KAAK,MAAM,CAAC,GAAG,OAAO,MAAM,CAAC,GAAG,QAAQ,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,EAAE;AAAA,EAC5E;AACA,MAAI,MAAM,WAAW,KAAK,MAAM,CAAC,KAAK,MAAM,CAAC,KAAK,MAAM,CAAC,KAAK,MAAM,CAAC,GAAG;AACtE,WAAO,EAAE,KAAK,MAAM,CAAC,GAAG,OAAO,MAAM,CAAC,GAAG,QAAQ,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,EAAE;AAAA,EAC5E;AACA,SAAO;AACT;AAEA,eAAsB,iBAAgC;AACpD,QAAM,SAAS,aAAa;AAC5B,QAAM,YAAY,IAAI,qBAAqB;AAC3C,QAAM,OAAO,QAAQ,SAAS;AAChC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/mcp/server.ts"],"sourcesContent":["import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { z } from 'zod';\nimport { processResumeData } from '../core';\nimport { analyzeAts } from '../ats/index';\nimport { listRubricMarkdown, getRubricEntry } from '../ats/rubric';\nimport { loadConfig } from '../utils/config';\nimport { loadTheme } from '../utils/themeLoader';\nimport { generateResumeYaml } from '../utils/resumeTemplate';\nimport { KNOWN_THEMES, isThemeInstalled, getInstalledVersion } from '../utils/themeInfo';\n\n// Redirect console.log to stderr so it doesn't corrupt the MCP stdio channel\nconst originalLog = console.log;\nconst originalWarn = console.warn;\n\nfunction suppressStdout() {\n console.log = (...args: unknown[]) => {\n console.error('[resuml]', ...args);\n };\n console.warn = (...args: unknown[]) => {\n console.error('[resuml]', ...args);\n };\n}\n\nfunction restoreStdout() {\n console.log = originalLog;\n console.warn = originalWarn;\n}\n\n// ── Shared data ─────────────────────────────────────────────────────\n\nconst JSON_RESUME_SCHEMA_REFERENCE = `# JSON Resume Schema Reference\n\nThe JSON Resume schema defines the structure for resume data. resuml uses YAML as the input format.\n\n## Top-level sections\n\n| Section | Required | Description |\n|---------|----------|-------------|\n| basics | Yes | Name, label, email, phone, url, summary, location, profiles |\n| work | Recommended | Work experience entries |\n| education | Recommended | Education entries |\n| skills | Recommended | Skill categories with keywords |\n| projects | Optional | Project entries |\n| volunteer | Optional | Volunteer experience |\n| awards | Optional | Awards and honors |\n| certificates | Optional | Professional certifications |\n| publications | Optional | Published works |\n| languages | Optional | Language proficiencies |\n| interests | Optional | Personal interests |\n| references | Optional | Professional references |\n\n## Section schemas\n\n### basics\n\\`\\`\\`yaml\nbasics:\n name: \"Full Name\" # required\n label: \"Professional Title\"\n email: \"email@example.com\"\n phone: \"+1-555-123-4567\"\n url: \"https://website.com\"\n summary: \"2-4 sentence professional summary\"\n location:\n city: \"City\"\n countryCode: \"US\"\n region: \"State\"\n profiles:\n - network: \"LinkedIn\"\n username: \"username\"\n url: \"https://linkedin.com/in/username\"\n\\`\\`\\`\n\n### work\n\\`\\`\\`yaml\nwork:\n - name: \"Company Name\"\n position: \"Job Title\"\n url: \"https://company.com\"\n startDate: \"2020-01-01\" # ISO 8601\n endDate: \"2023-12-31\" # omit for current position\n summary: \"Role description\"\n highlights:\n - \"Achievement with measurable result\"\n\\`\\`\\`\n\n### education\n\\`\\`\\`yaml\neducation:\n - institution: \"University\"\n area: \"Field of Study\"\n studyType: \"Degree Type\" # e.g. Bachelor, Master, PhD\n startDate: \"2014-09-01\"\n endDate: \"2018-06-01\"\n\\`\\`\\`\n\n### skills\n\\`\\`\\`yaml\nskills:\n - name: \"Category\"\n level: \"Expert\" # Master, Expert, Advanced, Intermediate, Beginner\n keywords: [\"Skill1\", \"Skill2\"]\n\\`\\`\\`\n\n### projects\n\\`\\`\\`yaml\nprojects:\n - name: \"Project Name\"\n description: \"What it does\"\n highlights: [\"Key achievement\"]\n keywords: [\"Tech1\", \"Tech2\"]\n startDate: \"2023-01-01\"\n url: \"https://github.com/...\"\n\\`\\`\\`\n\n### certificates\n\\`\\`\\`yaml\ncertificates:\n - name: \"Certificate Name\"\n date: \"2023-01-01\"\n issuer: \"Issuing Organization\"\n url: \"https://credential-url.com\"\n\\`\\`\\`\n\n### languages\n\\`\\`\\`yaml\nlanguages:\n - language: \"English\"\n fluency: \"Native speaker\" # Native speaker, Fluent, Advanced, Intermediate, Elementary\n\\`\\`\\`\n\n## Formatting rules\n- Dates: ISO 8601 format (YYYY-MM-DD or YYYY-MM)\n- Start highlights with action verbs: Developed, Implemented, Led, Optimized, Reduced, Built, Designed\n- Include numbers in 50%+ of highlights (e.g., \"Reduced latency by 40%\")\n- Never use first person (I, my, me, we)\n- Summary: 2-4 sentences positioning the candidate for the specific role\n`;\n\nfunction createServer(): McpServer {\n const server = new McpServer({\n name: 'resuml',\n version: '2.0.0',\n });\n\n // ═══════════════════════════════════════════════════════════════════\n // RESOURCES\n // ═══════════════════════════════════════════════════════════════════\n\n // ── JSON Resume Schema Reference ──────────────────────────────────\n\n server.registerResource(\n 'json-resume-schema',\n 'resuml://schema/json-resume',\n {\n description:\n 'JSON Resume schema reference with all sections, field types, and formatting rules',\n mimeType: 'text/markdown',\n },\n () => ({\n contents: [\n {\n uri: 'resuml://schema/json-resume',\n mimeType: 'text/markdown',\n text: JSON_RESUME_SCHEMA_REFERENCE,\n },\n ],\n })\n );\n\n // ── ATS Rubric ───────────────────────────────────────────────────\n\n server.registerResource(\n 'ats-rubric',\n 'resuml://docs/ats-rubric',\n {\n description:\n 'Tiered ATS rubric: every check, its tier, weight, evidence level, description, and source URL.',\n mimeType: 'text/markdown',\n },\n () => ({\n contents: [\n {\n uri: 'resuml://docs/ats-rubric',\n mimeType: 'text/markdown',\n text: listRubricMarkdown(),\n },\n ],\n })\n );\n\n // ── Theme Catalog ─────────────────────────────────────────────────\n\n server.registerResource(\n 'theme-catalog',\n 'resuml://themes/catalog',\n {\n description: 'Available resume themes with descriptions and installation status',\n mimeType: 'application/json',\n },\n () => {\n const themes = KNOWN_THEMES.map((t) => ({\n name: t.name,\n package: t.pkg,\n description: t.description,\n installed: isThemeInstalled(t.pkg),\n version: getInstalledVersion(t.pkg),\n }));\n return {\n contents: [\n {\n uri: 'resuml://themes/catalog',\n mimeType: 'application/json',\n text: JSON.stringify({ themes, totalCount: themes.length }, null, 2),\n },\n ],\n };\n }\n );\n\n // ═══════════════════════════════════════════════════════════════════\n // PROMPTS\n // ═══════════════════════════════════════════════════════════════════\n\n // ── Tailor Resume to Job Description ──────────────────────────────\n\n server.registerPrompt(\n 'tailor-resume-to-jd',\n {\n title: 'Tailor Resume to Job Description',\n description: 'Generate a tailored resume YAML optimized for a specific job description',\n argsSchema: {\n jobDescription: z.string().describe('The full job description text'),\n candidateName: z.string().optional().describe('Candidate full name'),\n candidateEmail: z.string().optional().describe('Candidate email address'),\n candidateBackground: z\n .string()\n .optional()\n .describe(\n 'Brief summary of the candidate background, skills, and experience to incorporate'\n ),\n },\n },\n ({ jobDescription, candidateName, candidateEmail, candidateBackground }) => ({\n messages: [\n {\n role: 'user',\n content: {\n type: 'text',\n text: `Create a tailored resume in YAML format optimized for the following job description.\n\n## Job Description\n${jobDescription}\n\n${candidateBackground ? `## Candidate Background\\n${candidateBackground}\\n` : ''}\n## Instructions\n\n1. Analyze the job description to identify required skills, technologies, experience level, and industry terms\n2. Generate a complete resume YAML following the JSON Resume schema (read the resuml://schema/json-resume resource for the full schema)\n3. Mirror exact terminology from the job description in skills and highlights\n4. Start every highlight with an action verb (Developed, Implemented, Led, Optimized, Reduced, Built, Designed)\n5. Include numbers in 50%+ of highlights (e.g., \"Reduced latency by 40%\", \"Managed team of 8\")\n6. Never use \"I\", \"my\", \"me\", \"we\"\n7. Write a 2-4 sentence summary positioning the candidate for this specific role\n8. Use ISO 8601 dates (YYYY-MM-DD or YYYY-MM)\n${candidateName ? `9. Use candidate name: ${candidateName}` : ''}\n${candidateEmail ? `10. Use candidate email: ${candidateEmail}` : ''}\n\n## Workflow\nAfter generating the YAML:\n1. Use \\`resuml_validate\\` to check schema compliance\n2. Use \\`resuml_ats_check\\` with the job description text. Target: total >= 75, parsing tier grade A, hard-skill-overlap >= 70%\n3. If ATS score is low, revise the YAML and re-check\n4. Use \\`resuml_render\\` with theme \"even\" for the final output\n\nOutput the resume YAML first, then run the validation and ATS check tools.`,\n },\n },\n ],\n })\n );\n\n // ── Optimize ATS Score ────────────────────────────────────────────\n\n server.registerPrompt(\n 'optimize-ats-score',\n {\n title: 'Optimize ATS Score',\n description: 'Analyze and improve an existing resume YAML to maximize its ATS score',\n argsSchema: {\n resumeYaml: z.string().describe('The current resume YAML content'),\n jobDescription: z\n .string()\n .optional()\n .describe('Optional job description to optimize against'),\n targetScore: z.string().optional().describe('Target ATS score (default: 85)'),\n },\n },\n ({ resumeYaml, jobDescription, targetScore }) => ({\n messages: [\n {\n role: 'user',\n content: {\n type: 'text',\n text: `Optimize this resume YAML to maximize its ATS score${targetScore ? ` (target: ${targetScore})` : ' (target: 85+)'}.\n\n## Current Resume YAML\n\\`\\`\\`yaml\n${resumeYaml}\n\\`\\`\\`\n\n${jobDescription ? `## Job Description\\n${jobDescription}\\n` : ''}\n## Instructions\n\n1. First, run \\`resuml_ats_check\\` on the current YAML${jobDescription ? ' with the job description' : ''} to get the baseline score\n2. Read the ATS rubric (resuml://docs/ats-rubric) to understand what checks are performed, their tier, and weight\n3. Review each failed or low-scoring check and fix the issues:\n - Missing contact info → add it\n - No summary → write a 2-4 sentence professional summary\n - Weak highlights → rewrite with action verbs and quantified metrics\n - Missing keywords → incorporate them naturally into skills and highlights\n - Structural issues → ensure all essential sections are present\n4. Run \\`resuml_ats_check\\` again to verify improvement\n5. Repeat until the target score is reached\n\nOutput the improved YAML with a summary of changes made.`,\n },\n },\n ],\n })\n );\n\n // ── Review Resume ─────────────────────────────────────────────────\n\n server.registerPrompt(\n 'review-resume',\n {\n title: 'Review Resume',\n description:\n 'Comprehensive review of a resume YAML with ATS analysis and improvement suggestions',\n argsSchema: {\n resumeYaml: z.string().describe('The resume YAML content to review'),\n },\n },\n ({ resumeYaml }) => ({\n messages: [\n {\n role: 'user',\n content: {\n type: 'text',\n text: `Perform a comprehensive review of this resume.\n\n## Resume YAML\n\\`\\`\\`yaml\n${resumeYaml}\n\\`\\`\\`\n\n## Review steps\n\n1. Run \\`resuml_validate\\` to check schema compliance\n2. Run \\`resuml_ats_check\\` for ATS analysis\n3. Review content quality:\n - Is the summary compelling and role-specific?\n - Do highlights use strong action verbs?\n - Are achievements quantified with metrics?\n - Are skills well-organized and comprehensive?\n - Is the work history clear and impactful?\n4. Provide a structured review with:\n - **ATS Score**: Current score and rating\n - **Schema Issues**: Any validation errors\n - **Strengths**: What the resume does well\n - **Improvements**: Specific, actionable suggestions\n - **Revised YAML**: An improved version if significant changes are recommended`,\n },\n },\n ],\n })\n );\n\n // ═══════════════════════════════════════════════════════════════════\n // TOOLS\n // ═══════════════════════════════════════════════════════════════════\n\n // ── resuml_init_resume ──────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_init_resume',\n {\n title: 'Init Resume',\n description: 'Generate a starter resume YAML template following the JSON Resume schema',\n inputSchema: {\n name: z.string().optional().describe('Full name for the resume'),\n title: z.string().optional().describe('Professional title/label'),\n email: z.string().optional().describe('Email address'),\n },\n },\n ({ name, title, email }) => {\n const yaml = generateResumeYaml(\n name ?? 'Your Name',\n email ?? 'email@example.com',\n title ?? 'Professional Title'\n );\n return { content: [{ type: 'text' as const, text: yaml }] };\n }\n );\n\n // ── resuml_validate ─────────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_validate',\n {\n title: 'Validate Resume',\n description: 'Validate resume YAML against the JSON Resume schema',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n },\n },\n async ({ yaml }) => {\n suppressStdout();\n try {\n await processResumeData([yaml]);\n restoreStdout();\n return {\n content: [\n { type: 'text' as const, text: JSON.stringify({ valid: true, errors: [] }, null, 2) },\n ],\n };\n } catch (e: unknown) {\n restoreStdout();\n const message = e instanceof Error ? e.message : String(e);\n return {\n content: [\n {\n type: 'text' as const,\n text: JSON.stringify({ valid: false, errors: [message] }, null, 2),\n },\n ],\n };\n }\n }\n );\n\n // ── resuml_ats_check ────────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_ats_check',\n {\n title: 'ATS Check',\n description:\n 'Run ATS (Applicant Tracking System) analysis on a resume, optionally matching against a job description',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n jobDescription: z\n .string()\n .optional()\n .describe('Job description text to match keywords against'),\n language: z.enum(['en', 'de']).optional().describe('Language for analysis (default: en)'),\n },\n },\n async ({ yaml, jobDescription, language }) => {\n suppressStdout();\n try {\n const resume = await processResumeData([yaml]);\n const cfg = loadConfig();\n const result = analyzeAts(resume, {\n language: language ?? cfg.locale,\n jobDescription,\n config: cfg,\n });\n restoreStdout();\n return {\n content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }],\n };\n } catch (e: unknown) {\n restoreStdout();\n return {\n content: [\n {\n type: 'text' as const,\n text: JSON.stringify({ error: e instanceof Error ? e.message : String(e) }),\n },\n ],\n isError: true,\n };\n }\n }\n );\n\n // ── resuml_ats_explain ──────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_ats_explain',\n {\n title: 'ATS Rubric Explain',\n description:\n 'Return the rubric entry (tier, weight, evidence level, description, source) for a given check id.',\n inputSchema: {\n checkId: z.string().describe('Check id, e.g. quantification-density'),\n },\n },\n ({ checkId }) => {\n const entry = getRubricEntry(checkId);\n if (!entry) {\n return {\n content: [\n {\n type: 'text' as const,\n text: JSON.stringify({ error: `Unknown check id: ${checkId}` }),\n },\n ],\n isError: true,\n };\n }\n return { content: [{ type: 'text' as const, text: JSON.stringify(entry, null, 2) }] };\n }\n );\n\n // ── resuml_render ───────────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_render',\n {\n title: 'Render Resume',\n description: 'Render a resume to HTML using a specified theme',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n theme: z\n .string()\n .default('even')\n .describe('Theme name (e.g. even, stackoverflow, elegant, paper, kendall)'),\n locale: z.string().optional().describe('Locale for theme rendering (e.g. en, de)'),\n },\n },\n async (args) => {\n const { yaml, theme } = args;\n const locale = args['locale'];\n suppressStdout();\n try {\n const resume = await processResumeData([yaml]);\n const themeModule = loadTheme(theme, { autoInstall: false });\n const renderOptions: Record<string, unknown> = {};\n if (locale) renderOptions['locale'] = locale;\n const html = await themeModule.render(resume, renderOptions);\n restoreStdout();\n return { content: [{ type: 'text' as const, text: html }] };\n } catch (e: unknown) {\n restoreStdout();\n const message = e instanceof Error ? e.message : String(e);\n const hint = message.includes('Cannot find module')\n ? `. Install with: resuml themes --install ${theme}`\n : '';\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ error: message + hint }) }],\n isError: true,\n };\n }\n }\n );\n\n // ── resuml_list_themes ──────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_list_themes',\n {\n title: 'List Themes',\n description: 'List available resume themes with their installation status',\n },\n () => {\n const themes = KNOWN_THEMES.map((t) => ({\n name: t.name,\n package: t.pkg,\n description: t.description,\n installed: isThemeInstalled(t.pkg),\n version: getInstalledVersion(t.pkg),\n }));\n return {\n content: [{ type: 'text' as const, text: JSON.stringify({ themes }, null, 2) }],\n };\n }\n );\n\n // ── resuml_export_pdf ───────────────────────────────────────────────\n\n server.registerTool(\n 'resuml_export_pdf',\n {\n title: 'Export PDF',\n description: 'Export a resume as PDF (requires Playwright to be installed)',\n inputSchema: {\n yaml: z.string().describe('Resume content in YAML format'),\n theme: z.string().default('even').describe('Theme name'),\n format: z.enum(['A4', 'Letter']).default('A4').describe('Paper format'),\n locale: z.string().optional().describe('Locale for theme rendering (e.g. en, de)'),\n margin: z\n .string()\n .optional()\n .describe(\n 'Page margins. Single value (e.g. \"10mm\") for all sides, two values (e.g. \"10mm,15mm\") for vertical/horizontal, or four values (e.g. \"10mm,15mm,10mm,15mm\") for top/right/bottom/left'\n ),\n },\n },\n async (args) => {\n const { yaml, theme, format } = args;\n const locale = args['locale'];\n const margin = args['margin'];\n suppressStdout();\n try {\n const resume = await processResumeData([yaml]);\n const themeModule = loadTheme(theme, { autoInstall: false });\n const renderOptions: Record<string, unknown> = {};\n if (locale) renderOptions['locale'] = locale;\n const html = await themeModule.render(resume, renderOptions);\n\n let chromium;\n try {\n const pw = await import('playwright');\n chromium = pw.chromium;\n } catch {\n restoreStdout();\n return {\n content: [\n {\n type: 'text' as const,\n text: JSON.stringify({\n error: 'Playwright is not installed. Run: npm install playwright',\n }),\n },\n ],\n isError: true,\n };\n }\n\n const parsedMargin = parseMargin(margin);\n const browser = await chromium.launch({ headless: true });\n const page = await browser.newPage();\n await page.setContent(html, { waitUntil: 'networkidle' });\n const pdfBuffer = await page.pdf({\n format,\n printBackground: true,\n margin: parsedMargin,\n });\n await browser.close();\n restoreStdout();\n\n return {\n content: [\n {\n type: 'text' as const,\n text: JSON.stringify({\n pdf: Buffer.from(pdfBuffer).toString('base64'),\n encoding: 'base64',\n format,\n }),\n },\n ],\n };\n } catch (e: unknown) {\n restoreStdout();\n return {\n content: [\n {\n type: 'text' as const,\n text: JSON.stringify({ error: e instanceof Error ? e.message : String(e) }),\n },\n ],\n isError: true,\n };\n }\n }\n );\n\n return server;\n}\n\nfunction parseMargin(margin?: string): Record<string, string> {\n const defaultMargin = { top: '10mm', right: '10mm', bottom: '10mm', left: '10mm' };\n if (!margin) return defaultMargin;\n\n const parts = margin.split(',').map((s) => s.trim());\n if (parts.length === 1 && parts[0]) {\n return { top: parts[0], right: parts[0], bottom: parts[0], left: parts[0] };\n }\n if (parts.length === 2 && parts[0] && parts[1]) {\n return { top: parts[0], right: parts[1], bottom: parts[0], left: parts[1] };\n }\n if (parts.length === 4 && parts[0] && parts[1] && parts[2] && parts[3]) {\n return { top: parts[0], right: parts[1], bottom: parts[2], left: parts[3] };\n }\n return defaultMargin;\n}\n\nexport async function startMcpServer(): Promise<void> {\n const server = createServer();\n const transport = new StdioServerTransport();\n await server.connect(transport);\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAS,iBAAiB;AAC1B,SAAS,4BAA4B;AACrC,SAAS,SAAS;AAUlB,IAAM,cAAc,QAAQ;AAC5B,IAAM,eAAe,QAAQ;AAE7B,SAAS,iBAAiB;AACxB,UAAQ,MAAM,IAAI,SAAoB;AACpC,YAAQ,MAAM,YAAY,GAAG,IAAI;AAAA,EACnC;AACA,UAAQ,OAAO,IAAI,SAAoB;AACrC,YAAQ,MAAM,YAAY,GAAG,IAAI;AAAA,EACnC;AACF;AAEA,SAAS,gBAAgB;AACvB,UAAQ,MAAM;AACd,UAAQ,OAAO;AACjB;AAIA,IAAM,+BAA+B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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