resuml 1.13.1 → 1.13.2

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,632 @@
1
+ import {
2
+ KNOWN_THEMES,
3
+ analyzeAts,
4
+ generateResumeYaml,
5
+ getInstalledVersion,
6
+ isThemeInstalled
7
+ } from "../chunk-SZAL46QV.js";
8
+ import {
9
+ processResumeData
10
+ } from "../chunk-CBMPNRQN.js";
11
+ import {
12
+ loadTheme
13
+ } from "../chunk-ZLA7NFYP.js";
14
+
15
+ // src/mcp/server.ts
16
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
17
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
18
+ import { z } from "zod";
19
+ var originalLog = console.log;
20
+ var originalWarn = console.warn;
21
+ function suppressStdout() {
22
+ console.log = (...args) => {
23
+ console.error("[resuml]", ...args);
24
+ };
25
+ console.warn = (...args) => {
26
+ console.error("[resuml]", ...args);
27
+ };
28
+ }
29
+ function restoreStdout() {
30
+ console.log = originalLog;
31
+ console.warn = originalWarn;
32
+ }
33
+ var JSON_RESUME_SCHEMA_REFERENCE = `# JSON Resume Schema Reference
34
+
35
+ The JSON Resume schema defines the structure for resume data. resuml uses YAML as the input format.
36
+
37
+ ## Top-level sections
38
+
39
+ | Section | Required | Description |
40
+ |---------|----------|-------------|
41
+ | basics | Yes | Name, label, email, phone, url, summary, location, profiles |
42
+ | work | Recommended | Work experience entries |
43
+ | education | Recommended | Education entries |
44
+ | skills | Recommended | Skill categories with keywords |
45
+ | projects | Optional | Project entries |
46
+ | volunteer | Optional | Volunteer experience |
47
+ | awards | Optional | Awards and honors |
48
+ | certificates | Optional | Professional certifications |
49
+ | publications | Optional | Published works |
50
+ | languages | Optional | Language proficiencies |
51
+ | interests | Optional | Personal interests |
52
+ | references | Optional | Professional references |
53
+
54
+ ## Section schemas
55
+
56
+ ### basics
57
+ \`\`\`yaml
58
+ basics:
59
+ name: "Full Name" # required
60
+ label: "Professional Title"
61
+ email: "email@example.com"
62
+ phone: "+1-555-123-4567"
63
+ url: "https://website.com"
64
+ summary: "2-4 sentence professional summary"
65
+ location:
66
+ city: "City"
67
+ countryCode: "US"
68
+ region: "State"
69
+ profiles:
70
+ - network: "LinkedIn"
71
+ username: "username"
72
+ url: "https://linkedin.com/in/username"
73
+ \`\`\`
74
+
75
+ ### work
76
+ \`\`\`yaml
77
+ work:
78
+ - name: "Company Name"
79
+ position: "Job Title"
80
+ url: "https://company.com"
81
+ startDate: "2020-01-01" # ISO 8601
82
+ endDate: "2023-12-31" # omit for current position
83
+ summary: "Role description"
84
+ highlights:
85
+ - "Achievement with measurable result"
86
+ \`\`\`
87
+
88
+ ### education
89
+ \`\`\`yaml
90
+ education:
91
+ - institution: "University"
92
+ area: "Field of Study"
93
+ studyType: "Degree Type" # e.g. Bachelor, Master, PhD
94
+ startDate: "2014-09-01"
95
+ endDate: "2018-06-01"
96
+ \`\`\`
97
+
98
+ ### skills
99
+ \`\`\`yaml
100
+ skills:
101
+ - name: "Category"
102
+ level: "Expert" # Master, Expert, Advanced, Intermediate, Beginner
103
+ keywords: ["Skill1", "Skill2"]
104
+ \`\`\`
105
+
106
+ ### projects
107
+ \`\`\`yaml
108
+ projects:
109
+ - name: "Project Name"
110
+ description: "What it does"
111
+ highlights: ["Key achievement"]
112
+ keywords: ["Tech1", "Tech2"]
113
+ startDate: "2023-01-01"
114
+ url: "https://github.com/..."
115
+ \`\`\`
116
+
117
+ ### certificates
118
+ \`\`\`yaml
119
+ certificates:
120
+ - name: "Certificate Name"
121
+ date: "2023-01-01"
122
+ issuer: "Issuing Organization"
123
+ url: "https://credential-url.com"
124
+ \`\`\`
125
+
126
+ ### languages
127
+ \`\`\`yaml
128
+ languages:
129
+ - language: "English"
130
+ fluency: "Native speaker" # Native speaker, Fluent, Advanced, Intermediate, Elementary
131
+ \`\`\`
132
+
133
+ ## Formatting rules
134
+ - Dates: ISO 8601 format (YYYY-MM-DD or YYYY-MM)
135
+ - Start highlights with action verbs: Developed, Implemented, Led, Optimized, Reduced, Built, Designed
136
+ - Include numbers in 50%+ of highlights (e.g., "Reduced latency by 40%")
137
+ - Never use first person (I, my, me, we)
138
+ - Summary: 2-4 sentences positioning the candidate for the specific role
139
+ `;
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
+ function createServer() {
218
+ const server = new McpServer({
219
+ name: "resuml",
220
+ version: "1.0.0"
221
+ });
222
+ server.registerResource(
223
+ "json-resume-schema",
224
+ "resuml://schema/json-resume",
225
+ {
226
+ description: "JSON Resume schema reference with all sections, field types, and formatting rules",
227
+ mimeType: "text/markdown"
228
+ },
229
+ () => ({
230
+ contents: [{
231
+ uri: "resuml://schema/json-resume",
232
+ mimeType: "text/markdown",
233
+ text: JSON_RESUME_SCHEMA_REFERENCE
234
+ }]
235
+ })
236
+ );
237
+ server.registerResource(
238
+ "ats-scoring-rubric",
239
+ "resuml://docs/ats-scoring",
240
+ {
241
+ description: "ATS scoring rubric: checks performed, weight system, rating scale, and tips for improving score",
242
+ mimeType: "text/markdown"
243
+ },
244
+ () => ({
245
+ contents: [{
246
+ uri: "resuml://docs/ats-scoring",
247
+ mimeType: "text/markdown",
248
+ text: ATS_SCORING_RUBRIC
249
+ }]
250
+ })
251
+ );
252
+ server.registerResource(
253
+ "theme-catalog",
254
+ "resuml://themes/catalog",
255
+ {
256
+ description: "Available resume themes with descriptions and installation status",
257
+ mimeType: "application/json"
258
+ },
259
+ () => {
260
+ const themes = KNOWN_THEMES.map((t) => ({
261
+ name: t.name,
262
+ package: t.pkg,
263
+ description: t.description,
264
+ installed: isThemeInstalled(t.pkg),
265
+ version: getInstalledVersion(t.pkg)
266
+ }));
267
+ return {
268
+ contents: [{
269
+ uri: "resuml://themes/catalog",
270
+ mimeType: "application/json",
271
+ text: JSON.stringify({ themes, totalCount: themes.length }, null, 2)
272
+ }]
273
+ };
274
+ }
275
+ );
276
+ server.registerPrompt(
277
+ "tailor-resume-to-jd",
278
+ {
279
+ title: "Tailor Resume to Job Description",
280
+ description: "Generate a tailored resume YAML optimized for a specific job description",
281
+ argsSchema: {
282
+ jobDescription: z.string().describe("The full job description text"),
283
+ candidateName: z.string().optional().describe("Candidate full name"),
284
+ candidateEmail: z.string().optional().describe("Candidate email address"),
285
+ candidateBackground: z.string().optional().describe("Brief summary of the candidate background, skills, and experience to incorporate")
286
+ }
287
+ },
288
+ ({ jobDescription, candidateName, candidateEmail, candidateBackground }) => ({
289
+ messages: [{
290
+ role: "user",
291
+ content: {
292
+ type: "text",
293
+ text: `Create a tailored resume in YAML format optimized for the following job description.
294
+
295
+ ## Job Description
296
+ ${jobDescription}
297
+
298
+ ${candidateBackground ? `## Candidate Background
299
+ ${candidateBackground}
300
+ ` : ""}
301
+ ## Instructions
302
+
303
+ 1. Analyze the job description to identify required skills, technologies, experience level, and industry terms
304
+ 2. Generate a complete resume YAML following the JSON Resume schema (read the resuml://schema/json-resume resource for the full schema)
305
+ 3. Mirror exact terminology from the job description in skills and highlights
306
+ 4. Start every highlight with an action verb (Developed, Implemented, Led, Optimized, Reduced, Built, Designed)
307
+ 5. Include numbers in 50%+ of highlights (e.g., "Reduced latency by 40%", "Managed team of 8")
308
+ 6. Never use "I", "my", "me", "we"
309
+ 7. Write a 2-4 sentence summary positioning the candidate for this specific role
310
+ 8. Use ISO 8601 dates (YYYY-MM-DD or YYYY-MM)
311
+ ${candidateName ? `9. Use candidate name: ${candidateName}` : ""}
312
+ ${candidateEmail ? `10. Use candidate email: ${candidateEmail}` : ""}
313
+
314
+ ## Workflow
315
+ After generating the YAML:
316
+ 1. Use \`resuml_validate\` to check schema compliance
317
+ 2. Use \`resuml_ats_check\` with the job description text. Target: score >= 75, keyword match >= 70%
318
+ 3. If ATS score is low, revise the YAML and re-check
319
+ 4. Use \`resuml_render\` with theme "even" for the final output
320
+
321
+ Output the resume YAML first, then run the validation and ATS check tools.`
322
+ }
323
+ }]
324
+ })
325
+ );
326
+ server.registerPrompt(
327
+ "optimize-ats-score",
328
+ {
329
+ title: "Optimize ATS Score",
330
+ description: "Analyze and improve an existing resume YAML to maximize its ATS score",
331
+ argsSchema: {
332
+ resumeYaml: z.string().describe("The current resume YAML content"),
333
+ jobDescription: z.string().optional().describe("Optional job description to optimize against"),
334
+ targetScore: z.string().optional().describe("Target ATS score (default: 85)")
335
+ }
336
+ },
337
+ ({ resumeYaml, jobDescription, targetScore }) => ({
338
+ messages: [{
339
+ role: "user",
340
+ content: {
341
+ type: "text",
342
+ text: `Optimize this resume YAML to maximize its ATS score${targetScore ? ` (target: ${targetScore})` : " (target: 85+)"}.
343
+
344
+ ## Current Resume YAML
345
+ \`\`\`yaml
346
+ ${resumeYaml}
347
+ \`\`\`
348
+
349
+ ${jobDescription ? `## Job Description
350
+ ${jobDescription}
351
+ ` : ""}
352
+ ## Instructions
353
+
354
+ 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 scoring rubric (resuml://docs/ats-scoring) to understand what checks are performed
356
+ 3. Review each failed or low-scoring check and fix the issues:
357
+ - Missing contact info \u2192 add it
358
+ - No summary \u2192 write a 2-4 sentence professional summary
359
+ - Weak highlights \u2192 rewrite with action verbs and quantified metrics
360
+ - Missing keywords \u2192 incorporate them naturally into skills and highlights
361
+ - Structural issues \u2192 ensure all essential sections are present
362
+ 4. Run \`resuml_ats_check\` again to verify improvement
363
+ 5. Repeat until the target score is reached
364
+
365
+ Output the improved YAML with a summary of changes made.`
366
+ }
367
+ }]
368
+ })
369
+ );
370
+ server.registerPrompt(
371
+ "review-resume",
372
+ {
373
+ title: "Review Resume",
374
+ description: "Comprehensive review of a resume YAML with ATS analysis and improvement suggestions",
375
+ argsSchema: {
376
+ resumeYaml: z.string().describe("The resume YAML content to review")
377
+ }
378
+ },
379
+ ({ resumeYaml }) => ({
380
+ messages: [{
381
+ role: "user",
382
+ content: {
383
+ type: "text",
384
+ text: `Perform a comprehensive review of this resume.
385
+
386
+ ## Resume YAML
387
+ \`\`\`yaml
388
+ ${resumeYaml}
389
+ \`\`\`
390
+
391
+ ## Review steps
392
+
393
+ 1. Run \`resuml_validate\` to check schema compliance
394
+ 2. Run \`resuml_ats_check\` for ATS analysis
395
+ 3. Review content quality:
396
+ - Is the summary compelling and role-specific?
397
+ - Do highlights use strong action verbs?
398
+ - Are achievements quantified with metrics?
399
+ - Are skills well-organized and comprehensive?
400
+ - Is the work history clear and impactful?
401
+ 4. Provide a structured review with:
402
+ - **ATS Score**: Current score and rating
403
+ - **Schema Issues**: Any validation errors
404
+ - **Strengths**: What the resume does well
405
+ - **Improvements**: Specific, actionable suggestions
406
+ - **Revised YAML**: An improved version if significant changes are recommended`
407
+ }
408
+ }]
409
+ })
410
+ );
411
+ server.registerTool(
412
+ "resuml_init_resume",
413
+ {
414
+ title: "Init Resume",
415
+ description: "Generate a starter resume YAML template following the JSON Resume schema",
416
+ inputSchema: {
417
+ name: z.string().optional().describe("Full name for the resume"),
418
+ title: z.string().optional().describe("Professional title/label"),
419
+ email: z.string().optional().describe("Email address")
420
+ }
421
+ },
422
+ ({ name, title, email }) => {
423
+ const yaml = generateResumeYaml(
424
+ name ?? "Your Name",
425
+ email ?? "email@example.com",
426
+ title ?? "Professional Title"
427
+ );
428
+ return { content: [{ type: "text", text: yaml }] };
429
+ }
430
+ );
431
+ server.registerTool(
432
+ "resuml_validate",
433
+ {
434
+ title: "Validate Resume",
435
+ description: "Validate resume YAML against the JSON Resume schema",
436
+ inputSchema: {
437
+ yaml: z.string().describe("Resume content in YAML format")
438
+ }
439
+ },
440
+ async ({ yaml }) => {
441
+ suppressStdout();
442
+ try {
443
+ await processResumeData([yaml]);
444
+ restoreStdout();
445
+ return {
446
+ content: [{ type: "text", text: JSON.stringify({ valid: true, errors: [] }, null, 2) }]
447
+ };
448
+ } catch (e) {
449
+ restoreStdout();
450
+ const message = e instanceof Error ? e.message : String(e);
451
+ return {
452
+ content: [{ type: "text", text: JSON.stringify({ valid: false, errors: [message] }, null, 2) }]
453
+ };
454
+ }
455
+ }
456
+ );
457
+ server.registerTool(
458
+ "resuml_ats_check",
459
+ {
460
+ title: "ATS Check",
461
+ description: "Run ATS (Applicant Tracking System) analysis on a resume, optionally matching against a job description",
462
+ inputSchema: {
463
+ yaml: z.string().describe("Resume content in YAML format"),
464
+ jobDescription: z.string().optional().describe("Job description text to match keywords against"),
465
+ language: z.enum(["en", "de"]).optional().describe("Language for analysis (default: en)")
466
+ }
467
+ },
468
+ async ({ yaml, jobDescription, language }) => {
469
+ suppressStdout();
470
+ try {
471
+ const resume = await processResumeData([yaml]);
472
+ const result = analyzeAts(resume, {
473
+ language: language ?? "en",
474
+ jobDescription
475
+ });
476
+ restoreStdout();
477
+ return {
478
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
479
+ };
480
+ } catch (e) {
481
+ restoreStdout();
482
+ return {
483
+ content: [{ type: "text", text: JSON.stringify({ error: e instanceof Error ? e.message : String(e) }) }],
484
+ isError: true
485
+ };
486
+ }
487
+ }
488
+ );
489
+ server.registerTool(
490
+ "resuml_render",
491
+ {
492
+ title: "Render Resume",
493
+ description: "Render a resume to HTML using a specified theme",
494
+ inputSchema: {
495
+ yaml: z.string().describe("Resume content in YAML format"),
496
+ theme: z.string().default("even").describe("Theme name (e.g. even, stackoverflow, elegant, paper, kendall)"),
497
+ locale: z.string().optional().describe("Locale for theme rendering (e.g. en, de)")
498
+ }
499
+ },
500
+ async (args) => {
501
+ const { yaml, theme } = args;
502
+ const locale = args["locale"];
503
+ suppressStdout();
504
+ try {
505
+ const resume = await processResumeData([yaml]);
506
+ const themeModule = loadTheme(theme, { autoInstall: false });
507
+ const renderOptions = {};
508
+ if (locale) renderOptions["locale"] = locale;
509
+ const html = await themeModule.render(resume, renderOptions);
510
+ restoreStdout();
511
+ return { content: [{ type: "text", text: html }] };
512
+ } catch (e) {
513
+ restoreStdout();
514
+ const message = e instanceof Error ? e.message : String(e);
515
+ const hint = message.includes("Cannot find module") ? `. Install with: resuml themes --install ${theme}` : "";
516
+ return {
517
+ content: [{ type: "text", text: JSON.stringify({ error: message + hint }) }],
518
+ isError: true
519
+ };
520
+ }
521
+ }
522
+ );
523
+ server.registerTool(
524
+ "resuml_list_themes",
525
+ {
526
+ title: "List Themes",
527
+ description: "List available resume themes with their installation status"
528
+ },
529
+ () => {
530
+ const themes = KNOWN_THEMES.map((t) => ({
531
+ name: t.name,
532
+ package: t.pkg,
533
+ description: t.description,
534
+ installed: isThemeInstalled(t.pkg),
535
+ version: getInstalledVersion(t.pkg)
536
+ }));
537
+ return {
538
+ content: [{ type: "text", text: JSON.stringify({ themes }, null, 2) }]
539
+ };
540
+ }
541
+ );
542
+ server.registerTool(
543
+ "resuml_export_pdf",
544
+ {
545
+ title: "Export PDF",
546
+ description: "Export a resume as PDF (requires Playwright to be installed)",
547
+ inputSchema: {
548
+ yaml: z.string().describe("Resume content in YAML format"),
549
+ theme: z.string().default("even").describe("Theme name"),
550
+ format: z.enum(["A4", "Letter"]).default("A4").describe("Paper format"),
551
+ locale: z.string().optional().describe("Locale for theme rendering (e.g. en, de)"),
552
+ 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')
553
+ }
554
+ },
555
+ async (args) => {
556
+ const { yaml, theme, format } = args;
557
+ const locale = args["locale"];
558
+ const margin = args["margin"];
559
+ suppressStdout();
560
+ try {
561
+ const resume = await processResumeData([yaml]);
562
+ const themeModule = loadTheme(theme, { autoInstall: false });
563
+ const renderOptions = {};
564
+ if (locale) renderOptions["locale"] = locale;
565
+ const html = await themeModule.render(resume, renderOptions);
566
+ let chromium;
567
+ try {
568
+ const pw = await import("playwright");
569
+ chromium = pw.chromium;
570
+ } catch {
571
+ restoreStdout();
572
+ return {
573
+ content: [{ type: "text", text: JSON.stringify({ error: "Playwright is not installed. Run: npm install playwright" }) }],
574
+ isError: true
575
+ };
576
+ }
577
+ const parsedMargin = parseMargin(margin);
578
+ const browser = await chromium.launch({ headless: true });
579
+ const page = await browser.newPage();
580
+ await page.setContent(html, { waitUntil: "networkidle" });
581
+ const pdfBuffer = await page.pdf({
582
+ format,
583
+ printBackground: true,
584
+ margin: parsedMargin
585
+ });
586
+ await browser.close();
587
+ restoreStdout();
588
+ return {
589
+ content: [{
590
+ type: "text",
591
+ text: JSON.stringify({
592
+ pdf: Buffer.from(pdfBuffer).toString("base64"),
593
+ encoding: "base64",
594
+ format
595
+ })
596
+ }]
597
+ };
598
+ } catch (e) {
599
+ restoreStdout();
600
+ return {
601
+ content: [{ type: "text", text: JSON.stringify({ error: e instanceof Error ? e.message : String(e) }) }],
602
+ isError: true
603
+ };
604
+ }
605
+ }
606
+ );
607
+ return server;
608
+ }
609
+ function parseMargin(margin) {
610
+ const defaultMargin = { top: "10mm", right: "10mm", bottom: "10mm", left: "10mm" };
611
+ if (!margin) return defaultMargin;
612
+ const parts = margin.split(",").map((s) => s.trim());
613
+ if (parts.length === 1 && parts[0]) {
614
+ return { top: parts[0], right: parts[0], bottom: parts[0], left: parts[0] };
615
+ }
616
+ if (parts.length === 2 && parts[0] && parts[1]) {
617
+ return { top: parts[0], right: parts[1], bottom: parts[0], left: parts[1] };
618
+ }
619
+ if (parts.length === 4 && parts[0] && parts[1] && parts[2] && parts[3]) {
620
+ return { top: parts[0], right: parts[1], bottom: parts[2], left: parts[3] };
621
+ }
622
+ return defaultMargin;
623
+ }
624
+ async function startMcpServer() {
625
+ const server = createServer();
626
+ const transport = new StdioServerTransport();
627
+ await server.connect(transport);
628
+ }
629
+ export {
630
+ startMcpServer
631
+ };
632
+ //# sourceMappingURL=server.js.map