@layers/amba-mcp 4.0.5 → 4.0.6

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.
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Monetization control-plane tools (Phase 1 — read-only against RevenueCat).
3
+ *
4
+ * These let an agent reason about a project's subscription monetization as
5
+ * Infrastructure-as-Code: preview the gap between the declared config and
6
+ * what's live (plan), see what changed out-of-band (drift), snapshot the live
7
+ * config into a declarative bundle (export), adopt the live config as the
8
+ * managed baseline (adopt), and inspect the current declared definitions.
9
+ *
10
+ * Phase 1 is READ-ONLY against the upstream subscription provider: plan / drift
11
+ * / export only read; adopt writes Amba's own state (definitions + statefile),
12
+ * never the provider. Provisioning ("apply" — pushing declared changes back to
13
+ * the provider) is a later phase; these tools deliberately don't claim it.
14
+ *
15
+ * RevenueCat may be named here — it's a developer-chosen integration the
16
+ * developer configured themselves, not an Amba implementation detail.
17
+ */
18
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
19
+ import type { ApiClient } from '../api-client.js';
20
+ export declare function registerTools(server: McpServer, apiClient: ApiClient): void;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Amba Payments — Stripe Connect platform tools (tracker #10).
3
+ *
4
+ * Amba is the payments rail for the developer's app: the app is the seller,
5
+ * Amba takes a platform fee, Stripe carries money-transmission. These are
6
+ * the DEVELOPER-facing onboarding + configuration + reporting tools — the
7
+ * developer knowingly connects a Stripe account, so "Stripe" is named here
8
+ * (same posture as the existing developer-billing surface). The end-customer
9
+ * (app-user) payment surface lives in the SDK and stays neutral.
10
+ *
11
+ * Tools:
12
+ * - amba_payments_account_create — create the project's connected account
13
+ * - amba_payments_create_onboarding_link — hosted onboarding URL (copy box)
14
+ * - amba_payments_account_status — onboarding + capability flags
15
+ * - amba_payments_set_fee — set the default platform fee (basis points)
16
+ * - amba_payments_charge — destination charge with application fee
17
+ * - amba_payments_balance — connected-account balance
18
+ * - amba_payments_payouts — connected-account payouts
19
+ *
20
+ * Backend routes: POST/GET/PUT /v1/admin/projects/:id/payments/*. All live
21
+ * Stripe calls are gated by the platform's PAYMENTS_CONNECT_LIVE
22
+ * kill-switch — when off, the tools surface a clear PAYMENTS_NOT_ENABLED
23
+ * error via the standard AmbaApiError path (the platform owner enables it).
24
+ *
25
+ * No vendor leakage on the END-CUSTOMER surface; here, naming Stripe is by
26
+ * intent in the developer onboarding context.
27
+ */
28
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
29
+ import type { ApiClient } from '../api-client.js';
30
+ export declare function registerTools(server: McpServer, apiClient: ApiClient): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layers/amba-mcp",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "license": "Apache-2.0",
5
5
  "engines": {
6
6
  "node": ">=22"
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@modelcontextprotocol/sdk": "^1.12.1",
28
28
  "zod": "^3.25.0",
29
- "@layers/amba-shared": "4.0.3"
29
+ "@layers/amba-shared": "4.0.4"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.10.2",