@fload-ai/mcp 0.1.1 → 0.2.1
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 +79 -46
- package/dist/.tsbuildinfo +1 -0
- package/dist/api-client.d.ts +11 -0
- package/dist/api-client.d.ts.map +1 -0
- package/dist/api-client.js +53 -0
- package/dist/api-client.js.map +7 -0
- package/dist/bin.d.ts +2 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +2012 -0
- package/dist/bin.js.map +7 -0
- package/dist/config.d.ts +8 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +933 -247
- package/dist/index.js.map +4 -4
- package/dist/lib/format.d.ts +5 -0
- package/dist/lib/format.d.ts.map +1 -0
- package/dist/rate-limiter.d.ts +12 -0
- package/dist/rate-limiter.d.ts.map +1 -0
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/tools/actions.d.ts +69 -0
- package/dist/tools/actions.d.ts.map +1 -0
- package/dist/tools/ads.d.ts +35 -0
- package/dist/tools/ads.d.ts.map +1 -0
- package/dist/tools/agents.d.ts +149 -0
- package/dist/tools/agents.d.ts.map +1 -0
- package/dist/tools/analytics.d.ts +84 -0
- package/dist/tools/analytics.d.ts.map +1 -0
- package/dist/tools/anomalies.d.ts +107 -0
- package/dist/tools/anomalies.d.ts.map +1 -0
- package/dist/tools/apps.d.ts +49 -0
- package/dist/tools/apps.d.ts.map +1 -0
- package/dist/tools/aso.d.ts +135 -0
- package/dist/tools/aso.d.ts.map +1 -0
- package/dist/tools/chat.d.ts +69 -0
- package/dist/tools/chat.d.ts.map +1 -0
- package/dist/tools/dashboard.d.ts +17 -0
- package/dist/tools/dashboard.d.ts.map +1 -0
- package/dist/tools/forecasting.d.ts +26 -0
- package/dist/tools/forecasting.d.ts.map +1 -0
- package/dist/tools/growth.d.ts +43 -0
- package/dist/tools/growth.d.ts.map +1 -0
- package/dist/tools/index.d.ts +20 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +1952 -0
- package/dist/tools/index.js.map +7 -0
- package/dist/tools/reviews.d.ts +119 -0
- package/dist/tools/reviews.d.ts.map +1 -0
- package/package.json +18 -3
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
limit?: number;
|
|
7
|
+
}, {
|
|
8
|
+
limit?: number;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const getConversationMessagesSchema: z.ZodObject<{
|
|
11
|
+
conversationId: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
conversationId?: string;
|
|
14
|
+
}, {
|
|
15
|
+
conversationId?: string;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const sendChatMessageSchema: z.ZodObject<{
|
|
18
|
+
message: z.ZodString;
|
|
19
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
agentType: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
message?: string;
|
|
23
|
+
agentType?: string;
|
|
24
|
+
conversationId?: string;
|
|
25
|
+
}, {
|
|
26
|
+
message?: string;
|
|
27
|
+
agentType?: string;
|
|
28
|
+
conversationId?: string;
|
|
29
|
+
}>;
|
|
30
|
+
export declare function listConversations(input: z.infer<typeof listConversationsSchema>, 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
|
+
export declare function getConversationMessages(input: z.infer<typeof getConversationMessagesSchema>, client: FloadApiClient): Promise<{
|
|
44
|
+
content: {
|
|
45
|
+
type: "text";
|
|
46
|
+
text: string;
|
|
47
|
+
}[];
|
|
48
|
+
isError?: undefined;
|
|
49
|
+
} | {
|
|
50
|
+
content: {
|
|
51
|
+
type: "text";
|
|
52
|
+
text: string;
|
|
53
|
+
}[];
|
|
54
|
+
isError: boolean;
|
|
55
|
+
}>;
|
|
56
|
+
export declare function sendChatMessage(input: z.infer<typeof sendChatMessageSchema>, client: FloadApiClient): Promise<{
|
|
57
|
+
content: {
|
|
58
|
+
type: "text";
|
|
59
|
+
text: string;
|
|
60
|
+
}[];
|
|
61
|
+
isError?: undefined;
|
|
62
|
+
} | {
|
|
63
|
+
content: {
|
|
64
|
+
type: "text";
|
|
65
|
+
text: string;
|
|
66
|
+
}[];
|
|
67
|
+
isError: boolean;
|
|
68
|
+
}>;
|
|
69
|
+
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/tools/chat.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOvD,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;EAExC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAIhC,CAAC;AASH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,EAC9C,MAAM,EAAE,cAAc;;;;;;;;;;;;GA8BvB;AAKD,wBAAsB,uBAAuB,CAC3C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,EACpD,MAAM,EAAE,cAAc;;;;;;;;;;;;GA6BvB;AAKD,wBAAsB,eAAe,CACnC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EAC5C,MAAM,EAAE,cAAc;;;;;;;;;;;;GA6BvB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { FloadApiClient } from '../api-client.js';
|
|
3
|
+
export declare const getDashboardOverviewSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
4
|
+
export declare function getDashboardOverview(_input: z.infer<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
|
|
@@ -0,0 +1 @@
|
|
|
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;AAOvD,eAAO,MAAM,0BAA0B,gDAAe,CAAC;AASvD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,EAClD,MAAM,EAAE,cAAc;;;;;;;;;;;;GAuDvB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
dataPoints: z.ZodDefault<z.ZodNumber>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
assetId?: string;
|
|
8
|
+
dataPoints?: number;
|
|
9
|
+
}, {
|
|
10
|
+
assetId?: string;
|
|
11
|
+
dataPoints?: number;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function getForecasts(input: z.infer<typeof getForecastsSchema>, client: FloadApiClient): Promise<{
|
|
14
|
+
content: {
|
|
15
|
+
type: "text";
|
|
16
|
+
text: string;
|
|
17
|
+
}[];
|
|
18
|
+
isError?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
content: {
|
|
21
|
+
type: "text";
|
|
22
|
+
text: string;
|
|
23
|
+
}[];
|
|
24
|
+
isError: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
//# sourceMappingURL=forecasting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;;;;;;;;EAG7B,CAAC;AASH,wBAAsB,YAAY,CAChC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,EACzC,MAAM,EAAE,cAAc;;;;;;;;;;;;GA2BvB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 './agents.js';
|
|
8
|
+
export * from './anomalies.js';
|
|
9
|
+
export * from './ads.js';
|
|
10
|
+
export * from './growth.js';
|
|
11
|
+
export * from './forecasting.js';
|
|
12
|
+
export * from './dashboard.js';
|
|
13
|
+
export * from './actions.js';
|
|
14
|
+
export * from './aso.js';
|
|
15
|
+
export * from './chat.js';
|
|
16
|
+
export interface RegisterToolsOptions {
|
|
17
|
+
rateLimiter?: RateLimiter;
|
|
18
|
+
}
|
|
19
|
+
export declare function registerTools(server: McpServer, client: FloadApiClient, options?: RegisterToolsOptions): void;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,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,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AA4F1B,MAAM,WAAW,oBAAoB;IAMnC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAeD,wBAAgB,aAAa,CAC3B,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE,oBAAyB,GACjC,IAAI,CAmXN"}
|