@linkedapi/mcp 2.3.12 → 2.3.14

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.
Files changed (55) hide show
  1. package/dist/linked-api-tools.d.ts.map +1 -1
  2. package/dist/linked-api-tools.js +2 -0
  3. package/dist/linked-api-tools.js.map +1 -1
  4. package/dist/tools/comment-on-post.d.ts +2 -1
  5. package/dist/tools/comment-on-post.d.ts.map +1 -1
  6. package/dist/tools/comment-on-post.js +8 -3
  7. package/dist/tools/comment-on-post.js.map +1 -1
  8. package/dist/tools/create-post.d.ts +7 -0
  9. package/dist/tools/create-post.d.ts.map +1 -1
  10. package/dist/tools/create-post.js +41 -2
  11. package/dist/tools/create-post.js.map +1 -1
  12. package/dist/tools/create-repost.d.ts +22 -0
  13. package/dist/tools/create-repost.d.ts.map +1 -0
  14. package/dist/tools/create-repost.js +80 -0
  15. package/dist/tools/create-repost.js.map +1 -0
  16. package/dist/tools/fetch-company.d.ts +5 -0
  17. package/dist/tools/fetch-company.d.ts.map +1 -1
  18. package/dist/tools/fetch-company.js +9 -0
  19. package/dist/tools/fetch-company.js.map +1 -1
  20. package/dist/tools/fetch-post.d.ts +2 -1
  21. package/dist/tools/fetch-post.d.ts.map +1 -1
  22. package/dist/tools/fetch-post.js +8 -3
  23. package/dist/tools/fetch-post.js.map +1 -1
  24. package/dist/tools/get-workflow-result.d.ts +1 -0
  25. package/dist/tools/get-workflow-result.d.ts.map +1 -1
  26. package/dist/tools/nv-fetch-company.d.ts +6 -0
  27. package/dist/tools/nv-fetch-company.d.ts.map +1 -1
  28. package/dist/tools/nv-fetch-company.js +9 -0
  29. package/dist/tools/nv-fetch-company.js.map +1 -1
  30. package/dist/tools/nv-search-people.d.ts +6 -0
  31. package/dist/tools/nv-search-people.d.ts.map +1 -1
  32. package/dist/tools/nv-search-people.js +10 -1
  33. package/dist/tools/nv-search-people.js.map +1 -1
  34. package/dist/tools/react-to-post.d.ts +2 -1
  35. package/dist/tools/react-to-post.d.ts.map +1 -1
  36. package/dist/tools/react-to-post.js +8 -3
  37. package/dist/tools/react-to-post.js.map +1 -1
  38. package/dist/tools/search-people.d.ts +5 -0
  39. package/dist/tools/search-people.d.ts.map +1 -1
  40. package/dist/tools/search-people.js +10 -1
  41. package/dist/tools/search-people.js.map +1 -1
  42. package/dist/tools/search-posts.js +1 -1
  43. package/dist/tools/search-posts.js.map +1 -1
  44. package/package.json +3 -3
  45. package/src/linked-api-tools.ts +2 -0
  46. package/src/tools/comment-on-post.ts +9 -3
  47. package/src/tools/create-post.ts +49 -2
  48. package/src/tools/create-repost.ts +90 -0
  49. package/src/tools/fetch-company.ts +10 -0
  50. package/src/tools/fetch-post.ts +9 -3
  51. package/src/tools/nv-fetch-company.ts +10 -0
  52. package/src/tools/nv-search-people.ts +11 -1
  53. package/src/tools/react-to-post.ts +9 -3
  54. package/src/tools/search-people.ts +11 -1
  55. package/src/tools/search-posts.ts +1 -1
@@ -8,7 +8,8 @@ class ReactToPostTool extends linked_api_tool_js_1.OperationTool {
8
8
  name = 'react_to_post';
9
9
  operationName = node_1.OPERATION_NAME.reactToPost;
10
10
  schema = zod_1.z.object({
11
- postUrl: zod_1.z.string(),
11
+ postUrl: zod_1.z.string().optional(),
12
+ postUrn: zod_1.z.string().optional(),
12
13
  type: zod_1.z.enum(['like', 'love', 'celebrate', 'support', 'funny', 'insightful']).or(zod_1.z.string()),
13
14
  companyUrl: zod_1.z.string().optional(),
14
15
  });
@@ -21,7 +22,11 @@ class ReactToPostTool extends linked_api_tool_js_1.OperationTool {
21
22
  properties: {
22
23
  postUrl: {
23
24
  type: 'string',
24
- description: "LinkedIn URL of the post to react. (e.g., 'https://www.linkedin.com/posts/username_activity-id')",
25
+ description: "LinkedIn URL of the post to react. (e.g., 'https://www.linkedin.com/posts/username_activity-id') Provide this or postUrn.",
26
+ },
27
+ postUrn: {
28
+ type: 'string',
29
+ description: "URN of the post to react to, as an alternative to postUrl. (e.g., 'urn:li:activity:1234567890123456789')",
25
30
  },
26
31
  type: {
27
32
  type: 'string',
@@ -33,7 +38,7 @@ class ReactToPostTool extends linked_api_tool_js_1.OperationTool {
33
38
  description: "LinkedIn company page URL. If specified, the reaction will be added on behalf of the company. (e.g., 'https://www.linkedin.com/company/acme-corp')",
34
39
  },
35
40
  },
36
- required: ['postUrl', 'type'],
41
+ required: ['type'],
37
42
  },
38
43
  };
39
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"react-to-post.js","sourceRoot":"","sources":["../../src/tools/react-to-post.ts"],"names":[],"mappings":";;;AAAA,0CAAqE;AAErE,6BAAwB;AAExB,oEAA4D;AAE5D,MAAa,eAAgB,SAAQ,kCAA0C;IACpD,IAAI,GAAG,eAAe,CAAC;IACvB,aAAa,GAAG,qBAAc,CAAC,WAAW,CAAC;IACxC,MAAM,GAAG,OAAC,CAAC,MAAM,CAAC;QAC5C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;QAC5F,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAClC,CAAC,CAAC;IAEa,OAAO;QACrB,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EACT,qMAAqM;YACvM,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,kGAAkG;qBACrG;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,oCAAoC;wBACjD,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC;q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E,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC;qBACtE;oBACD,UAAU,EAAE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,oJAAoJ;qBACvJ;iBACF;gBACD,QAAQ,EAAE,CAAC,MAAM,CAAC;aACnB;SACF,CAAC;IACJ,CAAC;CACF;AA3CD,0CA2CC"}
@@ -17,6 +17,11 @@ export declare class SearchPeopleTool extends OperationTool<TSearchPeopleParams,
17
17
  currentCompanies: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
18
  previousCompanies: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
19
  schools: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
+ connectionDegrees: z.ZodOptional<z.ZodArray<z.ZodEnum<{
21
+ "1st": "1st";
22
+ "2nd": "2nd";
23
+ "3rd+": "3rd+";
24
+ }>>>;
20
25
  }, z.core.$strip>>;
21
26
  }, z.core.$strip>;
22
27
  getTool(): Tool;
@@ -1 +1 @@
1
- {"version":3,"file":"search-people.d.ts","sourceRoot":"","sources":["../../src/tools/search-people.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtE,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,gBAAiB,SAAQ,aAAa,CAAC,mBAAmB,EAAE,OAAO,CAAC;IAC/E,SAAyB,IAAI,mBAAmB;IAChD,SAAyB,aAAa,iBAA+B;IACrE,mBAA4B,MAAM;;;;;;;;;;;;;sBAe/B;IAEa,OAAO,IAAI,IAAI;CAsEhC"}
1
+ {"version":3,"file":"search-people.d.ts","sourceRoot":"","sources":["../../src/tools/search-people.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtE,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,gBAAiB,SAAQ,aAAa,CAAC,mBAAmB,EAAE,OAAO,CAAC;IAC/E,SAAyB,IAAI,mBAAmB;IAChD,SAAyB,aAAa,iBAA+B;IACrE,mBAA4B,MAAM;;;;;;;;;;;;;;;;;;sBAgB/B;IAEa,OAAO,IAAI,IAAI;CA+EhC"}
@@ -20,13 +20,14 @@ class SearchPeopleTool extends linked_api_tool_js_1.OperationTool {
20
20
  currentCompanies: zod_1.z.array(zod_1.z.string()).optional(),
21
21
  previousCompanies: zod_1.z.array(zod_1.z.string()).optional(),
22
22
  schools: zod_1.z.array(zod_1.z.string()).optional(),
23
+ connectionDegrees: zod_1.z.array(zod_1.z.enum(['1st', '2nd', '3rd+'])).optional(),
23
24
  })
24
25
  .optional(),
25
26
  });
26
27
  getTool() {
27
28
  return {
28
29
  name: this.name,
29
- description: 'Allows you to search people applying various filtering criteria (st.searchPeople action). Every person in the result carries urn — their permanent LinkedIn member URN (urn:li:member:<id>), or null when LinkedIn does not expose it.',
30
+ description: 'Allows you to search people applying various filtering criteria (st.searchPeople action). Every person in the result carries urn — their permanent LinkedIn member URN (urn:li:member:<id>), or null when LinkedIn does not expose it. Every person also carries viewerState.connectionDegree — your connection degree to them (1st, 2nd, 3rd+), or null when LinkedIn shows none.',
30
31
  inputSchema: {
31
32
  type: 'object',
32
33
  properties: {
@@ -79,6 +80,14 @@ class SearchPeopleTool extends linked_api_tool_js_1.OperationTool {
79
80
  description: 'Optional. Array of institution names. Matches if person currently attends or previously attended any of the listed institutions.',
80
81
  items: { type: 'string' },
81
82
  },
83
+ connectionDegrees: {
84
+ type: 'array',
85
+ description: 'Optional. Array of enums representing your connection degree to the person. Matches if the person is at any of the listed degrees.',
86
+ items: {
87
+ type: 'string',
88
+ enum: ['1st', '2nd', '3rd+'],
89
+ },
90
+ },
82
91
  },
83
92
  },
84
93
  },
@@ -1 +1 @@
1
- {"version":3,"file":"search-people.js","sourceRoot":"","sources":["../../src/tools/search-people.ts"],"names":[],"mappings":";;;AAAA,0CAAsE;AAEtE,6BAAwB;AAExB,oEAA4D;AAE5D,MAAa,gBAAiB,SAAQ,kCAA2C;IACtD,IAAI,GAAG,eAAe,CAAC;IACvB,aAAa,GAAG,qBAAc,CAAC,YAAY,CAAC;IACzC,MAAM,GAAG,OAAC,CAAC,MAAM,CAAC;QAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QAC7C,MAAM,EAAE,OAAC;aACN,MAAM,CAAC;YACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAChC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;YACzC,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;YAC1C,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;YAChD,iBAAiB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;YACjD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE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vG,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;6BAC1B;4BACD,iBAAiB,EAAE;gCACjB,IAAI,EAAE,OAAO;gCACb,WAAW,EACT,uGAAuG;gCACzG,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;6BAC1B;4BACD,OAAO,EAAE;gCACP,IAAI,EAAE,OAAO;gCACb,WAAW,EACT,kIAAkI;gCACpI,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;6BAC1B;4BACD,iBAAiB,EAAE;gCACjB,IAAI,EAAE,OAAO;gCACb,WAAW,EACT,oIAAoI;gCACtI,KAAK,EAAE;oCACL,IAAI,EAAE,QAAQ;oCACd,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC;iCAC7B;6BACF;yBACF;qBACF;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF;AApGD,4CAoGC"}
@@ -154,7 +154,7 @@ class SearchPostsTool extends linked_api_tool_js_1.OperationTool {
154
154
  },
155
155
  fromMembers: {
156
156
  type: 'array',
157
- description: 'Optional. Array of people whose posts to keep. Each entry is a plain name string, or an object with name plus an optional urn or personHashedUrl that pins the exact person; both forms can be mixed in one array. With a name alone LinkedIn takes whichever suggestion it ranked first, which may be a namesake. An identifier no suggestion resolves to fails the action with filterIdentityMismatch rather than filtering by a namesake.',
157
+ description: 'Optional. Array of people whose posts to keep. Each entry is a plain name string, or an object with name plus an optional urn or personHashedUrl that pins the exact person; both forms can be mixed in one array. With a name alone LinkedIn takes whichever suggestion it ranked first, which may be a namesake. An identifier no suggestion resolves to fails the action with filterNotApplied rather than filtering by a namesake.',
158
158
  items: PERSON_FILTER_ENTRY_JSON_SCHEMA,
159
159
  },
160
160
  fromCompanies: {
@@ -1 +1 @@
1
- {"version":3,"file":"search-posts.js","sourceRoot":"","sources":["../../src/tools/search-posts.ts"],"names":[],"mappings":";;;AAAA,0CAAqE;AAErE,6BAAwB;AAExB,oEAA4D;AAE5D,MAA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qBACF;oBACD,eAAe,EAAE;wBACf,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,iIAAiI;qBACpI;iBACF;gBACD,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;aAC5C;SACzB,CAAC;IACJ,CAAC;CACF;AA9HD,0CA8HC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkedapi/mcp",
3
- "version": "2.3.12",
3
+ "version": "2.3.14",
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.12",
33
+ "@linkedapi/node": "^2.3.13",
34
34
  "@modelcontextprotocol/sdk": "^1.17.4",
35
35
  "zod": "^4.1.1"
36
36
  },
@@ -56,4 +56,4 @@
56
56
  "typescript": "^5.8.3",
57
57
  "typescript-eslint": "^8.38.0"
58
58
  }
59
- }
59
+ }
@@ -22,6 +22,7 @@ import { AdminSetSeatsTool } from './tools/admin-set-seats.js';
22
22
  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
+ import { CreateRepostTool } from './tools/create-repost.js';
25
26
  import { ExecuteCustomWorkflowTool } from './tools/execute-custom-workflow.js';
26
27
  import { FetchCompanyTool } from './tools/fetch-company.js';
27
28
  import { FetchJobTool } from './tools/fetch-job.js';
@@ -114,6 +115,7 @@ export class LinkedApiTools {
114
115
  new ReactToCommentTool(),
115
116
  new ReplyToCommentTool(),
116
117
  new CreatePostTool(),
118
+ new CreateRepostTool(),
117
119
  new RetrieveFeedTool(),
118
120
  new RetrieveProfileViewersTool(),
119
121
  new RetrieveSSITool(),
@@ -8,7 +8,8 @@ export class CommentOnPostTool extends OperationTool<TCommentOnPostParams, TComm
8
8
  public override readonly name = 'comment_on_post';
9
9
  public override readonly operationName = OPERATION_NAME.commentOnPost;
10
10
  protected override readonly schema = z.object({
11
- postUrl: z.string(),
11
+ postUrl: z.string().optional(),
12
+ postUrn: z.string().optional(),
12
13
  text: z.string().min(1),
13
14
  companyUrl: z.string().optional(),
14
15
  });
@@ -24,7 +25,12 @@ export class CommentOnPostTool extends OperationTool<TCommentOnPostParams, TComm
24
25
  postUrl: {
25
26
  type: 'string',
26
27
  description:
27
- "The LinkedIn post URL to comment on (e.g., 'https://www.linkedin.com/posts/username_activity-id')",
28
+ "The LinkedIn post URL to comment on (e.g., 'https://www.linkedin.com/posts/username_activity-id') Provide this or postUrn.",
29
+ },
30
+ postUrn: {
31
+ type: 'string',
32
+ description:
33
+ "URN of the post to comment on, as an alternative to postUrl. (e.g., 'urn:li:activity:1234567890123456789')",
28
34
  },
29
35
  text: {
30
36
  type: 'string',
@@ -36,7 +42,7 @@ export class CommentOnPostTool extends OperationTool<TCommentOnPostParams, TComm
36
42
  "LinkedIn company page URL. If specified, the comment will be added on behalf of the company. (e.g., 'https://www.linkedin.com/company/acme-corp')",
37
43
  },
38
44
  },
39
- required: ['postUrl', 'text'],
45
+ required: ['text'],
40
46
  },
41
47
  };
42
48
  }
@@ -9,6 +9,17 @@ export class CreatePostTool extends OperationTool<TCreatePostParams, unknown> {
9
9
  public override readonly operationName = OPERATION_NAME.createPost;
10
10
  protected override readonly schema = z.object({
11
11
  text: z.string().min(1).max(3000),
12
+ mentions: z
13
+ .array(
14
+ z.object({
15
+ key: z.string(),
16
+ name: z.string(),
17
+ urn: z.string().optional(),
18
+ personHashedUrl: z.string().optional(),
19
+ companyHashedUrl: z.string().optional(),
20
+ }),
21
+ )
22
+ .optional(),
12
23
  companyUrl: z.string().optional(),
13
24
  attachments: z
14
25
  .array(
@@ -26,13 +37,49 @@ export class CreatePostTool extends OperationTool<TCreatePostParams, unknown> {
26
37
  return {
27
38
  name: this.name,
28
39
  description:
29
- 'Creates a new LinkedIn post with optional media attachments (st.createPost action). If this workflow is still running, do not retry this tool; retrying can create duplicate posts.',
40
+ 'Creates a new LinkedIn post with optional mentions and media attachments (st.createPost action). Returns the URL and URN of the new post. If this workflow is still running, do not retry this tool; retrying can create duplicate posts.',
30
41
  inputSchema: {
31
42
  type: 'object',
32
43
  properties: {
33
44
  text: {
34
45
  type: 'string',
35
- description: 'Post content, must be up to 3000 characters.',
46
+ description:
47
+ 'Post content, must be up to 3000 characters. Write "@[key]" where a mention should appear and describe that key in mentions.',
48
+ },
49
+ mentions: {
50
+ type: 'array',
51
+ description:
52
+ 'People and companies to mention in the text. Each item binds a "@[key]" placeholder to one entity.',
53
+ items: {
54
+ type: 'object',
55
+ properties: {
56
+ key: {
57
+ type: 'string',
58
+ description:
59
+ 'Placeholder name used in the text as "@[key]". 1-30 characters: letters, digits, underscore or hyphen.',
60
+ },
61
+ name: {
62
+ type: 'string',
63
+ description:
64
+ 'Name to find the person or company by. Always required: LinkedIn resolves a mention through its own name suggestions.',
65
+ },
66
+ urn: {
67
+ type: 'string',
68
+ description:
69
+ "URN of the entity (e.g., 'urn:li:member:123456789' or 'urn:li:organization:1234567'). Decides which of the offered namesakes is taken.",
70
+ },
71
+ personHashedUrl: {
72
+ type: 'string',
73
+ description:
74
+ 'Hashed LinkedIn profile URL of the person, as an alternative to urn.',
75
+ },
76
+ companyHashedUrl: {
77
+ type: 'string',
78
+ description: 'Hashed LinkedIn company page URL, as an alternative to urn.',
79
+ },
80
+ },
81
+ required: ['key', 'name'],
82
+ },
36
83
  },
37
84
  companyUrl: {
38
85
  type: 'string',
@@ -0,0 +1,90 @@
1
+ import { OPERATION_NAME, TCreateRepostParams } 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 CreateRepostTool extends OperationTool<TCreateRepostParams, unknown> {
8
+ public override readonly name = 'create_repost';
9
+ public override readonly operationName = OPERATION_NAME.createRepost;
10
+ protected override readonly schema = z.object({
11
+ postUrl: z.string().optional(),
12
+ postUrn: z.string().optional(),
13
+ text: z.string().max(3000).optional(),
14
+ mentions: z
15
+ .array(
16
+ z.object({
17
+ key: z.string(),
18
+ name: z.string(),
19
+ urn: z.string().optional(),
20
+ personHashedUrl: z.string().optional(),
21
+ companyHashedUrl: z.string().optional(),
22
+ }),
23
+ )
24
+ .optional(),
25
+ });
26
+
27
+ public override getTool(): Tool {
28
+ return {
29
+ name: this.name,
30
+ description:
31
+ 'Reposts a LinkedIn post, either as is or with your own commentary (st.createRepost action). Returns the URL and URN of the repost itself, which is a post of your own account, not of the post that was reshared. Reposting the same post twice from the same account fails with alreadyReposted. If this workflow is still running, do not retry this tool; retrying can create duplicate reposts.',
32
+ inputSchema: {
33
+ type: 'object',
34
+ properties: {
35
+ postUrl: {
36
+ type: 'string',
37
+ description:
38
+ "LinkedIn URL of the post to repost. (e.g., 'https://www.linkedin.com/posts/username_activity-id') Provide this or postUrn.",
39
+ },
40
+ postUrn: {
41
+ type: 'string',
42
+ description:
43
+ "URN of the post to repost, as an alternative to postUrl. (e.g., 'urn:li:activity:1234567890123456789')",
44
+ },
45
+ text: {
46
+ type: 'string',
47
+ description:
48
+ 'Your own commentary, up to 3000 characters. Without it the post is reposted as is. Write "@[key]" where a mention should appear and describe that key in mentions.',
49
+ },
50
+ mentions: {
51
+ type: 'array',
52
+ description:
53
+ 'People and companies to mention in the commentary. Each item binds a "@[key]" placeholder to one entity.',
54
+ items: {
55
+ type: 'object',
56
+ properties: {
57
+ key: {
58
+ type: 'string',
59
+ description:
60
+ 'Placeholder name used in the text as "@[key]". 1-30 characters: letters, digits, underscore or hyphen.',
61
+ },
62
+ name: {
63
+ type: 'string',
64
+ description:
65
+ 'Name to find the person or company by. Always required: LinkedIn resolves a mention through its own name suggestions.',
66
+ },
67
+ urn: {
68
+ type: 'string',
69
+ description:
70
+ "URN of the entity (e.g., 'urn:li:member:123456789' or 'urn:li:organization:1234567'). Decides which of the offered namesakes is taken.",
71
+ },
72
+ personHashedUrl: {
73
+ type: 'string',
74
+ description:
75
+ 'Hashed LinkedIn profile URL of the person, as an alternative to urn.',
76
+ },
77
+ companyHashedUrl: {
78
+ type: 'string',
79
+ description: 'Hashed LinkedIn company page URL, as an alternative to urn.',
80
+ },
81
+ },
82
+ required: ['key', 'name'],
83
+ },
84
+ },
85
+ },
86
+ required: [],
87
+ },
88
+ };
89
+ }
90
+ }
@@ -34,6 +34,7 @@ export class FetchCompanyTool extends OperationTool<TFetchCompanyParams, unknown
34
34
  locations: z.array(z.string()).optional(),
35
35
  industries: z.array(z.string()).optional(),
36
36
  schools: z.array(z.string()).optional(),
37
+ connectionDegrees: z.array(z.enum(['1st', '2nd', '3rd+'])).optional(),
37
38
  })
38
39
  .optional(),
39
40
  })
@@ -142,6 +143,15 @@ export class FetchCompanyTool extends OperationTool<TFetchCompanyParams, unknown
142
143
  'Optional. Array of institution names. Matches if employee currently attends or previously attended any of the listed institutions.',
143
144
  items: { type: 'string' },
144
145
  },
146
+ connectionDegrees: {
147
+ type: 'array',
148
+ description:
149
+ 'Optional. Array of enums representing your connection degree to the employee. Matches if the employee is at any of the listed degrees.',
150
+ items: {
151
+ type: 'string',
152
+ enum: ['1st', '2nd', '3rd+'],
153
+ },
154
+ },
145
155
  },
146
156
  },
147
157
  },
@@ -8,7 +8,8 @@ export class FetchPostTool extends OperationTool<TFetchPostParams, unknown> {
8
8
  public override readonly name = 'fetch_post';
9
9
  public override readonly operationName = OPERATION_NAME.fetchPost;
10
10
  protected override readonly schema = z.object({
11
- postUrl: z.string(),
11
+ postUrl: z.string().optional(),
12
+ postUrn: z.string().optional(),
12
13
  retrieveComments: z.boolean().optional(),
13
14
  retrieveReactions: z.boolean().optional(),
14
15
  commentsRetrievalConfig: z
@@ -36,7 +37,12 @@ export class FetchPostTool extends OperationTool<TFetchPostParams, unknown> {
36
37
  postUrl: {
37
38
  type: 'string',
38
39
  description:
39
- "LinkedIn URL of the post. (e.g., 'https://www.linkedin.com/posts/username_activity-id')",
40
+ "LinkedIn URL of the post. (e.g., 'https://www.linkedin.com/posts/username_activity-id') Provide this or postUrn.",
41
+ },
42
+ postUrn: {
43
+ type: 'string',
44
+ description:
45
+ "URN of the post to fetch, as an alternative to postUrl. (e.g., 'urn:li:activity:1234567890123456789')",
40
46
  },
41
47
  retrieveComments: {
42
48
  type: 'boolean',
@@ -83,7 +89,7 @@ export class FetchPostTool extends OperationTool<TFetchPostParams, unknown> {
83
89
  },
84
90
  },
85
91
  },
86
- required: ['postUrl'],
92
+ required: [],
87
93
  },
88
94
  };
89
95
  }
@@ -23,6 +23,7 @@ export class NvFetchCompanyTool extends OperationTool<TNvFetchCompanyParams, unk
23
23
  industries: z.array(z.string()).optional(),
24
24
  schools: z.array(z.string()).optional(),
25
25
  yearsOfExperiences: z.array(z.string()).optional(),
26
+ connectionDegrees: z.array(z.enum(['1st', '2nd', '3rd+', 'groupMembers'])).optional(),
26
27
  })
27
28
  .optional(),
28
29
  })
@@ -112,6 +113,15 @@ export class NvFetchCompanyTool extends OperationTool<TNvFetchCompanyParams, unk
112
113
  enum: ['lessThanOne', 'oneToTwo', 'threeToFive', 'sixToTen', 'moreThanTen'],
113
114
  },
114
115
  },
116
+ connectionDegrees: {
117
+ type: 'array',
118
+ description:
119
+ 'Optional. Array of enums representing your connection degree to the employee. Matches if the employee is at any of the listed degrees. groupMembers matches members of LinkedIn groups you belong to.',
120
+ items: {
121
+ type: 'string',
122
+ enum: ['1st', '2nd', '3rd+', 'groupMembers'],
123
+ },
124
+ },
115
125
  },
116
126
  },
117
127
  },
@@ -21,6 +21,7 @@ export class NvSearchPeopleTool extends OperationTool<TNvSearchPeopleParams, unk
21
21
  previousCompanies: z.array(z.string()).optional(),
22
22
  schools: z.array(z.string()).optional(),
23
23
  yearsOfExperiences: z.array(z.string()).optional(),
24
+ connectionDegrees: z.array(z.enum(['1st', '2nd', '3rd+', 'groupMembers'])).optional(),
24
25
  })
25
26
  .optional(),
26
27
  });
@@ -29,7 +30,7 @@ export class NvSearchPeopleTool extends OperationTool<TNvSearchPeopleParams, unk
29
30
  return {
30
31
  name: this.name,
31
32
  description:
32
- 'Allows you to search people in Sales Navigator applying various filtering criteria. (nv.searchPeople action). Every person in the result carries urn — their permanent LinkedIn member URN (urn:li:member:<id>), or null when LinkedIn does not expose it. The same person carries the same urn in standard interface results, so it can be used to match Sales Navigator results against them.',
33
+ 'Allows you to search people in Sales Navigator applying various filtering criteria. (nv.searchPeople action). Every person in the result carries urn — their permanent LinkedIn member URN (urn:li:member:<id>), or null when LinkedIn does not expose it. The same person carries the same urn in standard interface results, so it can be used to match Sales Navigator results against them. Every person also carries viewerState.connectionDegree — your connection degree to them (1st, 2nd, 3rd+), or null when LinkedIn shows none.',
33
34
  inputSchema: {
34
35
  type: 'object',
35
36
  properties: {
@@ -98,6 +99,15 @@ export class NvSearchPeopleTool extends OperationTool<TNvSearchPeopleParams, unk
98
99
  enum: ['lessThanOne', 'oneToTwo', 'threeToFive', 'sixToTen', 'moreThanTen'],
99
100
  },
100
101
  },
102
+ connectionDegrees: {
103
+ type: 'array',
104
+ description:
105
+ 'Optional. Array of enums representing your connection degree to the person. Matches if the person is at any of the listed degrees. groupMembers matches members of LinkedIn groups you belong to.',
106
+ items: {
107
+ type: 'string',
108
+ enum: ['1st', '2nd', '3rd+', 'groupMembers'],
109
+ },
110
+ },
101
111
  },
102
112
  },
103
113
  },
@@ -8,7 +8,8 @@ export class ReactToPostTool extends OperationTool<TReactToPostParams, unknown>
8
8
  public override readonly name = 'react_to_post';
9
9
  public override readonly operationName = OPERATION_NAME.reactToPost;
10
10
  protected override readonly schema = z.object({
11
- postUrl: z.string(),
11
+ postUrl: z.string().optional(),
12
+ postUrn: z.string().optional(),
12
13
  type: z.enum(['like', 'love', 'celebrate', 'support', 'funny', 'insightful']).or(z.string()),
13
14
  companyUrl: z.string().optional(),
14
15
  });
@@ -24,7 +25,12 @@ export class ReactToPostTool extends OperationTool<TReactToPostParams, unknown>
24
25
  postUrl: {
25
26
  type: 'string',
26
27
  description:
27
- "LinkedIn URL of the post to react. (e.g., 'https://www.linkedin.com/posts/username_activity-id')",
28
+ "LinkedIn URL of the post to react. (e.g., 'https://www.linkedin.com/posts/username_activity-id') Provide this or postUrn.",
29
+ },
30
+ postUrn: {
31
+ type: 'string',
32
+ description:
33
+ "URN of the post to react to, as an alternative to postUrl. (e.g., 'urn:li:activity:1234567890123456789')",
28
34
  },
29
35
  type: {
30
36
  type: 'string',
@@ -37,7 +43,7 @@ export class ReactToPostTool extends OperationTool<TReactToPostParams, unknown>
37
43
  "LinkedIn company page URL. If specified, the reaction will be added on behalf of the company. (e.g., 'https://www.linkedin.com/company/acme-corp')",
38
44
  },
39
45
  },
40
- required: ['postUrl', 'type'],
46
+ required: ['type'],
41
47
  },
42
48
  };
43
49
  }
@@ -20,6 +20,7 @@ export class SearchPeopleTool extends OperationTool<TSearchPeopleParams, unknown
20
20
  currentCompanies: z.array(z.string()).optional(),
21
21
  previousCompanies: z.array(z.string()).optional(),
22
22
  schools: z.array(z.string()).optional(),
23
+ connectionDegrees: z.array(z.enum(['1st', '2nd', '3rd+'])).optional(),
23
24
  })
24
25
  .optional(),
25
26
  });
@@ -28,7 +29,7 @@ export class SearchPeopleTool extends OperationTool<TSearchPeopleParams, unknown
28
29
  return {
29
30
  name: this.name,
30
31
  description:
31
- 'Allows you to search people applying various filtering criteria (st.searchPeople action). Every person in the result carries urn — their permanent LinkedIn member URN (urn:li:member:<id>), or null when LinkedIn does not expose it.',
32
+ 'Allows you to search people applying various filtering criteria (st.searchPeople action). Every person in the result carries urn — their permanent LinkedIn member URN (urn:li:member:<id>), or null when LinkedIn does not expose it. Every person also carries viewerState.connectionDegree — your connection degree to them (1st, 2nd, 3rd+), or null when LinkedIn shows none.',
32
33
  inputSchema: {
33
34
  type: 'object',
34
35
  properties: {
@@ -88,6 +89,15 @@ export class SearchPeopleTool extends OperationTool<TSearchPeopleParams, unknown
88
89
  'Optional. Array of institution names. Matches if person currently attends or previously attended any of the listed institutions.',
89
90
  items: { type: 'string' },
90
91
  },
92
+ connectionDegrees: {
93
+ type: 'array',
94
+ description:
95
+ 'Optional. Array of enums representing your connection degree to the person. Matches if the person is at any of the listed degrees.',
96
+ items: {
97
+ type: 'string',
98
+ enum: ['1st', '2nd', '3rd+'],
99
+ },
100
+ },
91
101
  },
92
102
  },
93
103
  },
@@ -165,7 +165,7 @@ export class SearchPostsTool extends OperationTool<TSearchPostsParams, unknown>
165
165
  fromMembers: {
166
166
  type: 'array',
167
167
  description:
168
- 'Optional. Array of people whose posts to keep. Each entry is a plain name string, or an object with name plus an optional urn or personHashedUrl that pins the exact person; both forms can be mixed in one array. With a name alone LinkedIn takes whichever suggestion it ranked first, which may be a namesake. An identifier no suggestion resolves to fails the action with filterIdentityMismatch rather than filtering by a namesake.',
168
+ 'Optional. Array of people whose posts to keep. Each entry is a plain name string, or an object with name plus an optional urn or personHashedUrl that pins the exact person; both forms can be mixed in one array. With a name alone LinkedIn takes whichever suggestion it ranked first, which may be a namesake. An identifier no suggestion resolves to fails the action with filterNotApplied rather than filtering by a namesake.',
169
169
  items: PERSON_FILTER_ENTRY_JSON_SCHEMA,
170
170
  },
171
171
  fromCompanies: {