@attrkit/mcp 0.4.4 → 0.4.5

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 (2) hide show
  1. package/dist/cli.js +16 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -14112,12 +14112,14 @@ ${body}`
14112
14112
  structuredContent: structured
14113
14113
  };
14114
14114
  }
14115
- var SERVER_VERSION = "0.4.4";
14115
+ var SERVER_VERSION = "0.4.5";
14116
14116
  var periodSchema = z4.enum(["7d", "30d", "90d", "all"]).describe("Reporting window. Defaults to 30d.").optional();
14117
14117
  var appIdSchema = z4.string().describe("Optional app id to scope the result to one app.").optional();
14118
14118
  var requiredAppIdSchema = z4.string().describe("The AttrKit app id.");
14119
14119
  var idempotencyKeySchema = z4.string().max(255).describe("Stable retry key for this exact mutation.").optional();
14120
14120
  var ownersSchema = z4.record(z4.string(), z4.enum(["attrkit", "revenuecat", "customer"]));
14121
+ var cursorSchema = z4.string().optional().describe("Pass the next_cursor from the previous response to fetch the following page. Omit for the first page.");
14122
+ var listLimitSchema = z4.number().int().min(1).max(200).optional().describe("Rows per page, 1-200. The API defaults to 50, so a workspace with more than that needs paging.");
14121
14123
  var spendRowSchema = z4.object({
14122
14124
  campaign_id: z4.string().optional().describe("The AttrKit campaign UUID, NOT the ad network's own campaign id. It is the opposite of create_campaign_link.campaign_id and is the most common mistake here: read it from list_campaigns. The API rejects a network id by name. Preferred snake_case spelling."),
14123
14125
  campaignId: z4.string().optional().describe("Accepted camelCase alias for campaign_id."),
@@ -14214,8 +14216,10 @@ function createServer(config, fetchImpl) {
14214
14216
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
14215
14217
  title: "List apps",
14216
14218
  description: "List the iOS and Android apps in your AttrKit workspace (id, name, platform, bundle id, store id, status).",
14217
- inputSchema: {}
14218
- }, async () => toToolResult(await call("/api/v1/apps")));
14219
+ inputSchema: { cursor: cursorSchema, limit: listLimitSchema }
14220
+ }, async ({ cursor, limit }) => toToolResult(await call("/api/v1/apps", {
14221
+ query: { ...cursor ? { cursor } : {}, ...limit === undefined ? {} : { limit: String(limit) } }
14222
+ })));
14219
14223
  server.registerTool("create_app", {
14220
14224
  annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
14221
14225
  title: "Create an app",
@@ -14362,8 +14366,15 @@ function createServer(config, fetchImpl) {
14362
14366
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
14363
14367
  title: "List campaigns",
14364
14368
  description: "List ad campaigns with their honest profit surface: the scale/cut/hold call, profit p05/p50/p95, spend, retention, and payback. Use this to see how campaigns are performing.",
14365
- inputSchema: { app_id: appIdSchema, period: periodSchema }
14366
- }, async ({ app_id, period }) => toToolResult(await call("/api/v1/reports/campaigns", { query: { appId: app_id, period } })));
14369
+ inputSchema: { app_id: appIdSchema, period: periodSchema, cursor: cursorSchema, limit: listLimitSchema }
14370
+ }, async ({ app_id, period, cursor, limit }) => toToolResult(await call("/api/v1/reports/campaigns", {
14371
+ query: {
14372
+ appId: app_id,
14373
+ period,
14374
+ ...cursor ? { cursor } : {},
14375
+ ...limit === undefined ? {} : { limit: String(limit) }
14376
+ }
14377
+ })));
14367
14378
  server.registerTool("list_ads", {
14368
14379
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
14369
14380
  title: "List creative-level ad performance",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@attrkit/mcp",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "AttrKit's stdio MCP server for its public Management API",
5
5
  "keywords": [
6
6
  "attrkit",