@consilium108/mcp-module-job-finder 1.0.1 → 1.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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/groups/jobs.js +31 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.0 — 2026-11-29
|
|
4
|
+
|
|
5
|
+
<!-- generated by Claude (Opus 5.5), 2026-11-29; Konsilium SDD-CONSILIUM-284 Task 1.1 (TASK-CONSILIUM-1221, #F146 / #F145) — not published -->
|
|
6
|
+
|
|
7
|
+
- **`create_application`** (account right `me:jobs:write`): add an application by hand — company and role, the link makes
|
|
8
|
+
it idempotent. A status after sending (Applied, Responded, Interview, Offer, Hired) needs `confirmed_sent: true`
|
|
9
|
+
(the server answers `needs_confirmation` otherwise). Never contacts the employer. Calls `POST /api/me/tool/create_application`
|
|
10
|
+
(Konsilium server with SDD-CONSILIUM-284 1.1; an older server answers 404).
|
|
11
|
+
- **`for_user_id`** on `list_applications`, `create_application`, `update_application`: the search of a person you may work
|
|
12
|
+
for (a search profile you run for them, or access they gave you); the server checks it like `?for=` of the app and
|
|
13
|
+
answers `no_access_to_person` otherwise. `list_applications` also returns `acting_for` and `people`.
|
|
14
|
+
|
|
3
15
|
## 1.0.1 — 2026-11-26
|
|
4
16
|
|
|
5
17
|
<!-- Release prep by Claude (Opus 5.5), 2026-11-25 (SDD-P36-8) -->
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
сервер проверяет модуль на каждом вызове (MCP, REST/GraphQL по ключу, события) — ошибка `module_disabled`.
|
|
14
14
|
Права (scopes) не меняются: доступ = модуль включён И право есть.
|
|
15
15
|
|
|
16
|
-
Инструменты сервера: `list_job_sources`, `search_jobs`, `score_job`, `draft_cover_letter`, `list_applications`, `update_application`.
|
|
16
|
+
Инструменты сервера: `list_job_sources`, `search_jobs`, `score_job`, `draft_cover_letter`, `list_applications`, `create_application` (с 1.1.0), `update_application`. С 1.1.0 инструменты откликов принимают `for_user_id` — поиск человека, за которого можно работать (сервер проверяет, как `?for=` приложения).
|
|
17
17
|
|
|
18
18
|
Локальные инструменты (только локальный runtime; код пока в ядре): —.
|
|
19
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@consilium108/mcp-module-job-finder",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Job Finder module of the Konsilium MCP (#442): Job sources, vacancy search and scoring, cover letters, applications (your private search profile stays hidden). Loaded by the host @consilium108/mcp; enabled or disabled per connection by the person.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "NativeMind",
|
package/src/groups/jobs.js
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
// handlers use only the host helpers `h` (texts, REST with the caller's credential, forms) — never credentials.
|
|
4
4
|
|
|
5
5
|
/** Tools of `JOB_TOOLS` (the in-process registration order). */
|
|
6
|
-
|
|
6
|
+
// 1.1.0 (SDD-CONSILIUM-284 Task 1.1, generated by Claude (Opus 5.5), 2026-11-29): + create_application; for_user_id on the
|
|
7
|
+
// application tools (the server checks whose search it is, the same as `?for=` of the app)
|
|
8
|
+
export const JOB_TOOLS = ['list_job_sources', 'search_jobs', 'score_job', 'draft_cover_letter', 'list_applications', 'create_application', 'update_application'];
|
|
7
9
|
|
|
8
10
|
const JOB_STATUSES = ['Queued', 'Evaluated', 'Applied', 'Responded', 'Interview', 'Offer', 'Rejected', 'Discarded', 'SKIP', 'Hired'];
|
|
9
11
|
|
|
@@ -78,24 +80,46 @@ export function registerJobTools(server, h) {
|
|
|
78
80
|
},
|
|
79
81
|
safe(async ({ posting_id, lang, tone }, ctx) => text(await call(ctx, 'POST', '/api/me/tool/draft_cover_letter', { posting_id, lang, tone }))),
|
|
80
82
|
);
|
|
83
|
+
const forUser = z.number().int().positive().optional().describe('Whose search: a person you may work for (people in list_applications). Omit for your own.');
|
|
81
84
|
server.registerTool(
|
|
82
85
|
'list_applications',
|
|
83
86
|
{
|
|
84
87
|
title: 'My job applications (Job Copilot pipeline)',
|
|
85
|
-
description: `The person's applications with status (${JOB_STATUSES.join(', ')}), score, notes and counts per status. Filter by status or text.`,
|
|
86
|
-
inputSchema: { status: z.enum(JOB_STATUSES).optional(), q: z.string().max(100).optional(), limit: z.number().int().min(1).max(200).optional() },
|
|
88
|
+
description: `The person's applications with status (${JOB_STATUSES.join(', ')}), score, notes and counts per status. Filter by status or text. for_user_id: the search of a person you may work for (a search profile you run for them, or access they gave you) — the answer lists them in people.`,
|
|
89
|
+
inputSchema: { status: z.enum(JOB_STATUSES).optional(), q: z.string().max(100).optional(), limit: z.number().int().min(1).max(200).optional(), for_user_id: forUser },
|
|
87
90
|
annotations: { readOnlyHint: true, openWorldHint: false },
|
|
88
91
|
},
|
|
89
|
-
safe(async ({ status, q, limit }, ctx) => text(await call(ctx, 'GET', '/api/me/tool/list_applications', { status, q, limit }))),
|
|
92
|
+
safe(async ({ status, q, limit, for_user_id }, ctx) => text(await call(ctx, 'GET', '/api/me/tool/list_applications', { status, q, limit, for_user_id }))),
|
|
93
|
+
);
|
|
94
|
+
server.registerTool(
|
|
95
|
+
'create_application',
|
|
96
|
+
{
|
|
97
|
+
title: 'Add a job application',
|
|
98
|
+
description:
|
|
99
|
+
'Add an application to the person\'s pipeline by hand (company and role; the link makes it idempotent — the same link returns the existing one). Status Queued by default. A status after sending (Applied, Responded, Interview, Offer, Hired) needs confirmed_sent: true — pass it only when the person confirmed they sent it; never guess. It never contacts the employer and never applies.',
|
|
100
|
+
inputSchema: {
|
|
101
|
+
company: z.string().min(1).max(200),
|
|
102
|
+
role: z.string().min(1).max(300),
|
|
103
|
+
url: z.string().max(2000).optional(),
|
|
104
|
+
site: z.string().max(40).optional().describe('Where: linkedin, hh, upwork, a company site…'),
|
|
105
|
+
status: z.enum(JOB_STATUSES).optional(),
|
|
106
|
+
notes: z.string().max(2000).optional(),
|
|
107
|
+
applied_at: z.string().max(10).optional().describe('YYYY-MM-DD, when it was sent (with confirmed_sent).'),
|
|
108
|
+
confirmed_sent: z.boolean().optional().describe('true only when the person confirmed the application was sent.'),
|
|
109
|
+
for_user_id: forUser,
|
|
110
|
+
},
|
|
111
|
+
annotations: { readOnlyHint: false, openWorldHint: false },
|
|
112
|
+
},
|
|
113
|
+
safe(async ({ company, role, url, site, status, notes, applied_at, confirmed_sent, for_user_id }, ctx) => text(await call(ctx, 'POST', '/api/me/tool/create_application', { company, role, url, site, status, notes, applied_at, confirmed_sent, for_user_id }))),
|
|
90
114
|
);
|
|
91
115
|
server.registerTool(
|
|
92
116
|
'update_application',
|
|
93
117
|
{
|
|
94
118
|
title: 'Update a job application',
|
|
95
|
-
description: 'Change the status and / or notes of one of the person\'s applications (id from list_applications). Use it when the person tells you what happened (applied, got a reply, interview, offer, rejection). It never contacts the employer.',
|
|
96
|
-
inputSchema: { id: z.number().int(), status: z.enum(JOB_STATUSES).optional(), notes: z.string().max(2000).optional() },
|
|
119
|
+
description: 'Change the status and / or notes of one of the person\'s applications (id from list_applications). Use it when the person tells you what happened (applied, got a reply, interview, offer, rejection). It never contacts the employer. for_user_id: as in list_applications.',
|
|
120
|
+
inputSchema: { id: z.number().int(), status: z.enum(JOB_STATUSES).optional(), notes: z.string().max(2000).optional(), for_user_id: forUser },
|
|
97
121
|
annotations: { readOnlyHint: false, openWorldHint: false },
|
|
98
122
|
},
|
|
99
|
-
safe(async ({ id, status, notes }, ctx) => text(await call(ctx, 'POST', '/api/me/tool/update_application', { id, status, notes }))),
|
|
123
|
+
safe(async ({ id, status, notes, for_user_id }, ctx) => text(await call(ctx, 'POST', '/api/me/tool/update_application', { id, status, notes, for_user_id }))),
|
|
100
124
|
);
|
|
101
125
|
}
|