@servation/job-search-mcp 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jeffrey Saelee
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,151 @@
1
+ # job-search-mcp
2
+
3
+ A personal job-search assistant for **Claude Desktop**. You ask Claude to find jobs; it searches the
4
+ real job boards, **scores each one 0–100 for how well it fits you**, and shows them on a ranked board
5
+ you can triage with one click. Everything runs locally — no API keys, no accounts required.
6
+
7
+ It's an [MCP App](https://modelcontextprotocol.io): a small server Claude Desktop talks to, plus an
8
+ inline board that renders right in the chat.
9
+
10
+ ![The ranked job board inside Claude Desktop — each job scored 0–100 for fit, with Applied/Skip buttons](docs/board.png)
11
+
12
+ ---
13
+
14
+ ## What it does
15
+
16
+ - **Searches real job boards** — LinkedIn plus 8 ATS/job sources (Greenhouse, Lever, Ashby, Workday,
17
+ SmartRecruiters, Hacker News, RemoteOK, Remotive), using your target roles and location.
18
+ - **Scores each job for *you*** — Claude reads the full description and gives it a 0–100 fit score with
19
+ a one-line reason, weighing your skills, years of experience, seniority fit, and the role.
20
+ - **Lets you triage fast** — Apply / Skip on each card, or in bulk ("dismiss everything under 60").
21
+ - **Remembers** — keeps a running shortlist, a tracker of what you've applied to, and won't show you
22
+ the same job twice (for 6 months).
23
+
24
+ ---
25
+
26
+ ## Setup
27
+
28
+ **1. Build it**
29
+ ```bash
30
+ npm install
31
+ npm run build
32
+ ```
33
+
34
+ **2. Tell Claude Desktop about it.** Open your config file:
35
+ - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
36
+ - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
37
+
38
+ Add this under `"mcpServers"` (use the full path to *this* folder's `dist/main.js`):
39
+ ```json
40
+ {
41
+ "mcpServers": {
42
+ "job-search": {
43
+ "command": "node",
44
+ "args": ["D:\\job-search-mcp\\dist\\main.js"]
45
+ }
46
+ }
47
+ }
48
+ ```
49
+
50
+ **3. Fully quit and reopen Claude Desktop** (on Windows, quit it from the system tray — closing the
51
+ window isn't enough). That's it.
52
+
53
+ ---
54
+
55
+ ## How to use it
56
+
57
+ Just talk to Claude. For example:
58
+
59
+ - *"Save my profile"* — paste your resume first; Claude pulls out your skills, roles, years, and
60
+ location so searches and scoring are tailored to you.
61
+ - *"Find backend engineer jobs in California, senior level, posted this week."*
62
+ - *"Find low-applicant jobs"* — adds LinkedIn's early-applicant filter.
63
+ - *"Dismiss everything under 60."*
64
+ - *"Show what I've applied to."*
65
+ - *"Re-score the board."*
66
+
67
+ A typical first run: **save your profile → "find jobs" → Claude scores them and shows the ranked
68
+ board → you Apply/Skip.**
69
+
70
+ ---
71
+
72
+ ## The board
73
+
74
+ The board is a **running shortlist**. A job stays on it until you **Apply** (moves to your tracker) or
75
+ **Skip** (hidden for good). New searches automatically skip jobs already on the board, in your tracker,
76
+ dismissed, or shown in the last 6 months — so you never see the same listing twice in a row.
77
+
78
+ Click **Applied** or **Skip** on a card, or ask Claude to do it. Triaged in the widget, it sticks.
79
+
80
+ ---
81
+
82
+ ## Tools (for reference)
83
+
84
+ You rarely call these by name — Claude picks the right one — but here's what's under the hood:
85
+
86
+ | Tool | What it does |
87
+ |---|---|
88
+ | `find_jobs` | Search the boards for your roles/location (with optional filters: seniority, type, recency, remote, salary, applicants, source). |
89
+ | `evaluate_jobs` | Claude scores the found jobs 0–100 for fit (runs automatically after a search). |
90
+ | `show_board` | Display the ranked board (or your `saved` tracker). |
91
+ | `set_status` | Apply / Skip / save a single job (also the card buttons). |
92
+ | `bulk_status` | Triage many at once by score or source, e.g. *dismiss everything under 60*. |
93
+ | `whats_promising` | List the current board as text (all scored jobs + anything still unscored). |
94
+ | `review_saved` | Your tracker — jobs you've saved or applied to. |
95
+ | `rescore_board` | Re-score every job on the board from scratch. |
96
+ | `clear_jobs` | Declutter: clear unscored leftovers or the whole board (never touches applied/dismissed). |
97
+ | `save_profile` | Save your resume profile (drives search + scoring). |
98
+
99
+ ---
100
+
101
+ ## Where your data lives
102
+
103
+ One JSON file on your machine — no cloud, nothing sent anywhere except the job boards you search:
104
+ - Installed: `~/.job-search-mcp/jobs.json`
105
+ - Running from source: `./data/jobs.json`
106
+ - Override with the `JOB_SEARCH_MCP_DATA` environment variable.
107
+
108
+ ---
109
+
110
+ ## Optional: LinkedIn Premium mode
111
+
112
+ By default LinkedIn uses its **public guest** endpoints — no login, no risk to your account, and you
113
+ already get full job descriptions. If you want richer/Premium data, you can use your logged-in account
114
+ by adding an `env` block to the server config:
115
+
116
+ ```json
117
+ "job-search": {
118
+ "command": "node",
119
+ "args": ["D:\\job-search-mcp\\dist\\main.js"],
120
+ "env": {
121
+ "LINKEDIN_LI_AT": "<your li_at cookie>",
122
+ "LINKEDIN_JSESSIONID": "ajax:1234567890123456789"
123
+ }
124
+ }
125
+ ```
126
+
127
+ Get both cookies from a logged-in `linkedin.com` tab → DevTools → Application → Cookies.
128
+
129
+ > ⚠️ **Heads up:** this is against LinkedIn's Terms of Service and can get your account flagged or
130
+ > restricted. The cookies also expire about monthly and LinkedIn's internal endpoints change without
131
+ > notice. If anything fails it falls back to guest mode automatically. Leave the `env` block out to
132
+ > stay fully safe (guest-only).
133
+
134
+ ---
135
+
136
+ ## How scoring works
137
+
138
+ Claude (the host model) does the scoring directly — it reads each description and judges fit, which is
139
+ well-calibrated. A deterministic formula (`computeMatchScore` in `scoring.ts`) is kept as a fallback for
140
+ anyone running a weaker local model that tends to over-rank everything; it's not active by default.
141
+
142
+ ## Development
143
+
144
+ ```bash
145
+ npm run typecheck # type-check UI + server
146
+ npm run build # build the UI bundle (vite single-file) + compile the server (tsc)
147
+ npm run serve:stdio # run the server from source (tsx) for local testing
148
+ ```
149
+
150
+ The server is stdio-only (`main.ts` → `server.ts`); the UI is a React app bundled to a single inlined
151
+ HTML file (`src/mcp-app.tsx` → `dist/mcp-app.html`) that the server serves as a `ui://` resource.
package/dist/config.js ADDED
@@ -0,0 +1,138 @@
1
+ import { readDb, writeDb } from "./db.js";
2
+ // Roles whose titles we never want, unless the user's target roles explicitly ask for them.
3
+ export const ROLE_TITLE_BLOCKLIST = [
4
+ "sales", "marketing", "account executive", "recruiter", "hr", "talent acquisition",
5
+ "legal", "finance", "operations", "customer success", "customer support",
6
+ "account manager", "sales engineer", "product manager", "project manager",
7
+ "business development", "business analyst", "office manager", "receptionist",
8
+ "administrative", "executive assistant", "internship", "intern", "fellowship",
9
+ "mechanical", "civil", "chemical", "electrical", "structural", "construction",
10
+ "nursing", "medical", "physician", "doctor", "teacher", "instructor", "retail",
11
+ ];
12
+ // Stop-words removed when deriving keyword tokens from target-role phrases.
13
+ export const ROLE_KEYWORD_EXCLUSIONS = [
14
+ "and", "the", "for", "with", "our", "team", "role", "you", "will", "lead",
15
+ ];
16
+ export const GREENHOUSE_SLUGS = [
17
+ // Fintech & Payments
18
+ "stripe", "plaid", "brex", "chime", "affirm", "robinhood", "coinbase",
19
+ "mercury", "deel", "gusto", "rippling", "carta", "moderntreasury", "ramp",
20
+ // Consumer & Marketplace
21
+ "airbnb", "doordash", "lyft", "pinterest", "reddit", "discord", "shopify",
22
+ "squarespace", "vimeo", "dropbox", "peloton", "faire", "flexport", "canva",
23
+ // SaaS & Productivity
24
+ "hubspot", "zendesk", "intercom", "okta", "twilio", "pagerduty", "asana",
25
+ "miro", "loom", "notion", "airtable", "zapier", "postman", "retool",
26
+ "webflow", "lattice", "superhuman", "grammarly", "lucid",
27
+ // Developer Tools & Infrastructure
28
+ "mongodb", "elastic", "hashicorp", "datadoghq", "amplitude", "mixpanel",
29
+ "launchdarkly", "fullstory", "logrocket", "contentful", "algolia", "heap",
30
+ "segment", "vanta", "drata", "secureframe", "wistia", "workos",
31
+ "cloudflare", "fastly", "databricks", "cockroachlabs", "dbtlabs", "airbyte",
32
+ "fivetran", "hightouch", "prefect", "dagster", "hex", "snyk", "temporal",
33
+ "snowflake", "purestorage",
34
+ // AI & ML
35
+ "anthropic", "openai", "cohere", "scale", "anduril",
36
+ // Other Tech & Fortune 500 Tech
37
+ "figma", "benchling", "checkr", "gitlab", "twitch", "headspace", "calm",
38
+ "duolingo", "coursera", "descript", "gem", "clipboard-health",
39
+ "uber", "servicenow", "amd", "paloaltonetworks", "splunk", "qualcomm", "zoom",
40
+ ];
41
+ export const LEVER_SLUGS = ["netflix", "palantir"];
42
+ export const ASHBY_SLUGS = [
43
+ "linear", "posthog", "perplexity", "vercel", "clerk", "supabase", "resend",
44
+ "warp", "modal", "replicate", "fly", "anysphere", "pinecone", "copilot",
45
+ "dust", "vantage", "valtown", "dub", "railway", "pydantic", "langchain",
46
+ "chroma", "midjourney", "safebase", "hume", "runway", "sentry",
47
+ "confluent", "replit", "coda",
48
+ ];
49
+ export const WORKDAY_DIRECTORY = [
50
+ { name: "Nvidia", tenant: "nvidia", site: "NVIDIAExternalCareerSite", host: "nvidia.wd5.myworkdayjobs.com" },
51
+ { name: "Salesforce", tenant: "salesforce", site: "External_Career_Site", host: "salesforce.wd12.myworkdayjobs.com" },
52
+ { name: "Capital One", tenant: "capitalone", site: "Capital_One", host: "capitalone.wd12.myworkdayjobs.com" },
53
+ { name: "Adobe", tenant: "adobe", site: "externalcareers", host: "adobe.wd10.myworkdayjobs.com" },
54
+ { name: "Workday", tenant: "workday", site: "Workday_Careers", host: "workday.wd1.myworkdayjobs.com" },
55
+ { name: "Dell", tenant: "dell", site: "External", host: "dell.wd1.myworkdayjobs.com" },
56
+ { name: "Autodesk", tenant: "autodesk", site: "Ext", host: "autodesk.wd1.myworkdayjobs.com" },
57
+ { name: "Walmart", tenant: "walmart", site: "Walmart_Careers", host: "walmart.wd1.myworkdayjobs.com" },
58
+ { name: "Target", tenant: "target", site: "targetcareers", host: "target.wd5.myworkdayjobs.com" },
59
+ { name: "Intuit", tenant: "intuit", site: "External", host: "intuit.wd5.myworkdayjobs.com" },
60
+ { name: "Intel", tenant: "intel", site: "External", host: "intel.wd1.myworkdayjobs.com" },
61
+ { name: "CrowdStrike", tenant: "crowdstrike", site: "crowdstrike", host: "crowdstrike.wd5.myworkdayjobs.com" },
62
+ { name: "Okta", tenant: "okta", site: "External", host: "okta.wd1.myworkdayjobs.com" },
63
+ { name: "PayPal", tenant: "paypal", site: "jobs", host: "paypal.wd1.myworkdayjobs.com" },
64
+ { name: "Block", tenant: "block", site: "Careers", host: "block.wd5.myworkdayjobs.com" },
65
+ { name: "Broadcom", tenant: "broadcom", site: "External", host: "broadcom.wd1.myworkdayjobs.com" },
66
+ { name: "ServiceNow", tenant: "servicenow", site: "ServiceNow_Careers", host: "servicenow.wd1.myworkdayjobs.com" },
67
+ { name: "HP", tenant: "hp", site: "ExternalCareerSite", host: "hp.wd5.myworkdayjobs.com" },
68
+ { name: "Splunk", tenant: "splunk", site: "Splunk_External_Careers", host: "splunk.wd4.myworkdayjobs.com" },
69
+ { name: "Palo Alto Networks", tenant: "paloaltonetworks", site: "Palo_Alto_Networks_External_Careers", host: "paloaltonetworks.wd1.myworkdayjobs.com" },
70
+ { name: "AMD", tenant: "amd", site: "AMD_External_Careers", host: "amd.myworkdayjobs.com" },
71
+ { name: "Qualcomm", tenant: "qualcomm", site: "Qualcomm", host: "qualcomm.myworkdayjobs.com" },
72
+ { name: "Cisco", tenant: "cisco", site: "CiscoCareers", host: "cisco.myworkdayjobs.com" },
73
+ { name: "Sony", tenant: "sony", site: "Sony_Careers", host: "sony.myworkdayjobs.com" },
74
+ { name: "Zoom", tenant: "zoom", site: "Zoom", host: "zoom.myworkdayjobs.com" },
75
+ { name: "LinkedIn", tenant: "linkedin", site: "LinkedIn", host: "linkedin.myworkdayjobs.com" },
76
+ { name: "Uber", tenant: "uber", site: "Uber", host: "uber.myworkdayjobs.com" },
77
+ { name: "Tesla", tenant: "tesla", site: "Tesla_External_Careers", host: "tesla.myworkdayjobs.com" },
78
+ { name: "Airbnb", tenant: "airbnb", site: "Airbnb", host: "airbnb.myworkdayjobs.com" },
79
+ { name: "Stripe", tenant: "stripe", site: "Stripe_Careers", host: "stripe.myworkdayjobs.com" },
80
+ { name: "EA", tenant: "ea", site: "EA_External_Careers", host: "ea.myworkdayjobs.com" },
81
+ { name: "Slack", tenant: "slack", site: "Slack", host: "slack.myworkdayjobs.com" },
82
+ { name: "HubSpot", tenant: "hubspot", site: "HubSpot_Careers", host: "hubspot.myworkdayjobs.com" },
83
+ { name: "Atlassian", tenant: "atlassian", site: "External", host: "atlassian.wd1.myworkdayjobs.com" },
84
+ { name: "Dropbox", tenant: "dropbox", site: "dropbox", host: "dropbox.wd5.myworkdayjobs.com" },
85
+ { name: "Expedia", tenant: "expedia", site: "Expedia_Careers", host: "expedia.wd5.myworkdayjobs.com" },
86
+ { name: "DocuSign", tenant: "docusign", site: "DocuSign", host: "docusign.wd1.myworkdayjobs.com" },
87
+ { name: "Yahoo", tenant: "yahoo", site: "Yahoo_Careers", host: "yahoo.wd5.myworkdayjobs.com" },
88
+ { name: "F5 Networks", tenant: "f5", site: "F5_Careers", host: "f5.wd5.myworkdayjobs.com" },
89
+ { name: "NXP", tenant: "nxp", site: "careers", host: "nxp.wd3.myworkdayjobs.com" },
90
+ { name: "Micron", tenant: "micron", site: "Micron_External_Careers", host: "micron.wd1.myworkdayjobs.com" },
91
+ { name: "Applied Materials", tenant: "appliedmaterials", site: "AppliedExternalCareerSite", host: "appliedmaterials.wd5.myworkdayjobs.com" },
92
+ ];
93
+ export const SMARTRECRUITERS_DIRECTORY = [
94
+ { name: "Visa", slug: "visa" },
95
+ { name: "IKEA", slug: "ikea" },
96
+ { name: "Bosch", slug: "bosch" },
97
+ { name: "Equinix", slug: "equinix" },
98
+ ];
99
+ export const SLUG_DISPLAY_NAMES = {
100
+ datadoghq: "Datadog", "scale-ai": "Scale AI", scaleai: "Scale AI",
101
+ dbtlabs: "dbt Labs", huggingface: "Hugging Face",
102
+ cockroachdb: "CockroachDB", launchdarkly: "LaunchDarkly",
103
+ logrocket: "LogRocket", fullstory: "FullStory",
104
+ moderntreasury: "Modern Treasury", "clipboard-health": "Clipboard Health",
105
+ pagerduty: "PagerDuty", workos: "WorkOS", airbyte: "Airbyte",
106
+ chainguard: "Chainguard", fivetran: "Fivetran", hightouch: "Hightouch",
107
+ posthog: "PostHog", supabase: "Supabase", pinecone: "Pinecone",
108
+ safebase: "SafeBase", valtown: "Val Town", langchain: "LangChain",
109
+ copilot: "Copilot", perplexity: "Perplexity", replicate: "Replicate",
110
+ anysphere: "Cursor", midjourney: "Midjourney", fly: "Fly.io",
111
+ clerk: "Clerk", resend: "Resend", warp: "Warp", modal: "Modal",
112
+ };
113
+ // Mutable in-memory cache of the company directories + API templates. Seeded from
114
+ // the static lists above and refreshed (up to every 12h) from the remote registry.
115
+ export const globalState = {
116
+ lastRegistryFetchTime: 0,
117
+ cachedGreenhouseSlugs: [...GREENHOUSE_SLUGS],
118
+ cachedLeverSlugs: [...LEVER_SLUGS],
119
+ cachedAshbySlugs: [...ASHBY_SLUGS],
120
+ cachedWorkdayDirectory: [...WORKDAY_DIRECTORY],
121
+ cachedSmartRecruitersDirectory: [...SMARTRECRUITERS_DIRECTORY],
122
+ templates: {
123
+ workdaySearch: "https://{tenant}.myworkdayjobs.com/wday/cxs/{tenant}/{site}/jobs",
124
+ workdayDetails: "https://{tenant}.myworkdayjobs.com/wday/cxs/{tenant}/{site}/job/{jobId}",
125
+ smartrecruitersPostings: "https://api.smartrecruiters.com/v1/companies/{slug}/postings",
126
+ smartrecruitersDetails: "https://api.smartrecruiters.com/v1/companies/{slug}/postings/{id}",
127
+ },
128
+ };
129
+ /** Append a short telemetry line to the store's log (capped). Logs also go to stderr. */
130
+ export function addRefinerLog(msg) {
131
+ console.error("[Sourcing]", msg);
132
+ const db = readDb();
133
+ db.logs.push(`${new Date().toISOString()} ${msg}`);
134
+ if (db.logs.length > 200)
135
+ db.logs = db.logs.slice(-200);
136
+ writeDb(db);
137
+ }
138
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../config.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE1C,4FAA4F;AAC5F,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,WAAW,EAAE,IAAI,EAAE,oBAAoB;IAClF,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB;IACxE,iBAAiB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB;IACzE,sBAAsB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,cAAc;IAC5E,gBAAgB,EAAE,qBAAqB,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY;IAC7E,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc;IAC7E,SAAS,EAA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EF,yFAAyF;AACzF,MAAM,UAAU,aAAa,CAAC,GAAW;IACvC,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;IACjC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;IACpB,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;IACnD,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,GAAG;QAAE,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC;IACxD,OAAO,CAAC,EAAE,CAAC,CAAC;AACd,CAAC"}
package/dist/db.js ADDED
@@ -0,0 +1,113 @@
1
+ /**
2
+ * Single-file JSON store, ported from the original job-search-agent (server/db.ts).
3
+ *
4
+ * Changes for the MCP App:
5
+ * - Per-user storage path (never writes into node_modules): installed -> ~/.job-search-mcp/jobs.json;
6
+ * running from source (tsx) -> ./data/jobs.json; JOB_SEARCH_MCP_DATA overrides. Mirrors Memora.
7
+ * - Dropped llmConfig (no external LLM) and watchlist (triage is scanned/saved/dismissed).
8
+ * - Atomic writes (tmp + rename).
9
+ *
10
+ * All logging goes to stderr; stdout is reserved for the stdio JSON-RPC stream.
11
+ */
12
+ import fs from "node:fs";
13
+ import os from "node:os";
14
+ import path from "node:path";
15
+ // Resolve the store path whether running from source (tsx, .ts) or compiled (dist/db.js).
16
+ const fromSource = import.meta.filename.endsWith(".ts");
17
+ const PROJECT_ROOT = fromSource ? import.meta.dirname : path.join(import.meta.dirname, "..");
18
+ export const DB_PATH = process.env.JOB_SEARCH_MCP_DATA
19
+ ? path.resolve(process.env.JOB_SEARCH_MCP_DATA)
20
+ : fromSource
21
+ ? path.join(PROJECT_ROOT, "data", "jobs.json")
22
+ : path.join(os.homedir(), ".job-search-mcp", "jobs.json");
23
+ function emptyDb() {
24
+ return {
25
+ scannedJobs: [],
26
+ savedJobs: [],
27
+ dismissedJobs: [],
28
+ profile: null,
29
+ logs: [],
30
+ stats: { totalScanned: 0, duplicatesPrevented: 0, evaluations: 0, totalSourced: 0 },
31
+ workdayDirectory: [],
32
+ pendingWorkdayValidation: [],
33
+ seen: {},
34
+ };
35
+ }
36
+ const cleanStr = (s) => s.toLowerCase().trim();
37
+ /**
38
+ * In-place hygiene on scannedJobs: drop ones already saved/dismissed, drop blocked
39
+ * companies, and enforce the per-company match cap. Returns true if it changed anything.
40
+ */
41
+ export function cleanDbScannedJobs(db) {
42
+ const originalLength = db.scannedJobs.length;
43
+ const companyCounts = new Map();
44
+ const maxPerCompany = db.profile?.maxMatchesPerCompany || 3;
45
+ const limitCompany = db.profile?.limitCompanyMatches !== false;
46
+ const blockedSet = new Set((db.profile?.blockedCompanies || []).map(cleanStr));
47
+ db.scannedJobs = db.scannedJobs.filter((job) => {
48
+ const titleL = cleanStr(job.title);
49
+ const companyL = cleanStr(job.company);
50
+ const isSaved = db.savedJobs.some((s) => cleanStr(s.title) === titleL && cleanStr(s.company) === companyL);
51
+ const isDismissed = db.dismissedJobs.some((d) => cleanStr(d.title) === titleL && cleanStr(d.company) === companyL);
52
+ if (isSaved || isDismissed)
53
+ return false;
54
+ if (blockedSet.has(companyL))
55
+ return false;
56
+ if (limitCompany) {
57
+ const currentCount = companyCounts.get(companyL) || 0;
58
+ if (currentCount >= maxPerCompany)
59
+ return false;
60
+ companyCounts.set(companyL, currentCount + 1);
61
+ }
62
+ return true;
63
+ });
64
+ return db.scannedJobs.length !== originalLength;
65
+ }
66
+ /** Coerce a parsed JSON object into a well-formed DatabaseSchema (tolerant of old/missing fields). */
67
+ function coerce(parsed) {
68
+ const base = emptyDb();
69
+ const stats = parsed.stats || {};
70
+ return {
71
+ scannedJobs: parsed.scannedJobs || [],
72
+ savedJobs: parsed.savedJobs || [],
73
+ dismissedJobs: parsed.dismissedJobs || [],
74
+ profile: parsed.profile || null,
75
+ logs: parsed.logs || [],
76
+ stats: {
77
+ totalScanned: typeof stats.totalScanned === "number" ? stats.totalScanned : 0,
78
+ duplicatesPrevented: typeof stats.duplicatesPrevented === "number" ? stats.duplicatesPrevented : 0,
79
+ evaluations: typeof stats.evaluations === "number" ? stats.evaluations : 0,
80
+ totalSourced: typeof stats.totalSourced === "number" ? stats.totalSourced : 0,
81
+ },
82
+ workdayDirectory: parsed.workdayDirectory || base.workdayDirectory,
83
+ pendingWorkdayValidation: parsed.pendingWorkdayValidation || base.pendingWorkdayValidation,
84
+ seen: parsed.seen || {},
85
+ };
86
+ }
87
+ export function readDb() {
88
+ try {
89
+ if (fs.existsSync(DB_PATH)) {
90
+ const db = coerce(JSON.parse(fs.readFileSync(DB_PATH, "utf-8")));
91
+ if (cleanDbScannedJobs(db))
92
+ writeDb(db);
93
+ return db;
94
+ }
95
+ }
96
+ catch (err) {
97
+ console.error("[DB] Error reading database file:", err);
98
+ }
99
+ return emptyDb();
100
+ }
101
+ export function writeDb(db) {
102
+ try {
103
+ cleanDbScannedJobs(db);
104
+ fs.mkdirSync(path.dirname(DB_PATH), { recursive: true });
105
+ const tmp = DB_PATH + ".tmp";
106
+ fs.writeFileSync(tmp, JSON.stringify(db, null, 2), "utf-8");
107
+ fs.renameSync(tmp, DB_PATH); // atomic, safe for concurrent reads
108
+ }
109
+ catch (err) {
110
+ console.error("[DB] Error writing database file:", err);
111
+ }
112
+ }
113
+ //# sourceMappingURL=db.js.map
package/dist/db.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db.js","sourceRoot":"","sources":["../db.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,0FAA0F;AAC1F,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACxD,MAAM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AACJ,CAAC;AAED,MAAM,UAAU,MAAM;IACpB,IAAI,CAAC;QACH,IAAI,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;YAC3B,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;YACjE,IAAI,kBAAkB,CAAC,EAAE,CAAC;gBAAE,OAAO,CAAC,EAAE,CAAC,CAAC;YACxC,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,mCAAmC,EAAE,GAAG,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,OAAO,EAAE,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,EAAkB;IACxC,IAAI,CAAC;QACH,kBAAkB,CAAC,EAAE,CAAC,CAAC;QACvB,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACzD,MAAM,GAAG,GAAG,OAAO,GAAG,MAAM,CAAC;QAC7B,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;QAC5D,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,oCAAoC;IACnE,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,mCAAmC,EAAE,GAAG,CAAC,CAAC;IAC1D,CAAC;AACH,CAAC"}
package/dist/main.js ADDED
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Entry point for the job-search MCP server.
4
+ *
5
+ * Claude Desktop launches this over stdio: node dist/main.js
6
+ * (dev: tsx main.ts). stdio is the only transport — there is no HTTP/web layer.
7
+ *
8
+ * IMPORTANT: never write to stdout except via the transport; stdout carries the
9
+ * JSON-RPC stream. All diagnostics go to stderr (console.error).
10
+ */
11
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
12
+ import { createServer } from "./server.js";
13
+ async function main() {
14
+ await createServer().connect(new StdioServerTransport());
15
+ }
16
+ main().catch((e) => {
17
+ console.error(e);
18
+ process.exit(1);
19
+ });
20
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../main.ts"],"names":[],"mappings":";AACA;;;;;;;;GAQG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,KAAK,UAAU,IAAI;IACjB,MAAM,YAAY,EAAE,CAAC,OAAO,CAAC,IAAI,oBAAoB,EAAE,CAAC,CAAC;AAC3D,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACjB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}