@armor/zuora-mcp 0.0.0-development
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/.env.example +16 -0
- package/README.md +249 -0
- package/dist/cli.d.ts +15 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +73 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +26 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +56 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +148 -0
- package/dist/index.js.map +1 -0
- package/dist/prompts.d.ts +11 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/prompts.js +236 -0
- package/dist/prompts.js.map +1 -0
- package/dist/resources.d.ts +11 -0
- package/dist/resources.d.ts.map +1 -0
- package/dist/resources.js +526 -0
- package/dist/resources.js.map +1 -0
- package/dist/setup.d.ts +12 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +188 -0
- package/dist/setup.js.map +1 -0
- package/dist/token-manager.d.ts +34 -0
- package/dist/token-manager.d.ts.map +1 -0
- package/dist/token-manager.js +103 -0
- package/dist/token-manager.js.map +1 -0
- package/dist/tools.d.ts +1096 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +2841 -0
- package/dist/tools.js.map +1 -0
- package/dist/types.d.ts +758 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/dist/zoql-helpers.d.ts +68 -0
- package/dist/zoql-helpers.d.ts.map +1 -0
- package/dist/zoql-helpers.js +154 -0
- package/dist/zoql-helpers.js.map +1 -0
- package/dist/zuora-client.d.ts +184 -0
- package/dist/zuora-client.d.ts.map +1 -0
- package/dist/zuora-client.js +583 -0
- package/dist/zuora-client.js.map +1 -0
- package/package.json +60 -0
package/dist/prompts.js
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Prompt Definitions for Zuora Finance Workflows
|
|
3
|
+
*
|
|
4
|
+
* Workflow templates that guide Claude through multi-tool sequences
|
|
5
|
+
* for common finance scenarios. Each prompt provides structured
|
|
6
|
+
* instructions for using composite and base tools in the right order
|
|
7
|
+
* with proper formatting.
|
|
8
|
+
*/
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
// ==================== Registration ====================
|
|
11
|
+
export function registerPrompts(server) {
|
|
12
|
+
// Prompt 1: Billing Inquiry
|
|
13
|
+
server.registerPrompt("billing-inquiry", {
|
|
14
|
+
description: "Investigate a billing question for a specific account. " +
|
|
15
|
+
"Guides you through retrieving the account overview, recent invoices, " +
|
|
16
|
+
"payments, and subscriptions to answer billing-related questions.",
|
|
17
|
+
argsSchema: {
|
|
18
|
+
accountKey: z.string().describe("Account number or ID (e.g., A00012345)"),
|
|
19
|
+
question: z.string().optional().describe("The specific billing question"),
|
|
20
|
+
},
|
|
21
|
+
}, async ({ accountKey, question }) => ({
|
|
22
|
+
messages: [
|
|
23
|
+
{
|
|
24
|
+
role: "user",
|
|
25
|
+
content: {
|
|
26
|
+
type: "text",
|
|
27
|
+
text: [
|
|
28
|
+
`Investigate the following billing question for account ${accountKey}:`,
|
|
29
|
+
question ? `Question: ${question}` : "Provide a general billing overview.",
|
|
30
|
+
"",
|
|
31
|
+
"Follow these steps:",
|
|
32
|
+
"1. Call get_account_billing_overview with the account key to get a comprehensive snapshot",
|
|
33
|
+
"2. Review the overview for any red flags (high balance, overdue invoices, payment failures)",
|
|
34
|
+
"3. If there are overdue invoices, note the amounts and due dates",
|
|
35
|
+
"4. If more detail is needed on a specific invoice, use get_invoice",
|
|
36
|
+
"5. If more detail is needed on a specific subscription, use get_subscription",
|
|
37
|
+
"",
|
|
38
|
+
"Format your response as:",
|
|
39
|
+
"- Account summary (name, status, balance, currency)",
|
|
40
|
+
"- Outstanding invoices (if any) with amounts and due dates",
|
|
41
|
+
"- Recent payment activity",
|
|
42
|
+
"- Active subscriptions with MRR",
|
|
43
|
+
"- Answer to the specific billing question",
|
|
44
|
+
"- Recommended actions (if applicable)",
|
|
45
|
+
].join("\n"),
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
}));
|
|
50
|
+
// Prompt 2: Collections Review
|
|
51
|
+
server.registerPrompt("collections-review", {
|
|
52
|
+
description: "Analyze overdue accounts for collections. Generates an AR aging report, " +
|
|
53
|
+
"identifies high-risk accounts, and provides actionable collection priorities.",
|
|
54
|
+
argsSchema: {
|
|
55
|
+
minAmount: z.string().optional().describe("Minimum overdue amount to include (e.g., 1000). Default: 0"),
|
|
56
|
+
daysOverdue: z.string().optional().describe("Minimum days past due to flag (e.g., 30). Default: 1"),
|
|
57
|
+
},
|
|
58
|
+
}, async ({ minAmount, daysOverdue }) => ({
|
|
59
|
+
messages: [
|
|
60
|
+
{
|
|
61
|
+
role: "user",
|
|
62
|
+
content: {
|
|
63
|
+
type: "text",
|
|
64
|
+
text: [
|
|
65
|
+
"Run a collections review with the following criteria:",
|
|
66
|
+
minAmount ? `- Minimum overdue amount: $${minAmount}` : "- Include all overdue amounts",
|
|
67
|
+
daysOverdue ? `- Minimum days past due: ${daysOverdue}` : "- Include all overdue invoices",
|
|
68
|
+
"",
|
|
69
|
+
"Follow these steps:",
|
|
70
|
+
"1. Call get_invoice_aging_report to get the AR aging breakdown",
|
|
71
|
+
"2. Call get_overdue_invoices to get detailed overdue invoice list",
|
|
72
|
+
minAmount ? ` - Use minBalance: ${minAmount}` : "",
|
|
73
|
+
"3. Call get_account_health_scorecard to identify at-risk accounts",
|
|
74
|
+
"",
|
|
75
|
+
"Format your response as:",
|
|
76
|
+
"",
|
|
77
|
+
"## AR Aging Summary",
|
|
78
|
+
"Table with aging buckets (Current, 1-30, 31-60, 61-90, 90+), invoice count, and total balance per bucket",
|
|
79
|
+
"",
|
|
80
|
+
"## Top Overdue Accounts",
|
|
81
|
+
"Table with account name, account number, total overdue, oldest invoice, days past due",
|
|
82
|
+
"",
|
|
83
|
+
"## At-Risk Accounts",
|
|
84
|
+
"List accounts with low health scores and explain risk factors",
|
|
85
|
+
"",
|
|
86
|
+
"## Recommended Actions",
|
|
87
|
+
"Prioritized list of collection actions based on amount and risk",
|
|
88
|
+
].join("\n"),
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
}));
|
|
93
|
+
// Prompt 3: Subscription Health
|
|
94
|
+
server.registerPrompt("subscription-health", {
|
|
95
|
+
description: "Analyze subscription health: renewal pipeline, expiring subscriptions, " +
|
|
96
|
+
"recent churn, and revenue by product. Useful for monthly/quarterly reviews.",
|
|
97
|
+
argsSchema: {
|
|
98
|
+
daysAhead: z.string().optional().describe("Days to look ahead for expiring subscriptions (default: 30)"),
|
|
99
|
+
daysBack: z.string().optional().describe("Days to look back for cancelled subscriptions (default: 30)"),
|
|
100
|
+
},
|
|
101
|
+
}, async ({ daysAhead, daysBack }) => ({
|
|
102
|
+
messages: [
|
|
103
|
+
{
|
|
104
|
+
role: "user",
|
|
105
|
+
content: {
|
|
106
|
+
type: "text",
|
|
107
|
+
text: [
|
|
108
|
+
"Analyze subscription health with the following parameters:",
|
|
109
|
+
`- Look ahead for expirations: ${daysAhead ?? "30"} days`,
|
|
110
|
+
`- Look back for cancellations: ${daysBack ?? "30"} days`,
|
|
111
|
+
"",
|
|
112
|
+
"Follow these steps:",
|
|
113
|
+
`1. Call get_expiring_subscriptions with daysAhead: ${daysAhead ?? "30"}`,
|
|
114
|
+
`2. Call get_recently_cancelled_subscriptions with daysBack: ${daysBack ?? "30"}`,
|
|
115
|
+
"3. Call get_revenue_by_product to see MRR breakdown",
|
|
116
|
+
"",
|
|
117
|
+
"Format your response as:",
|
|
118
|
+
"",
|
|
119
|
+
"## Renewal Pipeline",
|
|
120
|
+
"Table of subscriptions expiring soon: account, subscription number, term end date, MRR, auto-renew status",
|
|
121
|
+
"Total MRR at risk",
|
|
122
|
+
"",
|
|
123
|
+
"## Recent Churn",
|
|
124
|
+
"Table of recently cancelled subscriptions: account, subscription number, cancelled date, lost MRR, products",
|
|
125
|
+
"Total MRR lost",
|
|
126
|
+
"",
|
|
127
|
+
"## Revenue by Product",
|
|
128
|
+
"Table: product name, subscription count, total MRR",
|
|
129
|
+
"",
|
|
130
|
+
"## Summary Metrics",
|
|
131
|
+
"- Total MRR at risk (expiring soon, not auto-renewing)",
|
|
132
|
+
"- Recent churn rate (cancelled MRR / total MRR)",
|
|
133
|
+
"- Recommended actions for retention",
|
|
134
|
+
].join("\n"),
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
}));
|
|
139
|
+
// Prompt 4: Product Analysis
|
|
140
|
+
server.registerPrompt("product-analysis", {
|
|
141
|
+
description: "Analyze a specific product's performance: accounts using it, " +
|
|
142
|
+
"revenue contribution, and invoice history.",
|
|
143
|
+
argsSchema: {
|
|
144
|
+
productName: z.string().describe("Product name to analyze (e.g., 'Security Analytics Log Retention 13 Months')"),
|
|
145
|
+
},
|
|
146
|
+
}, async ({ productName }) => ({
|
|
147
|
+
messages: [
|
|
148
|
+
{
|
|
149
|
+
role: "user",
|
|
150
|
+
content: {
|
|
151
|
+
type: "text",
|
|
152
|
+
text: [
|
|
153
|
+
`Analyze the product: "${productName}"`,
|
|
154
|
+
"",
|
|
155
|
+
"Follow these steps:",
|
|
156
|
+
`1. Call find_accounts_by_product with productName: "${productName}" to find accounts using this product`,
|
|
157
|
+
"2. Call get_revenue_by_product to see this product's MRR contribution vs others",
|
|
158
|
+
`3. Call find_invoices_by_product with productName: "${productName}" to see invoice history`,
|
|
159
|
+
"",
|
|
160
|
+
"Format your response as:",
|
|
161
|
+
"",
|
|
162
|
+
"## Product Overview",
|
|
163
|
+
"- Product name",
|
|
164
|
+
"- Number of accounts using it",
|
|
165
|
+
"- Total MRR from this product",
|
|
166
|
+
"",
|
|
167
|
+
"## Accounts Using This Product",
|
|
168
|
+
"Table: account number, account name, subscription status, MRR",
|
|
169
|
+
"",
|
|
170
|
+
"## Revenue Contribution",
|
|
171
|
+
"How this product's MRR compares to total MRR (percentage)",
|
|
172
|
+
"",
|
|
173
|
+
"## Recent Invoices",
|
|
174
|
+
"Table: invoice number, account, date, charge amount",
|
|
175
|
+
"",
|
|
176
|
+
"## Insights",
|
|
177
|
+
"- Growth or decline trends",
|
|
178
|
+
"- Concentration risk (if few accounts)",
|
|
179
|
+
"- Recommendations",
|
|
180
|
+
].join("\n"),
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
}));
|
|
185
|
+
// Prompt 5: Month-End Close
|
|
186
|
+
server.registerPrompt("month-end-close", {
|
|
187
|
+
description: "Month-end close checklist: AR aging, overdue invoices, subscription changes, " +
|
|
188
|
+
"payment reconciliation, and revenue summary. Comprehensive financial review.",
|
|
189
|
+
argsSchema: {
|
|
190
|
+
month: z.string().optional().describe("Month to close in YYYY-MM format (e.g., 2024-12). Default: previous month"),
|
|
191
|
+
},
|
|
192
|
+
}, async ({ month }) => ({
|
|
193
|
+
messages: [
|
|
194
|
+
{
|
|
195
|
+
role: "user",
|
|
196
|
+
content: {
|
|
197
|
+
type: "text",
|
|
198
|
+
text: [
|
|
199
|
+
`Run the month-end close checklist${month ? ` for ${month}` : ""}.`,
|
|
200
|
+
"",
|
|
201
|
+
"Execute the following steps in order:",
|
|
202
|
+
"",
|
|
203
|
+
"### Step 1: AR Aging",
|
|
204
|
+
"Call get_invoice_aging_report to get the current AR aging breakdown.",
|
|
205
|
+
"",
|
|
206
|
+
"### Step 2: Overdue Invoices",
|
|
207
|
+
"Call get_overdue_invoices to list all overdue invoices.",
|
|
208
|
+
"",
|
|
209
|
+
"### Step 3: Payment Reconciliation",
|
|
210
|
+
`Call get_payment_reconciliation${month ? ` with startDate and endDate covering ${month}` : " for the previous calendar month"}.`,
|
|
211
|
+
"",
|
|
212
|
+
"### Step 4: Subscription Changes",
|
|
213
|
+
"Call get_recently_cancelled_subscriptions with daysBack: 31 for churn analysis.",
|
|
214
|
+
"Call get_expiring_subscriptions with daysAhead: 30 for upcoming renewals.",
|
|
215
|
+
"",
|
|
216
|
+
"### Step 5: Revenue Summary",
|
|
217
|
+
"Call get_revenue_by_product for MRR breakdown by product.",
|
|
218
|
+
"",
|
|
219
|
+
"### Step 6: Account Health",
|
|
220
|
+
"Call get_account_health_scorecard to identify at-risk accounts.",
|
|
221
|
+
"",
|
|
222
|
+
"Format as a structured month-end report with:",
|
|
223
|
+
"1. **AR Aging Summary** -- Aging buckets table",
|
|
224
|
+
"2. **Overdue Invoice Details** -- Count, total, top overdue accounts",
|
|
225
|
+
"3. **Payment Activity** -- Total collected, payment count, by status",
|
|
226
|
+
"4. **Subscription Activity** -- New, cancelled, expiring, net MRR change",
|
|
227
|
+
"5. **Revenue by Product** -- MRR breakdown table",
|
|
228
|
+
"6. **Risk Assessment** -- At-risk accounts requiring attention",
|
|
229
|
+
"7. **Action Items** -- Prioritized list of follow-ups",
|
|
230
|
+
].join("\n"),
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
}));
|
|
235
|
+
}
|
|
236
|
+
//# sourceMappingURL=prompts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yDAAyD;AAEzD,MAAM,UAAU,eAAe,CAAC,MAAiB;IAC/C,4BAA4B;IAC5B,MAAM,CAAC,cAAc,CACnB,iBAAiB,EACjB;QACE,WAAW,EACT,yDAAyD;YACzD,uEAAuE;YACvE,kEAAkE;QACpE,UAAU,EAAE;YACV,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;YACzE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,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B,MAAM,CAAC,cAAc,CACnB,iBAAiB,EACjB;QACE,WAAW,EACT,+EAA+E;YAC/E,8EAA8E;QAChF,UAAU,EAAE;YACV,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2EAA2E,CAAC;SACnH;KACF,EACD,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;QACpB,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,MAAe;gBACrB,OAAO,EAAE;oBACP,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE;wBACJ,oCAAoC,KAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG;wBACnE,EAAE;wBACF,uCAAuC;wBACvC,EAAE;wBACF,sBAAsB;wBACtB,sEAAsE;wBACtE,EAAE;wBACF,8BAA8B;wBAC9B,yDAAyD;wBACzD,EAAE;wBACF,oCAAoC;wBACpC,kCAAkC,KAAK,CAAC,CAAC,CAAC,wCAAwC,KAAK,EAAE,CAAC,CAAC,CAAC,kCAAkC,GAAG;wBACjI,EAAE;wBACF,kCAAkC;wBAClC,iFAAiF;wBACjF,2EAA2E;wBAC3E,EAAE;wBACF,6BAA6B;wBAC7B,2DAA2D;wBAC3D,EAAE;wBACF,4BAA4B;wBAC5B,iEAAiE;wBACjE,EAAE;wBACF,+CAA+C;wBAC/C,gDAAgD;wBAChD,sEAAsE;wBACtE,sEAAsE;wBACtE,0EAA0E;wBAC1E,kDAAkD;wBAClD,gEAAgE;wBAChE,uDAAuD;qBACxD,CAAC,IAAI,CAAC,IAAI,CAAC;iBACb;aACF;SACF;KACF,CAAC,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Resource Definitions for Zuora Data Model & ZOQL Reference
|
|
3
|
+
*
|
|
4
|
+
* Static content that Claude reads to write better ad-hoc ZOQL queries.
|
|
5
|
+
* These resources expose Zuora's data model, relationships, syntax rules,
|
|
6
|
+
* and common query patterns so Claude can construct correct multi-step ZOQL
|
|
7
|
+
* without needing to guess field names or relationships.
|
|
8
|
+
*/
|
|
9
|
+
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
10
|
+
export declare function registerResources(server: McpServer): void;
|
|
11
|
+
//# sourceMappingURL=resources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../src/resources.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA0czE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAwGzD"}
|