@linkedapi/mcp 0.3.11
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/.dockerignore +11 -0
- package/.github/workflows/merge-main.yaml +136 -0
- package/.github/workflows/pr-main.yaml +42 -0
- package/.husky/pre-commit +5 -0
- package/.prettierrc.js +21 -0
- package/.vscode/launch.json +19 -0
- package/Dockerfile +39 -0
- package/LICENSE +21 -0
- package/README.md +17 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +189 -0
- package/dist/index.js.map +1 -0
- package/dist/linked-api-server.d.ts +13 -0
- package/dist/linked-api-server.d.ts.map +1 -0
- package/dist/linked-api-server.js +127 -0
- package/dist/linked-api-server.js.map +1 -0
- package/dist/linked-api-tools.d.ts +8 -0
- package/dist/linked-api-tools.d.ts.map +1 -0
- package/dist/linked-api-tools.js +72 -0
- package/dist/linked-api-tools.js.map +1 -0
- package/dist/prompts/index.d.ts +10 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +190 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/tools/check-connection-status.d.ts +13 -0
- package/dist/tools/check-connection-status.d.ts.map +1 -0
- package/dist/tools/check-connection-status.js +31 -0
- package/dist/tools/check-connection-status.js.map +1 -0
- package/dist/tools/comment-on-post.d.ts +15 -0
- package/dist/tools/comment-on-post.d.ts.map +1 -0
- package/dist/tools/comment-on-post.js +41 -0
- package/dist/tools/comment-on-post.js.map +1 -0
- package/dist/tools/create-post.d.ts +23 -0
- package/dist/tools/create-post.d.ts.map +1 -0
- package/dist/tools/create-post.js +67 -0
- package/dist/tools/create-post.js.map +1 -0
- package/dist/tools/execute-custom-workflow.d.ts +13 -0
- package/dist/tools/execute-custom-workflow.d.ts.map +1 -0
- package/dist/tools/execute-custom-workflow.js +26 -0
- package/dist/tools/execute-custom-workflow.js.map +1 -0
- package/dist/tools/fetch-company.d.ts +34 -0
- package/dist/tools/fetch-company.d.ts.map +1 -0
- package/dist/tools/fetch-company.js +139 -0
- package/dist/tools/fetch-company.js.map +1 -0
- package/dist/tools/fetch-person.d.ts +32 -0
- package/dist/tools/fetch-person.d.ts.map +1 -0
- package/dist/tools/fetch-person.js +129 -0
- package/dist/tools/fetch-person.js.map +1 -0
- package/dist/tools/fetch-post.d.ts +26 -0
- package/dist/tools/fetch-post.d.ts.map +1 -0
- package/dist/tools/fetch-post.js +82 -0
- package/dist/tools/fetch-post.js.map +1 -0
- package/dist/tools/get-api-usage-stats.d.ts +19 -0
- package/dist/tools/get-api-usage-stats.d.ts.map +1 -0
- package/dist/tools/get-api-usage-stats.js +40 -0
- package/dist/tools/get-api-usage-stats.js.map +1 -0
- package/dist/tools/get-conversation.d.ts +26 -0
- package/dist/tools/get-conversation.d.ts.map +1 -0
- package/dist/tools/get-conversation.js +59 -0
- package/dist/tools/get-conversation.js.map +1 -0
- package/dist/tools/get-workflow-result.d.ts +50 -0
- package/dist/tools/get-workflow-result.d.ts.map +1 -0
- package/dist/tools/get-workflow-result.js +46 -0
- package/dist/tools/get-workflow-result.js.map +1 -0
- package/dist/tools/nv-fetch-company.d.ts +30 -0
- package/dist/tools/nv-fetch-company.d.ts.map +1 -0
- package/dist/tools/nv-fetch-company.js +124 -0
- package/dist/tools/nv-fetch-company.js.map +1 -0
- package/dist/tools/nv-fetch-person.d.ts +13 -0
- package/dist/tools/nv-fetch-person.d.ts.map +1 -0
- package/dist/tools/nv-fetch-person.js +31 -0
- package/dist/tools/nv-fetch-person.js.map +1 -0
- package/dist/tools/nv-get-conversation.d.ts +26 -0
- package/dist/tools/nv-get-conversation.d.ts.map +1 -0
- package/dist/tools/nv-get-conversation.js +59 -0
- package/dist/tools/nv-get-conversation.js.map +1 -0
- package/dist/tools/nv-search-companies.d.ts +32 -0
- package/dist/tools/nv-search-companies.d.ts.map +1 -0
- package/dist/tools/nv-search-companies.js +106 -0
- package/dist/tools/nv-search-companies.js.map +1 -0
- package/dist/tools/nv-search-people.d.ts +25 -0
- package/dist/tools/nv-search-people.d.ts.map +1 -0
- package/dist/tools/nv-search-people.js +99 -0
- package/dist/tools/nv-search-people.js.map +1 -0
- package/dist/tools/nv-send-message.d.ts +15 -0
- package/dist/tools/nv-send-message.d.ts.map +1 -0
- package/dist/tools/nv-send-message.js +41 -0
- package/dist/tools/nv-send-message.js.map +1 -0
- package/dist/tools/nv-sync-conversation.d.ts +13 -0
- package/dist/tools/nv-sync-conversation.d.ts.map +1 -0
- package/dist/tools/nv-sync-conversation.js +31 -0
- package/dist/tools/nv-sync-conversation.js.map +1 -0
- package/dist/tools/react-to-post.d.ts +22 -0
- package/dist/tools/react-to-post.d.ts.map +1 -0
- package/dist/tools/react-to-post.js +42 -0
- package/dist/tools/react-to-post.js.map +1 -0
- package/dist/tools/remove-connection.d.ts +13 -0
- package/dist/tools/remove-connection.d.ts.map +1 -0
- package/dist/tools/remove-connection.js +31 -0
- package/dist/tools/remove-connection.js.map +1 -0
- package/dist/tools/retrieve-connections.d.ts +24 -0
- package/dist/tools/retrieve-connections.d.ts.map +1 -0
- package/dist/tools/retrieve-connections.js +90 -0
- package/dist/tools/retrieve-connections.js.map +1 -0
- package/dist/tools/retrieve-pending-requests.d.ts +10 -0
- package/dist/tools/retrieve-pending-requests.d.ts.map +1 -0
- package/dist/tools/retrieve-pending-requests.js +23 -0
- package/dist/tools/retrieve-pending-requests.js.map +1 -0
- package/dist/tools/retrieve-performance.d.ts +10 -0
- package/dist/tools/retrieve-performance.d.ts.map +1 -0
- package/dist/tools/retrieve-performance.js +23 -0
- package/dist/tools/retrieve-performance.js.map +1 -0
- package/dist/tools/retrieve-ssi.d.ts +10 -0
- package/dist/tools/retrieve-ssi.d.ts.map +1 -0
- package/dist/tools/retrieve-ssi.js +23 -0
- package/dist/tools/retrieve-ssi.js.map +1 -0
- package/dist/tools/search-companies.d.ts +28 -0
- package/dist/tools/search-companies.d.ts.map +1 -0
- package/dist/tools/search-companies.js +86 -0
- package/dist/tools/search-companies.js.map +1 -0
- package/dist/tools/search-people.d.ts +24 -0
- package/dist/tools/search-people.d.ts.map +1 -0
- package/dist/tools/search-people.js +90 -0
- package/dist/tools/search-people.js.map +1 -0
- package/dist/tools/send-connection-request.d.ts +15 -0
- package/dist/tools/send-connection-request.d.ts.map +1 -0
- package/dist/tools/send-connection-request.js +41 -0
- package/dist/tools/send-connection-request.js.map +1 -0
- package/dist/tools/send-message.d.ts +14 -0
- package/dist/tools/send-message.d.ts.map +1 -0
- package/dist/tools/send-message.js +36 -0
- package/dist/tools/send-message.js.map +1 -0
- package/dist/tools/sync-conversation.d.ts +13 -0
- package/dist/tools/sync-conversation.d.ts.map +1 -0
- package/dist/tools/sync-conversation.js +31 -0
- package/dist/tools/sync-conversation.js.map +1 -0
- package/dist/tools/withdraw-connection-request.d.ts +14 -0
- package/dist/tools/withdraw-connection-request.d.ts.map +1 -0
- package/dist/tools/withdraw-connection-request.js +36 -0
- package/dist/tools/withdraw-connection-request.js.map +1 -0
- package/dist/utils/define-request-timeout.d.ts +2 -0
- package/dist/utils/define-request-timeout.d.ts.map +1 -0
- package/dist/utils/define-request-timeout.js +20 -0
- package/dist/utils/define-request-timeout.js.map +1 -0
- package/dist/utils/execute-with-progress.d.ts +8 -0
- package/dist/utils/execute-with-progress.d.ts.map +1 -0
- package/dist/utils/execute-with-progress.js +75 -0
- package/dist/utils/execute-with-progress.js.map +1 -0
- package/dist/utils/handle-linked-api-error.d.ts +3 -0
- package/dist/utils/handle-linked-api-error.d.ts.map +1 -0
- package/dist/utils/handle-linked-api-error.js +29 -0
- package/dist/utils/handle-linked-api-error.js.map +1 -0
- package/dist/utils/json-http-transport.d.ts +26 -0
- package/dist/utils/json-http-transport.d.ts.map +1 -0
- package/dist/utils/json-http-transport.js +265 -0
- package/dist/utils/json-http-transport.js.map +1 -0
- package/dist/utils/linked-api-tool.d.ts +28 -0
- package/dist/utils/linked-api-tool.d.ts.map +1 -0
- package/dist/utils/linked-api-tool.js +25 -0
- package/dist/utils/linked-api-tool.js.map +1 -0
- package/dist/utils/logger.d.ts +8 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +81 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/types.d.ts +16 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +3 -0
- package/dist/utils/types.js.map +1 -0
- package/eslint.config.js +118 -0
- package/package.json +62 -0
- package/src/index.ts +212 -0
- package/src/linked-api-server.ts +159 -0
- package/src/linked-api-tools.ts +72 -0
- package/src/prompts/index.ts +190 -0
- package/src/tools/check-connection-status.ts +39 -0
- package/src/tools/comment-on-post.ts +42 -0
- package/src/tools/create-post.ts +71 -0
- package/src/tools/execute-custom-workflow.ts +28 -0
- package/src/tools/fetch-company.ts +154 -0
- package/src/tools/fetch-person.ts +145 -0
- package/src/tools/fetch-post.ts +90 -0
- package/src/tools/get-api-usage-stats.ts +48 -0
- package/src/tools/get-conversation.ts +76 -0
- package/src/tools/get-workflow-result.ts +62 -0
- package/src/tools/nv-fetch-company.ts +136 -0
- package/src/tools/nv-fetch-person.ts +31 -0
- package/src/tools/nv-get-conversation.ts +76 -0
- package/src/tools/nv-search-companies.ts +114 -0
- package/src/tools/nv-search-people.ts +107 -0
- package/src/tools/nv-send-message.ts +42 -0
- package/src/tools/nv-sync-conversation.ts +32 -0
- package/src/tools/react-to-post.ts +44 -0
- package/src/tools/remove-connection.ts +32 -0
- package/src/tools/retrieve-connections.ts +105 -0
- package/src/tools/retrieve-pending-requests.ts +23 -0
- package/src/tools/retrieve-performance.ts +23 -0
- package/src/tools/retrieve-ssi.ts +23 -0
- package/src/tools/search-companies.ts +93 -0
- package/src/tools/search-people.ts +97 -0
- package/src/tools/send-connection-request.ts +46 -0
- package/src/tools/send-message.ts +36 -0
- package/src/tools/sync-conversation.ts +32 -0
- package/src/tools/withdraw-connection-request.ts +41 -0
- package/src/utils/define-request-timeout.ts +17 -0
- package/src/utils/execute-with-progress.ts +93 -0
- package/src/utils/handle-linked-api-error.ts +27 -0
- package/src/utils/json-http-transport.ts +325 -0
- package/src/utils/linked-api-tool.ts +58 -0
- package/src/utils/logger.ts +84 -0
- package/src/utils/types.ts +17 -0
- package/tsconfig.json +36 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linked-api-server.js","sourceRoot":"","sources":["../src/linked-api-server.ts"],"names":[],"mappings":";;;AAAA,0CAA8E;AAC9E,oDAAqE;AAGrE,yDAAoD;AACpD,2EAA+E;AAC/E,6EAAuE;AACvE,2CAAwC;AAOxC,MAAa,kBAAkB;IACrB,KAAK,CAAiB;IAE9B,YAAY,gBAAuE;QACjF,IAAI,CAAC,KAAK,GAAG,IAAI,iCAAc,CAAC,gBAAgB,CAAC,CAAC;IACpD,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IACxD,CAAC;IAEM,KAAK,CAAC,iBAAiB,CAC5B,OAA0C,EAC1C,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,EAA4C;QAE5F,MAAM,eAAe,GAAG,IAAA,sDAA6B,EAAC,SAAS,CAAC,GAAG,IAAI,CAAC;QACxE,eAAM,CAAC,IAAI,CACT;YACE,QAAQ,EAAE,OAAO,CAAC,IAAI;YACtB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,SAAS;YACT,eAAe;SAChB,EACD,wBAAwB,CACzB,CAAC;QACF,MAAM,SAAS,GAAG,IAAI,gBAAS,CAC7B,IAAA,+BAAwB,EACtB;YACE,cAAc,EAAE,cAAc;YAC9B,mBAAmB,EAAE,mBAAmB;SACzC,EACD,KAAK,CACN,CACF,CAAC;QAEF,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;QAC3D,MAAM,aAAa,GAA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BACF;aACF,CAAC;QACJ,CAAC;IACH,CAAC;IAEO,iBAAiB,CAAC,SAAiB;QACzC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC3B,OAAO,GAAG,CAAC,CAAC,OAAO,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC;IAChE,CAAC;CACF;AAhJD,gDAgJC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LinkedApiTool } from './utils/linked-api-tool.js';
|
|
2
|
+
import { LinkedApiProgressNotification } from './utils/types.js';
|
|
3
|
+
export declare class LinkedApiTools {
|
|
4
|
+
readonly tools: ReadonlyArray<LinkedApiTool<unknown, unknown>>;
|
|
5
|
+
constructor(progressCallback: (progress: LinkedApiProgressNotification) => void);
|
|
6
|
+
toolByName(name: string): LinkedApiTool<unknown, unknown> | undefined;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=linked-api-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linked-api-tools.d.ts","sourceRoot":"","sources":["../src/linked-api-tools.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAEjE,qBAAa,cAAc;IACzB,SAAgB,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;gBAE1D,gBAAgB,EAAE,CAAC,QAAQ,EAAE,6BAA6B,KAAK,IAAI;IAmCxE,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,SAAS;CAG7E"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LinkedApiTools = void 0;
|
|
4
|
+
const check_connection_status_js_1 = require("./tools/check-connection-status.js");
|
|
5
|
+
const comment_on_post_js_1 = require("./tools/comment-on-post.js");
|
|
6
|
+
const create_post_js_1 = require("./tools/create-post.js");
|
|
7
|
+
const execute_custom_workflow_js_1 = require("./tools/execute-custom-workflow.js");
|
|
8
|
+
const fetch_company_js_1 = require("./tools/fetch-company.js");
|
|
9
|
+
const fetch_person_js_1 = require("./tools/fetch-person.js");
|
|
10
|
+
const fetch_post_js_1 = require("./tools/fetch-post.js");
|
|
11
|
+
const get_api_usage_stats_js_1 = require("./tools/get-api-usage-stats.js");
|
|
12
|
+
const get_conversation_js_1 = require("./tools/get-conversation.js");
|
|
13
|
+
const get_workflow_result_js_1 = require("./tools/get-workflow-result.js");
|
|
14
|
+
const nv_fetch_company_js_1 = require("./tools/nv-fetch-company.js");
|
|
15
|
+
const nv_fetch_person_js_1 = require("./tools/nv-fetch-person.js");
|
|
16
|
+
const nv_get_conversation_js_1 = require("./tools/nv-get-conversation.js");
|
|
17
|
+
const nv_search_companies_js_1 = require("./tools/nv-search-companies.js");
|
|
18
|
+
const nv_search_people_js_1 = require("./tools/nv-search-people.js");
|
|
19
|
+
const nv_send_message_js_1 = require("./tools/nv-send-message.js");
|
|
20
|
+
const react_to_post_js_1 = require("./tools/react-to-post.js");
|
|
21
|
+
const remove_connection_js_1 = require("./tools/remove-connection.js");
|
|
22
|
+
const retrieve_connections_js_1 = require("./tools/retrieve-connections.js");
|
|
23
|
+
const retrieve_pending_requests_js_1 = require("./tools/retrieve-pending-requests.js");
|
|
24
|
+
const retrieve_performance_js_1 = require("./tools/retrieve-performance.js");
|
|
25
|
+
const retrieve_ssi_js_1 = require("./tools/retrieve-ssi.js");
|
|
26
|
+
const search_companies_js_1 = require("./tools/search-companies.js");
|
|
27
|
+
const search_people_js_1 = require("./tools/search-people.js");
|
|
28
|
+
const send_connection_request_js_1 = require("./tools/send-connection-request.js");
|
|
29
|
+
const send_message_js_1 = require("./tools/send-message.js");
|
|
30
|
+
const withdraw_connection_request_js_1 = require("./tools/withdraw-connection-request.js");
|
|
31
|
+
class LinkedApiTools {
|
|
32
|
+
tools;
|
|
33
|
+
constructor(progressCallback) {
|
|
34
|
+
this.tools = [
|
|
35
|
+
// Standard tools
|
|
36
|
+
new send_message_js_1.SendMessageTool(progressCallback),
|
|
37
|
+
new get_conversation_js_1.GetConversationTool(progressCallback),
|
|
38
|
+
new check_connection_status_js_1.CheckConnectionStatusTool(progressCallback),
|
|
39
|
+
new retrieve_connections_js_1.RetrieveConnectionsTool(progressCallback),
|
|
40
|
+
new send_connection_request_js_1.SendConnectionRequestTool(progressCallback),
|
|
41
|
+
new withdraw_connection_request_js_1.WithdrawConnectionRequestTool(progressCallback),
|
|
42
|
+
new retrieve_pending_requests_js_1.RetrievePendingRequestsTool(progressCallback),
|
|
43
|
+
new remove_connection_js_1.RemoveConnectionTool(progressCallback),
|
|
44
|
+
new search_companies_js_1.SearchCompaniesTool(progressCallback),
|
|
45
|
+
new search_people_js_1.SearchPeopleTool(progressCallback),
|
|
46
|
+
new fetch_company_js_1.FetchCompanyTool(progressCallback),
|
|
47
|
+
new fetch_person_js_1.FetchPersonTool(progressCallback),
|
|
48
|
+
new fetch_post_js_1.FetchPostTool(progressCallback),
|
|
49
|
+
new react_to_post_js_1.ReactToPostTool(progressCallback),
|
|
50
|
+
new comment_on_post_js_1.CommentOnPostTool(progressCallback),
|
|
51
|
+
new create_post_js_1.CreatePostTool(progressCallback),
|
|
52
|
+
new retrieve_ssi_js_1.RetrieveSSITool(progressCallback),
|
|
53
|
+
new retrieve_performance_js_1.RetrievePerformanceTool(progressCallback),
|
|
54
|
+
// Sales Navigator tools
|
|
55
|
+
new nv_send_message_js_1.NvSendMessageTool(progressCallback),
|
|
56
|
+
new nv_get_conversation_js_1.NvGetConversationTool(progressCallback),
|
|
57
|
+
new nv_search_companies_js_1.NvSearchCompaniesTool(progressCallback),
|
|
58
|
+
new nv_search_people_js_1.NvSearchPeopleTool(progressCallback),
|
|
59
|
+
new nv_fetch_company_js_1.NvFetchCompanyTool(progressCallback),
|
|
60
|
+
new nv_fetch_person_js_1.NvFetchPersonTool(progressCallback),
|
|
61
|
+
// Other tools
|
|
62
|
+
new execute_custom_workflow_js_1.ExecuteCustomWorkflowTool(progressCallback),
|
|
63
|
+
new get_workflow_result_js_1.GetWorkflowResultTool(progressCallback),
|
|
64
|
+
new get_api_usage_stats_js_1.GetApiUsageTool(progressCallback),
|
|
65
|
+
];
|
|
66
|
+
}
|
|
67
|
+
toolByName(name) {
|
|
68
|
+
return this.tools.find((tool) => tool.name === name);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.LinkedApiTools = LinkedApiTools;
|
|
72
|
+
//# sourceMappingURL=linked-api-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linked-api-tools.js","sourceRoot":"","sources":["../src/linked-api-tools.ts"],"names":[],"mappings":";;;AAAA,mFAA+E;AAC/E,mEAA+D;AAC/D,2DAAwD;AACxD,mFAA+E;AAC/E,+DAA4D;AAC5D,6DAA0D;AAC1D,yDAAsD;AACtD,2EAAiE;AACjE,qEAAkE;AAClE,2EAAuE;AACvE,qEAAiE;AACjE,mEAA+D;AAC/D,2EAAuE;AACvE,2EAAuE;AACvE,qEAAiE;AACjE,mEAA+D;AAC/D,+DAA2D;AAC3D,uEAAoE;AACpE,6EAA0E;AAC1E,uFAAmF;AACnF,6EAA0E;AAC1E,6DAA0D;AAC1D,qEAAkE;AAClE,+DAA4D;AAC5D,mFAA+E;AAC/E,6DAA0D;AAC1D,2FAAuF;AAIvF,MAAa,cAAc;IACT,KAAK,CAAiD;IAEtE,YAAY,gBAAmE;QAC7E,IAAI,CAAC,KAAK,GAAG;YACX,iBAAiB;YACjB,IAAI,iCAAe,CAAC,gBAAgB,CAAC;YACrC,IAAI,yCAAmB,CAAC,gBAAgB,CAAC;YACzC,IAAI,sDAAyB,CAAC,gBAAgB,CAAC;YAC/C,IAAI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|
1
|
+
export declare const systemPrompt = "You are a Linked API MCP server that provides access to LinkedIn data and actions.\n\nCRITICAL PERFORMANCE RULE: Only set optional parameters (retrieveExperience, retrieveEmployees, retrievePosts, etc.) to true if the user explicitly requests that specific data. Each additional parameter significantly increases execution time.\n\nDEFAULT BEHAVIOR: Always use basic requests first. For example:\n- fetch_person(personUrl) - gets name, title, company (fast)\n- Only add retrieveExperience: true if user asks for work history\n- Only add retrievePosts: true if user asks for posts/content\n\nDON'T enable multiple optional flags unless the user specifically requests all that data.\n\nAUTHENTICATION ERROR HANDLING\n\nWHEN YOU GET AN AUTHENTICATION ERROR:\nThe MCP client must provide valid authentication tokens to use Linked API services.\n\nREQUIRED TOKENS (have to be provided in headers in each request):\n- linked-api-token: Your Linked API access token from linkedapi.io\n- identification-token: Your identification token from linkedapi.io\n\nTOKEN SETUP:\n1. Visit https://linkedapi.io to get tokens\n2. Set headers with every request\n3. Keep tokens secure and never share them in logs or error messages\n\nBACKGROUND WORKFLOW HANDLING\n\nLINKEDIN WORKFLOWS RUN IN THE BACKGROUND:\n- Linked API operations often take 3-5 minutes or longer\n- To keep the MCP client responsive, workflows continue in the background\n- This is INTENTIONAL DESIGN for better user experience\n- You receive periodic updates about workflow progress\n- Simply continue listening for updates using get_workflow_result\n\nWHEN A WORKFLOW IS RUNNING IN BACKGROUND:\n1. You'll receive a status message with: workflowId and operationName\n2. Use get_workflow_result(workflowId, operationName) to continue listening for updates\n3. Keep listening until you get the final results\n4. This is normal workflow operation - the task is actively running\n\nEXAMPLE BACKGROUND WORKFLOW MESSAGE:\n{\n \"message\": \"Workflow is running in the background. Continue listening for updates.\",\n \"workflowId\": \"account-12345-abcde\",\n \"operationName\": \"searchCompanies\"\n}\n\nRESPONSE: \"Great! The search is running in the background. Let me continue listening for updates.\"\n\nALWAYS EXPLAIN TO USERS:\n- The workflow is actively running in the background\n- You're continuing to listen for updates\n- This ensures responsive interaction while processing\n- This is how Linked API provides optimal user experience\n\nCLIENT ACTION WHEN YOU SEE A BACKGROUND WORKFLOW MESSAGE:\n- Immediately call the get_workflow_result tool with the provided workflowId and operationName\n- Keep calling get_workflow_result until the final result is returned\n- Do NOT retry the original tool; the workflow is already running\n- Treat this as normal, successful behavior (not an error)\n\nREQUIRED PARAMETERS FOR get_workflow_result:\n- workflowId: The exact value from the background message\n- operationName: The exact value from the background message (required for correct type restoration)\n\nGENERIC MCP CALL EXAMPLE:\n{\n \"name\": \"get_workflow_result\",\n \"arguments\": {\n \"workflowId\": \"account-12345-abcde\",\n \"operationName\": \"searchCompanies\"\n }\n}\n\nRemember: Background workflows = Active processing with responsive updates!";
|
|
2
|
+
export declare const parameterUsageGuidelines = "Parameter Usage Guidelines:\n\nFAST:\n- Basic person/company info (no optional flags)\n- Simple searches\n- Send messages, connection requests\n\nSLOW:\n- retrievePosts, retrieveComments, retrieveReactions \n- retrieveEmployees, retrieveDMs\n- Complex searches\n\nVERY SLOW:\n- Multiple optional flags together\n- Large employee lists\n- Extensive post history\n\nOnly enable what the user explicitly requests.";
|
|
3
|
+
export declare const backgroundWorkflowPrompt = "LINKED API BACKGROUND WORKFLOWS GUIDE\n\nIMPORTANT: Background workflows are NORMAL and OPTIMAL behavior!\n\nWHY WORKFLOWS RUN IN BACKGROUND:\n- Linked API operations are naturally slow (5+ minutes)\n- MCP client stays responsive by running workflows in background\n- This is INTENTIONAL DESIGN for better user experience\n- Your operation continues processing while you get updates\n\nWHAT TO DO WHEN WORKFLOW RUNS IN BACKGROUND:\n1. Look for workflowId and operationName in the status message\n2. Immediately call get_workflow_result(workflowId, operationName) to continue listening\n3. Repeat get_workflow_result until you get final results\n4. Do NOT re-run the original tool; the workflow is already executing\n5. Treat this as normal, successful operation (not an error)\n\nEXAMPLE BACKGROUND WORKFLOW MESSAGE:\n{\n \"message\": \"Workflow is running in the background. Continue listening for updates.\",\n \"workflowId\": \"account-12345-abcde\", \n \"operationName\": \"searchCompanies\"\n}\n\nCORRECT RESPONSE:\n\"Perfect! The search is running in the background. Let me continue listening by calling get_workflow_result with the provided parameters.\"\n\nGENERIC MCP CALL TO CONTINUE LISTENING:\n{\n \"name\": \"get_workflow_result\",\n \"arguments\": {\n \"workflowId\": \"account-12345-abcde\",\n \"operationName\": \"searchCompanies\"\n }\n}\n\nINCORRECT RESPONSE:\n\"Sorry, there was an error. The search failed.\"\n\nREMEMBER:\n\u2705 Background workflows = Active processing (operation is running)\n\u274C Background workflows \u2260 Errors (operation is not broken)\n\uD83D\uDD04 Always continue listening for workflow updates\n\u23F1\uFE0F Linked API uses background processing for optimal UX\n\nCOMMON MISTAKES TO AVOID:\n- Retrying the original tool instead of calling get_workflow_result\n- Omitting operationName (it is required)\n- Treating the background message as a failure instead of an active process";
|
|
4
|
+
export declare const authenticationPrompt = "AUTHENTICATION REQUIREMENTS:\n- MCP clients must provide valid authentication tokens to use Linked API services\n- linked-api-token: Main Linked API access token from linkedapi.io\n- identification-token: Account identification token from linkedapi.io\n\nTOKEN SETUP:\n1. Visit https://linkedapi.io to get tokens\n2. Set headers with every request in MCP client configuration\n3. Keep tokens secure and never share them in logs or error messages\n\nMore information: https://linkedapi.io/mcp/installation/";
|
|
5
|
+
export declare const availablePrompts: {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
}[];
|
|
9
|
+
export declare function getPromptContent(name: string): string;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,kwGA0EmD,CAAC;AAE7E,eAAO,MAAM,wBAAwB,gaAiBU,CAAC;AAEhD,eAAO,MAAM,wBAAwB,y5DAgDuC,CAAC;AAE7E,eAAO,MAAM,oBAAoB,8fAUwB,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;GAiB5B,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAarD"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.availablePrompts = exports.authenticationPrompt = exports.backgroundWorkflowPrompt = exports.parameterUsageGuidelines = exports.systemPrompt = void 0;
|
|
4
|
+
exports.getPromptContent = getPromptContent;
|
|
5
|
+
exports.systemPrompt = `You are a Linked API MCP server that provides access to LinkedIn data and actions.
|
|
6
|
+
|
|
7
|
+
CRITICAL PERFORMANCE RULE: Only set optional parameters (retrieveExperience, retrieveEmployees, retrievePosts, etc.) to true if the user explicitly requests that specific data. Each additional parameter significantly increases execution time.
|
|
8
|
+
|
|
9
|
+
DEFAULT BEHAVIOR: Always use basic requests first. For example:
|
|
10
|
+
- fetch_person(personUrl) - gets name, title, company (fast)
|
|
11
|
+
- Only add retrieveExperience: true if user asks for work history
|
|
12
|
+
- Only add retrievePosts: true if user asks for posts/content
|
|
13
|
+
|
|
14
|
+
DON'T enable multiple optional flags unless the user specifically requests all that data.
|
|
15
|
+
|
|
16
|
+
AUTHENTICATION ERROR HANDLING
|
|
17
|
+
|
|
18
|
+
WHEN YOU GET AN AUTHENTICATION ERROR:
|
|
19
|
+
The MCP client must provide valid authentication tokens to use Linked API services.
|
|
20
|
+
|
|
21
|
+
REQUIRED TOKENS (have to be provided in headers in each request):
|
|
22
|
+
- linked-api-token: Your Linked API access token from linkedapi.io
|
|
23
|
+
- identification-token: Your identification token from linkedapi.io
|
|
24
|
+
|
|
25
|
+
TOKEN SETUP:
|
|
26
|
+
1. Visit https://linkedapi.io to get tokens
|
|
27
|
+
2. Set headers with every request
|
|
28
|
+
3. Keep tokens secure and never share them in logs or error messages
|
|
29
|
+
|
|
30
|
+
BACKGROUND WORKFLOW HANDLING
|
|
31
|
+
|
|
32
|
+
LINKEDIN WORKFLOWS RUN IN THE BACKGROUND:
|
|
33
|
+
- Linked API operations often take 3-5 minutes or longer
|
|
34
|
+
- To keep the MCP client responsive, workflows continue in the background
|
|
35
|
+
- This is INTENTIONAL DESIGN for better user experience
|
|
36
|
+
- You receive periodic updates about workflow progress
|
|
37
|
+
- Simply continue listening for updates using get_workflow_result
|
|
38
|
+
|
|
39
|
+
WHEN A WORKFLOW IS RUNNING IN BACKGROUND:
|
|
40
|
+
1. You'll receive a status message with: workflowId and operationName
|
|
41
|
+
2. Use get_workflow_result(workflowId, operationName) to continue listening for updates
|
|
42
|
+
3. Keep listening until you get the final results
|
|
43
|
+
4. This is normal workflow operation - the task is actively running
|
|
44
|
+
|
|
45
|
+
EXAMPLE BACKGROUND WORKFLOW MESSAGE:
|
|
46
|
+
{
|
|
47
|
+
"message": "Workflow is running in the background. Continue listening for updates.",
|
|
48
|
+
"workflowId": "account-12345-abcde",
|
|
49
|
+
"operationName": "searchCompanies"
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
RESPONSE: "Great! The search is running in the background. Let me continue listening for updates."
|
|
53
|
+
|
|
54
|
+
ALWAYS EXPLAIN TO USERS:
|
|
55
|
+
- The workflow is actively running in the background
|
|
56
|
+
- You're continuing to listen for updates
|
|
57
|
+
- This ensures responsive interaction while processing
|
|
58
|
+
- This is how Linked API provides optimal user experience
|
|
59
|
+
|
|
60
|
+
CLIENT ACTION WHEN YOU SEE A BACKGROUND WORKFLOW MESSAGE:
|
|
61
|
+
- Immediately call the get_workflow_result tool with the provided workflowId and operationName
|
|
62
|
+
- Keep calling get_workflow_result until the final result is returned
|
|
63
|
+
- Do NOT retry the original tool; the workflow is already running
|
|
64
|
+
- Treat this as normal, successful behavior (not an error)
|
|
65
|
+
|
|
66
|
+
REQUIRED PARAMETERS FOR get_workflow_result:
|
|
67
|
+
- workflowId: The exact value from the background message
|
|
68
|
+
- operationName: The exact value from the background message (required for correct type restoration)
|
|
69
|
+
|
|
70
|
+
GENERIC MCP CALL EXAMPLE:
|
|
71
|
+
{
|
|
72
|
+
"name": "get_workflow_result",
|
|
73
|
+
"arguments": {
|
|
74
|
+
"workflowId": "account-12345-abcde",
|
|
75
|
+
"operationName": "searchCompanies"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
Remember: Background workflows = Active processing with responsive updates!`;
|
|
80
|
+
exports.parameterUsageGuidelines = `Parameter Usage Guidelines:
|
|
81
|
+
|
|
82
|
+
FAST:
|
|
83
|
+
- Basic person/company info (no optional flags)
|
|
84
|
+
- Simple searches
|
|
85
|
+
- Send messages, connection requests
|
|
86
|
+
|
|
87
|
+
SLOW:
|
|
88
|
+
- retrievePosts, retrieveComments, retrieveReactions
|
|
89
|
+
- retrieveEmployees, retrieveDMs
|
|
90
|
+
- Complex searches
|
|
91
|
+
|
|
92
|
+
VERY SLOW:
|
|
93
|
+
- Multiple optional flags together
|
|
94
|
+
- Large employee lists
|
|
95
|
+
- Extensive post history
|
|
96
|
+
|
|
97
|
+
Only enable what the user explicitly requests.`;
|
|
98
|
+
exports.backgroundWorkflowPrompt = `LINKED API BACKGROUND WORKFLOWS GUIDE
|
|
99
|
+
|
|
100
|
+
IMPORTANT: Background workflows are NORMAL and OPTIMAL behavior!
|
|
101
|
+
|
|
102
|
+
WHY WORKFLOWS RUN IN BACKGROUND:
|
|
103
|
+
- Linked API operations are naturally slow (5+ minutes)
|
|
104
|
+
- MCP client stays responsive by running workflows in background
|
|
105
|
+
- This is INTENTIONAL DESIGN for better user experience
|
|
106
|
+
- Your operation continues processing while you get updates
|
|
107
|
+
|
|
108
|
+
WHAT TO DO WHEN WORKFLOW RUNS IN BACKGROUND:
|
|
109
|
+
1. Look for workflowId and operationName in the status message
|
|
110
|
+
2. Immediately call get_workflow_result(workflowId, operationName) to continue listening
|
|
111
|
+
3. Repeat get_workflow_result until you get final results
|
|
112
|
+
4. Do NOT re-run the original tool; the workflow is already executing
|
|
113
|
+
5. Treat this as normal, successful operation (not an error)
|
|
114
|
+
|
|
115
|
+
EXAMPLE BACKGROUND WORKFLOW MESSAGE:
|
|
116
|
+
{
|
|
117
|
+
"message": "Workflow is running in the background. Continue listening for updates.",
|
|
118
|
+
"workflowId": "account-12345-abcde",
|
|
119
|
+
"operationName": "searchCompanies"
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
CORRECT RESPONSE:
|
|
123
|
+
"Perfect! The search is running in the background. Let me continue listening by calling get_workflow_result with the provided parameters."
|
|
124
|
+
|
|
125
|
+
GENERIC MCP CALL TO CONTINUE LISTENING:
|
|
126
|
+
{
|
|
127
|
+
"name": "get_workflow_result",
|
|
128
|
+
"arguments": {
|
|
129
|
+
"workflowId": "account-12345-abcde",
|
|
130
|
+
"operationName": "searchCompanies"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
INCORRECT RESPONSE:
|
|
135
|
+
"Sorry, there was an error. The search failed."
|
|
136
|
+
|
|
137
|
+
REMEMBER:
|
|
138
|
+
✅ Background workflows = Active processing (operation is running)
|
|
139
|
+
❌ Background workflows ≠ Errors (operation is not broken)
|
|
140
|
+
🔄 Always continue listening for workflow updates
|
|
141
|
+
⏱️ Linked API uses background processing for optimal UX
|
|
142
|
+
|
|
143
|
+
COMMON MISTAKES TO AVOID:
|
|
144
|
+
- Retrying the original tool instead of calling get_workflow_result
|
|
145
|
+
- Omitting operationName (it is required)
|
|
146
|
+
- Treating the background message as a failure instead of an active process`;
|
|
147
|
+
exports.authenticationPrompt = `AUTHENTICATION REQUIREMENTS:
|
|
148
|
+
- MCP clients must provide valid authentication tokens to use Linked API services
|
|
149
|
+
- linked-api-token: Main Linked API access token from linkedapi.io
|
|
150
|
+
- identification-token: Account identification token from linkedapi.io
|
|
151
|
+
|
|
152
|
+
TOKEN SETUP:
|
|
153
|
+
1. Visit https://linkedapi.io to get tokens
|
|
154
|
+
2. Set headers with every request in MCP client configuration
|
|
155
|
+
3. Keep tokens secure and never share them in logs or error messages
|
|
156
|
+
|
|
157
|
+
More information: https://linkedapi.io/mcp/installation/`;
|
|
158
|
+
exports.availablePrompts = [
|
|
159
|
+
{
|
|
160
|
+
name: 'performance_guidelines',
|
|
161
|
+
description: 'Get performance optimization guidelines for Linked API MCP tools',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: 'parameter_usage',
|
|
165
|
+
description: 'Learn when to use optional parameters in Linked API requests',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'background_workflows',
|
|
169
|
+
description: 'Learn how Linked API background workflows provide optimal UX',
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: 'authentication_requirements',
|
|
173
|
+
description: 'Learn how to authenticate with Linked API MCP',
|
|
174
|
+
},
|
|
175
|
+
];
|
|
176
|
+
function getPromptContent(name) {
|
|
177
|
+
switch (name) {
|
|
178
|
+
case 'performance_guidelines':
|
|
179
|
+
return exports.systemPrompt;
|
|
180
|
+
case 'parameter_usage':
|
|
181
|
+
return exports.parameterUsageGuidelines;
|
|
182
|
+
case 'background_workflows':
|
|
183
|
+
return exports.backgroundWorkflowPrompt;
|
|
184
|
+
case 'authentication_requirements':
|
|
185
|
+
return exports.authenticationPrompt;
|
|
186
|
+
default:
|
|
187
|
+
throw new Error(`Unknown prompt: ${name}`);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":";;;AAgLA,4CAaC;AA7LY,QAAA,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA0EgD,CAAC;AAEhE,QAAA,wBAAwB,GAAG;;;;;;;;;;;;;;;;;+CAiBO,CAAC;AAEnC,QAAA,wBAAwB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAgDoC,CAAC;AAEhE,QAAA,oBAAoB,GAAG;;;;;;;;;;yDAUqB,CAAC;AAE7C,QAAA,gBAAgB,GAAG;IAC9B;QACE,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,kEAAkE;KAChF;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,8DAA8D;KAC5E;IACD;QACE,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EAAE,8DAA8D;KAC5E;IACD;QACE,IAAI,EAAE,6BAA6B;QACnC,WAAW,EAAE,+CAA+C;KAC7D;CACF,CAAC;AAEF,SAAgB,gBAAgB,CAAC,IAAY;IAC3C,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,wBAAwB;YAC3B,OAAO,oBAAY,CAAC;QACtB,KAAK,iBAAiB;YACpB,OAAO,gCAAwB,CAAC;QAClC,KAAK,sBAAsB;YACzB,OAAO,gCAAwB,CAAC;QAClC,KAAK,6BAA6B;YAChC,OAAO,4BAAoB,CAAC;QAC9B;YACE,MAAM,IAAI,KAAK,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC;IAC/C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TCheckConnectionStatusParams, TCheckConnectionStatusResult } 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 CheckConnectionStatusTool extends OperationTool<TCheckConnectionStatusParams, TCheckConnectionStatusResult> {
|
|
6
|
+
readonly name = "check_connection_status";
|
|
7
|
+
readonly operationName: "checkConnectionStatus";
|
|
8
|
+
protected readonly schema: z.ZodObject<{
|
|
9
|
+
personUrl: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
getTool(): Tool;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=check-connection-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-connection-status.d.ts","sourceRoot":"","sources":["../../src/tools/check-connection-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,4BAA4B,EAC5B,4BAA4B,EAC7B,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,yBAA0B,SAAQ,aAAa,CAC1D,4BAA4B,EAC5B,4BAA4B,CAC7B;IACC,SAAyB,IAAI,6BAA6B;IAC1D,SAAyB,aAAa,0BAAwC;IAC9E,mBAA4B,MAAM;;sBAE/B;IAEa,OAAO,IAAI,IAAI;CAkBhC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckConnectionStatusTool = 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 CheckConnectionStatusTool extends linked_api_tool_js_1.OperationTool {
|
|
8
|
+
name = 'check_connection_status';
|
|
9
|
+
operationName = node_1.OPERATION_NAME.checkConnectionStatus;
|
|
10
|
+
schema = zod_1.z.object({
|
|
11
|
+
personUrl: zod_1.z.string(),
|
|
12
|
+
});
|
|
13
|
+
getTool() {
|
|
14
|
+
return {
|
|
15
|
+
name: this.name,
|
|
16
|
+
description: 'Allows you to check the connection status between your account and another person (st.checkConnectionStatus action).',
|
|
17
|
+
inputSchema: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: {
|
|
20
|
+
personUrl: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: "Public or hashed LinkedIn URL of the person you want to check the connection status with. (e.g., 'https://www.linkedin.com/in/john-doe')",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
required: ['personUrl'],
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.CheckConnectionStatusTool = CheckConnectionStatusTool;
|
|
31
|
+
//# sourceMappingURL=check-connection-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-connection-status.js","sourceRoot":"","sources":["../../src/tools/check-connection-status.ts"],"names":[],"mappings":";;;AAAA,0CAIyB;AAEzB,6BAAwB;AAExB,oEAA4D;AAE5D,MAAa,yBAA0B,SAAQ,kCAG9C;IAC0B,IAAI,GAAG,yBAAyB,CAAC;IACjC,aAAa,GAAG,qBAAc,CAAC,qBAAqB,CAAC;IAClD,MAAM,GAAG,OAAC,CAAC,MAAM,CAAC;QAC5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;KACtB,CAAC,CAAC;IAEa,OAAO;QACrB,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EACT,sHAAsH;YACxH,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,0IAA0I;qBAC7I;iBACF;gBACD,QAAQ,EAAE,CAAC,WAAW,CAAC;aACxB;SACF,CAAC;IACJ,CAAC;CACF;AA5BD,8DA4BC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TCommentOnPostParams } 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 CommentOnPostTool extends OperationTool<TCommentOnPostParams, unknown> {
|
|
6
|
+
readonly name = "comment_on_post";
|
|
7
|
+
readonly operationName: "commentOnPost";
|
|
8
|
+
protected readonly schema: z.ZodObject<{
|
|
9
|
+
postUrl: z.ZodString;
|
|
10
|
+
text: z.ZodString;
|
|
11
|
+
companyUrl: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
getTool(): Tool;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=comment-on-post.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-on-post.d.ts","sourceRoot":"","sources":["../../src/tools/comment-on-post.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvE,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,iBAAkB,SAAQ,aAAa,CAAC,oBAAoB,EAAE,OAAO,CAAC;IACjF,SAAyB,IAAI,qBAAqB;IAClD,SAAyB,aAAa,kBAAgC;IACtE,mBAA4B,MAAM;;;;sBAI/B;IAEa,OAAO,IAAI,IAAI;CA0BhC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommentOnPostTool = 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 CommentOnPostTool extends linked_api_tool_js_1.OperationTool {
|
|
8
|
+
name = 'comment_on_post';
|
|
9
|
+
operationName = node_1.OPERATION_NAME.commentOnPost;
|
|
10
|
+
schema = zod_1.z.object({
|
|
11
|
+
postUrl: zod_1.z.string(),
|
|
12
|
+
text: zod_1.z.string().min(1),
|
|
13
|
+
companyUrl: zod_1.z.string().optional(),
|
|
14
|
+
});
|
|
15
|
+
getTool() {
|
|
16
|
+
return {
|
|
17
|
+
name: this.name,
|
|
18
|
+
description: 'Allows you to leave a comment on a post (st.commentOnPost action).',
|
|
19
|
+
inputSchema: {
|
|
20
|
+
type: 'object',
|
|
21
|
+
properties: {
|
|
22
|
+
postUrl: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
description: "The LinkedIn post URL to comment on (e.g., 'https://www.linkedin.com/posts/username_activity-id')",
|
|
25
|
+
},
|
|
26
|
+
text: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'Comment text, must be up to 1000 characters.',
|
|
29
|
+
},
|
|
30
|
+
companyUrl: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: "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')",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
required: ['postUrl', 'text'],
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.CommentOnPostTool = CommentOnPostTool;
|
|
41
|
+
//# sourceMappingURL=comment-on-post.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-on-post.js","sourceRoot":"","sources":["../../src/tools/comment-on-post.ts"],"names":[],"mappings":";;;AAAA,0CAAuE;AAEvE,6BAAwB;AAExB,oEAA4D;AAE5D,MAAa,iBAAkB,SAAQ,kCAA4C;IACxD,IAAI,GAAG,iBAAiB,CAAC;IACzB,aAAa,GAAG,qBAAc,CAAC,aAAa,CAAC;IAC1C,MAAM,GAAG,OAAC,CAAC,MAAM,CAAC;QAC5C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACvB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAClC,CAAC,CAAC;IAEa,OAAO;QACrB,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,oEAAoE;YACjF,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,mGAAmG;qBACtG;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,8CAA8C;qBAC5D;oBACD,UAAU,EAAE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,mJAAmJ;qBACtJ;iBACF;gBACD,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;aAC9B;SACF,CAAC;IACJ,CAAC;CACF;AAnCD,8CAmCC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TCreatePostParams } 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 CreatePostTool extends OperationTool<TCreatePostParams, unknown> {
|
|
6
|
+
readonly name = "create_post";
|
|
7
|
+
readonly operationName: "createPost";
|
|
8
|
+
protected readonly schema: z.ZodObject<{
|
|
9
|
+
text: z.ZodString;
|
|
10
|
+
companyUrl: z.ZodOptional<z.ZodString>;
|
|
11
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12
|
+
url: z.ZodString;
|
|
13
|
+
type: z.ZodEnum<{
|
|
14
|
+
image: "image";
|
|
15
|
+
video: "video";
|
|
16
|
+
document: "document";
|
|
17
|
+
}>;
|
|
18
|
+
name: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
getTool(): Tool;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=create-post.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-post.d.ts","sourceRoot":"","sources":["../../src/tools/create-post.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpE,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,cAAe,SAAQ,aAAa,CAAC,iBAAiB,EAAE,OAAO,CAAC;IAC3E,SAAyB,IAAI,iBAAiB;IAC9C,SAAyB,aAAa,eAA6B;IACnE,mBAA4B,MAAM;;;;;;;;;;;;sBAa/B;IAEa,OAAO,IAAI,IAAI;CA8ChC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePostTool = 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 CreatePostTool extends linked_api_tool_js_1.OperationTool {
|
|
8
|
+
name = 'create_post';
|
|
9
|
+
operationName = node_1.OPERATION_NAME.createPost;
|
|
10
|
+
schema = zod_1.z.object({
|
|
11
|
+
text: zod_1.z.string().min(1).max(3000),
|
|
12
|
+
companyUrl: zod_1.z.string().optional(),
|
|
13
|
+
attachments: zod_1.z
|
|
14
|
+
.array(zod_1.z.object({
|
|
15
|
+
url: zod_1.z.string(),
|
|
16
|
+
type: zod_1.z.enum(['image', 'video', 'document']),
|
|
17
|
+
name: zod_1.z.string().optional(),
|
|
18
|
+
}))
|
|
19
|
+
.max(9)
|
|
20
|
+
.optional(),
|
|
21
|
+
});
|
|
22
|
+
getTool() {
|
|
23
|
+
return {
|
|
24
|
+
name: this.name,
|
|
25
|
+
description: 'Creates a new LinkedIn post with optional media attachments (st.createPost action).',
|
|
26
|
+
inputSchema: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
properties: {
|
|
29
|
+
text: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'Post content, must be up to 3000 characters.',
|
|
32
|
+
},
|
|
33
|
+
companyUrl: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'LinkedIn company page URL. If specified, the post will be created on the company page (requires admin access).',
|
|
36
|
+
},
|
|
37
|
+
attachments: {
|
|
38
|
+
type: 'array',
|
|
39
|
+
description: 'Media attachments for the post. You can add up to 9 images, or 1 video, or 1 document. Cannot mix different attachment types.',
|
|
40
|
+
items: {
|
|
41
|
+
type: 'object',
|
|
42
|
+
properties: {
|
|
43
|
+
url: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: 'Publicly accessible URL of the media file.',
|
|
46
|
+
},
|
|
47
|
+
type: {
|
|
48
|
+
type: 'string',
|
|
49
|
+
enum: ['image', 'video', 'document'],
|
|
50
|
+
description: 'Type of media attachment.',
|
|
51
|
+
},
|
|
52
|
+
name: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
description: 'Display name for the document (required for documents).',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
required: ['url', 'type'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
required: ['text'],
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.CreatePostTool = CreatePostTool;
|
|
67
|
+
//# sourceMappingURL=create-post.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-post.js","sourceRoot":"","sources":["../../src/tools/create-post.ts"],"names":[],"mappings":";;;AAAA,0CAAoE;AAEpE,6BAAwB;AAExB,oEAA4D;AAE5D,MAAa,cAAe,SAAQ,kCAAyC;IAClD,IAAI,GAAG,aAAa,CAAC;IACrB,aAAa,GAAG,qBAAc,CAAC,UAAU,CAAC;IACvC,MAAM,GAAG,OAAC,CAAC,MAAM,CAAC;QAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CA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AAE,CAAC,MAAM,CAAC;aACnB;SACF,CAAC;IACJ,CAAC;CACF;AAhED,wCAgEC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TWorkflowCompletion, TWorkflowDefinition } 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 ExecuteCustomWorkflowTool extends OperationTool<TWorkflowDefinition, TWorkflowCompletion> {
|
|
6
|
+
readonly name = "execute_custom_workflow";
|
|
7
|
+
readonly operationName: "customWorkflow";
|
|
8
|
+
protected readonly schema: z.ZodObject<{
|
|
9
|
+
definition: z.ZodAny;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
getTool(): Tool;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=execute-custom-workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-custom-workflow.d.ts","sourceRoot":"","sources":["../../src/tools/execute-custom-workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3F,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,yBAA0B,SAAQ,aAAa,CAC1D,mBAAmB,EACnB,mBAAmB,CACpB;IACC,SAAyB,IAAI,6BAA6B;IAC1D,SAAyB,aAAa,mBAAiC;IACvE,mBAA4B,MAAM;;sBAE/B;IAEa,OAAO,IAAI,IAAI;CAWhC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExecuteCustomWorkflowTool = 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 ExecuteCustomWorkflowTool extends linked_api_tool_js_1.OperationTool {
|
|
8
|
+
name = 'execute_custom_workflow';
|
|
9
|
+
operationName = node_1.OPERATION_NAME.customWorkflow;
|
|
10
|
+
schema = zod_1.z.object({
|
|
11
|
+
definition: zod_1.z.any(),
|
|
12
|
+
});
|
|
13
|
+
getTool() {
|
|
14
|
+
return {
|
|
15
|
+
name: this.name,
|
|
16
|
+
description: 'Execute a custom workflow definition',
|
|
17
|
+
inputSchema: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: { definition: { type: 'object' } },
|
|
20
|
+
required: ['definition'],
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.ExecuteCustomWorkflowTool = ExecuteCustomWorkflowTool;
|
|
26
|
+
//# sourceMappingURL=execute-custom-workflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-custom-workflow.js","sourceRoot":"","sources":["../../src/tools/execute-custom-workflow.ts"],"names":[],"mappings":";;;AAAA,0CAA2F;AAE3F,6BAAwB;AAExB,oEAA4D;AAE5D,MAAa,yBAA0B,SAAQ,kCAG9C;IAC0B,IAAI,GAAG,yBAAyB,CAAC;IACjC,aAAa,GAAG,qBAAc,CAAC,cAAc,CAAC;IAC3C,MAAM,GAAG,OAAC,CAAC,MAAM,CAAC;QAC5C,UAAU,EAAE,OAAC,CAAC,GAAG,EAAE;KACpB,CAAC,CAAC;IAEa,OAAO;QACrB,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,sCAAsC;YACnD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;gBAC9C,QAAQ,EAAE,CAAC,YAAY,CAAC;aACzB;SACF,CAAC;IACJ,CAAC;CACF;AArBD,8DAqBC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TFetchCompanyParams } 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 FetchCompanyTool extends OperationTool<TFetchCompanyParams, unknown> {
|
|
6
|
+
readonly name = "fetch_company";
|
|
7
|
+
readonly operationName: "fetchCompany";
|
|
8
|
+
protected readonly schema: z.ZodObject<{
|
|
9
|
+
companyUrl: z.ZodString;
|
|
10
|
+
retrieveEmployees: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11
|
+
retrievePosts: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12
|
+
retrieveDMs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
+
postsRetrievalConfig: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
since: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
dmsRetrievalConfig: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
employeesRetrievalConfig: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
24
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
25
|
+
position: z.ZodOptional<z.ZodString>;
|
|
26
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
|
+
industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
+
schools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
getTool(): Tool;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=fetch-company.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-company.d.ts","sourceRoot":"","sources":["../../src/tools/fetch-company.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;;;;;;;;;;;;;;;;;;;;;;;sBA+B/B;IAEa,OAAO,IAAI,IAAI;CA+GhC"}
|