@cloudcart/dev-mcp 0.2.18 → 0.2.19

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/data/admin.json CHANGED
@@ -13033,6 +13033,58 @@
13033
13033
  "isDeprecated": false,
13034
13034
  "deprecationReason": null
13035
13035
  },
13036
+ {
13037
+ "name": "executiveInsights",
13038
+ "description": "Executive insights for the store dashboard — health score + summary,\nmonth-over-month trends (revenue / orders / AOV / new customers), predictive\nalerts, top products and stuck orders. Returns { \"enabled\": false } when the\n`smart_daily_actions` plan feature is off. Cached ~20 minutes.\n\nReturned as JSON; shape:\n{ enabled, health: { score, summary }, trends: { revenue|orders|aov|new_customers: { this, last, change } },\n alerts: [{ type, icon, color, title, detail, route }], top_products: [{ id, name, units, revenue }],\n stuck_orders: { count, orders: [{ id, date_added, total }] } }",
13039
+ "args": [],
13040
+ "type": {
13041
+ "kind": "SCALAR",
13042
+ "name": "JSON",
13043
+ "ofType": null
13044
+ },
13045
+ "isDeprecated": false,
13046
+ "deprecationReason": null
13047
+ },
13048
+ {
13049
+ "name": "executiveInsightsTeaser",
13050
+ "description": "Lightweight insights teaser (store health score + open-alert count) for\ndashboard widgets. Values are null until the background warm-up has run.",
13051
+ "args": [],
13052
+ "type": {
13053
+ "kind": "NON_NULL",
13054
+ "name": null,
13055
+ "ofType": {
13056
+ "kind": "OBJECT",
13057
+ "name": "ExecutiveInsightsTeaser",
13058
+ "ofType": null
13059
+ }
13060
+ },
13061
+ "isDeprecated": false,
13062
+ "deprecationReason": null
13063
+ },
13064
+ {
13065
+ "name": "smartActionRecommendations",
13066
+ "description": "Daily smart-action recommendations for the dashboard. Returns\n{ subscribed, actions: [...] } where each action has type, title, why,\nexpected_effect and an execute_route. One action when unsubscribed, up to\nthree when the `smart_daily_actions` feature is enabled. Dismissed actions\nare hidden for the rest of the day.\n\nReturned as JSON; each action: { type, entity_id, title, why, expected_effect, execute_route: { name, query } }.",
13067
+ "args": [],
13068
+ "type": {
13069
+ "kind": "SCALAR",
13070
+ "name": "JSON",
13071
+ "ofType": null
13072
+ },
13073
+ "isDeprecated": false,
13074
+ "deprecationReason": null
13075
+ },
13076
+ {
13077
+ "name": "smartActionHistory",
13078
+ "description": "History of the last 20 smart actions the merchant executed or dismissed.\nReturns { history: [{ id, action_type, entity_id, entity_title, status,\nexpected_effect, execute_route, created_at }] }. Empty when the\n`smart_daily_actions` feature is off.",
13079
+ "args": [],
13080
+ "type": {
13081
+ "kind": "SCALAR",
13082
+ "name": "JSON",
13083
+ "ofType": null
13084
+ },
13085
+ "isDeprecated": false,
13086
+ "deprecationReason": null
13087
+ },
13036
13088
  {
13037
13089
  "name": "adScoutSettings",
13038
13090
  "description": "Get AdScout settings and credential validation status.",
@@ -41285,6 +41337,39 @@
41285
41337
  "isDeprecated": false,
41286
41338
  "deprecationReason": null
41287
41339
  },
41340
+ {
41341
+ "name": "recordSmartAction",
41342
+ "description": "Record a smart-action decision (executed or dismissed) — mirrors the\ndashboard's smart-actions/act endpoint. Recording DISMISSED hides that\nrecommendation for the rest of the day; EXECUTED logs it to history.\n\nThis does NOT perform the underlying change itself — the client follows the\nrecommendation's executeRoute to do that, then records the outcome here.",
41343
+ "args": [
41344
+ {
41345
+ "name": "input",
41346
+ "description": "The decision to record, built from a smartActionRecommendations item.",
41347
+ "type": {
41348
+ "kind": "NON_NULL",
41349
+ "name": null,
41350
+ "ofType": {
41351
+ "kind": "INPUT_OBJECT",
41352
+ "name": "RecordSmartActionInput",
41353
+ "ofType": null
41354
+ }
41355
+ },
41356
+ "defaultValue": null,
41357
+ "isDeprecated": false,
41358
+ "deprecationReason": null
41359
+ }
41360
+ ],
41361
+ "type": {
41362
+ "kind": "NON_NULL",
41363
+ "name": null,
41364
+ "ofType": {
41365
+ "kind": "OBJECT",
41366
+ "name": "RecordSmartActionResult",
41367
+ "ofType": null
41368
+ }
41369
+ },
41370
+ "isDeprecated": false,
41371
+ "deprecationReason": null
41372
+ },
41288
41373
  {
41289
41374
  "name": "saveAdScoutSettings",
41290
41375
  "description": "Save AdScout settings.",
@@ -119663,6 +119748,280 @@
119663
119748
  "enumValues": null,
119664
119749
  "possibleTypes": null
119665
119750
  },
119751
+ {
119752
+ "kind": "OBJECT",
119753
+ "name": "ExecutiveInsightsTeaser",
119754
+ "description": "Lightweight dashboard insights teaser — store health score and open-alert count.",
119755
+ "isOneOf": null,
119756
+ "fields": [
119757
+ {
119758
+ "name": "score",
119759
+ "description": "Store health score 0–100, or null if not yet computed (warming in background).",
119760
+ "args": [],
119761
+ "type": {
119762
+ "kind": "SCALAR",
119763
+ "name": "Int",
119764
+ "ofType": null
119765
+ },
119766
+ "isDeprecated": false,
119767
+ "deprecationReason": null
119768
+ },
119769
+ {
119770
+ "name": "alertsCount",
119771
+ "description": "Number of open predictive alerts, or null if not yet computed.",
119772
+ "args": [],
119773
+ "type": {
119774
+ "kind": "SCALAR",
119775
+ "name": "Int",
119776
+ "ofType": null
119777
+ },
119778
+ "isDeprecated": false,
119779
+ "deprecationReason": null
119780
+ }
119781
+ ],
119782
+ "inputFields": null,
119783
+ "interfaces": [],
119784
+ "enumValues": null,
119785
+ "possibleTypes": null
119786
+ },
119787
+ {
119788
+ "kind": "OBJECT",
119789
+ "name": "RecordSmartActionResult",
119790
+ "description": "Result of recording a smart-action decision.",
119791
+ "isOneOf": null,
119792
+ "fields": [
119793
+ {
119794
+ "name": "success",
119795
+ "description": "True when the decision was recorded.",
119796
+ "args": [],
119797
+ "type": {
119798
+ "kind": "NON_NULL",
119799
+ "name": null,
119800
+ "ofType": {
119801
+ "kind": "SCALAR",
119802
+ "name": "Boolean",
119803
+ "ofType": null
119804
+ }
119805
+ },
119806
+ "isDeprecated": false,
119807
+ "deprecationReason": null
119808
+ },
119809
+ {
119810
+ "name": "error",
119811
+ "description": "Error message when success is false (e.g. validation).",
119812
+ "args": [],
119813
+ "type": {
119814
+ "kind": "SCALAR",
119815
+ "name": "String",
119816
+ "ofType": null
119817
+ },
119818
+ "isDeprecated": false,
119819
+ "deprecationReason": null
119820
+ }
119821
+ ],
119822
+ "inputFields": null,
119823
+ "interfaces": [],
119824
+ "enumValues": null,
119825
+ "possibleTypes": null
119826
+ },
119827
+ {
119828
+ "kind": "ENUM",
119829
+ "name": "SmartActionType",
119830
+ "description": "Type of smart action — use the `type` field of a smartActionRecommendations item.",
119831
+ "isOneOf": null,
119832
+ "fields": null,
119833
+ "inputFields": null,
119834
+ "interfaces": null,
119835
+ "enumValues": [
119836
+ {
119837
+ "name": "RESTOCK",
119838
+ "description": null,
119839
+ "isDeprecated": false,
119840
+ "deprecationReason": null
119841
+ },
119842
+ {
119843
+ "name": "PAUSE_CAMPAIGN",
119844
+ "description": null,
119845
+ "isDeprecated": false,
119846
+ "deprecationReason": null
119847
+ },
119848
+ {
119849
+ "name": "CREATE_BUNDLE",
119850
+ "description": null,
119851
+ "isDeprecated": false,
119852
+ "deprecationReason": null
119853
+ },
119854
+ {
119855
+ "name": "FOLLOW_UP_ABANDONED",
119856
+ "description": null,
119857
+ "isDeprecated": false,
119858
+ "deprecationReason": null
119859
+ },
119860
+ {
119861
+ "name": "ACTIVATE_DISCOUNT",
119862
+ "description": null,
119863
+ "isDeprecated": false,
119864
+ "deprecationReason": null
119865
+ },
119866
+ {
119867
+ "name": "SEND_WINBACK",
119868
+ "description": null,
119869
+ "isDeprecated": false,
119870
+ "deprecationReason": null
119871
+ },
119872
+ {
119873
+ "name": "LOW_RATING_PRODUCT",
119874
+ "description": null,
119875
+ "isDeprecated": false,
119876
+ "deprecationReason": null
119877
+ },
119878
+ {
119879
+ "name": "UPSELL_OPPORTUNITY",
119880
+ "description": null,
119881
+ "isDeprecated": false,
119882
+ "deprecationReason": null
119883
+ },
119884
+ {
119885
+ "name": "ENABLE_CROSS_SELL",
119886
+ "description": null,
119887
+ "isDeprecated": false,
119888
+ "deprecationReason": null
119889
+ },
119890
+ {
119891
+ "name": "REACTIVATE_SEGMENT",
119892
+ "description": null,
119893
+ "isDeprecated": false,
119894
+ "deprecationReason": null
119895
+ },
119896
+ {
119897
+ "name": "PRICE_DROP_ALERT",
119898
+ "description": null,
119899
+ "isDeprecated": false,
119900
+ "deprecationReason": null
119901
+ }
119902
+ ],
119903
+ "possibleTypes": null
119904
+ },
119905
+ {
119906
+ "kind": "ENUM",
119907
+ "name": "SmartActionStatus",
119908
+ "description": "Outcome recorded for a smart action.",
119909
+ "isOneOf": null,
119910
+ "fields": null,
119911
+ "inputFields": null,
119912
+ "interfaces": null,
119913
+ "enumValues": [
119914
+ {
119915
+ "name": "EXECUTED",
119916
+ "description": null,
119917
+ "isDeprecated": false,
119918
+ "deprecationReason": null
119919
+ },
119920
+ {
119921
+ "name": "DISMISSED",
119922
+ "description": null,
119923
+ "isDeprecated": false,
119924
+ "deprecationReason": null
119925
+ }
119926
+ ],
119927
+ "possibleTypes": null
119928
+ },
119929
+ {
119930
+ "kind": "INPUT_OBJECT",
119931
+ "name": "RecordSmartActionInput",
119932
+ "description": "Input for recordSmartAction — typically built from a smartActionRecommendations\nitem: copy its `type` → actionType, `entity_id` → entityId, plus the merchant's\nEXECUTED/DISMISSED decision.",
119933
+ "isOneOf": false,
119934
+ "fields": null,
119935
+ "inputFields": [
119936
+ {
119937
+ "name": "actionType",
119938
+ "description": "Action type (the recommendation's `type`).",
119939
+ "type": {
119940
+ "kind": "NON_NULL",
119941
+ "name": null,
119942
+ "ofType": {
119943
+ "kind": "ENUM",
119944
+ "name": "SmartActionType",
119945
+ "ofType": null
119946
+ }
119947
+ },
119948
+ "defaultValue": null,
119949
+ "isDeprecated": false,
119950
+ "deprecationReason": null
119951
+ },
119952
+ {
119953
+ "name": "entityId",
119954
+ "description": "ID of the entity the action targets (product, campaign, segment, ...).",
119955
+ "type": {
119956
+ "kind": "NON_NULL",
119957
+ "name": null,
119958
+ "ofType": {
119959
+ "kind": "SCALAR",
119960
+ "name": "Int",
119961
+ "ofType": null
119962
+ }
119963
+ },
119964
+ "defaultValue": null,
119965
+ "isDeprecated": false,
119966
+ "deprecationReason": null
119967
+ },
119968
+ {
119969
+ "name": "status",
119970
+ "description": "Whether the merchant executed or dismissed the action.",
119971
+ "type": {
119972
+ "kind": "NON_NULL",
119973
+ "name": null,
119974
+ "ofType": {
119975
+ "kind": "ENUM",
119976
+ "name": "SmartActionStatus",
119977
+ "ofType": null
119978
+ }
119979
+ },
119980
+ "defaultValue": null,
119981
+ "isDeprecated": false,
119982
+ "deprecationReason": null
119983
+ },
119984
+ {
119985
+ "name": "entityTitle",
119986
+ "description": "Optional human label of the entity.",
119987
+ "type": {
119988
+ "kind": "SCALAR",
119989
+ "name": "String",
119990
+ "ofType": null
119991
+ },
119992
+ "defaultValue": null,
119993
+ "isDeprecated": false,
119994
+ "deprecationReason": null
119995
+ },
119996
+ {
119997
+ "name": "expectedEffect",
119998
+ "description": "Optional expected-effect text carried from the recommendation.",
119999
+ "type": {
120000
+ "kind": "SCALAR",
120001
+ "name": "String",
120002
+ "ofType": null
120003
+ },
120004
+ "defaultValue": null,
120005
+ "isDeprecated": false,
120006
+ "deprecationReason": null
120007
+ },
120008
+ {
120009
+ "name": "executeRoute",
120010
+ "description": "Optional admin route descriptor carried from the recommendation (e.g. {name, query}).",
120011
+ "type": {
120012
+ "kind": "SCALAR",
120013
+ "name": "JSON",
120014
+ "ofType": null
120015
+ },
120016
+ "defaultValue": null,
120017
+ "isDeprecated": false,
120018
+ "deprecationReason": null
120019
+ }
120020
+ ],
120021
+ "interfaces": null,
120022
+ "enumValues": null,
120023
+ "possibleTypes": null
120024
+ },
119666
120025
  {
119667
120026
  "kind": "ENUM",
119668
120027
  "name": "XmlFeedGeneratorFilter",
Binary file