@notus-os/mcp 0.1.11 → 0.1.12
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 +32 -5
- package/package.json +1 -1
package/dist/bin/notusos-mcp.js
CHANGED
|
@@ -39218,9 +39218,11 @@ __export(analytics_deep_exports, {
|
|
|
39218
39218
|
get_linkedin_analytics: () => get_linkedin_analytics,
|
|
39219
39219
|
get_mip_history: () => get_mip_history,
|
|
39220
39220
|
reset_mip: () => reset_mip,
|
|
39221
|
-
run_mip_analysis: () => run_mip_analysis
|
|
39221
|
+
run_mip_analysis: () => run_mip_analysis,
|
|
39222
|
+
sync_icp_contacts: () => sync_icp_contacts,
|
|
39223
|
+
sync_icp_contacts_all: () => sync_icp_contacts_all
|
|
39222
39224
|
});
|
|
39223
|
-
var getAnalyticsDeepDiveSchema, get_analytics_deep_dive, getLinkedinAnalyticsSchema, get_linkedin_analytics, getMipHistorySchema, get_mip_history, runMipAnalysisSchema, run_mip_analysis, resetMipSchema, reset_mip, getIcpContactsSchema, get_icp_contacts, getIcpPostSchema, get_icp_post_engagement;
|
|
39225
|
+
var getAnalyticsDeepDiveSchema, get_analytics_deep_dive, getLinkedinAnalyticsSchema, get_linkedin_analytics, getMipHistorySchema, get_mip_history, runMipAnalysisSchema, run_mip_analysis, resetMipSchema, reset_mip, getIcpContactsSchema, get_icp_contacts, syncIcpContactsSchema, sync_icp_contacts, syncIcpContactsAllSchema, sync_icp_contacts_all, getIcpPostSchema, get_icp_post_engagement;
|
|
39224
39226
|
var init_analytics_deep = __esm({
|
|
39225
39227
|
"src/tools/analytics-deep.ts"() {
|
|
39226
39228
|
"use strict";
|
|
@@ -39336,7 +39338,7 @@ var init_analytics_deep = __esm({
|
|
|
39336
39338
|
});
|
|
39337
39339
|
get_icp_contacts = {
|
|
39338
39340
|
name: "get_icp_contacts",
|
|
39339
|
-
description: "Goji-berry ICP contacts for a client (people engaging with their content by intent type). Filter by date range, intent, search, paginated.",
|
|
39341
|
+
description: "Goji-berry ICP contacts for a client (people engaging with their content by intent type). Filter by date range, intent, search, paginated. Response includes a `health` block: { profile_found, gojiberry_agent_id_set, gojiberry_api_key_set, rows_in_table_total, latest_week_start, status }. Status values: 'ok' (data returned), 'no_data_in_window' (table has rows but none in this date range \u2014 widen `days` or remove filter), 'never_synced' (config set but cron/backfill never wrote \u2014 call `sync_icp_contacts`), 'partial_config' / 'no_config' (profile is missing agent_id and/or api_key \u2014 onboarding gap, sync will fail).",
|
|
39340
39342
|
inputSchema: getIcpContactsSchema,
|
|
39341
39343
|
handler: async (args, ctx) => {
|
|
39342
39344
|
const { clientUserId, clientOrganizationId, appMode, ...q } = args;
|
|
@@ -39346,6 +39348,29 @@ var init_analytics_deep = __esm({
|
|
|
39346
39348
|
});
|
|
39347
39349
|
}
|
|
39348
39350
|
};
|
|
39351
|
+
syncIcpContactsSchema = external_exports.object({
|
|
39352
|
+
...clientTarget
|
|
39353
|
+
});
|
|
39354
|
+
sync_icp_contacts = {
|
|
39355
|
+
name: "sync_icp_contacts",
|
|
39356
|
+
description: "Trigger a 26-week backfill of Goji-berry ICP contacts for a single client. Writes new rows into the gojiberry_icp_contacts table. Returns { weeksProcessed, weeksFailed, totalContacts, firstError, postUrnsMatched }. Use when `get_icp_contacts` health.status is 'never_synced' or after fixing a profile's gojiberry_api_key. Fails fast (400) if agent_id or api_key missing on the profile, or 500 if every week's API call fails (firstError holds the cause).",
|
|
39357
|
+
inputSchema: syncIcpContactsSchema,
|
|
39358
|
+
handler: async (args, ctx) => {
|
|
39359
|
+
const { clientUserId, clientOrganizationId, appMode } = args;
|
|
39360
|
+
return ctx.api.post("/api/analytics/gojiberry-backfill", {
|
|
39361
|
+
clientContext: toClientContext({ clientUserId, clientOrganizationId, appMode })
|
|
39362
|
+
});
|
|
39363
|
+
}
|
|
39364
|
+
};
|
|
39365
|
+
syncIcpContactsAllSchema = external_exports.object({});
|
|
39366
|
+
sync_icp_contacts_all = {
|
|
39367
|
+
name: "sync_icp_contacts_all",
|
|
39368
|
+
description: "ADMIN-ONLY. Run the 26-week backfill for EVERY profile that has both gojiberry_agent_id and gojiberry_api_key set. Long-running (minutes). Returns { profilesConfigured, profilesProcessed, totalContacts, durationMs, results: [{ profileId, profileName, totalContacts, weeksFailed, firstError, ... }] }. Use after a Gojiberry outage or to seed history org-wide. Caller must NOT be impersonating; non-admin requests get 403.",
|
|
39369
|
+
inputSchema: syncIcpContactsAllSchema,
|
|
39370
|
+
handler: async (_args, ctx) => {
|
|
39371
|
+
return ctx.api.post("/api/analytics/gojiberry-backfill-all", {});
|
|
39372
|
+
}
|
|
39373
|
+
};
|
|
39349
39374
|
getIcpPostSchema = external_exports.object({
|
|
39350
39375
|
...clientTarget,
|
|
39351
39376
|
postUrn: external_exports.string(),
|
|
@@ -39370,6 +39395,8 @@ var init_analytics_deep = __esm({
|
|
|
39370
39395
|
run_mip_analysis,
|
|
39371
39396
|
reset_mip,
|
|
39372
39397
|
get_icp_contacts,
|
|
39398
|
+
sync_icp_contacts,
|
|
39399
|
+
sync_icp_contacts_all,
|
|
39373
39400
|
get_icp_post_engagement
|
|
39374
39401
|
);
|
|
39375
39402
|
}
|
|
@@ -40125,7 +40152,7 @@ var init_server3 = __esm({
|
|
|
40125
40152
|
init_tools();
|
|
40126
40153
|
init_logger();
|
|
40127
40154
|
SERVER_NAME = "notusos-mcp";
|
|
40128
|
-
SERVER_VERSION = true ? "0.1.
|
|
40155
|
+
SERVER_VERSION = true ? "0.1.12" : "dev";
|
|
40129
40156
|
}
|
|
40130
40157
|
});
|
|
40131
40158
|
|
|
@@ -40146,7 +40173,7 @@ function loadConfig(env = process.env) {
|
|
|
40146
40173
|
// bin/notusos-mcp.ts
|
|
40147
40174
|
init_token_store();
|
|
40148
40175
|
init_logger();
|
|
40149
|
-
var MCP_VERSION = true ? "0.1.
|
|
40176
|
+
var MCP_VERSION = true ? "0.1.12" : "dev";
|
|
40150
40177
|
async function main() {
|
|
40151
40178
|
const [, , sub] = process.argv;
|
|
40152
40179
|
const config2 = loadConfig();
|