jobseek-mcp 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +15 -2
- package/dist/prompts.d.ts +50 -0
- package/dist/prompts.js +100 -0
- package/dist/tools/launch-pad.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
|
-
import { CallToolRequestSchema, ListToolsRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
4
|
+
import { CallToolRequestSchema, ListToolsRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema, ListPromptsRequestSchema, GetPromptRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
5
5
|
import { optimizeResumeTool, handleOptimizeResume } from "./tools/optimize-resume.js";
|
|
6
6
|
import { downloadResumePdfTool, handleDownloadResumePdf } from "./tools/download-resume-pdf.js";
|
|
7
7
|
import { uploadResumeTool, handleUploadResume } from "./tools/upload-resume.js";
|
|
8
8
|
import { launchPadTool, handleLaunchPad } from "./tools/launch-pad.js";
|
|
9
9
|
import { allResources, handleReadResource } from "./resources.js";
|
|
10
|
+
import { allPrompts, getPromptMessages } from "./prompts.js";
|
|
10
11
|
// Configuration
|
|
11
12
|
const JOBSEEK_API_URL = process.env.JOBSEEK_API_URL || "https://jobseek-iota.vercel.app";
|
|
12
13
|
const JOBSEEK_API_KEY = process.env.JOBSEEK_API_KEY;
|
|
13
14
|
// Create the MCP server
|
|
14
15
|
const server = new Server({
|
|
15
16
|
name: "jobseek-mcp",
|
|
16
|
-
version: "0.
|
|
17
|
+
version: "0.5.0",
|
|
17
18
|
}, {
|
|
18
19
|
capabilities: {
|
|
19
20
|
tools: {},
|
|
20
21
|
resources: {},
|
|
22
|
+
prompts: {},
|
|
21
23
|
},
|
|
22
24
|
});
|
|
23
25
|
// List available tools
|
|
@@ -58,6 +60,17 @@ server.setRequestHandler(ReadResourceRequestSchema, async (request) => {
|
|
|
58
60
|
const { uri } = request.params;
|
|
59
61
|
return handleReadResource(uri);
|
|
60
62
|
});
|
|
63
|
+
// List available prompts
|
|
64
|
+
server.setRequestHandler(ListPromptsRequestSchema, async () => {
|
|
65
|
+
return {
|
|
66
|
+
prompts: allPrompts,
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
// Handle prompt requests
|
|
70
|
+
server.setRequestHandler(GetPromptRequestSchema, async (request) => {
|
|
71
|
+
const { name, arguments: args } = request.params;
|
|
72
|
+
return getPromptMessages(name, args || {});
|
|
73
|
+
});
|
|
61
74
|
// Start the server
|
|
62
75
|
async function main() {
|
|
63
76
|
const transport = new StdioServerTransport();
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const launchPadPrompt: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
arguments: {
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
required: boolean;
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
10
|
+
export declare const optimizeResumePrompt: {
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
arguments: {
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
required: boolean;
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
export declare const reviewMatchesPrompt: {
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
arguments: never[];
|
|
23
|
+
};
|
|
24
|
+
export declare const uploadResumePrompt: {
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
arguments: {
|
|
28
|
+
name: string;
|
|
29
|
+
description: string;
|
|
30
|
+
required: boolean;
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
export declare const allPrompts: {
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
arguments: {
|
|
37
|
+
name: string;
|
|
38
|
+
description: string;
|
|
39
|
+
required: boolean;
|
|
40
|
+
}[];
|
|
41
|
+
}[];
|
|
42
|
+
export declare function getPromptMessages(name: string, args: Record<string, string>): {
|
|
43
|
+
messages: Array<{
|
|
44
|
+
role: string;
|
|
45
|
+
content: {
|
|
46
|
+
type: string;
|
|
47
|
+
text: string;
|
|
48
|
+
};
|
|
49
|
+
}>;
|
|
50
|
+
};
|
package/dist/prompts.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// MCP Prompts - Slash commands for common workflows
|
|
2
|
+
// Prompt definitions
|
|
3
|
+
export const launchPadPrompt = {
|
|
4
|
+
name: "launch_pad",
|
|
5
|
+
description: "Open job boards for your job search. Uses your resume to determine search terms.",
|
|
6
|
+
arguments: [
|
|
7
|
+
{
|
|
8
|
+
name: "query",
|
|
9
|
+
description: "Optional: custom search query to override resume-based search",
|
|
10
|
+
required: false
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
};
|
|
14
|
+
export const optimizeResumePrompt = {
|
|
15
|
+
name: "optimize_resume",
|
|
16
|
+
description: "Optimize your resume for ATS (Applicant Tracking Systems).",
|
|
17
|
+
arguments: [
|
|
18
|
+
{
|
|
19
|
+
name: "feedback",
|
|
20
|
+
description: "Optional: specific feedback or areas to focus on",
|
|
21
|
+
required: false
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
};
|
|
25
|
+
export const reviewMatchesPrompt = {
|
|
26
|
+
name: "review_matches",
|
|
27
|
+
description: "Review and discuss your recent job matches from the Chrome extension.",
|
|
28
|
+
arguments: []
|
|
29
|
+
};
|
|
30
|
+
export const uploadResumePrompt = {
|
|
31
|
+
name: "upload_resume",
|
|
32
|
+
description: "Upload a PDF resume to JobSeek.",
|
|
33
|
+
arguments: [
|
|
34
|
+
{
|
|
35
|
+
name: "path",
|
|
36
|
+
description: "Path to the PDF file (e.g., ~/Downloads/resume.pdf)",
|
|
37
|
+
required: true
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
};
|
|
41
|
+
// All prompts
|
|
42
|
+
export const allPrompts = [
|
|
43
|
+
launchPadPrompt,
|
|
44
|
+
optimizeResumePrompt,
|
|
45
|
+
reviewMatchesPrompt,
|
|
46
|
+
uploadResumePrompt,
|
|
47
|
+
];
|
|
48
|
+
// Generate prompt messages
|
|
49
|
+
export function getPromptMessages(name, args) {
|
|
50
|
+
switch (name) {
|
|
51
|
+
case "launch_pad":
|
|
52
|
+
const query = args.query ? ` for "${args.query}"` : "";
|
|
53
|
+
return {
|
|
54
|
+
messages: [{
|
|
55
|
+
role: "user",
|
|
56
|
+
content: {
|
|
57
|
+
type: "text",
|
|
58
|
+
text: `Open the job search launch pad${query}. Use the launch_pad tool to open job boards (LinkedIn, Indeed, Glassdoor, etc.) in my browser.`
|
|
59
|
+
}
|
|
60
|
+
}]
|
|
61
|
+
};
|
|
62
|
+
case "optimize_resume":
|
|
63
|
+
const feedback = args.feedback ? `\n\nFocus on: ${args.feedback}` : "";
|
|
64
|
+
return {
|
|
65
|
+
messages: [{
|
|
66
|
+
role: "user",
|
|
67
|
+
content: {
|
|
68
|
+
type: "text",
|
|
69
|
+
text: `Optimize my resume for ATS. Use the optimize_resume tool to enhance my resume for applicant tracking systems.${feedback}`
|
|
70
|
+
}
|
|
71
|
+
}]
|
|
72
|
+
};
|
|
73
|
+
case "review_matches":
|
|
74
|
+
return {
|
|
75
|
+
messages: [{
|
|
76
|
+
role: "user",
|
|
77
|
+
content: {
|
|
78
|
+
type: "text",
|
|
79
|
+
text: `Review my recent job matches. Read my applications from JobSeek (jobseek://applications resource) and help me understand:
|
|
80
|
+
1. Which jobs are the best matches?
|
|
81
|
+
2. What are my key strengths for these roles?
|
|
82
|
+
3. What gaps should I address?
|
|
83
|
+
4. Which should I prioritize applying to?`
|
|
84
|
+
}
|
|
85
|
+
}]
|
|
86
|
+
};
|
|
87
|
+
case "upload_resume":
|
|
88
|
+
return {
|
|
89
|
+
messages: [{
|
|
90
|
+
role: "user",
|
|
91
|
+
content: {
|
|
92
|
+
type: "text",
|
|
93
|
+
text: `Upload my resume from ${args.path} to JobSeek using the upload_resume tool.`
|
|
94
|
+
}
|
|
95
|
+
}]
|
|
96
|
+
};
|
|
97
|
+
default:
|
|
98
|
+
throw new Error(`Unknown prompt: ${name}`);
|
|
99
|
+
}
|
|
100
|
+
}
|
package/dist/tools/launch-pad.js
CHANGED
|
@@ -63,8 +63,8 @@ export async function handleLaunchPad(args, apiUrl, apiKey) {
|
|
|
63
63
|
const opened = [];
|
|
64
64
|
for (const link of links) {
|
|
65
65
|
try {
|
|
66
|
-
//
|
|
67
|
-
await execAsync(`open "${link.url}"`);
|
|
66
|
+
// Open in Chrome on macOS
|
|
67
|
+
await execAsync(`open -a "Google Chrome" "${link.url}"`);
|
|
68
68
|
opened.push(link.name);
|
|
69
69
|
}
|
|
70
70
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jobseek-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "JobSeek MCP Server - AI-powered job search automation for Claude Code",
|
|
5
5
|
"author": "Shawn Mitchell",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=18"
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|