@notus-os/mcp 0.1.12 → 0.1.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.
package/README.md CHANGED
@@ -24,7 +24,7 @@ Then add to your Claude Code config:
24
24
  }
25
25
  ```
26
26
 
27
- Restart Claude Code. You should see 32 notusOS tools available.
27
+ Restart Claude Code. You should see the notusOS tools available.
28
28
 
29
29
  ## Development
30
30
 
@@ -38148,11 +38148,13 @@ __export(resources_exports, {
38148
38148
  get_resource: () => get_resource,
38149
38149
  list_resources: () => list_resources,
38150
38150
  rewrite_resource_section: () => rewrite_resource_section,
38151
+ send_resource_to_client: () => send_resource_to_client,
38151
38152
  toggle_resource: () => toggle_resource,
38152
38153
  update_brand_guidelines: () => update_brand_guidelines,
38153
- update_resource: () => update_resource
38154
+ update_resource: () => update_resource,
38155
+ update_resource_status: () => update_resource_status
38154
38156
  });
38155
- var listResourcesSchema, list_resources, getResourceSchema, get_resource, updateResourceSchema, update_resource, toggleResourceSchema, toggle_resource, deleteResourceSchema, delete_resource, rewriteSectionSchema, rewrite_resource_section, getBrandGuidelinesSchema, get_brand_guidelines, updateBrandGuidelinesSchema, update_brand_guidelines;
38157
+ var listResourcesSchema, list_resources, getResourceSchema, get_resource, updateResourceSchema, update_resource, toggleResourceSchema, toggle_resource, resourceStatusSchema, updateResourceStatusSchema, update_resource_status, sendResourceToClientSchema, send_resource_to_client, deleteResourceSchema, delete_resource, rewriteSectionSchema, rewrite_resource_section, getBrandGuidelinesSchema, get_brand_guidelines, updateBrandGuidelinesSchema, update_brand_guidelines;
38156
38158
  var init_resources = __esm({
38157
38159
  "src/tools/resources.ts"() {
38158
38160
  "use strict";
@@ -38217,6 +38219,50 @@ var init_resources = __esm({
38217
38219
  });
38218
38220
  }
38219
38221
  };
38222
+ resourceStatusSchema = external_exports.enum([
38223
+ "draft",
38224
+ "internal_review",
38225
+ "in_revision",
38226
+ "client_review",
38227
+ "client_approved"
38228
+ ]);
38229
+ updateResourceStatusSchema = external_exports.object({
38230
+ ...clientTarget,
38231
+ resourceId: external_exports.string().uuid(),
38232
+ status: resourceStatusSchema
38233
+ });
38234
+ update_resource_status = {
38235
+ name: "update_resource_status",
38236
+ description: "Update a setup-deliverable resource lifecycle status. Valid statuses: draft, internal_review, in_revision, client_review, client_approved.",
38237
+ inputSchema: updateResourceStatusSchema,
38238
+ handler: async (args, ctx) => {
38239
+ const { clientUserId, clientOrganizationId, appMode, resourceId, status } = args;
38240
+ return ctx.api.patch(`/api/resources/${resourceId}`, {
38241
+ body: { status },
38242
+ clientContext: toClientContext({ clientUserId, clientOrganizationId, appMode })
38243
+ });
38244
+ }
38245
+ };
38246
+ sendResourceToClientSchema = external_exports.object({
38247
+ ...clientTarget,
38248
+ resourceId: external_exports.string().uuid(),
38249
+ markAsClientReview: external_exports.boolean().optional().default(true)
38250
+ });
38251
+ send_resource_to_client = {
38252
+ name: "send_resource_to_client",
38253
+ description: "Make a resource visible in the client portal. By default also sets status to client_review so 'sent to client' and resource status stay aligned.",
38254
+ inputSchema: sendResourceToClientSchema,
38255
+ handler: async (args, ctx) => {
38256
+ const { clientUserId, clientOrganizationId, appMode, resourceId, markAsClientReview } = args;
38257
+ return ctx.api.patch(`/api/resources/${resourceId}`, {
38258
+ body: {
38259
+ enabled: true,
38260
+ ...markAsClientReview ? { status: "client_review" } : {}
38261
+ },
38262
+ clientContext: toClientContext({ clientUserId, clientOrganizationId, appMode })
38263
+ });
38264
+ }
38265
+ };
38220
38266
  deleteResourceSchema = external_exports.object({
38221
38267
  ...clientTarget,
38222
38268
  resourceId: external_exports.string().uuid()
@@ -38286,6 +38332,8 @@ var init_resources = __esm({
38286
38332
  get_resource,
38287
38333
  update_resource,
38288
38334
  toggle_resource,
38335
+ update_resource_status,
38336
+ send_resource_to_client,
38289
38337
  delete_resource,
38290
38338
  rewrite_resource_section,
38291
38339
  get_brand_guidelines,
@@ -39217,12 +39265,14 @@ __export(analytics_deep_exports, {
39217
39265
  get_icp_post_engagement: () => get_icp_post_engagement,
39218
39266
  get_linkedin_analytics: () => get_linkedin_analytics,
39219
39267
  get_mip_history: () => get_mip_history,
39268
+ list_gojiberry_campaigns: () => list_gojiberry_campaigns,
39220
39269
  reset_mip: () => reset_mip,
39221
39270
  run_mip_analysis: () => run_mip_analysis,
39271
+ set_gojiberry_campaign: () => set_gojiberry_campaign,
39222
39272
  sync_icp_contacts: () => sync_icp_contacts,
39223
39273
  sync_icp_contacts_all: () => sync_icp_contacts_all
39224
39274
  });
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;
39275
+ 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, listGojiberryCampaignsSchema, list_gojiberry_campaigns, setGojiberryCampaignSchema, set_gojiberry_campaign, getIcpPostSchema, get_icp_post_engagement;
39226
39276
  var init_analytics_deep = __esm({
39227
39277
  "src/tools/analytics-deep.ts"() {
39228
39278
  "use strict";
@@ -39371,6 +39421,36 @@ var init_analytics_deep = __esm({
39371
39421
  return ctx.api.post("/api/analytics/gojiberry-backfill-all", {});
39372
39422
  }
39373
39423
  };
39424
+ listGojiberryCampaignsSchema = external_exports.object({
39425
+ ...clientTarget
39426
+ });
39427
+ list_gojiberry_campaigns = {
39428
+ name: "list_gojiberry_campaigns",
39429
+ description: "List the Goji-berry campaigns (\"lists\") available for a client's API key. Returns { lists: [{ id, name, contactCount, createdAt }], selectedListId, apiKeySet, error? }. Use this before `set_gojiberry_campaign` to discover the listId. If `apiKeySet` is false, the profile has no Gojiberry API key \u2014 fix that in /settings/slack first; this tool can't.",
39430
+ inputSchema: listGojiberryCampaignsSchema,
39431
+ handler: async (args, ctx) => {
39432
+ const { clientUserId, clientOrganizationId, appMode } = args;
39433
+ return ctx.api.get("/api/analytics/gojiberry-lists", {
39434
+ clientContext: toClientContext({ clientUserId, clientOrganizationId, appMode })
39435
+ });
39436
+ }
39437
+ };
39438
+ setGojiberryCampaignSchema = external_exports.object({
39439
+ ...clientTarget,
39440
+ campaignId: external_exports.string().min(1)
39441
+ });
39442
+ set_gojiberry_campaign = {
39443
+ name: "set_gojiberry_campaign",
39444
+ description: "Set the active Goji-berry campaign (listId) for a client by writing to profiles.gojiberry_agent_id. Pair with `list_gojiberry_campaigns` to look up the right id. After setting, call `sync_icp_contacts` to backfill that campaign's history into the gojiberry_icp_contacts table.",
39445
+ inputSchema: setGojiberryCampaignSchema,
39446
+ handler: async (args, ctx) => {
39447
+ const { clientUserId, clientOrganizationId, appMode, campaignId } = args;
39448
+ return ctx.api.patch("/api/analytics/client-settings", {
39449
+ body: { settings: { gojiberry_agent_id: campaignId } },
39450
+ clientContext: toClientContext({ clientUserId, clientOrganizationId, appMode })
39451
+ });
39452
+ }
39453
+ };
39374
39454
  getIcpPostSchema = external_exports.object({
39375
39455
  ...clientTarget,
39376
39456
  postUrn: external_exports.string(),
@@ -39397,6 +39477,8 @@ var init_analytics_deep = __esm({
39397
39477
  get_icp_contacts,
39398
39478
  sync_icp_contacts,
39399
39479
  sync_icp_contacts_all,
39480
+ list_gojiberry_campaigns,
39481
+ set_gojiberry_campaign,
39400
39482
  get_icp_post_engagement
39401
39483
  );
39402
39484
  }
@@ -40152,7 +40234,7 @@ var init_server3 = __esm({
40152
40234
  init_tools();
40153
40235
  init_logger();
40154
40236
  SERVER_NAME = "notusos-mcp";
40155
- SERVER_VERSION = true ? "0.1.12" : "dev";
40237
+ SERVER_VERSION = true ? "0.1.14" : "dev";
40156
40238
  }
40157
40239
  });
40158
40240
 
@@ -40173,7 +40255,7 @@ function loadConfig(env = process.env) {
40173
40255
  // bin/notusos-mcp.ts
40174
40256
  init_token_store();
40175
40257
  init_logger();
40176
- var MCP_VERSION = true ? "0.1.12" : "dev";
40258
+ var MCP_VERSION = true ? "0.1.14" : "dev";
40177
40259
  async function main() {
40178
40260
  const [, , sub] = process.argv;
40179
40261
  const config2 = loadConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notus-os/mcp",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "notusOS MCP server — Claude Code as a full interface to notusOS",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",