@notus-os/mcp 0.1.4 → 0.1.6
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/bin/notusos-mcp.js +24 -5
- package/package.json +1 -1
package/dist/bin/notusos-mcp.js
CHANGED
|
@@ -19245,21 +19245,22 @@ var init_zod = __esm({
|
|
|
19245
19245
|
// src/tools/clients.ts
|
|
19246
19246
|
var clients_exports = {};
|
|
19247
19247
|
__export(clients_exports, {
|
|
19248
|
+
get_career_history: () => get_career_history,
|
|
19248
19249
|
get_client_detail: () => get_client_detail,
|
|
19249
19250
|
list_clients: () => list_clients
|
|
19250
19251
|
});
|
|
19251
|
-
var listClientsSchema, list_clients, getClientDetailSchema, get_client_detail;
|
|
19252
|
+
var listClientsSchema, list_clients, getClientDetailSchema, get_client_detail, getCareerHistorySchema, get_career_history;
|
|
19252
19253
|
var init_clients = __esm({
|
|
19253
19254
|
"src/tools/clients.ts"() {
|
|
19254
19255
|
"use strict";
|
|
19255
19256
|
init_zod();
|
|
19256
19257
|
init_tools();
|
|
19257
19258
|
listClientsSchema = external_exports.object({
|
|
19258
|
-
scope: external_exports.enum(["mine", "global"]).optional()
|
|
19259
|
+
scope: external_exports.enum(["mine", "global", "assigned"]).optional()
|
|
19259
19260
|
});
|
|
19260
19261
|
list_clients = {
|
|
19261
19262
|
name: "list_clients",
|
|
19262
|
-
description:
|
|
19263
|
+
description: `List clients visible to the authenticated strategist across every org they belong to. Returns each client's profile, org, assigned Content Strategist (strategist_user_id + full_name + email under assignment.strategist), internal notus Slack channel ID (slack_channel_id \u2014 this is the #client-name-notus-internal coordination channel, NOT the client-facing channel), current onboarding phase, risk state, days since last post, and unresolved-comment counts. Three scopes: 'mine' (default for non-admins) returns clients where you are the assigned CS PLUS any clients with no CS assigned yet (so you can claim them). 'assigned' returns ONLY clients where you are the explicitly assigned CS on their profile (the \`assigned_strategist_id\` set on the setup page) \u2014 unassigned clients are excluded. 'global' (admin-only, default for admins) returns every client across every org you can access. Use 'assigned' when the user asks about "my clients" or "clients I'm the CS for"; use 'mine' when they also want to see unclaimed rows; use 'global' for org-wide audits.`,
|
|
19263
19264
|
inputSchema: listClientsSchema,
|
|
19264
19265
|
handler: async (args, ctx) => {
|
|
19265
19266
|
const query = {};
|
|
@@ -19273,7 +19274,7 @@ var init_clients = __esm({
|
|
|
19273
19274
|
});
|
|
19274
19275
|
get_client_detail = {
|
|
19275
19276
|
name: "get_client_detail",
|
|
19276
|
-
description: "Fetch a single client's full roadmap: profile, setup phase status, risk signals, assigned Content Strategist, internal notus Slack channel ID (slack_channel_id \u2014 #client-name-notus-internal, the notus team's coordination channel, NOT the client-facing one),
|
|
19277
|
+
description: "Fetch a single client's full roadmap: profile, setup phase status, risk signals, assigned Content Strategist, internal notus Slack channel ID (slack_channel_id \u2014 #client-name-notus-internal, the notus team's coordination channel, NOT the client-facing one), current strategist notes, and the full captured LinkedIn career_history when available. Requires clientId (UUID). Pass organizationId when the client belongs to multiple orgs you manage.",
|
|
19277
19278
|
inputSchema: getClientDetailSchema,
|
|
19278
19279
|
handler: async (args, ctx) => {
|
|
19279
19280
|
const query = {};
|
|
@@ -19281,7 +19282,25 @@ var init_clients = __esm({
|
|
|
19281
19282
|
return ctx.api.get(`/api/strategist/clients/${args.clientId}/roadmap`, { query });
|
|
19282
19283
|
}
|
|
19283
19284
|
};
|
|
19284
|
-
|
|
19285
|
+
getCareerHistorySchema = external_exports.object({
|
|
19286
|
+
clientId: external_exports.string().uuid(),
|
|
19287
|
+
organizationId: external_exports.string().uuid().optional()
|
|
19288
|
+
});
|
|
19289
|
+
get_career_history = {
|
|
19290
|
+
name: "get_career_history",
|
|
19291
|
+
description: `Return the client's verified LinkedIn career history \u2014 the array of roles (company, title, start/end dates, location, description) captured once during deep dive prep from LinkedIn Experience screenshots. This is the source of truth for ANY factual claim about past employers or dates; transcripts routinely mis-hear proper nouns ("Oxid" for Evolute, "Infinis" for Infinys). Also returns provenance: captured_at, captured_by_user_id + full_name, captured_from (deep_dive_prep | profile_revamp | manual_edit), and source_content_source_id. When not yet captured, career_history is null \u2014 ask the strategist to share the Experience screenshots in a deep dive prep chat so the AI can call save_career_history. Requires clientId (UUID). Pass organizationId when the client belongs to multiple orgs you manage.`,
|
|
19292
|
+
inputSchema: getCareerHistorySchema,
|
|
19293
|
+
handler: async (args, ctx) => {
|
|
19294
|
+
const query = {};
|
|
19295
|
+
if (args.organizationId) query.organization_id = args.organizationId;
|
|
19296
|
+
const res = await ctx.api.get(
|
|
19297
|
+
`/api/strategist/clients/${args.clientId}/roadmap`,
|
|
19298
|
+
{ query }
|
|
19299
|
+
);
|
|
19300
|
+
return { career_history: res.career_history ?? null };
|
|
19301
|
+
}
|
|
19302
|
+
};
|
|
19303
|
+
registerTools(list_clients, get_client_detail, get_career_history);
|
|
19285
19304
|
}
|
|
19286
19305
|
});
|
|
19287
19306
|
|