@capivv/mcp-server 0.5.6 → 0.5.8

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.
@@ -44,6 +44,14 @@ export function registerCreateProductTool(server, client) {
44
44
  .string()
45
45
  .optional()
46
46
  .describe('Locale used for store-side product localization. Defaults to "en-US".'),
47
+ apple_available_territories: z
48
+ .array(z.string())
49
+ .optional()
50
+ .describe('Apple territories (ISO 3166-1 alpha-3, e.g. ["USA", "DEU", "GBR"]) the subscription is available in. Defaults derive from the prices\' currencies; USD prices → ["USA"]. Setting this is required for the subscription to leave MISSING_METADATA.'),
51
+ apple_available_in_new_territories: z
52
+ .boolean()
53
+ .optional()
54
+ .describe('When true (default), opts the subscription into new Apple territories automatically as Apple adds them. SaaS-friendly default.'),
47
55
  }, async (args) => {
48
56
  const { skip_store_write, ...rest } = args;
49
57
  const product = await client.createProduct({
package/dist/types.d.ts CHANGED
@@ -250,6 +250,18 @@ export interface CreateProductRequest {
250
250
  also_create_in_store?: boolean;
251
251
  /** Default product locale for store-side localizations. Defaults to "en-US". */
252
252
  default_locale?: string;
253
+ /**
254
+ * V0.5.7: Apple territories the subscription is available in (ISO 3166-1
255
+ * alpha-3 — e.g. ["USA", "DEU", "GBR"]). Defaults derive from the
256
+ * prices' currencies; USD prices → ["USA"]. Without availability the
257
+ * Apple subscription stays in MISSING_METADATA.
258
+ */
259
+ apple_available_territories?: string[];
260
+ /**
261
+ * V0.5.7: opt the subscription in to new Apple territories as Apple
262
+ * adds them. Defaults to true.
263
+ */
264
+ apple_available_in_new_territories?: boolean;
253
265
  }
254
266
  export interface Paywall {
255
267
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capivv/mcp-server",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "description": "MCP server for managing Capivv subscription platform via AI assistants",
5
5
  "type": "module",
6
6
  "bin": {