@fload-ai/mcp 0.12.3 → 0.13.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 (49) hide show
  1. package/README.md +37 -33
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/bin.d.ts.map +1 -1
  4. package/dist/bin.js +144 -2491
  5. package/dist/bin.js.map +4 -4
  6. package/dist/index.d.ts +2 -4
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +162 -2485
  9. package/dist/index.js.map +4 -4
  10. package/dist/proxy.d.ts +7 -0
  11. package/dist/proxy.d.ts.map +1 -0
  12. package/package.json +4 -11
  13. package/skill/SKILL.md +69 -0
  14. package/dist/api-client.d.ts +0 -17
  15. package/dist/api-client.d.ts.map +0 -1
  16. package/dist/api-client.js +0 -152
  17. package/dist/api-client.js.map +0 -7
  18. package/dist/lib/format.d.ts +0 -5
  19. package/dist/lib/format.d.ts.map +0 -1
  20. package/dist/public-errors.d.ts +0 -4
  21. package/dist/public-errors.d.ts.map +0 -1
  22. package/dist/rate-limiter.d.ts +0 -12
  23. package/dist/rate-limiter.d.ts.map +0 -1
  24. package/dist/server.d.ts +0 -5
  25. package/dist/server.d.ts.map +0 -1
  26. package/dist/tools/actions.d.ts +0 -61
  27. package/dist/tools/actions.d.ts.map +0 -1
  28. package/dist/tools/ads.d.ts +0 -28
  29. package/dist/tools/ads.d.ts.map +0 -1
  30. package/dist/tools/agents.d.ts +0 -123
  31. package/dist/tools/agents.d.ts.map +0 -1
  32. package/dist/tools/analytics.d.ts +0 -63
  33. package/dist/tools/analytics.d.ts.map +0 -1
  34. package/dist/tools/apps.d.ts +0 -40
  35. package/dist/tools/apps.d.ts.map +0 -1
  36. package/dist/tools/aso.d.ts +0 -136
  37. package/dist/tools/aso.d.ts.map +0 -1
  38. package/dist/tools/chat.d.ts +0 -63
  39. package/dist/tools/chat.d.ts.map +0 -1
  40. package/dist/tools/dashboard.d.ts +0 -17
  41. package/dist/tools/dashboard.d.ts.map +0 -1
  42. package/dist/tools/download-impact.d.ts +0 -27
  43. package/dist/tools/download-impact.d.ts.map +0 -1
  44. package/dist/tools/index.d.ts +0 -18
  45. package/dist/tools/index.d.ts.map +0 -1
  46. package/dist/tools/index.js +0 -2415
  47. package/dist/tools/index.js.map +0 -7
  48. package/dist/tools/reviews.d.ts +0 -91
  49. package/dist/tools/reviews.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/tools/apps.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA2BvD,eAAO,MAAM,cAAc;;;;;;iBAYzB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;iBAU9B,CAAC;AASH,wBAAsB,QAAQ,CAC5B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,EACrC,MAAM,EAAE,cAAc;;;;;;;;;;;;GAqDvB;AAKD,wBAAsB,aAAa,CACjC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,EAC1C,MAAM,EAAE,cAAc;;;;;;;;;;;;GA2EvB"}
@@ -1,136 +0,0 @@
1
- import { z } from 'zod';
2
- import type { FloadApiClient } from '../api-client.js';
3
- export declare const getAsoSummarySchema: z.ZodObject<{
4
- assetId: z.ZodString;
5
- }, z.core.$strip>;
6
- export declare const getAsoRecommendationsSchema: z.ZodObject<{
7
- assetId: z.ZodString;
8
- }, z.core.$strip>;
9
- export declare const getAsoKeywordsSchema: z.ZodObject<{
10
- assetId: z.ZodString;
11
- locale: z.ZodOptional<z.ZodString>;
12
- }, z.core.$strip>;
13
- export declare const getAsoExperimentsSchema: z.ZodObject<{
14
- assetId: z.ZodString;
15
- status: z.ZodOptional<z.ZodEnum<{
16
- applied: "applied";
17
- proposed: "proposed";
18
- approved: "approved";
19
- measuring: "measuring";
20
- completed: "completed";
21
- reverted: "reverted";
22
- }>>;
23
- limit: z.ZodDefault<z.ZodNumber>;
24
- cursor: z.ZodOptional<z.ZodString>;
25
- }, z.core.$strip>;
26
- export declare const getAsoLocaleSnapshotsSchema: z.ZodObject<{
27
- assetId: z.ZodString;
28
- store: z.ZodDefault<z.ZodEnum<{
29
- ios: "ios";
30
- android: "android";
31
- }>>;
32
- locale: z.ZodOptional<z.ZodString>;
33
- view: z.ZodDefault<z.ZodEnum<{
34
- latest: "latest";
35
- history: "history";
36
- }>>;
37
- limit: z.ZodOptional<z.ZodNumber>;
38
- }, z.core.$strip>;
39
- export declare const triggerAsoAnalysisSchema: z.ZodObject<{
40
- assetId: z.ZodString;
41
- }, z.core.$strip>;
42
- export declare function getAsoSummary(input: z.input<typeof getAsoSummarySchema>, client: FloadApiClient): Promise<{
43
- content: {
44
- type: "text";
45
- text: string;
46
- }[];
47
- isError?: undefined;
48
- } | {
49
- content: {
50
- type: "text";
51
- text: string;
52
- }[];
53
- isError: boolean;
54
- }>;
55
- export declare function getAsoRecommendations(input: z.input<typeof getAsoRecommendationsSchema>, 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 getAsoKeywords(input: z.input<typeof getAsoKeywordsSchema>, 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 getAsoExperiments(input: z.input<typeof getAsoExperimentsSchema>, 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 getAsoLocaleSnapshots(input: z.input<typeof getAsoLocaleSnapshotsSchema>, 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
- export declare function triggerAsoAnalysis(input: z.input<typeof triggerAsoAnalysisSchema>, client: FloadApiClient): Promise<{
108
- content: {
109
- type: "text";
110
- text: string;
111
- }[];
112
- isError?: undefined;
113
- } | {
114
- content: {
115
- type: "text";
116
- text: string;
117
- }[];
118
- isError: boolean;
119
- }>;
120
- export declare const getAsoEvidenceSchema: z.ZodObject<{
121
- assetId: z.ZodString;
122
- }, z.core.$strip>;
123
- export declare function getAsoEvidence(input: z.input<typeof getAsoEvidenceSchema>, client: FloadApiClient): Promise<{
124
- content: {
125
- type: "text";
126
- text: string;
127
- }[];
128
- isError?: undefined;
129
- } | {
130
- content: {
131
- type: "text";
132
- text: string;
133
- }[];
134
- isError: boolean;
135
- }>;
136
- //# sourceMappingURL=aso.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aso.d.ts","sourceRoot":"","sources":["../../src/tools/aso.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOvD,eAAO,MAAM,mBAAmB;;iBAE9B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;iBAKtC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAW/B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBAwBlC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAyBtC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AASH,wBAAsB,aAAa,CACjC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,EAC1C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAyBvB;AAKD,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,EAClD,MAAM,EAAE,cAAc;;;;;;;;;;;;GAyBvB;AAKD,wBAAsB,cAAc,CAClC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAC3C,MAAM,EAAE,cAAc;;;;;;;;;;;;GA6BvB;AAKD,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,EAC9C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAgCvB;AAKD,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,EAClD,MAAM,EAAE,cAAc;;;;;;;;;;;;GA+BvB;AAKD,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,EAC/C,MAAM,EAAE,cAAc;;;;;;;;;;;;GA4BvB;AAGD,eAAO,MAAM,oBAAoB;;iBAA2C,CAAC;AAC7E,wBAAsB,cAAc,CAClC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAC3C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAevB"}
@@ -1,63 +0,0 @@
1
- import { z } from 'zod';
2
- import type { FloadApiClient } from '../api-client.js';
3
- export declare const listConversationsSchema: z.ZodObject<{
4
- limit: z.ZodDefault<z.ZodNumber>;
5
- }, z.core.$strip>;
6
- export declare const getConversationMessagesSchema: z.ZodObject<{
7
- conversationId: z.ZodString;
8
- }, z.core.$strip>;
9
- export declare const sendChatMessageSchema: z.ZodObject<{
10
- message: z.ZodString;
11
- conversationId: z.ZodOptional<z.ZodString>;
12
- agentType: z.ZodOptional<z.ZodString>;
13
- }, z.core.$strip>;
14
- export declare function listConversations(input: z.input<typeof listConversationsSchema>, client: FloadApiClient): Promise<{
15
- content: {
16
- type: "text";
17
- text: string;
18
- }[];
19
- isError?: undefined;
20
- } | {
21
- content: {
22
- type: "text";
23
- text: string;
24
- }[];
25
- isError: boolean;
26
- }>;
27
- export declare function getConversationMessages(input: z.input<typeof getConversationMessagesSchema>, client: FloadApiClient): Promise<{
28
- content: {
29
- type: "text";
30
- text: string;
31
- }[];
32
- isError?: undefined;
33
- } | {
34
- content: {
35
- type: "text";
36
- text: string;
37
- }[];
38
- isError: boolean;
39
- }>;
40
- export declare const FREE_CONVERSATION_LABEL = "Free: your first conversation";
41
- export declare const FREE_CONVERSATION_ENDED_NOTICE = "Your free first conversation has ended; messages now use credits.";
42
- export type ChatAnswerCost = {
43
- free: false;
44
- credits: number;
45
- } | {
46
- free: true;
47
- label: string;
48
- messagesLeft: number;
49
- notice?: string;
50
- };
51
- export declare function parseUiMessageStream(raw: string): {
52
- reply: string;
53
- toolsUsed: string[];
54
- cost: ChatAnswerCost | null;
55
- };
56
- export declare function sendChatMessage(input: z.input<typeof sendChatMessageSchema>, client: FloadApiClient): Promise<{
57
- isError?: boolean | undefined;
58
- content: {
59
- type: "text";
60
- text: string;
61
- }[];
62
- }>;
63
- //# sourceMappingURL=chat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/tools/chat.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOvD,eAAO,MAAM,uBAAuB;;iBAQlC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;iBAKxC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;iBAehC,CAAC;AASH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,EAC9C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAgCvB;AAKD,wBAAsB,uBAAuB,CAC3C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,EACpD,MAAM,EAAE,cAAc;;;;;;;;;;;;GA+BvB;AAQD,eAAO,MAAM,uBAAuB,kCAAkC,CAAC;AACvE,eAAO,MAAM,8BAA8B,sEAC0B,CAAC;AAOtE,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA6BzE,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;CAC7B,CA0BA;AAOD,wBAAsB,eAAe,CACnC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EAC5C,MAAM,EAAE,cAAc;;;;;;GAoFvB"}
@@ -1,17 +0,0 @@
1
- import { z } from 'zod';
2
- import type { FloadApiClient } from '../api-client.js';
3
- export declare const getDashboardOverviewSchema: z.ZodObject<{}, z.core.$strip>;
4
- export declare function getDashboardOverview(_input: z.input<typeof getDashboardOverviewSchema>, client: FloadApiClient): Promise<{
5
- content: {
6
- type: "text";
7
- text: string;
8
- }[];
9
- isError?: undefined;
10
- } | {
11
- content: {
12
- type: "text";
13
- text: string;
14
- }[];
15
- isError: boolean;
16
- }>;
17
- //# sourceMappingURL=dashboard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/tools/dashboard.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA4CvD,eAAO,MAAM,0BAA0B,gCAAe,CAAC;AASvD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,EAClD,MAAM,EAAE,cAAc;;;;;;;;;;;;GAoEvB"}
@@ -1,27 +0,0 @@
1
- import { z } from 'zod';
2
- import type { FloadApiClient } from '../api-client.js';
3
- export declare const getDownloadImpactSchema: z.ZodObject<{
4
- assetId: z.ZodString;
5
- from: z.ZodOptional<z.ZodString>;
6
- to: z.ZodOptional<z.ZodString>;
7
- beforeFrom: z.ZodOptional<z.ZodString>;
8
- beforeTo: z.ZodOptional<z.ZodString>;
9
- afterFrom: z.ZodOptional<z.ZodString>;
10
- afterTo: z.ZodOptional<z.ZodString>;
11
- country: z.ZodOptional<z.ZodString>;
12
- includeDays: z.ZodOptional<z.ZodBoolean>;
13
- }, z.core.$strip>;
14
- export declare function getDownloadImpact(input: z.input<typeof getDownloadImpactSchema>, client: FloadApiClient): Promise<{
15
- content: {
16
- type: "text";
17
- text: string;
18
- }[];
19
- isError?: undefined;
20
- } | {
21
- content: {
22
- type: "text";
23
- text: string;
24
- }[];
25
- isError: boolean;
26
- }>;
27
- //# sourceMappingURL=download-impact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"download-impact.d.ts","sourceRoot":"","sources":["../../src/tools/download-impact.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQvD,eAAO,MAAM,uBAAuB;;;;;;;;;;iBA2BlC,CAAC;AAQH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,EAC9C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAyBvB"}
@@ -1,18 +0,0 @@
1
- import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
- import type { FloadApiClient } from '../api-client.js';
3
- import { RateLimiter } from '../rate-limiter.js';
4
- export * from './apps.js';
5
- export * from './reviews.js';
6
- export * from './analytics.js';
7
- export * from './download-impact.js';
8
- export * from './agents.js';
9
- export * from './ads.js';
10
- export * from './dashboard.js';
11
- export * from './actions.js';
12
- export * from './aso.js';
13
- export * from './chat.js';
14
- export interface RegisterToolsOptions {
15
- rateLimiter?: RateLimiter;
16
- }
17
- export declare function registerTools(server: McpServer, client: FloadApiClient, options?: RegisterToolsOptions): void;
18
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,SAAS,EAEV,MAAM,yCAAyC,CAAC;AAGjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAwF1B,MAAM,WAAW,oBAAoB;IAMnC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAoBD,wBAAgB,aAAa,CAC3B,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE,oBAAyB,GACjC,IAAI,CA4VN"}