@notus-os/mcp 0.1.9 → 0.1.10

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.
@@ -37655,15 +37655,17 @@ var init_clients = __esm({
37655
37655
  init_zod();
37656
37656
  init_tools();
37657
37657
  listClientsSchema = external_exports.object({
37658
- scope: external_exports.enum(["mine", "all", "global", "assigned"]).optional()
37658
+ scope: external_exports.enum(["mine", "all", "global", "assigned"]).optional(),
37659
+ includeFeedbackSummary: external_exports.boolean().optional()
37659
37660
  });
37660
37661
  list_clients = {
37661
37662
  name: "list_clients",
37662
- 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. Linked clients (those with `memberOf` set to another user_id, e.g. a co-founder sharing the same org Slack channel) inherit the parent's slack_channel_id when their own is null; `slack_channel_inherited_from` surfaces the parent's user_id in that case (null when the channel is directly owned). Four scopes: 'all' returns every client in every org where you are a strategist, regardless of who the assigned CS is \u2014 use this when you want to see the full shared roster (matches the dashboard's \"All\" toggle). 'mine' returns clients where you are the assigned CS PLUS any clients with no CS assigned yet (so you can claim them); default for non-admins. '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 'all' when the user wants the full team roster; 'assigned' when they ask about \"my clients\" or \"clients I'm the CS for\"; 'mine' when they also want to see unclaimed rows; 'global' for org-wide audits.",
37663
+ 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. Linked clients (those with `memberOf` set to another user_id, e.g. a co-founder sharing the same org Slack channel) inherit the parent's slack_channel_id when their own is null; `slack_channel_inherited_from` surfaces the parent's user_id in that case (null when the channel is directly owned). Four scopes: 'all' returns every client in every org where you are a strategist, regardless of who the assigned CS is \u2014 use this when you want to see the full shared roster (matches the dashboard's \"All\" toggle). 'mine' returns clients where you are the assigned CS PLUS any clients with no CS assigned yet (so you can claim them); default for non-admins. '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 'all' when the user wants the full team roster; 'assigned' when they ask about \"my clients\" or \"clients I'm the CS for\"; 'mine' when they also want to see unclaimed rows; 'global' for org-wide audits. Pass `includeFeedbackSummary: true` to populate the per-client `feedback_summary` field (counts of positive / negative / neutral / pending feedback events from extracted-call sentiment, plus `last_feedback_at`); without this flag the field is always null.",
37663
37664
  inputSchema: listClientsSchema,
37664
37665
  handler: async (args, ctx) => {
37665
37666
  const query = {};
37666
37667
  if (args.scope) query.scope = args.scope;
37668
+ if (args.includeFeedbackSummary) query.include = "feedback_summary";
37667
37669
  return ctx.api.get("/api/strategist/clients", { query });
37668
37670
  }
37669
37671
  };
@@ -39181,15 +39183,25 @@ var init_feedback = __esm({
39181
39183
  init_zod();
39182
39184
  init_tools();
39183
39185
  listClientFeedbackSchema = external_exports.object({
39184
- scope: external_exports.enum(["mine", "global"]).optional()
39186
+ scope: external_exports.enum(["mine", "global"]).optional(),
39187
+ organizationId: external_exports.string().uuid().optional(),
39188
+ clientUserId: external_exports.string().uuid().optional(),
39189
+ contentSourceId: external_exports.string().uuid().optional(),
39190
+ reviewStatus: external_exports.enum(["pending", "approved", "dismissed"]).optional(),
39191
+ sentiment: external_exports.enum(["positive", "negative", "neutral"]).optional()
39185
39192
  });
39186
39193
  list_client_feedback = {
39187
39194
  name: "list_client_feedback",
39188
- description: "Extracted client feedback with sentiment (from /dashboard/admin/feedback). scope='mine' is the default; scope='global' is admin-only.",
39195
+ description: "Extracted client feedback with sentiment (the rows from /dashboard/admin/feedback - AI-tagged feedback events from kickoff / content / deep-dive transcripts). scope='global' is admin-only and returns the joined cross-org list. For non-admin callers (strategists), default scope='mine' is org-scoped: pass `organizationId` (UUID) for the org you want feedback from - the API requires it. Optional filters: `clientUserId` narrows to a single client, `contentSourceId` narrows to a single transcript, `reviewStatus` \u2208 pending|approved|dismissed, `sentiment` \u2208 positive|negative|neutral. Returns rows with feedback_text, sentiment, sentiment_score, ai_summary, ai_extracted_themes, transcript_excerpt, content_source_id, review_status, created_at.",
39189
39196
  inputSchema: listClientFeedbackSchema,
39190
39197
  handler: async (args, ctx) => {
39191
39198
  const query = {};
39192
39199
  if (args.scope) query.scope = args.scope;
39200
+ if (args.organizationId) query.organization_id = args.organizationId;
39201
+ if (args.clientUserId) query.user_id = args.clientUserId;
39202
+ if (args.contentSourceId) query.content_source_id = args.contentSourceId;
39203
+ if (args.reviewStatus) query.review_status = args.reviewStatus;
39204
+ if (args.sentiment) query.sentiment = args.sentiment;
39193
39205
  return ctx.api.get("/api/feedback", { query });
39194
39206
  }
39195
39207
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notus-os/mcp",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "notusOS MCP server — Claude Code as a full interface to notusOS",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",