@sargonpiraev/hh-mcp-server 1.13.0 → 1.14.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/build/index.js +11 -11
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -329,7 +329,7 @@ function handleError(error) {
|
|
|
329
329
|
console.error(error);
|
|
330
330
|
logger.error('Error occurred:', JSON.stringify(error));
|
|
331
331
|
if (axios.isAxiosError(error)) {
|
|
332
|
-
const message = error.response?.data?.
|
|
332
|
+
const message = error.response?.data?.message || error.message;
|
|
333
333
|
return {
|
|
334
334
|
isError: true,
|
|
335
335
|
content: [{ type: 'text', text: `API Error: ${message}` }],
|
|
@@ -340,7 +340,7 @@ function handleError(error) {
|
|
|
340
340
|
content: [{ type: 'text', text: `Error: ${error}` }],
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
mcpServer.tool('
|
|
343
|
+
mcpServer.tool('confirm-phone-in-resume', `Verify phone with a code`, {}, async (args) => {
|
|
344
344
|
try {
|
|
345
345
|
const response = await apiClient.post('/resume_phone_confirm', args);
|
|
346
346
|
return handleResult(response.data);
|
|
@@ -349,7 +349,7 @@ mcpServer.tool('post-resume-phone-confirm', `Verify phone with a code`, {}, asyn
|
|
|
349
349
|
return handleError(error);
|
|
350
350
|
}
|
|
351
351
|
});
|
|
352
|
-
mcpServer.tool('get-
|
|
352
|
+
mcpServer.tool('get-manager-settings', `Manager preferences`, {
|
|
353
353
|
employer_id: z.string(),
|
|
354
354
|
manager_id: z.string(),
|
|
355
355
|
}, async (args) => {
|
|
@@ -365,7 +365,7 @@ mcpServer.tool('get-employers-managers-settings', `Manager preferences`, {
|
|
|
365
365
|
return handleError(error);
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
|
-
mcpServer.tool('get-
|
|
368
|
+
mcpServer.tool('get-employer-manager-limits', `Daily limit of resume views for current manager`, {
|
|
369
369
|
employer_id: z.string(),
|
|
370
370
|
manager_id: z.string(),
|
|
371
371
|
}, async (args) => {
|
|
@@ -381,7 +381,7 @@ mcpServer.tool('get-employers-managers-limits-resume', `Daily limit of resume vi
|
|
|
381
381
|
return handleError(error);
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
|
-
mcpServer.tool('get-
|
|
384
|
+
mcpServer.tool('get-employer-addresses', `Directory of employer's addresses`, {
|
|
385
385
|
employer_id: z.string(),
|
|
386
386
|
changed_after: z.string().optional(),
|
|
387
387
|
manager_id: z.string().optional(),
|
|
@@ -401,7 +401,7 @@ mcpServer.tool('get-employers-addresses', `Directory of employer's addresse
|
|
|
401
401
|
return handleError(error);
|
|
402
402
|
}
|
|
403
403
|
});
|
|
404
|
-
mcpServer.tool('get-
|
|
404
|
+
mcpServer.tool('get-employer-managers', `Directory of employer's managers`, {
|
|
405
405
|
employer_id: z.string(),
|
|
406
406
|
page: z.string().optional(),
|
|
407
407
|
per_page: z.string().optional(),
|
|
@@ -419,7 +419,7 @@ mcpServer.tool('get-employers-managers', `Directory of employer's managers`
|
|
|
419
419
|
return handleError(error);
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
|
-
mcpServer.tool('
|
|
422
|
+
mcpServer.tool('add-employer-manager', `Adding a manager`, {
|
|
423
423
|
employer_id: z.string(),
|
|
424
424
|
}, async (args) => {
|
|
425
425
|
try {
|
|
@@ -432,7 +432,7 @@ mcpServer.tool('post-employers-managers', `Adding a manager`, {
|
|
|
432
432
|
return handleError(error);
|
|
433
433
|
}
|
|
434
434
|
});
|
|
435
|
-
mcpServer.tool('get-
|
|
435
|
+
mcpServer.tool('get-employer-manager-types', `Directory of manager types and privileges`, {
|
|
436
436
|
employer_id: z.string(),
|
|
437
437
|
}, async (args) => {
|
|
438
438
|
try {
|
|
@@ -447,7 +447,7 @@ mcpServer.tool('get-employers-manager-types', `Directory of manager types and pr
|
|
|
447
447
|
return handleError(error);
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
|
-
mcpServer.tool('get-manager-accounts
|
|
450
|
+
mcpServer.tool('get-manager-accounts', `Manager's work accounts`, {}, async (args) => {
|
|
451
451
|
try {
|
|
452
452
|
const response = await apiClient.get('/manager_accounts/mine', {
|
|
453
453
|
params: args,
|
|
@@ -458,7 +458,7 @@ mcpServer.tool('get-manager-accounts-mine', `Manager's work accounts`, {},
|
|
|
458
458
|
return handleError(error);
|
|
459
459
|
}
|
|
460
460
|
});
|
|
461
|
-
mcpServer.tool('get-
|
|
461
|
+
mcpServer.tool('get-applicant-phone-info', `Get information about the applicant's phone number`, {
|
|
462
462
|
phone: z.string(),
|
|
463
463
|
}, async (args) => {
|
|
464
464
|
try {
|
|
@@ -471,7 +471,7 @@ mcpServer.tool('get-resume-should-send-sms', `Get information about the applican
|
|
|
471
471
|
return handleError(error);
|
|
472
472
|
}
|
|
473
473
|
});
|
|
474
|
-
mcpServer.tool('get-
|
|
474
|
+
mcpServer.tool('get-address', `Get address by ID`, {
|
|
475
475
|
employer_id: z.string(),
|
|
476
476
|
address_id: z.string(),
|
|
477
477
|
with_manager: z.string().optional(),
|