@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
package/skill/SKILL.md ADDED
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: fload
3
+ description: Use when the user has Fload MCP tools available and asks about mobile app analytics, reviews, growth metrics, ad performance, App Store Optimization or Fload's agents. Teaches effective use of Fload's MCP tools for mobile app publishers.
4
+ license: MIT
5
+ metadata:
6
+ author: fload-ai
7
+ version: '2.0.0'
8
+ ---
9
+
10
+ # Fload: Mobile App Analytics via MCP
11
+
12
+ You have Fload's MCP tools. Use them to help the user understand how their apps are doing, manage reviews, track growth and work with Fload's agents.
13
+
14
+ ## What Is Fload?
15
+
16
+ Fload is a platform for mobile app publishers. It brings together App Store Connect, Google Play Console, ad platforms (Apple Search Ads, Google Ads, Meta, TikTok), RevenueCat, Stripe and analytics tools, and runs agents that look after an app's reviews, App Store listing (ASO) and Apple Ads.
17
+
18
+ The server gives each tool's name, description and inputs, and tells you at `initialize` how its tools work together. This skill covers the common paths.
19
+
20
+ ## Ground rules
21
+
22
+ - Start with `listAssets`. Every app-level tool takes the app's id as `assetId`; pass it on every call. A tool that needs an app and gets none refuses rather than guessing.
23
+ - Changes never publish in one step. A tool that changes a listing, Apple Ads, a review reply or an experiment stages an item in the Fload inbox. Read it with `getActionItem`, and approve it with `approvePendingAction` or `commandActionItems` only when the person asked for that decision.
24
+ - `null` means unknown, not zero. A metric listed as unavailable was not measured: never report it as 0.
25
+ - A result marked as an error says why in plain words. Fix the call or tell the person; never retry the same call unchanged.
26
+
27
+ ## Common workflows
28
+
29
+ ### "How is my app doing?"
30
+
31
+ 1. `listAssets` to find the app.
32
+ 2. `getMetrics` for revenue and downloads (`discoverMetrics` first when you don't know the metric names). Quote its totals; they are aggregated the right way for each metric.
33
+
34
+ ### "Show me my reviews"
35
+
36
+ 1. `getReviews` with filters (rating 1-2 for negative ones, `replied: false` for unanswered ones).
37
+ 2. `generateReviewReply` drafts one reply, `generateReviewReplies` many; each is staged in the inbox.
38
+ 3. `review_stage_reply` stages the person's own text as the reply.
39
+ 4. To send, approve the items (`commandActionItems` with command "approve", one target per item) when the person asks.
40
+
41
+ ### "What's happening with my ads?"
42
+
43
+ 1. `ads_campaigns` for an app's campaigns on every ad platform, with spend and installs.
44
+ 2. The `asa_*` tools for Apple Search Ads in depth (keywords, search terms, wasted spend, bid suggestions).
45
+
46
+ ### "Give me a full business overview"
47
+
48
+ 1. `getDashboardOverview` for the portfolio.
49
+ 2. `getMetrics` per app for its trend.
50
+
51
+ ### "How can I improve my store listing?"
52
+
53
+ 1. `getAsoSummary` for the app's ASO health, `aso_recommendations` for proposed changes.
54
+ 2. `aso_tracked_keywords` for the keywords Fload tracks and their ranks; `market_*` tools for the market.
55
+ 3. `aso_update_listing_text` stages a listing change in the inbox.
56
+
57
+ ### "Did Fload's changes affect my downloads (in a country)?"
58
+
59
+ 1. `getDownloadImpact` for the app (add `country` for one storefront).
60
+ 2. Judge listing changes on `organicSearch` against the same weeks last year, never on total, paid or browse downloads.
61
+
62
+ ### "What are the agents doing?"
63
+
64
+ 1. `getAgentStatus` for an app's agents, `agent_run_history` and `agent_activity` for what one did.
65
+ 2. `getPendingActions` and `getTaskLedger` for the work waiting in the inbox.
66
+
67
+ ## Older tool names
68
+
69
+ On an API key connection, the names of `@fload-ai/mcp` 0.12 and before (`list_apps`, `get_metrics`, `approve_action`, …) still work as aliases of the tools above; each says which tool it stands for. Prefer the names above.
@@ -1,17 +0,0 @@
1
- export declare class FloadApiClient {
2
- private baseUrl;
3
- private apiKey;
4
- constructor(baseUrl: string, apiKey: string);
5
- private request;
6
- get<TResponse = Record<string, unknown>>(path: string, params?: Record<string, string | number | boolean | undefined>): Promise<TResponse>;
7
- post<TResponse = Record<string, unknown>>(path: string, body?: unknown): Promise<TResponse>;
8
- postForAnswer<TResponse = Record<string, unknown>>(path: string, body?: unknown): Promise<{
9
- ok: boolean;
10
- status: number;
11
- body: TResponse | null;
12
- }>;
13
- patch<TResponse = Record<string, unknown>>(path: string, body?: unknown): Promise<TResponse>;
14
- delete<TResponse = Record<string, unknown>>(path: string): Promise<TResponse>;
15
- postStream(path: string, body?: unknown): Promise<string>;
16
- }
17
- //# sourceMappingURL=api-client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAkCA,qBAAa,cAAc;IAEvB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,MAAM;gBADN,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM;YAGV,OAAO;IA2Bf,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3C,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,GAC7D,OAAO,CAAC,SAAS,CAAC;IAWf,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5C,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,OAAO,GACb,OAAO,CAAC,SAAS,CAAC;IAaf,aAAa,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrD,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,OAAO,GACb,OAAO,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAA;KAAE,CAAC;IAsB7D,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7C,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,OAAO,GACb,OAAO,CAAC,SAAS,CAAC;IAOf,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9C,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,SAAS,CAAC;IAQf,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAqBhE"}
@@ -1,152 +0,0 @@
1
- // src/public-errors.ts
2
- var INTERNAL_ERROR_PATTERNS = [
3
- /\b(stack|trace|at\s+[\w.$<>]+\s*\()/i,
4
- /\b(sql|postgres|drizzle|database|constraint|duplicate key|violates|relation)\b/i,
5
- /\b(fetch|undici|socket|ECONNRESET|ETIMEDOUT|ENOTFOUND|EAI_AGAIN|HTTP\s+\d{3})\b/i,
6
- /\b(token|secret|api[_-]?key|authorization|bearer|cookie|password)\b/i,
7
- /\b[a-z0-9]+_(secret|token|key)\b/i,
8
- /\b(secret|token|key)[_-][a-z0-9]+\b/i,
9
- /\b(scrap|browser|patchright|playwright|chromium|page\.|locator|selector)\b/i,
10
- /\b(redis|bullmq|queue|job id|worker)\b/i
11
- ];
12
- function looksInternal(message) {
13
- return INTERNAL_ERROR_PATTERNS.some((pattern) => pattern.test(message));
14
- }
15
- function publicMcpErrorMessage(message, fallbackMessage = "Fload could not complete the request. Please try again.") {
16
- const raw = message instanceof Error ? message.message : typeof message === "string" ? message : "";
17
- const normalized = raw.replace(/\s+/g, " ").trim();
18
- if (!normalized || normalized.length > 180 || looksInternal(normalized)) {
19
- return fallbackMessage;
20
- }
21
- return normalized;
22
- }
23
- var SCOPE_PATTERN = /^(read|write):[a-z]{2,20}$/;
24
- function insufficientScopeOf(status, wwwAuthenticate, body) {
25
- if (status !== 403) return null;
26
- const fromHeader = wwwAuthenticate?.includes("insufficient_scope") ? /scope="([^"]*)"/.exec(wwwAuthenticate)?.[1] : void 0;
27
- const record = body && typeof body === "object" ? body : {};
28
- if (fromHeader === void 0 && record.error !== "insufficient_scope") {
29
- return null;
30
- }
31
- const scope = fromHeader ?? (typeof record.scope === "string" ? record.scope : "");
32
- return SCOPE_PATTERN.test(scope) ? scope : "";
33
- }
34
- function insufficientScopeMessage(scope) {
35
- const permission = scope ? `the ${scope} permission` : "the permission this needs";
36
- return `This API key does not have ${permission}. Create a key that includes it in Fload: Settings \u2192 API keys.`;
37
- }
38
-
39
- // src/api-client.ts
40
- function refusalError(response, error) {
41
- const scope = insufficientScopeOf(
42
- response.status,
43
- response.headers.get("www-authenticate"),
44
- error
45
- );
46
- if (scope !== null) return new Error(insufficientScopeMessage(scope));
47
- return new Error(
48
- publicMcpErrorMessage(
49
- error.publicMessage || error.message || response.statusText,
50
- response.status >= 500 ? "Fload could not complete the request. Please try again." : "Fload rejected the request. Please check access and try again."
51
- )
52
- );
53
- }
54
- var FloadApiClient = class {
55
- constructor(baseUrl, apiKey) {
56
- this.baseUrl = baseUrl;
57
- this.apiKey = apiKey;
58
- }
59
- baseUrl;
60
- apiKey;
61
- async request(path, options = {}) {
62
- const url = `${this.baseUrl}${path}`;
63
- const headers = {
64
- Authorization: `Bearer ${this.apiKey}`,
65
- ...options.body ? { "Content-Type": "application/json" } : {},
66
- ...options.headers
67
- };
68
- const response = await fetch(url, {
69
- ...options,
70
- headers
71
- });
72
- if (!response.ok) {
73
- const error = await response.json().catch(() => ({ message: response.statusText }));
74
- throw refusalError(response, error);
75
- }
76
- return response.json();
77
- }
78
- async get(path, params) {
79
- const searchParams = new URLSearchParams();
80
- if (params) {
81
- for (const [key, value] of Object.entries(params)) {
82
- if (value !== void 0) searchParams.set(key, String(value));
83
- }
84
- }
85
- const query = searchParams.toString();
86
- return this.request(`${path}${query ? `?${query}` : ""}`);
87
- }
88
- async post(path, body) {
89
- return this.request(path, {
90
- method: "POST",
91
- body: body ? JSON.stringify(body) : void 0
92
- });
93
- }
94
- /**
95
- * POST that hands back the answer instead of throwing on a non-2xx status:
96
- * for endpoints whose refusals carry a structured body (FLO-1595: the
97
- * Actions commands answer one target with that target's own status and
98
- * reason). `body` is null when the response is not JSON.
99
- */
100
- async postForAnswer(path, body) {
101
- const response = await fetch(`${this.baseUrl}${path}`, {
102
- method: "POST",
103
- headers: {
104
- Authorization: `Bearer ${this.apiKey}`,
105
- ...body ? { "Content-Type": "application/json" } : {}
106
- },
107
- body: body ? JSON.stringify(body) : void 0
108
- });
109
- const parsed = await response.json().catch(() => null);
110
- const scope = insufficientScopeOf(
111
- response.status,
112
- response.headers.get("www-authenticate"),
113
- parsed
114
- );
115
- if (scope !== null) throw new Error(insufficientScopeMessage(scope));
116
- return { ok: response.ok, status: response.status, body: parsed };
117
- }
118
- async patch(path, body) {
119
- return this.request(path, {
120
- method: "PATCH",
121
- body: body ? JSON.stringify(body) : void 0
122
- });
123
- }
124
- async delete(path) {
125
- return this.request(path, { method: "DELETE" });
126
- }
127
- /**
128
- * POST to a streaming endpoint (SSE / AI SDK UI-message stream) and
129
- * return the raw response body as text. Callers parse the event lines.
130
- */
131
- async postStream(path, body) {
132
- const url = `${this.baseUrl}${path}`;
133
- const response = await fetch(url, {
134
- method: "POST",
135
- headers: {
136
- Authorization: `Bearer ${this.apiKey}`,
137
- "Content-Type": "application/json",
138
- Accept: "text/event-stream"
139
- },
140
- body: body ? JSON.stringify(body) : void 0
141
- });
142
- if (!response.ok) {
143
- const error = await response.json().catch(() => ({ message: response.statusText }));
144
- throw refusalError(response, error);
145
- }
146
- return response.text();
147
- }
148
- };
149
- export {
150
- FloadApiClient
151
- };
152
- //# sourceMappingURL=api-client.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/public-errors.ts", "../src/api-client.ts"],
4
- "sourcesContent": ["const INTERNAL_ERROR_PATTERNS: RegExp[] = [\n /\\b(stack|trace|at\\s+[\\w.$<>]+\\s*\\()/i,\n /\\b(sql|postgres|drizzle|database|constraint|duplicate key|violates|relation)\\b/i,\n /\\b(fetch|undici|socket|ECONNRESET|ETIMEDOUT|ENOTFOUND|EAI_AGAIN|HTTP\\s+\\d{3})\\b/i,\n /\\b(token|secret|api[_-]?key|authorization|bearer|cookie|password)\\b/i,\n /\\b[a-z0-9]+_(secret|token|key)\\b/i,\n /\\b(secret|token|key)[_-][a-z0-9]+\\b/i,\n /\\b(scrap|browser|patchright|playwright|chromium|page\\.|locator|selector)\\b/i,\n /\\b(redis|bullmq|queue|job id|worker)\\b/i,\n];\n\nfunction looksInternal(message: string): boolean {\n return INTERNAL_ERROR_PATTERNS.some(pattern => pattern.test(message));\n}\n\nexport function publicMcpErrorMessage(\n message: unknown,\n fallbackMessage = 'Fload could not complete the request. Please try again.'\n): string {\n const raw =\n message instanceof Error\n ? message.message\n : typeof message === 'string'\n ? message\n : '';\n const normalized = raw.replace(/\\s+/g, ' ').trim();\n\n if (!normalized || normalized.length > 180 || looksInternal(normalized)) {\n return fallbackMessage;\n }\n\n return normalized;\n}\n\n/** Fload's permission scopes look like `read:aso` / `write:agents`. */\nconst SCOPE_PATTERN = /^(read|write):[a-z]{2,20}$/;\n\n/**\n * FLO-2773: the scope a 403 `insufficient_scope` refusal names, from the\n * RFC 6750 `WWW-Authenticate` header or the JSON body. Null when the refusal\n * is something else; an empty string when it names no recognisable scope.\n */\nexport function insufficientScopeOf(\n status: number,\n wwwAuthenticate: string | null,\n body: unknown\n): string | null {\n if (status !== 403) return null;\n const fromHeader = wwwAuthenticate?.includes('insufficient_scope')\n ? /scope=\"([^\"]*)\"/.exec(wwwAuthenticate)?.[1]\n : undefined;\n const record =\n body && typeof body === 'object' ? (body as Record<string, unknown>) : {};\n if (fromHeader === undefined && record.error !== 'insufficient_scope') {\n return null;\n }\n const scope =\n fromHeader ?? (typeof record.scope === 'string' ? record.scope : '');\n return SCOPE_PATTERN.test(scope) ? scope : '';\n}\n\n/** What to tell the person whose key lacks a scope, and how to fix it. */\nexport function insufficientScopeMessage(scope: string): string {\n const permission = scope\n ? `the ${scope} permission`\n : 'the permission this needs';\n return `This API key does not have ${permission}. Create a key that includes it in Fload: Settings \u2192 API keys.`;\n}\n", "/**\n * HTTP client for calling the Fload API\n * Replaces direct database access\n */\n\nimport {\n insufficientScopeMessage,\n insufficientScopeOf,\n publicMcpErrorMessage,\n} from './public-errors';\n\ntype ErrorBody = { error?: string; message?: string; publicMessage?: string };\n\n/**\n * The error a refused request throws: a missing scope says which and where to\n * make a key that has it (FLO-2773); anything else keeps its public message.\n */\nfunction refusalError(response: Response, error: ErrorBody): Error {\n const scope = insufficientScopeOf(\n response.status,\n response.headers.get('www-authenticate'),\n error\n );\n if (scope !== null) return new Error(insufficientScopeMessage(scope));\n return new Error(\n publicMcpErrorMessage(\n error.publicMessage || error.message || response.statusText,\n response.status >= 500\n ? 'Fload could not complete the request. Please try again.'\n : 'Fload rejected the request. Please check access and try again.'\n )\n );\n}\n\nexport class FloadApiClient {\n constructor(\n private baseUrl: string,\n private apiKey: string\n ) {}\n\n private async request<TResponse = Record<string, unknown>>(\n path: string,\n options: RequestInit = {}\n ): Promise<TResponse> {\n const url = `${this.baseUrl}${path}`;\n // Only claim a JSON body when there is one \u2014 Fastify rejects\n // Content-Type: application/json requests with an empty body.\n const headers: Record<string, string> = {\n Authorization: `Bearer ${this.apiKey}`,\n ...(options.body ? { 'Content-Type': 'application/json' } : {}),\n ...(options.headers as Record<string, string> | undefined),\n };\n const response = await fetch(url, {\n ...options,\n headers,\n });\n\n if (!response.ok) {\n const error = (await response\n .json()\n .catch(() => ({ message: response.statusText }))) as ErrorBody;\n throw refusalError(response, error);\n }\n\n return response.json() as Promise<TResponse>;\n }\n\n async get<TResponse = Record<string, unknown>>(\n path: string,\n params?: Record<string, string | number | boolean | undefined>\n ): Promise<TResponse> {\n const searchParams = new URLSearchParams();\n if (params) {\n for (const [key, value] of Object.entries(params)) {\n if (value !== undefined) searchParams.set(key, String(value));\n }\n }\n const query = searchParams.toString();\n return this.request<TResponse>(`${path}${query ? `?${query}` : ''}`);\n }\n\n async post<TResponse = Record<string, unknown>>(\n path: string,\n body?: unknown\n ): Promise<TResponse> {\n return this.request<TResponse>(path, {\n method: 'POST',\n body: body ? JSON.stringify(body) : undefined,\n });\n }\n\n /**\n * POST that hands back the answer instead of throwing on a non-2xx status:\n * for endpoints whose refusals carry a structured body (FLO-1595: the\n * Actions commands answer one target with that target's own status and\n * reason). `body` is null when the response is not JSON.\n */\n async postForAnswer<TResponse = Record<string, unknown>>(\n path: string,\n body?: unknown\n ): Promise<{ ok: boolean; status: number; body: TResponse | null }> {\n const response = await fetch(`${this.baseUrl}${path}`, {\n method: 'POST',\n headers: {\n Authorization: `Bearer ${this.apiKey}`,\n ...(body ? { 'Content-Type': 'application/json' } : {}),\n },\n body: body ? JSON.stringify(body) : undefined,\n });\n const parsed = (await response\n .json()\n .catch(() => null)) as TResponse | null;\n // A missing scope has no per-target answer to read: say which (FLO-2773).\n const scope = insufficientScopeOf(\n response.status,\n response.headers.get('www-authenticate'),\n parsed\n );\n if (scope !== null) throw new Error(insufficientScopeMessage(scope));\n return { ok: response.ok, status: response.status, body: parsed };\n }\n\n async patch<TResponse = Record<string, unknown>>(\n path: string,\n body?: unknown\n ): Promise<TResponse> {\n return this.request<TResponse>(path, {\n method: 'PATCH',\n body: body ? JSON.stringify(body) : undefined,\n });\n }\n\n async delete<TResponse = Record<string, unknown>>(\n path: string\n ): Promise<TResponse> {\n return this.request<TResponse>(path, { method: 'DELETE' });\n }\n\n /**\n * POST to a streaming endpoint (SSE / AI SDK UI-message stream) and\n * return the raw response body as text. Callers parse the event lines.\n */\n async postStream(path: string, body?: unknown): Promise<string> {\n const url = `${this.baseUrl}${path}`;\n const response = await fetch(url, {\n method: 'POST',\n headers: {\n Authorization: `Bearer ${this.apiKey}`,\n 'Content-Type': 'application/json',\n Accept: 'text/event-stream',\n },\n body: body ? JSON.stringify(body) : undefined,\n });\n\n if (!response.ok) {\n const error = (await response\n .json()\n .catch(() => ({ message: response.statusText })))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AM,OAAO,KAAK,UAAU,IAAI,IAAI;AAAA,IACtC,CAAC;AAED,QAAI,CAAC,SAAS,IAAI;AAChB,YAAM,QAAS,MAAM,SAClB,KAAK,EACL,MAAM,OAAO,EAAE,SAAS,SAAS,WAAW,EAAE;AACjD,YAAM,aAAa,UAAU,KAAK;AAAA,IACpC;AAEA,WAAO,SAAS,KAAK;AAAA,EACvB;AACF;",
6
- "names": []
7
- }
@@ -1,5 +0,0 @@
1
- export declare function formatAsJson(data: unknown): string;
2
- export declare function formatError(error: unknown): string;
3
- export declare function formatDate(date: Date): string;
4
- export declare function formatNumber(num: number): string;
5
- //# sourceMappingURL=format.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/lib/format.ts"],"names":[],"mappings":"AAOA,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAElD;AAKD,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAKlD;AAKD,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE7C;AAKD,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD"}
@@ -1,4 +0,0 @@
1
- export declare function publicMcpErrorMessage(message: unknown, fallbackMessage?: string): string;
2
- export declare function insufficientScopeOf(status: number, wwwAuthenticate: string | null, body: unknown): string | null;
3
- export declare function insufficientScopeMessage(scope: string): string;
4
- //# sourceMappingURL=public-errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"public-errors.d.ts","sourceRoot":"","sources":["../src/public-errors.ts"],"names":[],"mappings":"AAeA,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,OAAO,EAChB,eAAe,SAA4D,GAC1E,MAAM,CAcR;AAUD,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,MAAM,GAAG,IAAI,EAC9B,IAAI,EAAE,OAAO,GACZ,MAAM,GAAG,IAAI,CAaf;AAGD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAK9D"}
@@ -1,12 +0,0 @@
1
- export declare class RateLimiter {
2
- private maxCalls;
3
- private windowMs;
4
- private calls;
5
- constructor(maxCalls?: number, windowMs?: number);
6
- check(key: string): {
7
- allowed: boolean;
8
- remaining: number;
9
- retryAfterMs: number;
10
- };
11
- }
12
- //# sourceMappingURL=rate-limiter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rate-limiter.d.ts","sourceRoot":"","sources":["../src/rate-limiter.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW;IAIpB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,QAAQ;IAJlB,OAAO,CAAC,KAAK,CAAoC;gBAGvC,QAAQ,GAAE,MAAY,EACtB,QAAQ,GAAE,MAAe;IAGnC,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;KACtB;CA2BF"}
package/dist/server.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
- import type { FloadMcpConfig } from './config.js';
3
- import type { FloadApiClient } from './api-client.js';
4
- export declare function createMcpServer(_config: FloadMcpConfig, client: FloadApiClient): Promise<McpServer>;
5
- //# sourceMappingURL=server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItD,wBAAsB,eAAe,CACnC,OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,SAAS,CAAC,CAapB"}
@@ -1,61 +0,0 @@
1
- import { z } from 'zod';
2
- import type { FloadApiClient } from '../api-client.js';
3
- export declare const listPendingActionsSchema: z.ZodObject<{
4
- assetId: z.ZodOptional<z.ZodString>;
5
- view: z.ZodDefault<z.ZodEnum<{
6
- open: "open";
7
- queued: "queued";
8
- }>>;
9
- limit: z.ZodDefault<z.ZodNumber>;
10
- }, z.core.$strip>;
11
- export declare const approveActionSchema: z.ZodObject<{
12
- actionId: z.ZodString;
13
- wholeGroup: z.ZodOptional<z.ZodBoolean>;
14
- }, z.core.$strip>;
15
- export declare const rejectActionSchema: z.ZodObject<{
16
- actionId: z.ZodString;
17
- reason: z.ZodOptional<z.ZodString>;
18
- }, z.core.$strip>;
19
- export declare const checkActionNowSchema: z.ZodObject<{
20
- actionId: z.ZodString;
21
- }, z.core.$strip>;
22
- export declare const renameCustomPageActionSchema: z.ZodObject<{
23
- actionId: z.ZodString;
24
- name: z.ZodString;
25
- }, z.core.$strip>;
26
- export declare function listPendingActions(input: z.input<typeof listPendingActionsSchema>, client: FloadApiClient): Promise<{
27
- isError?: boolean | undefined;
28
- content: {
29
- type: "text";
30
- text: string;
31
- }[];
32
- }>;
33
- export declare function approveAction(input: z.input<typeof approveActionSchema>, client: FloadApiClient): Promise<{
34
- isError?: boolean | undefined;
35
- content: {
36
- type: "text";
37
- text: string;
38
- }[];
39
- }>;
40
- export declare function rejectAction(input: z.input<typeof rejectActionSchema>, client: FloadApiClient): Promise<{
41
- isError?: boolean | undefined;
42
- content: {
43
- type: "text";
44
- text: string;
45
- }[];
46
- }>;
47
- export declare function checkActionNow(input: z.input<typeof checkActionNowSchema>, client: FloadApiClient): Promise<{
48
- isError?: boolean | undefined;
49
- content: {
50
- type: "text";
51
- text: string;
52
- }[];
53
- }>;
54
- export declare function renameCustomPageAction(input: z.input<typeof renameCustomPageActionSchema>, client: FloadApiClient): Promise<{
55
- isError?: boolean | undefined;
56
- content: {
57
- type: "text";
58
- text: string;
59
- }[];
60
- }>;
61
- //# sourceMappingURL=actions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/tools/actions.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAmDvD,eAAO,MAAM,wBAAwB;;;;;;;iBAenC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;iBAU9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;iBAa7B,CAAC;AAGH,eAAO,MAAM,oBAAoB;;iBAM/B,CAAC;AAGH,eAAO,MAAM,4BAA4B;;;iBAcvC,CAAC;AAiCH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,EAC/C,MAAM,EAAE,cAAc;;;;;;GAgBvB;AAkFD,wBAAsB,aAAa,CACjC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,EAC1C,MAAM,EAAE,cAAc;;;;;;GA8BvB;AA8GD,wBAAsB,YAAY,CAChC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,EACzC,MAAM,EAAE,cAAc;;;;;;GA8BvB;AAOD,wBAAsB,cAAc,CAClC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAC3C,MAAM,EAAE,cAAc;;;;;;GAqCvB;AAyED,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,EACnD,MAAM,EAAE,cAAc;;;;;;GAwDvB"}
@@ -1,28 +0,0 @@
1
- import { z } from 'zod';
2
- import type { FloadApiClient } from '../api-client.js';
3
- export declare const getAdsPerformanceSchema: z.ZodObject<{
4
- assetId: z.ZodOptional<z.ZodString>;
5
- platform: z.ZodOptional<z.ZodEnum<{
6
- apple_search_ads: "apple_search_ads";
7
- google_ads: "google_ads";
8
- meta_ads: "meta_ads";
9
- tiktok_ads: "tiktok_ads";
10
- }>>;
11
- fromDate: z.ZodOptional<z.ZodString>;
12
- toDate: z.ZodOptional<z.ZodString>;
13
- limit: z.ZodDefault<z.ZodNumber>;
14
- }, z.core.$strip>;
15
- export declare function getAdsPerformance(input: z.input<typeof getAdsPerformanceSchema>, client: FloadApiClient): Promise<{
16
- content: {
17
- type: "text";
18
- text: string;
19
- }[];
20
- isError?: undefined;
21
- } | {
22
- content: {
23
- type: "text";
24
- text: string;
25
- }[];
26
- isError: boolean;
27
- }>;
28
- //# sourceMappingURL=ads.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ads.d.ts","sourceRoot":"","sources":["../../src/tools/ads.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAkCvD,eAAO,MAAM,uBAAuB;;;;;;;;;;;iBAqBlC,CAAC;AASH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,EAC9C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAqEvB"}
@@ -1,123 +0,0 @@
1
- import { z } from 'zod';
2
- import type { FloadApiClient } from '../api-client.js';
3
- export declare const listAgentsSchema: z.ZodObject<{}, z.core.$strip>;
4
- export declare const getAgentDetailsSchema: z.ZodObject<{
5
- agentType: z.ZodEnum<{
6
- review: "review";
7
- aso: "aso";
8
- }>;
9
- assetId: z.ZodOptional<z.ZodString>;
10
- }, z.core.$strip>;
11
- export declare const getAgentRunHistorySchema: z.ZodObject<{
12
- agentType: z.ZodEnum<{
13
- review: "review";
14
- aso: "aso";
15
- }>;
16
- assetId: z.ZodOptional<z.ZodString>;
17
- limit: z.ZodDefault<z.ZodNumber>;
18
- }, z.core.$strip>;
19
- export declare const triggerAgentRunSchema: z.ZodObject<{
20
- agentId: z.ZodString;
21
- assetId: z.ZodOptional<z.ZodString>;
22
- }, z.core.$strip>;
23
- export declare const pauseAgentSchema: z.ZodObject<{
24
- agentId: z.ZodString;
25
- }, z.core.$strip>;
26
- export declare const resumeAgentSchema: z.ZodObject<{
27
- agentId: z.ZodString;
28
- }, z.core.$strip>;
29
- export declare const getAgentActivitySchema: z.ZodObject<{
30
- agentId: z.ZodString;
31
- }, z.core.$strip>;
32
- export declare function listAgents(_input: z.input<typeof listAgentsSchema>, client: FloadApiClient): Promise<{
33
- content: {
34
- type: "text";
35
- text: string;
36
- }[];
37
- isError?: undefined;
38
- } | {
39
- content: {
40
- type: "text";
41
- text: string;
42
- }[];
43
- isError: boolean;
44
- }>;
45
- export declare function getAgentDetails(input: z.input<typeof getAgentDetailsSchema>, client: FloadApiClient): Promise<{
46
- content: {
47
- type: "text";
48
- text: string;
49
- }[];
50
- isError?: undefined;
51
- } | {
52
- content: {
53
- type: "text";
54
- text: string;
55
- }[];
56
- isError: boolean;
57
- }>;
58
- export declare function getAgentRunHistory(input: z.input<typeof getAgentRunHistorySchema>, client: FloadApiClient): Promise<{
59
- content: {
60
- type: "text";
61
- text: string;
62
- }[];
63
- isError?: undefined;
64
- } | {
65
- content: {
66
- type: "text";
67
- text: string;
68
- }[];
69
- isError: boolean;
70
- }>;
71
- export declare function triggerAgentRun(input: z.input<typeof triggerAgentRunSchema>, client: FloadApiClient): Promise<{
72
- content: {
73
- type: "text";
74
- text: string;
75
- }[];
76
- isError?: undefined;
77
- } | {
78
- content: {
79
- type: "text";
80
- text: string;
81
- }[];
82
- isError: boolean;
83
- }>;
84
- export declare function pauseAgent(input: z.input<typeof pauseAgentSchema>, client: FloadApiClient): Promise<{
85
- content: {
86
- type: "text";
87
- text: string;
88
- }[];
89
- isError?: undefined;
90
- } | {
91
- content: {
92
- type: "text";
93
- text: string;
94
- }[];
95
- isError: boolean;
96
- }>;
97
- export declare function resumeAgent(input: z.input<typeof resumeAgentSchema>, client: FloadApiClient): Promise<{
98
- content: {
99
- type: "text";
100
- text: string;
101
- }[];
102
- isError?: undefined;
103
- } | {
104
- content: {
105
- type: "text";
106
- text: string;
107
- }[];
108
- isError: boolean;
109
- }>;
110
- export declare function getAgentActivity(input: z.input<typeof getAgentActivitySchema>, client: FloadApiClient): Promise<{
111
- content: {
112
- type: "text";
113
- text: string;
114
- }[];
115
- isError?: undefined;
116
- } | {
117
- content: {
118
- type: "text";
119
- text: string;
120
- }[];
121
- isError: boolean;
122
- }>;
123
- //# sourceMappingURL=agents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/tools/agents.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAwCvD,eAAO,MAAM,gBAAgB,gCAAe,CAAC;AAE7C,eAAO,MAAM,qBAAqB;;;;;;iBAShC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;iBAYnC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;iBAShC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;iBAI3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;iBAI5B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;iBAIjC,CAAC;AASH,wBAAsB,UAAU,CAC9B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,EACxC,MAAM,EAAE,cAAc;;;;;;;;;;;;GA2DvB;AAKD,wBAAsB,eAAe,CACnC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EAC5C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAuDvB;AAKD,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,EAC/C,MAAM,EAAE,cAAc;;;;;;;;;;;;GA4DvB;AAKD,wBAAsB,eAAe,CACnC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EAC5C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAgCvB;AAKD,wBAAsB,UAAU,CAC9B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,EACvC,MAAM,EAAE,cAAc;;;;;;;;;;;;GAyBvB;AAKD,wBAAsB,WAAW,CAC/B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,EACxC,MAAM,EAAE,cAAc;;;;;;;;;;;;GAyBvB;AAKD,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,EAC7C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAyBvB"}
@@ -1,63 +0,0 @@
1
- import { z } from 'zod';
2
- import type { FloadApiClient } from '../api-client.js';
3
- export declare const UNAVAILABLE_REASONS: readonly ["not_reported", "no_data", "source_filter"];
4
- export declare const discoverMetricsSchema: z.ZodObject<{
5
- assetId: z.ZodString;
6
- }, z.core.$strip>;
7
- export declare const getMetricsSchema: z.ZodObject<{
8
- assetId: z.ZodString;
9
- metrics: z.ZodArray<z.ZodString>;
10
- startDate: z.ZodOptional<z.ZodString>;
11
- endDate: z.ZodOptional<z.ZodString>;
12
- granularity: z.ZodDefault<z.ZodEnum<{
13
- daily: "daily";
14
- weekly: "weekly";
15
- monthly: "monthly";
16
- }>>;
17
- dimension: z.ZodOptional<z.ZodString>;
18
- dimensionFilter: z.ZodOptional<z.ZodString>;
19
- }, z.core.$strip>;
20
- export declare const discoverDimensionsSchema: z.ZodObject<{
21
- assetId: z.ZodString;
22
- dimension: z.ZodOptional<z.ZodString>;
23
- }, z.core.$strip>;
24
- export declare function discoverMetrics(input: z.input<typeof discoverMetricsSchema>, client: FloadApiClient): Promise<{
25
- content: {
26
- type: "text";
27
- text: string;
28
- }[];
29
- isError?: undefined;
30
- } | {
31
- content: {
32
- type: "text";
33
- text: string;
34
- }[];
35
- isError: boolean;
36
- }>;
37
- export declare function getMetrics(input: z.input<typeof getMetricsSchema>, client: FloadApiClient): Promise<{
38
- content: {
39
- type: "text";
40
- text: string;
41
- }[];
42
- isError?: undefined;
43
- } | {
44
- content: {
45
- type: "text";
46
- text: string;
47
- }[];
48
- isError: boolean;
49
- }>;
50
- export declare function discoverDimensions(input: z.input<typeof discoverDimensionsSchema>, client: FloadApiClient): Promise<{
51
- content: {
52
- type: "text";
53
- text: string;
54
- }[];
55
- isError?: undefined;
56
- } | {
57
- content: {
58
- type: "text";
59
- text: string;
60
- }[];
61
- isError: boolean;
62
- }>;
63
- //# sourceMappingURL=analytics.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/tools/analytics.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA+EvD,eAAO,MAAM,mBAAmB,uDAItB,CAAC;AA6FX,eAAO,MAAM,qBAAqB;;iBAKhC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;iBAgC3B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;iBAQnC,CAAC;AAmIH,wBAAsB,eAAe,CACnC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EAC5C,MAAM,EAAE,cAAc;;;;;;;;;;;;GA8CvB;AAED,wBAAsB,UAAU,CAC9B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,EACvC,MAAM,EAAE,cAAc;;;;;;;;;;;;GAkGvB;AAED,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,EAC/C,MAAM,EAAE,cAAc;;;;;;;;;;;;GAuDvB"}
@@ -1,40 +0,0 @@
1
- import { z } from 'zod';
2
- import type { FloadApiClient } from '../api-client.js';
3
- export declare const listAppsSchema: z.ZodObject<{
4
- platform: z.ZodOptional<z.ZodEnum<{
5
- ios: "ios";
6
- android: "android";
7
- }>>;
8
- limit: z.ZodDefault<z.ZodNumber>;
9
- }, z.core.$strip>;
10
- export declare const getAppDetailsSchema: z.ZodObject<{
11
- assetId: z.ZodOptional<z.ZodString>;
12
- bundleId: z.ZodOptional<z.ZodString>;
13
- }, z.core.$strip>;
14
- export declare function listApps(input: z.input<typeof listAppsSchema>, 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 getAppDetails(input: z.input<typeof getAppDetailsSchema>, client: FloadApiClient): Promise<{
28
- content: {
29
- type: "text";
30
- text: string;
31
- }[];
32
- isError: boolean;
33
- } | {
34
- content: {
35
- type: "text";
36
- text: string;
37
- }[];
38
- isError?: undefined;
39
- }>;
40
- //# sourceMappingURL=apps.d.ts.map