@fload-ai/mcp 0.5.0 → 0.7.0

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.
Files changed (44) hide show
  1. package/README.md +1 -1
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/api-client.d.ts +5 -0
  4. package/dist/api-client.d.ts.map +1 -1
  5. package/dist/api-client.js +21 -2
  6. package/dist/api-client.js.map +2 -2
  7. package/dist/bin.d.ts +1 -1
  8. package/dist/bin.d.ts.map +1 -1
  9. package/dist/bin.js +646 -711
  10. package/dist/bin.js.map +4 -4
  11. package/dist/config.d.ts +1 -2
  12. package/dist/config.d.ts.map +1 -1
  13. package/dist/index.js +567 -638
  14. package/dist/index.js.map +4 -4
  15. package/dist/rate-limiter.d.ts.map +1 -1
  16. package/dist/tools/actions.d.ts +20 -37
  17. package/dist/tools/actions.d.ts.map +1 -1
  18. package/dist/tools/ads.d.ts +8 -15
  19. package/dist/tools/ads.d.ts.map +1 -1
  20. package/dist/tools/agents.d.ts +22 -48
  21. package/dist/tools/agents.d.ts.map +1 -1
  22. package/dist/tools/analytics.d.ts +12 -34
  23. package/dist/tools/analytics.d.ts.map +1 -1
  24. package/dist/tools/apps.d.ts +8 -17
  25. package/dist/tools/apps.d.ts.map +1 -1
  26. package/dist/tools/aso.d.ts +43 -51
  27. package/dist/tools/aso.d.ts.map +1 -1
  28. package/dist/tools/chat.d.ts +7 -23
  29. package/dist/tools/chat.d.ts.map +1 -1
  30. package/dist/tools/dashboard.d.ts +2 -2
  31. package/dist/tools/dashboard.d.ts.map +1 -1
  32. package/dist/tools/index.d.ts +0 -3
  33. package/dist/tools/index.d.ts.map +1 -1
  34. package/dist/tools/index.js +563 -644
  35. package/dist/tools/index.js.map +4 -4
  36. package/dist/tools/reviews.d.ts +17 -60
  37. package/dist/tools/reviews.d.ts.map +1 -1
  38. package/package.json +1 -1
  39. package/dist/tools/anomalies.d.ts +0 -107
  40. package/dist/tools/anomalies.d.ts.map +0 -1
  41. package/dist/tools/forecasting.d.ts +0 -32
  42. package/dist/tools/forecasting.d.ts.map +0 -1
  43. package/dist/tools/growth.d.ts +0 -43
  44. package/dist/tools/growth.d.ts.map +0 -1
@@ -3,57 +3,30 @@ import type { FloadApiClient } from '../api-client.js';
3
3
  export declare const getReviewsSchema: z.ZodObject<{
4
4
  assetId: z.ZodOptional<z.ZodString>;
5
5
  bundleId: z.ZodOptional<z.ZodString>;
6
- platform: z.ZodOptional<z.ZodEnum<["ios", "android"]>>;
6
+ platform: z.ZodOptional<z.ZodEnum<{
7
+ ios: "ios";
8
+ android: "android";
9
+ }>>;
7
10
  rating: z.ZodOptional<z.ZodNumber>;
8
11
  replied: z.ZodOptional<z.ZodBoolean>;
9
12
  startDate: z.ZodOptional<z.ZodString>;
10
13
  endDate: z.ZodOptional<z.ZodString>;
11
14
  limit: z.ZodDefault<z.ZodNumber>;
12
- sortBy: z.ZodDefault<z.ZodEnum<["date", "rating"]>>;
13
- }, "strip", z.ZodTypeAny, {
14
- limit?: number;
15
- assetId?: string;
16
- bundleId?: string;
17
- platform?: "ios" | "android";
18
- rating?: number;
19
- startDate?: string;
20
- endDate?: string;
21
- replied?: boolean;
22
- sortBy?: "rating" | "date";
23
- }, {
24
- limit?: number;
25
- assetId?: string;
26
- bundleId?: string;
27
- platform?: "ios" | "android";
28
- rating?: number;
29
- startDate?: string;
30
- endDate?: string;
31
- replied?: boolean;
32
- sortBy?: "rating" | "date";
33
- }>;
15
+ cursor: z.ZodOptional<z.ZodString>;
16
+ sortBy: z.ZodDefault<z.ZodEnum<{
17
+ date: "date";
18
+ rating: "rating";
19
+ }>>;
20
+ }, z.core.$strip>;
34
21
  export declare const generateReviewReplySchema: z.ZodObject<{
35
22
  reviewId: z.ZodString;
36
23
  assetId: z.ZodString;
37
- }, "strip", z.ZodTypeAny, {
38
- assetId?: string;
39
- reviewId?: string;
40
- }, {
41
- assetId?: string;
42
- reviewId?: string;
43
- }>;
24
+ }, z.core.$strip>;
44
25
  export declare const sendReviewReplySchema: z.ZodObject<{
45
26
  reviewId: z.ZodString;
46
27
  assetId: z.ZodString;
47
28
  response: z.ZodString;
48
- }, "strip", z.ZodTypeAny, {
49
- assetId?: string;
50
- reviewId?: string;
51
- response?: string;
52
- }, {
53
- assetId?: string;
54
- reviewId?: string;
55
- response?: string;
56
- }>;
29
+ }, z.core.$strip>;
57
30
  export declare const translateReviewSchema: z.ZodObject<{
58
31
  reviewId: z.ZodString;
59
32
  assetId: z.ZodString;
@@ -62,24 +35,8 @@ export declare const translateReviewSchema: z.ZodObject<{
62
35
  body: z.ZodString;
63
36
  storeFront: z.ZodDefault<z.ZodString>;
64
37
  appVersionString: z.ZodDefault<z.ZodString>;
65
- }, "strip", z.ZodTypeAny, {
66
- assetId?: string;
67
- rating?: number;
68
- reviewId?: string;
69
- title?: string;
70
- body?: string;
71
- storeFront?: string;
72
- appVersionString?: string;
73
- }, {
74
- assetId?: string;
75
- rating?: number;
76
- reviewId?: string;
77
- title?: string;
78
- body?: string;
79
- storeFront?: string;
80
- appVersionString?: string;
81
- }>;
82
- export declare function getReviews(input: z.infer<typeof getReviewsSchema>, client: FloadApiClient): Promise<{
38
+ }, z.core.$strip>;
39
+ export declare function getReviews(input: z.input<typeof getReviewsSchema>, client: FloadApiClient): Promise<{
83
40
  content: {
84
41
  type: "text";
85
42
  text: string;
@@ -92,7 +49,7 @@ export declare function getReviews(input: z.infer<typeof getReviewsSchema>, clie
92
49
  }[];
93
50
  isError?: undefined;
94
51
  }>;
95
- export declare function generateReviewReply(input: z.infer<typeof generateReviewReplySchema>, client: FloadApiClient): Promise<{
52
+ export declare function generateReviewReply(input: z.input<typeof generateReviewReplySchema>, client: FloadApiClient): Promise<{
96
53
  content: {
97
54
  type: "text";
98
55
  text: string;
@@ -105,7 +62,7 @@ export declare function generateReviewReply(input: z.infer<typeof generateReview
105
62
  }[];
106
63
  isError: boolean;
107
64
  }>;
108
- export declare function sendReviewReply(input: z.infer<typeof sendReviewReplySchema>, client: FloadApiClient): Promise<{
65
+ export declare function sendReviewReply(input: z.input<typeof sendReviewReplySchema>, client: FloadApiClient): Promise<{
109
66
  content: {
110
67
  type: "text";
111
68
  text: string;
@@ -118,7 +75,7 @@ export declare function sendReviewReply(input: z.infer<typeof sendReviewReplySch
118
75
  }[];
119
76
  isError: boolean;
120
77
  }>;
121
- export declare function translateReview(input: z.infer<typeof translateReviewSchema>, client: FloadApiClient): Promise<{
78
+ export declare function translateReview(input: z.input<typeof translateReviewSchema>, client: FloadApiClient): Promise<{
122
79
  content: {
123
80
  type: "text";
124
81
  text: string;
@@ -1 +1 @@
1
- {"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../../src/tools/reviews.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAmDvD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU3B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAIhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EAUhC,CAAC;AASH,wBAAsB,UAAU,CAC9B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,EACvC,MAAM,EAAE,cAAc;;;;;;;;;;;;GA8HvB;AAKD,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,EAChD,MAAM,EAAE,cAAc;;;;;;;;;;;;GA2BvB;AAKD,wBAAsB,eAAe,CACnC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EAC5C,MAAM,EAAE,cAAc;;;;;;;;;;;;GA4BvB;AAKD,wBAAsB,eAAe,CACnC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EAC5C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAmCvB"}
1
+ {"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../../src/tools/reviews.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAqDvD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;iBA2C3B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;iBAqBhC,CAAC;AASH,wBAAsB,UAAU,CAC9B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,EACvC,MAAM,EAAE,cAAc;;;;;;;;;;;;GAyHvB;AAoBD,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,EAChD,MAAM,EAAE,cAAc;;;;;;;;;;;;GA2BvB;AAKD,wBAAsB,eAAe,CACnC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EAC5C,MAAM,EAAE,cAAc;;;;;;;;;;;;GA4BvB;AAKD,wBAAsB,eAAe,CACnC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EAC5C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAmCvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fload-ai/mcp",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Fload MCP server for AI agents - exposes mobile app analytics, reviews, and growth insights",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,107 +0,0 @@
1
- import { z } from 'zod';
2
- import type { FloadApiClient } from '../api-client.js';
3
- export declare const getAnomaliesSchema: z.ZodObject<{
4
- assetId: z.ZodOptional<z.ZodString>;
5
- severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
6
- type: z.ZodOptional<z.ZodEnum<["surge", "decline"]>>;
7
- status: z.ZodOptional<z.ZodEnum<["new", "viewed", "acknowledged", "dismissed"]>>;
8
- metricName: z.ZodOptional<z.ZodString>;
9
- fromDate: z.ZodOptional<z.ZodString>;
10
- toDate: z.ZodOptional<z.ZodString>;
11
- excludeDismissed: z.ZodDefault<z.ZodBoolean>;
12
- limit: z.ZodDefault<z.ZodNumber>;
13
- }, "strip", z.ZodTypeAny, {
14
- limit?: number;
15
- type?: "surge" | "decline";
16
- status?: "new" | "viewed" | "acknowledged" | "dismissed";
17
- assetId?: string;
18
- metricName?: string;
19
- fromDate?: string;
20
- toDate?: string;
21
- severity?: "low" | "medium" | "high" | "critical";
22
- excludeDismissed?: boolean;
23
- }, {
24
- limit?: number;
25
- type?: "surge" | "decline";
26
- status?: "new" | "viewed" | "acknowledged" | "dismissed";
27
- assetId?: string;
28
- metricName?: string;
29
- fromDate?: string;
30
- toDate?: string;
31
- severity?: "low" | "medium" | "high" | "critical";
32
- excludeDismissed?: boolean;
33
- }>;
34
- export declare const getAnomalyDetailSchema: z.ZodObject<{
35
- id: z.ZodString;
36
- }, "strip", z.ZodTypeAny, {
37
- id?: string;
38
- }, {
39
- id?: string;
40
- }>;
41
- export declare const acknowledgeAnomalySchema: z.ZodObject<{
42
- id: z.ZodString;
43
- }, "strip", z.ZodTypeAny, {
44
- id?: string;
45
- }, {
46
- id?: string;
47
- }>;
48
- export declare const dismissAnomalySchema: z.ZodObject<{
49
- id: z.ZodString;
50
- }, "strip", z.ZodTypeAny, {
51
- id?: string;
52
- }, {
53
- id?: string;
54
- }>;
55
- export declare function getAnomalies(input: z.infer<typeof getAnomaliesSchema>, client: FloadApiClient): Promise<{
56
- content: {
57
- type: "text";
58
- text: string;
59
- }[];
60
- isError?: undefined;
61
- } | {
62
- content: {
63
- type: "text";
64
- text: string;
65
- }[];
66
- isError: boolean;
67
- }>;
68
- export declare function getAnomalyDetail(input: z.infer<typeof getAnomalyDetailSchema>, client: FloadApiClient): Promise<{
69
- content: {
70
- type: "text";
71
- text: string;
72
- }[];
73
- isError?: undefined;
74
- } | {
75
- content: {
76
- type: "text";
77
- text: string;
78
- }[];
79
- isError: boolean;
80
- }>;
81
- export declare function acknowledgeAnomaly(input: z.infer<typeof acknowledgeAnomalySchema>, client: FloadApiClient): Promise<{
82
- content: {
83
- type: "text";
84
- text: string;
85
- }[];
86
- isError?: undefined;
87
- } | {
88
- content: {
89
- type: "text";
90
- text: string;
91
- }[];
92
- isError: boolean;
93
- }>;
94
- export declare function dismissAnomaly(input: z.infer<typeof dismissAnomalySchema>, client: FloadApiClient): Promise<{
95
- content: {
96
- type: "text";
97
- text: string;
98
- }[];
99
- isError?: undefined;
100
- } | {
101
- content: {
102
- type: "text";
103
- text: string;
104
- }[];
105
- isError: boolean;
106
- }>;
107
- //# sourceMappingURL=anomalies.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"anomalies.d.ts","sourceRoot":"","sources":["../../src/tools/anomalies.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAgCvD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU7B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;EAEjC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;EAEnC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AASH,wBAAsB,YAAY,CAChC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,EACzC,MAAM,EAAE,cAAc;;;;;;;;;;;;GAmEvB;AAKD,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,EAC7C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAwBvB;AAKD,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,EAC/C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAwBvB;AAKD,wBAAsB,cAAc,CAClC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAC3C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAwBvB"}
@@ -1,32 +0,0 @@
1
- import { z } from 'zod';
2
- import type { FloadApiClient } from '../api-client.js';
3
- export declare const getForecastsSchema: z.ZodObject<{
4
- assetId: z.ZodString;
5
- metric: z.ZodEnum<["proceeds", "total_revenue", "total_downloads", "active_subs", "new_trials"]>;
6
- forecastWeeks: z.ZodOptional<z.ZodNumber>;
7
- historicalWeeks: z.ZodOptional<z.ZodNumber>;
8
- }, "strip", z.ZodTypeAny, {
9
- assetId?: string;
10
- metric?: "proceeds" | "total_revenue" | "total_downloads" | "active_subs" | "new_trials";
11
- forecastWeeks?: number;
12
- historicalWeeks?: number;
13
- }, {
14
- assetId?: string;
15
- metric?: "proceeds" | "total_revenue" | "total_downloads" | "active_subs" | "new_trials";
16
- forecastWeeks?: number;
17
- historicalWeeks?: number;
18
- }>;
19
- export declare function getForecasts(input: z.infer<typeof getForecastsSchema>, client: FloadApiClient): Promise<{
20
- content: {
21
- type: "text";
22
- text: string;
23
- }[];
24
- isError?: undefined;
25
- } | {
26
- content: {
27
- type: "text";
28
- text: string;
29
- }[];
30
- isError: boolean;
31
- }>;
32
- //# sourceMappingURL=forecasting.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"forecasting.d.ts","sourceRoot":"","sources":["../../src/tools/forecasting.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOvD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAO7B,CAAC;AASH,wBAAsB,YAAY,CAChC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,EACzC,MAAM,EAAE,cAAc;;;;;;;;;;;;GA6BvB"}
@@ -1,43 +0,0 @@
1
- import { z } from 'zod';
2
- import type { FloadApiClient } from '../api-client.js';
3
- export declare const getGrowthAuditSchema: z.ZodObject<{
4
- assetId: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- assetId?: string;
7
- }, {
8
- assetId?: string;
9
- }>;
10
- export declare const getGrowthScoreSchema: z.ZodObject<{
11
- assetId: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- assetId?: string;
14
- }, {
15
- assetId?: string;
16
- }>;
17
- export declare function getGrowthAudit(input: z.infer<typeof getGrowthAuditSchema>, client: FloadApiClient): Promise<{
18
- content: {
19
- type: "text";
20
- text: string;
21
- }[];
22
- isError?: undefined;
23
- } | {
24
- content: {
25
- type: "text";
26
- text: string;
27
- }[];
28
- isError: boolean;
29
- }>;
30
- export declare function getGrowthScore(input: z.infer<typeof getGrowthScoreSchema>, client: FloadApiClient): Promise<{
31
- content: {
32
- type: "text";
33
- text: string;
34
- }[];
35
- isError?: undefined;
36
- } | {
37
- content: {
38
- type: "text";
39
- text: string;
40
- }[];
41
- isError: boolean;
42
- }>;
43
- //# sourceMappingURL=growth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"growth.d.ts","sourceRoot":"","sources":["../../src/tools/growth.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOvD,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AASH,wBAAsB,cAAc,CAClC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAC3C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAuBvB;AAKD,wBAAsB,cAAc,CAClC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAC3C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAuBvB"}