@linkedapi/mcp 2.3.17 → 2.3.18
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/linked-api-tools.d.ts.map +1 -1
- package/dist/linked-api-tools.js +4 -0
- package/dist/linked-api-tools.js.map +1 -1
- package/dist/tools/admin-delete-limits.js +2 -2
- package/dist/tools/admin-delete-limits.js.map +1 -1
- package/dist/tools/admin-set-limits.js +1 -1
- package/dist/tools/admin-set-limits.js.map +1 -1
- package/dist/tools/endorse-person-skill.d.ts +14 -0
- package/dist/tools/endorse-person-skill.d.ts.map +1 -0
- package/dist/tools/endorse-person-skill.js +38 -0
- package/dist/tools/endorse-person-skill.js.map +1 -0
- package/dist/tools/endorse-person-skills.d.ts +14 -0
- package/dist/tools/endorse-person-skills.d.ts.map +1 -0
- package/dist/tools/endorse-person-skills.js +43 -0
- package/dist/tools/endorse-person-skills.js.map +1 -0
- package/dist/tools/get-workflow-result.d.ts +2 -0
- package/dist/tools/get-workflow-result.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/linked-api-tools.ts +4 -0
- package/src/tools/admin-delete-limits.ts +2 -2
- package/src/tools/admin-set-limits.ts +1 -1
- package/src/tools/endorse-person-skill.ts +39 -0
- package/src/tools/endorse-person-skills.ts +51 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linked-api-tools.d.ts","sourceRoot":"","sources":["../src/linked-api-tools.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"linked-api-tools.d.ts","sourceRoot":"","sources":["../src/linked-api-tools.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAsE1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,UAAU,wBAAwB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,OAAO,IAAI,IAAI,CAAC;IAChB,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC;IACjC,OAAO,CAAC,OAAO,EAAE;QACf,SAAS,EAAE,SAAS,CAAC;QACrB,IAAI,EAAE,KAAK,CAAC;QACZ,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,UAAU,CAAC;KACxB,GAAG,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAC;CAC5C;AAED,qBAAa,cAAc;IACzB,SAAgB,KAAK,EAAE,aAAa,CAAC,wBAAwB,CAAC,CAAC;IAC/D,SAAgB,UAAU,EAAE,aAAa,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACvE,SAAgB,WAAW,EAAE,aAAa,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;IAkFlE,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,wBAAwB,GAAG,SAAS;IAI9D,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,SAAS;IAItE,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,SAAS;CAGhF"}
|
package/dist/linked-api-tools.js
CHANGED
|
@@ -23,6 +23,8 @@ const check_connection_status_js_1 = require("./tools/check-connection-status.js
|
|
|
23
23
|
const comment_on_post_js_1 = require("./tools/comment-on-post.js");
|
|
24
24
|
const create_post_js_1 = require("./tools/create-post.js");
|
|
25
25
|
const create_repost_js_1 = require("./tools/create-repost.js");
|
|
26
|
+
const endorse_person_skill_js_1 = require("./tools/endorse-person-skill.js");
|
|
27
|
+
const endorse_person_skills_js_1 = require("./tools/endorse-person-skills.js");
|
|
26
28
|
const execute_custom_workflow_js_1 = require("./tools/execute-custom-workflow.js");
|
|
27
29
|
const fetch_company_js_1 = require("./tools/fetch-company.js");
|
|
28
30
|
const fetch_job_js_1 = require("./tools/fetch-job.js");
|
|
@@ -97,6 +99,8 @@ class LinkedApiTools {
|
|
|
97
99
|
new search_posts_js_1.SearchPostsTool(),
|
|
98
100
|
new fetch_company_js_1.FetchCompanyTool(),
|
|
99
101
|
new fetch_person_js_1.FetchPersonTool(),
|
|
102
|
+
new endorse_person_skill_js_1.EndorsePersonSkillTool(),
|
|
103
|
+
new endorse_person_skills_js_1.EndorsePersonSkillsTool(),
|
|
100
104
|
new fetch_post_js_1.FetchPostTool(),
|
|
101
105
|
new fetch_job_js_1.FetchJobTool(),
|
|
102
106
|
new react_to_post_js_1.ReactToPostTool(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linked-api-tools.js","sourceRoot":"","sources":["../src/linked-api-tools.ts"],"names":[],"mappings":";;;AAGA,uEAAoE;AACpE,mGAA8F;AAC9F,+EAA2E;AAC3E,uGAAkG;AAClG,2EAAuE;AACvE,qFAAiF;AACjF,yEAAqE;AACrE,6FAAwF;AACxF,uFAAkF;AAClF,iFAA4E;AAC5E,qEAAiE;AACjE,mEAA+D;AAC/D,+FAA0F;AAC1F,iFAA6E;AAC7E,yFAAoF;AACpF,yEAAqE;AACrE,qEAAiE;AACjE,mEAA+D;AAC/D,mFAA+E;AAC/E,mEAA+D;AAC/D,2DAAwD;AACxD,+DAA4D;AAC5D,mFAA+E;AAC/E,+DAA4D;AAC5D,uDAAoD;AACpD,6DAA0D;AAC1D,yDAAsD;AACtD,2EAAiE;AACjE,+DAA4D;AAC5D,qEAAkE;AAClE,uDAAoD;AACpD,2DAAwD;AACxD,2EAAuE;A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C9C,CAAC;IAEM,UAAU,CAAC,IAAY;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;IACvD,CAAC;IAEM,eAAe,CAAC,IAAY;QACjC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;IAC5D,CAAC;IAEM,gBAAgB,CAAC,IAAY;QAClC,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;IAC7D,CAAC;CACF;AAhGD,wCAgGC"}
|
|
@@ -21,7 +21,7 @@ class AdminDeleteLimitsTool extends admin_tool_js_1.AdminTool {
|
|
|
21
21
|
getTool() {
|
|
22
22
|
return {
|
|
23
23
|
name: this.name,
|
|
24
|
-
description: 'Delete specific rate limits for an account.
|
|
24
|
+
description: 'Delete specific rate limits for an account. Each removed category/period has no limit until set again. Use admin_reset_limits to restore all default limits for the account.',
|
|
25
25
|
inputSchema: {
|
|
26
26
|
type: 'object',
|
|
27
27
|
properties: {
|
|
@@ -37,7 +37,7 @@ class AdminDeleteLimitsTool extends admin_tool_js_1.AdminTool {
|
|
|
37
37
|
properties: {
|
|
38
38
|
category: {
|
|
39
39
|
type: 'string',
|
|
40
|
-
description: 'Limit category',
|
|
40
|
+
description: 'Limit category, e.g. stEndorsements',
|
|
41
41
|
},
|
|
42
42
|
period: {
|
|
43
43
|
type: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-delete-limits.js","sourceRoot":"","sources":["../../src/tools/admin-delete-limits.ts"],"names":[],"mappings":";;;;;;AAEA,8CAAoB;AAEpB,0DAAmD;AAEnD,MAAa,qBAAsB,SAAQ,yBAAoC;IAC7D,IA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;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EACT,8KAA8K;YAChL,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,cAAc;qBAC5B;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,OAAO;wBACb,WAAW,EAAE,+BAA+B;wBAC5C,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;4BACd,UAAU,EAAE;gCACV,QAAQ,EAAE;oCACR,IAAI,EAAE,QAAQ;oCACd,WAAW,EAAE,qCAAqC;iCACnD;gCACD,MAAM,EAAE;oCACN,IAAI,EAAE,QAAQ;oCACd,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC;oCACpC,WAAW,EAAE,cAAc;iCAC5B;6BACF;4BACD,QAAQ,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;yBACjC;qBACF;iBACF;gBACD,QAAQ,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC;aAClC;SACF,CAAC;IACJ,CAAC;CACF;AA1DD,sDA0DC"}
|
|
@@ -23,7 +23,7 @@ class AdminSetLimitsTool extends admin_tool_js_1.AdminTool {
|
|
|
23
23
|
getTool() {
|
|
24
24
|
return {
|
|
25
25
|
name: this.name,
|
|
26
|
-
description: 'Set rate limits for an account. Only specified limits are created or updated; other limits remain unchanged. Categories: stPersonProfileViews, stCompanyPageViews, stConnectionRequests, stMessages, stSearchQueries, stReactions, stComments, stPosts, nvPersonProfileViews, nvCompanyPageViews, nvMessages.',
|
|
26
|
+
description: 'Set rate limits for an account. Only specified limits are created or updated; other limits remain unchanged. Categories: stPersonProfileViews, stCompanyPageViews, stConnectionRequests, stMessages, stSearchQueries, stReactions, stComments, stPosts, stEndorsements, nvPersonProfileViews, nvCompanyPageViews, nvMessages.',
|
|
27
27
|
inputSchema: {
|
|
28
28
|
type: 'object',
|
|
29
29
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-set-limits.js","sourceRoot":"","sources":["../../src/tools/admin-set-limits.ts"],"names":[],"mappings":";;;;;;AAEA,8CAAoB;AAEpB,0DAAmD;AAEnD,MAAa,kBAAmB,SAAQ,yBAAiC;IACvD,IAAI,GAAG,kBAAkB,CAAC;IACvB,MAAM,GAAG,aAAC,CAAC,MAAM,CAAC;QACnC,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;QACrB,MAAM,EAAE,aAAC,CAAC,KAAK,CACb,aAAC,CAAC,MAAM,CAAC;YACP,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;YACpB,MAAM,EAAE,aAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;YAC9C,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACjC,SAAS,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;SAClC,CAAC,CACH;KACF,CAAC,CAAC;IAEa,KAAK,CAAC,OAAO,CAAC,EAC5B,KAAK,EACL,IAAI,GAIL;QACC,MAAM,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAEe,OAAO;QACrB,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EACT,+
|
|
1
|
+
{"version":3,"file":"admin-set-limits.js","sourceRoot":"","sources":["../../src/tools/admin-set-limits.ts"],"names":[],"mappings":";;;;;;AAEA,8CAAoB;AAEpB,0DAAmD;AAEnD,MAAa,kBAAmB,SAAQ,yBAAiC;IACvD,IAAI,GAAG,kBAAkB,CAAC;IACvB,MAAM,GAAG,aAAC,CAAC,MAAM,CAAC;QACnC,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;QACrB,MAAM,EAAE,aAAC,CAAC,KAAK,CACb,aAAC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AAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC;yBAC7C;qBACF;iBACF;gBACD,QAAQ,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC;aAClC;SACF,CAAC;IACJ,CAAC;CACF;AApED,gDAoEC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TEndorsePersonSkillParams } from '@linkedapi/node';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { OperationTool } from '../utils/linked-api-tool.js';
|
|
5
|
+
export declare class EndorsePersonSkillTool extends OperationTool<TEndorsePersonSkillParams, void> {
|
|
6
|
+
readonly name = "endorse_person_skill";
|
|
7
|
+
readonly operationName: "endorsePersonSkill";
|
|
8
|
+
protected readonly schema: z.ZodObject<{
|
|
9
|
+
personUrl: z.ZodString;
|
|
10
|
+
skillName: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
getTool(): Tool;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=endorse-person-skill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endorse-person-skill.d.ts","sourceRoot":"","sources":["../../src/tools/endorse-person-skill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,qBAAa,sBAAuB,SAAQ,aAAa,CAAC,yBAAyB,EAAE,IAAI,CAAC;IACxF,SAAyB,IAAI,0BAA0B;IACvD,SAAyB,aAAa,uBAAqC;IAC3E,mBAA4B,MAAM;;;sBAG/B;IAEa,OAAO,IAAI,IAAI;CAwBhC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EndorsePersonSkillTool = void 0;
|
|
4
|
+
const node_1 = require("@linkedapi/node");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const linked_api_tool_js_1 = require("../utils/linked-api-tool.js");
|
|
7
|
+
class EndorsePersonSkillTool extends linked_api_tool_js_1.OperationTool {
|
|
8
|
+
name = 'endorse_person_skill';
|
|
9
|
+
operationName = node_1.OPERATION_NAME.endorsePersonSkill;
|
|
10
|
+
schema = zod_1.z.object({
|
|
11
|
+
personUrl: zod_1.z.string(),
|
|
12
|
+
skillName: zod_1.z.string().min(1).max(200),
|
|
13
|
+
});
|
|
14
|
+
getTool() {
|
|
15
|
+
return {
|
|
16
|
+
name: this.name,
|
|
17
|
+
description: "Endorses one skill by name on a 1st-degree connection's profile. Skill names are in the profile owner's language, regardless of your LinkedIn language. An already-endorsed skill counts as success and is never removed. Every success, including an existing endorsement, counts toward the stEndorsements limit. Use endorse_person_skills to select skills with patterns or endorse all skills. If this workflow is still running, do not retry this tool; retrying can count the same skill toward the stEndorsements limit again.",
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
personUrl: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'Public or hashed LinkedIn URL of your 1st-degree connection.',
|
|
24
|
+
},
|
|
25
|
+
skillName: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
minLength: 1,
|
|
28
|
+
maxLength: 200,
|
|
29
|
+
description: "Exact skill name in the profile owner's language, up to 200 characters. Letter case and extra spaces are ignored. This is not a pattern.",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
required: ['personUrl', 'skillName'],
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.EndorsePersonSkillTool = EndorsePersonSkillTool;
|
|
38
|
+
//# sourceMappingURL=endorse-person-skill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endorse-person-skill.js","sourceRoot":"","sources":["../../src/tools/endorse-person-skill.ts"],"names":[],"mappings":";;;AAAA,0CAA4E;AAE5E,6BAAwB;AAExB,oEAA4D;AAE5D,MAAa,sBAAuB,SAAQ,kCAA8C;IAC/D,IAAI,GAAG,sBAAsB,CAAC;IAC9B,aAAa,GAAG,qBAAc,CAAC,kBAAkB,CAAC;IAC/C,MAAM,GAAG,OAAC,CAAC,MAAM,CAAC;QAC5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;QACrB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;KACtC,CAAC,CAAC;IAEa,OAAO;QACrB,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EACT,ygBAAygB;YAC3gB,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,8DAA8D;qBAC5E;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,CAAC;wBACZ,SAAS,EAAE,GAAG;wBACd,WAAW,EACT,0IAA0I;qBAC7I;iBACF;gBACD,QAAQ,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;aACrC;SACF,CAAC;IACJ,CAAC;CACF;AAhCD,wDAgCC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TEndorsePersonSkillsParams, TPersonSkillEndorsement } from '@linkedapi/node';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { OperationTool } from '../utils/linked-api-tool.js';
|
|
5
|
+
export declare class EndorsePersonSkillsTool extends OperationTool<TEndorsePersonSkillsParams, Array<TPersonSkillEndorsement>> {
|
|
6
|
+
readonly name = "endorse_person_skills";
|
|
7
|
+
readonly operationName: "endorsePersonSkills";
|
|
8
|
+
protected readonly schema: z.ZodObject<{
|
|
9
|
+
personUrl: z.ZodString;
|
|
10
|
+
skillNamePatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
getTool(): Tool;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=endorse-person-skills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endorse-person-skills.d.ts","sourceRoot":"","sources":["../../src/tools/endorse-person-skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,qBAAa,uBAAwB,SAAQ,aAAa,CACxD,0BAA0B,EAC1B,KAAK,CAAC,uBAAuB,CAAC,CAC/B;IACC,SAAyB,IAAI,2BAA2B;IACxD,SAAyB,aAAa,wBAAsC;IAC5E,mBAA4B,MAAM;;;sBAG/B;IAEa,OAAO,IAAI,IAAI;CA6BhC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EndorsePersonSkillsTool = void 0;
|
|
4
|
+
const node_1 = require("@linkedapi/node");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const linked_api_tool_js_1 = require("../utils/linked-api-tool.js");
|
|
7
|
+
class EndorsePersonSkillsTool extends linked_api_tool_js_1.OperationTool {
|
|
8
|
+
name = 'endorse_person_skills';
|
|
9
|
+
operationName = node_1.OPERATION_NAME.endorsePersonSkills;
|
|
10
|
+
schema = zod_1.z.object({
|
|
11
|
+
personUrl: zod_1.z.string(),
|
|
12
|
+
skillNamePatterns: zod_1.z.array(zod_1.z.string().min(1).max(200)).min(1).max(20).optional(),
|
|
13
|
+
});
|
|
14
|
+
getTool() {
|
|
15
|
+
return {
|
|
16
|
+
name: this.name,
|
|
17
|
+
description: "Endorses selected skills of a 1st-degree connection, returning each selected skill's name, success and error if it failed. Skill names are in the profile owner's language. Patterns use RE2, are case-insensitive and match anywhere; anchor with ^…$ to match a whole name. Omit skillNamePatterns to endorse all skills; never pass []. An already-endorsed skill counts as success and is never removed. Each success counts toward the stEndorsements limit, including existing endorsements. The limit is checked for each skill; a failure does not stop the others, so check every item's success. If this workflow is still running, do not retry this tool; retrying can count the same skills toward the stEndorsements limit again.",
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
personUrl: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'Public or hashed LinkedIn URL of your 1st-degree connection.',
|
|
24
|
+
},
|
|
25
|
+
skillNamePatterns: {
|
|
26
|
+
type: 'array',
|
|
27
|
+
minItems: 1,
|
|
28
|
+
maxItems: 20,
|
|
29
|
+
items: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
minLength: 1,
|
|
32
|
+
maxLength: 200,
|
|
33
|
+
},
|
|
34
|
+
description: "Optional. 1-20 RE2 patterns, each 1-200 characters, matching names in the profile owner's language. Any matching pattern selects the skill. Matching is case-insensitive and searches anywhere: manage matches Project Management; ^scrum$ matches only the whole name Scrum. Lookaround and backreferences are unsupported. Omit this parameter to endorse all skills; never pass an empty array.",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
required: ['personUrl'],
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.EndorsePersonSkillsTool = EndorsePersonSkillsTool;
|
|
43
|
+
//# sourceMappingURL=endorse-person-skills.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endorse-person-skills.js","sourceRoot":"","sources":["../../src/tools/endorse-person-skills.ts"],"names":[],"mappings":";;;AAAA,0CAIyB;AAEzB,6BAAwB;AAExB,oEAA4D;AAE5D,MAAa,uBAAwB,SAAQ,kCAG5C;IAC0B,IAAI,GAAG,uBAAuB,CAAC;IAC/B,aAAa,GAAG,qBAAc,CAAC,mBAAmB,CAAC;IAChD,MAAM,GAAG,OAAC,CAAC,MAAM,CAAC;QAC5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;QACrB,iBAAiB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;KACjF,CAAC,CAAC;IAEa,OAAO;QACrB,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EACT,itBAAitB;YACntB,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,8DAA8D;qBAC5E;oBACD,iBAAiB,EAAE;wBACjB,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,CAAC;wBACX,QAAQ,EAAE,EAAE;wBACZ,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;4BACd,SAAS,EAAE,CAAC;4BACZ,SAAS,EAAE,GAAG;yBACf;wBACD,WAAW,EACT,oYAAoY;qBACvY;iBACF;gBACD,QAAQ,EAAE,CAAC,WAAW,CAAC;aACxB;SACF,CAAC;IACJ,CAAC;CACF;AAxCD,0DAwCC"}
|
|
@@ -29,6 +29,8 @@ export declare class GetWorkflowResultTool extends LinkedApiTool<IGetWorkflowRes
|
|
|
29
29
|
ignoreInvitation: "ignoreInvitation";
|
|
30
30
|
retrieveConnections: "retrieveConnections";
|
|
31
31
|
removeConnection: "removeConnection";
|
|
32
|
+
endorsePersonSkill: "endorsePersonSkill";
|
|
33
|
+
endorsePersonSkills: "endorsePersonSkills";
|
|
32
34
|
searchCompanies: "searchCompanies";
|
|
33
35
|
searchPeople: "searchPeople";
|
|
34
36
|
searchJobs: "searchJobs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-workflow-result.d.ts","sourceRoot":"","sources":["../../src/tools/get-workflow-result.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAIhB,eAAe,EAGhB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAE5E,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAK5D,UAAU,wBAAwB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,qBAAsB,SAAQ,aAAa,CAAC,wBAAwB,EAAE,OAAO,CAAC;IACzF,SAAgB,IAAI,yBAAyB;IAC7C,SAAS,CAAC,QAAQ,CAAC,MAAM
|
|
1
|
+
{"version":3,"file":"get-workflow-result.d.ts","sourceRoot":"","sources":["../../src/tools/get-workflow-result.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAIhB,eAAe,EAGhB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAE5E,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAK5D,UAAU,wBAAwB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,qBAAsB,SAAQ,aAAa,CAAC,wBAAwB,EAAE,OAAO,CAAC;IACzF,SAAgB,IAAI,yBAAyB;IAC7C,SAAS,CAAC,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAItB;IAEmB,OAAO,CAAC,EAC5B,SAAS,EACT,IAAI,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,EAChD,SAAS,GACV,EAAE;QACD,SAAS,EAAE,SAAS,CAAC;QACrB,IAAI,EAAE,wBAAwB,CAAC;QAC/B,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC;IAiCpC,OAAO,IAAI,IAAI;CA2BhC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkedapi/mcp",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.18",
|
|
4
4
|
"description": "MCP server that lets AI assistants control LinkedIn accounts and retrieve real-time data.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"author": "Linked API",
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@linkedapi/node": "^2.3.
|
|
33
|
+
"@linkedapi/node": "^2.3.19",
|
|
34
34
|
"@modelcontextprotocol/sdk": "^1.17.4",
|
|
35
35
|
"zod": "^4.1.1"
|
|
36
36
|
},
|
package/src/linked-api-tools.ts
CHANGED
|
@@ -23,6 +23,8 @@ import { CheckConnectionStatusTool } from './tools/check-connection-status.js';
|
|
|
23
23
|
import { CommentOnPostTool } from './tools/comment-on-post.js';
|
|
24
24
|
import { CreatePostTool } from './tools/create-post.js';
|
|
25
25
|
import { CreateRepostTool } from './tools/create-repost.js';
|
|
26
|
+
import { EndorsePersonSkillTool } from './tools/endorse-person-skill.js';
|
|
27
|
+
import { EndorsePersonSkillsTool } from './tools/endorse-person-skills.js';
|
|
26
28
|
import { ExecuteCustomWorkflowTool } from './tools/execute-custom-workflow.js';
|
|
27
29
|
import { FetchCompanyTool } from './tools/fetch-company.js';
|
|
28
30
|
import { FetchJobTool } from './tools/fetch-job.js';
|
|
@@ -114,6 +116,8 @@ export class LinkedApiTools {
|
|
|
114
116
|
new SearchPostsTool(),
|
|
115
117
|
new FetchCompanyTool(),
|
|
116
118
|
new FetchPersonTool(),
|
|
119
|
+
new EndorsePersonSkillTool(),
|
|
120
|
+
new EndorsePersonSkillsTool(),
|
|
117
121
|
new FetchPostTool(),
|
|
118
122
|
new FetchJobTool(),
|
|
119
123
|
new ReactToPostTool(),
|
|
@@ -30,7 +30,7 @@ export class AdminDeleteLimitsTool extends AdminTool<TDeleteLimitsParams, void>
|
|
|
30
30
|
return {
|
|
31
31
|
name: this.name,
|
|
32
32
|
description:
|
|
33
|
-
'Delete specific rate limits for an account.
|
|
33
|
+
'Delete specific rate limits for an account. Each removed category/period has no limit until set again. Use admin_reset_limits to restore all default limits for the account.',
|
|
34
34
|
inputSchema: {
|
|
35
35
|
type: 'object',
|
|
36
36
|
properties: {
|
|
@@ -46,7 +46,7 @@ export class AdminDeleteLimitsTool extends AdminTool<TDeleteLimitsParams, void>
|
|
|
46
46
|
properties: {
|
|
47
47
|
category: {
|
|
48
48
|
type: 'string',
|
|
49
|
-
description: 'Limit category',
|
|
49
|
+
description: 'Limit category, e.g. stEndorsements',
|
|
50
50
|
},
|
|
51
51
|
period: {
|
|
52
52
|
type: 'string',
|
|
@@ -32,7 +32,7 @@ export class AdminSetLimitsTool extends AdminTool<TSetLimitsParams, void> {
|
|
|
32
32
|
return {
|
|
33
33
|
name: this.name,
|
|
34
34
|
description:
|
|
35
|
-
'Set rate limits for an account. Only specified limits are created or updated; other limits remain unchanged. Categories: stPersonProfileViews, stCompanyPageViews, stConnectionRequests, stMessages, stSearchQueries, stReactions, stComments, stPosts, nvPersonProfileViews, nvCompanyPageViews, nvMessages.',
|
|
35
|
+
'Set rate limits for an account. Only specified limits are created or updated; other limits remain unchanged. Categories: stPersonProfileViews, stCompanyPageViews, stConnectionRequests, stMessages, stSearchQueries, stReactions, stComments, stPosts, stEndorsements, nvPersonProfileViews, nvCompanyPageViews, nvMessages.',
|
|
36
36
|
inputSchema: {
|
|
37
37
|
type: 'object',
|
|
38
38
|
properties: {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { OPERATION_NAME, TEndorsePersonSkillParams } from '@linkedapi/node';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
import { OperationTool } from '../utils/linked-api-tool.js';
|
|
6
|
+
|
|
7
|
+
export class EndorsePersonSkillTool extends OperationTool<TEndorsePersonSkillParams, void> {
|
|
8
|
+
public override readonly name = 'endorse_person_skill';
|
|
9
|
+
public override readonly operationName = OPERATION_NAME.endorsePersonSkill;
|
|
10
|
+
protected override readonly schema = z.object({
|
|
11
|
+
personUrl: z.string(),
|
|
12
|
+
skillName: z.string().min(1).max(200),
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
public override getTool(): Tool {
|
|
16
|
+
return {
|
|
17
|
+
name: this.name,
|
|
18
|
+
description:
|
|
19
|
+
"Endorses one skill by name on a 1st-degree connection's profile. Skill names are in the profile owner's language, regardless of your LinkedIn language. An already-endorsed skill counts as success and is never removed. Every success, including an existing endorsement, counts toward the stEndorsements limit. Use endorse_person_skills to select skills with patterns or endorse all skills. If this workflow is still running, do not retry this tool; retrying can count the same skill toward the stEndorsements limit again.",
|
|
20
|
+
inputSchema: {
|
|
21
|
+
type: 'object',
|
|
22
|
+
properties: {
|
|
23
|
+
personUrl: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
description: 'Public or hashed LinkedIn URL of your 1st-degree connection.',
|
|
26
|
+
},
|
|
27
|
+
skillName: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
minLength: 1,
|
|
30
|
+
maxLength: 200,
|
|
31
|
+
description:
|
|
32
|
+
"Exact skill name in the profile owner's language, up to 200 characters. Letter case and extra spaces are ignored. This is not a pattern.",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
required: ['personUrl', 'skillName'],
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OPERATION_NAME,
|
|
3
|
+
TEndorsePersonSkillsParams,
|
|
4
|
+
TPersonSkillEndorsement,
|
|
5
|
+
} from '@linkedapi/node';
|
|
6
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
|
|
9
|
+
import { OperationTool } from '../utils/linked-api-tool.js';
|
|
10
|
+
|
|
11
|
+
export class EndorsePersonSkillsTool extends OperationTool<
|
|
12
|
+
TEndorsePersonSkillsParams,
|
|
13
|
+
Array<TPersonSkillEndorsement>
|
|
14
|
+
> {
|
|
15
|
+
public override readonly name = 'endorse_person_skills';
|
|
16
|
+
public override readonly operationName = OPERATION_NAME.endorsePersonSkills;
|
|
17
|
+
protected override readonly schema = z.object({
|
|
18
|
+
personUrl: z.string(),
|
|
19
|
+
skillNamePatterns: z.array(z.string().min(1).max(200)).min(1).max(20).optional(),
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
public override getTool(): Tool {
|
|
23
|
+
return {
|
|
24
|
+
name: this.name,
|
|
25
|
+
description:
|
|
26
|
+
"Endorses selected skills of a 1st-degree connection, returning each selected skill's name, success and error if it failed. Skill names are in the profile owner's language. Patterns use RE2, are case-insensitive and match anywhere; anchor with ^…$ to match a whole name. Omit skillNamePatterns to endorse all skills; never pass []. An already-endorsed skill counts as success and is never removed. Each success counts toward the stEndorsements limit, including existing endorsements. The limit is checked for each skill; a failure does not stop the others, so check every item's success. If this workflow is still running, do not retry this tool; retrying can count the same skills toward the stEndorsements limit again.",
|
|
27
|
+
inputSchema: {
|
|
28
|
+
type: 'object',
|
|
29
|
+
properties: {
|
|
30
|
+
personUrl: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: 'Public or hashed LinkedIn URL of your 1st-degree connection.',
|
|
33
|
+
},
|
|
34
|
+
skillNamePatterns: {
|
|
35
|
+
type: 'array',
|
|
36
|
+
minItems: 1,
|
|
37
|
+
maxItems: 20,
|
|
38
|
+
items: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
minLength: 1,
|
|
41
|
+
maxLength: 200,
|
|
42
|
+
},
|
|
43
|
+
description:
|
|
44
|
+
"Optional. 1-20 RE2 patterns, each 1-200 characters, matching names in the profile owner's language. Any matching pattern selects the skill. Matching is case-insensitive and searches anywhere: manage matches Project Management; ^scrum$ matches only the whole name Scrum. Lookaround and backreferences are unsupported. Omit this parameter to endorse all skills; never pass an empty array.",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
required: ['personUrl'],
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|