dodopayments-mcp 1.19.0 → 1.20.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.
- package/README.md +10 -2
- package/package.json +2 -2
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/server.ts +1 -1
- package/src/tools/addons/create-addons.ts +204 -0
- package/src/tools/addons/list-addons.ts +36 -0
- package/src/tools/addons/retrieve-addons.ts +31 -0
- package/src/tools/addons/update-addons.ts +211 -0
- package/src/tools/addons/update-images-addons.ts +31 -0
- package/src/tools/index.ts +10 -0
- package/src/tools/payments/create-payments.ts +151 -148
- package/src/tools/products/create-products.ts +159 -300
- package/src/tools/products/update-products.ts +159 -300
- package/src/tools/subscriptions/create-subscriptions.ts +167 -148
- package/tools/addons/create-addons.d.mts +24 -0
- package/tools/addons/create-addons.d.mts.map +1 -0
- package/tools/addons/create-addons.d.ts +24 -0
- package/tools/addons/create-addons.d.ts.map +1 -0
- package/tools/addons/create-addons.js +200 -0
- package/tools/addons/create-addons.js.map +1 -0
- package/tools/addons/create-addons.mjs +196 -0
- package/tools/addons/create-addons.mjs.map +1 -0
- package/tools/addons/list-addons.d.mts +24 -0
- package/tools/addons/list-addons.d.mts.map +1 -0
- package/tools/addons/list-addons.d.ts +24 -0
- package/tools/addons/list-addons.d.ts.map +1 -0
- package/tools/addons/list-addons.js +33 -0
- package/tools/addons/list-addons.js.map +1 -0
- package/tools/addons/list-addons.mjs +29 -0
- package/tools/addons/list-addons.mjs.map +1 -0
- package/tools/addons/retrieve-addons.d.mts +24 -0
- package/tools/addons/retrieve-addons.d.mts.map +1 -0
- package/tools/addons/retrieve-addons.d.ts +24 -0
- package/tools/addons/retrieve-addons.d.ts.map +1 -0
- package/tools/addons/retrieve-addons.js +28 -0
- package/tools/addons/retrieve-addons.js.map +1 -0
- package/tools/addons/retrieve-addons.mjs +24 -0
- package/tools/addons/retrieve-addons.mjs.map +1 -0
- package/tools/addons/update-addons.d.mts +24 -0
- package/tools/addons/update-addons.d.mts.map +1 -0
- package/tools/addons/update-addons.d.ts +24 -0
- package/tools/addons/update-addons.d.ts.map +1 -0
- package/tools/addons/update-addons.js +207 -0
- package/tools/addons/update-addons.js.map +1 -0
- package/tools/addons/update-addons.mjs +203 -0
- package/tools/addons/update-addons.mjs.map +1 -0
- package/tools/addons/update-images-addons.d.mts +24 -0
- package/tools/addons/update-images-addons.d.mts.map +1 -0
- package/tools/addons/update-images-addons.d.ts +24 -0
- package/tools/addons/update-images-addons.d.ts.map +1 -0
- package/tools/addons/update-images-addons.js +28 -0
- package/tools/addons/update-images-addons.js.map +1 -0
- package/tools/addons/update-images-addons.mjs +24 -0
- package/tools/addons/update-images-addons.mjs.map +1 -0
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +10 -0
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +10 -0
- package/tools/index.mjs.map +1 -1
- package/tools/payments/create-payments.d.mts.map +1 -1
- package/tools/payments/create-payments.d.ts.map +1 -1
- package/tools/payments/create-payments.js +151 -148
- package/tools/payments/create-payments.js.map +1 -1
- package/tools/payments/create-payments.mjs +151 -148
- package/tools/payments/create-payments.mjs.map +1 -1
- package/tools/products/create-products.d.mts.map +1 -1
- package/tools/products/create-products.d.ts.map +1 -1
- package/tools/products/create-products.js +158 -299
- package/tools/products/create-products.js.map +1 -1
- package/tools/products/create-products.mjs +158 -299
- package/tools/products/create-products.mjs.map +1 -1
- package/tools/products/update-products.d.mts.map +1 -1
- package/tools/products/update-products.d.ts.map +1 -1
- package/tools/products/update-products.js +158 -299
- package/tools/products/update-products.js.map +1 -1
- package/tools/products/update-products.mjs +158 -299
- package/tools/products/update-products.mjs.map +1 -1
- package/tools/subscriptions/create-subscriptions.d.mts.map +1 -1
- package/tools/subscriptions/create-subscriptions.d.ts.map +1 -1
- package/tools/subscriptions/create-subscriptions.js +167 -148
- package/tools/subscriptions/create-subscriptions.js.map +1 -1
- package/tools/subscriptions/create-subscriptions.mjs +167 -148
- package/tools/subscriptions/create-subscriptions.mjs.map +1 -1
- package/tools/subscriptions/list-subscriptions.d.mts +2 -2
- package/tools/subscriptions/list-subscriptions.d.mts.map +1 -1
- package/tools/subscriptions/list-subscriptions.d.ts +2 -2
- package/tools/subscriptions/list-subscriptions.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ It is generated with [Stainless](https://www.stainless.com/).
|
|
|
9
9
|
You can run the MCP Server directly via `npx`:
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
export DODO_PAYMENTS_API_KEY="My
|
|
12
|
+
export DODO_PAYMENTS_API_KEY="My API Key"
|
|
13
13
|
npx -y dodopayments-mcp
|
|
14
14
|
```
|
|
15
15
|
|
|
@@ -27,7 +27,7 @@ For clients with a configuration JSON, it might look something like this:
|
|
|
27
27
|
"command": "npx",
|
|
28
28
|
"args": ["-y", "dodopayments-mcp", "--client=claude"],
|
|
29
29
|
"env": {
|
|
30
|
-
"DODO_PAYMENTS_API_KEY": "My
|
|
30
|
+
"DODO_PAYMENTS_API_KEY": "My API Key"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -235,3 +235,11 @@ The following tools are available in this MCP server.
|
|
|
235
235
|
- `update_discounts` (`write`): PATCH /discounts/{discount_id}
|
|
236
236
|
- `list_discounts` (`read`): GET /discounts
|
|
237
237
|
- `delete_discounts` (`write`): DELETE /discounts/{discount_id}
|
|
238
|
+
|
|
239
|
+
### Resource `addons`:
|
|
240
|
+
|
|
241
|
+
- `create_addons` (`write`):
|
|
242
|
+
- `retrieve_addons` (`read`):
|
|
243
|
+
- `update_addons` (`write`):
|
|
244
|
+
- `list_addons` (`read`):
|
|
245
|
+
- `update_images_addons` (`write`):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dodopayments-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"description": "The official MCP Server for the Dodo Payments API",
|
|
5
5
|
"author": "Dodo Payments <founders@dodopayments.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"fix": "eslint --fix --ext ts,js ."
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"dodopayments": "^1.
|
|
27
|
+
"dodopayments": "^1.20.0",
|
|
28
28
|
"@modelcontextprotocol/sdk": "^1.6.1",
|
|
29
29
|
"yargs": "^17.7.2",
|
|
30
30
|
"ajv": "^8.17.1"
|
package/server.js
CHANGED
|
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "endpoints", { enumerable: true, get: function ()
|
|
|
15
15
|
// Create server instance
|
|
16
16
|
exports.server = new mcp_js_1.McpServer({
|
|
17
17
|
name: 'dodopayments_api',
|
|
18
|
-
version: '1.
|
|
18
|
+
version: '1.20.0',
|
|
19
19
|
}, {
|
|
20
20
|
capabilities: {
|
|
21
21
|
tools: {},
|
package/server.mjs
CHANGED
package/src/server.ts
CHANGED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import DodoPayments from 'dodopayments';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'addons',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'create_addons',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
currency: {
|
|
20
|
+
$ref: '#/$defs/currency',
|
|
21
|
+
},
|
|
22
|
+
name: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
description: 'Name of the Addon',
|
|
25
|
+
},
|
|
26
|
+
price: {
|
|
27
|
+
type: 'integer',
|
|
28
|
+
description: 'Amount of the addon',
|
|
29
|
+
},
|
|
30
|
+
tax_category: {
|
|
31
|
+
$ref: '#/$defs/tax_category',
|
|
32
|
+
},
|
|
33
|
+
description: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Optional description of the Addon',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
$defs: {
|
|
39
|
+
currency: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
enum: [
|
|
42
|
+
'AED',
|
|
43
|
+
'ALL',
|
|
44
|
+
'AMD',
|
|
45
|
+
'ANG',
|
|
46
|
+
'AOA',
|
|
47
|
+
'ARS',
|
|
48
|
+
'AUD',
|
|
49
|
+
'AWG',
|
|
50
|
+
'AZN',
|
|
51
|
+
'BAM',
|
|
52
|
+
'BBD',
|
|
53
|
+
'BDT',
|
|
54
|
+
'BGN',
|
|
55
|
+
'BHD',
|
|
56
|
+
'BIF',
|
|
57
|
+
'BMD',
|
|
58
|
+
'BND',
|
|
59
|
+
'BOB',
|
|
60
|
+
'BRL',
|
|
61
|
+
'BSD',
|
|
62
|
+
'BWP',
|
|
63
|
+
'BYN',
|
|
64
|
+
'BZD',
|
|
65
|
+
'CAD',
|
|
66
|
+
'CHF',
|
|
67
|
+
'CLP',
|
|
68
|
+
'CNY',
|
|
69
|
+
'COP',
|
|
70
|
+
'CRC',
|
|
71
|
+
'CUP',
|
|
72
|
+
'CVE',
|
|
73
|
+
'CZK',
|
|
74
|
+
'DJF',
|
|
75
|
+
'DKK',
|
|
76
|
+
'DOP',
|
|
77
|
+
'DZD',
|
|
78
|
+
'EGP',
|
|
79
|
+
'ETB',
|
|
80
|
+
'EUR',
|
|
81
|
+
'FJD',
|
|
82
|
+
'FKP',
|
|
83
|
+
'GBP',
|
|
84
|
+
'GEL',
|
|
85
|
+
'GHS',
|
|
86
|
+
'GIP',
|
|
87
|
+
'GMD',
|
|
88
|
+
'GNF',
|
|
89
|
+
'GTQ',
|
|
90
|
+
'GYD',
|
|
91
|
+
'HKD',
|
|
92
|
+
'HNL',
|
|
93
|
+
'HRK',
|
|
94
|
+
'HTG',
|
|
95
|
+
'HUF',
|
|
96
|
+
'IDR',
|
|
97
|
+
'ILS',
|
|
98
|
+
'INR',
|
|
99
|
+
'IQD',
|
|
100
|
+
'JMD',
|
|
101
|
+
'JOD',
|
|
102
|
+
'JPY',
|
|
103
|
+
'KES',
|
|
104
|
+
'KGS',
|
|
105
|
+
'KHR',
|
|
106
|
+
'KMF',
|
|
107
|
+
'KRW',
|
|
108
|
+
'KWD',
|
|
109
|
+
'KYD',
|
|
110
|
+
'KZT',
|
|
111
|
+
'LAK',
|
|
112
|
+
'LBP',
|
|
113
|
+
'LKR',
|
|
114
|
+
'LRD',
|
|
115
|
+
'LSL',
|
|
116
|
+
'LYD',
|
|
117
|
+
'MAD',
|
|
118
|
+
'MDL',
|
|
119
|
+
'MGA',
|
|
120
|
+
'MKD',
|
|
121
|
+
'MMK',
|
|
122
|
+
'MNT',
|
|
123
|
+
'MOP',
|
|
124
|
+
'MRU',
|
|
125
|
+
'MUR',
|
|
126
|
+
'MVR',
|
|
127
|
+
'MWK',
|
|
128
|
+
'MXN',
|
|
129
|
+
'MYR',
|
|
130
|
+
'MZN',
|
|
131
|
+
'NAD',
|
|
132
|
+
'NGN',
|
|
133
|
+
'NIO',
|
|
134
|
+
'NOK',
|
|
135
|
+
'NPR',
|
|
136
|
+
'NZD',
|
|
137
|
+
'OMR',
|
|
138
|
+
'PAB',
|
|
139
|
+
'PEN',
|
|
140
|
+
'PGK',
|
|
141
|
+
'PHP',
|
|
142
|
+
'PKR',
|
|
143
|
+
'PLN',
|
|
144
|
+
'PYG',
|
|
145
|
+
'QAR',
|
|
146
|
+
'RON',
|
|
147
|
+
'RSD',
|
|
148
|
+
'RUB',
|
|
149
|
+
'RWF',
|
|
150
|
+
'SAR',
|
|
151
|
+
'SBD',
|
|
152
|
+
'SCR',
|
|
153
|
+
'SEK',
|
|
154
|
+
'SGD',
|
|
155
|
+
'SHP',
|
|
156
|
+
'SLE',
|
|
157
|
+
'SLL',
|
|
158
|
+
'SOS',
|
|
159
|
+
'SRD',
|
|
160
|
+
'SSP',
|
|
161
|
+
'STN',
|
|
162
|
+
'SVC',
|
|
163
|
+
'SZL',
|
|
164
|
+
'THB',
|
|
165
|
+
'TND',
|
|
166
|
+
'TOP',
|
|
167
|
+
'TRY',
|
|
168
|
+
'TTD',
|
|
169
|
+
'TWD',
|
|
170
|
+
'TZS',
|
|
171
|
+
'UAH',
|
|
172
|
+
'UGX',
|
|
173
|
+
'USD',
|
|
174
|
+
'UYU',
|
|
175
|
+
'UZS',
|
|
176
|
+
'VES',
|
|
177
|
+
'VND',
|
|
178
|
+
'VUV',
|
|
179
|
+
'WST',
|
|
180
|
+
'XAF',
|
|
181
|
+
'XCD',
|
|
182
|
+
'XOF',
|
|
183
|
+
'XPF',
|
|
184
|
+
'YER',
|
|
185
|
+
'ZAR',
|
|
186
|
+
'ZMW',
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
tax_category: {
|
|
190
|
+
type: 'string',
|
|
191
|
+
description:
|
|
192
|
+
'Represents the different categories of taxation applicable to various products and services.',
|
|
193
|
+
enum: ['digital_products', 'saas', 'e_book', 'edtech'],
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
export const handler = (client: DodoPayments, args: Record<string, unknown> | undefined) => {
|
|
200
|
+
const body = args as any;
|
|
201
|
+
return client.addons.create(body);
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import DodoPayments from 'dodopayments';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'addons',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'list_addons',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
page_number: {
|
|
20
|
+
type: 'integer',
|
|
21
|
+
description: 'Page number default is 0',
|
|
22
|
+
},
|
|
23
|
+
page_size: {
|
|
24
|
+
type: 'integer',
|
|
25
|
+
description: 'Page size default is 10 max is 100',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const handler = (client: DodoPayments, args: Record<string, unknown> | undefined) => {
|
|
32
|
+
const body = args as any;
|
|
33
|
+
return client.addons.list(body);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import DodoPayments from 'dodopayments';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'addons',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'retrieve_addons',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const handler = (client: DodoPayments, args: Record<string, unknown> | undefined) => {
|
|
27
|
+
const { id, ...body } = args as any;
|
|
28
|
+
return client.addons.retrieve(id);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import DodoPayments from 'dodopayments';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'addons',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'update_addons',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
currency: {
|
|
23
|
+
$ref: '#/$defs/currency',
|
|
24
|
+
},
|
|
25
|
+
description: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
description: 'Description of the Addon, optional and must be at most 1000 characters.',
|
|
28
|
+
},
|
|
29
|
+
image_id: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'Addon image id after its uploaded to S3',
|
|
32
|
+
},
|
|
33
|
+
name: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Name of the Addon, optional and must be at most 100 characters.',
|
|
36
|
+
},
|
|
37
|
+
price: {
|
|
38
|
+
type: 'integer',
|
|
39
|
+
description: 'Amount of the addon',
|
|
40
|
+
},
|
|
41
|
+
tax_category: {
|
|
42
|
+
$ref: '#/$defs/tax_category',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
$defs: {
|
|
46
|
+
currency: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
enum: [
|
|
49
|
+
'AED',
|
|
50
|
+
'ALL',
|
|
51
|
+
'AMD',
|
|
52
|
+
'ANG',
|
|
53
|
+
'AOA',
|
|
54
|
+
'ARS',
|
|
55
|
+
'AUD',
|
|
56
|
+
'AWG',
|
|
57
|
+
'AZN',
|
|
58
|
+
'BAM',
|
|
59
|
+
'BBD',
|
|
60
|
+
'BDT',
|
|
61
|
+
'BGN',
|
|
62
|
+
'BHD',
|
|
63
|
+
'BIF',
|
|
64
|
+
'BMD',
|
|
65
|
+
'BND',
|
|
66
|
+
'BOB',
|
|
67
|
+
'BRL',
|
|
68
|
+
'BSD',
|
|
69
|
+
'BWP',
|
|
70
|
+
'BYN',
|
|
71
|
+
'BZD',
|
|
72
|
+
'CAD',
|
|
73
|
+
'CHF',
|
|
74
|
+
'CLP',
|
|
75
|
+
'CNY',
|
|
76
|
+
'COP',
|
|
77
|
+
'CRC',
|
|
78
|
+
'CUP',
|
|
79
|
+
'CVE',
|
|
80
|
+
'CZK',
|
|
81
|
+
'DJF',
|
|
82
|
+
'DKK',
|
|
83
|
+
'DOP',
|
|
84
|
+
'DZD',
|
|
85
|
+
'EGP',
|
|
86
|
+
'ETB',
|
|
87
|
+
'EUR',
|
|
88
|
+
'FJD',
|
|
89
|
+
'FKP',
|
|
90
|
+
'GBP',
|
|
91
|
+
'GEL',
|
|
92
|
+
'GHS',
|
|
93
|
+
'GIP',
|
|
94
|
+
'GMD',
|
|
95
|
+
'GNF',
|
|
96
|
+
'GTQ',
|
|
97
|
+
'GYD',
|
|
98
|
+
'HKD',
|
|
99
|
+
'HNL',
|
|
100
|
+
'HRK',
|
|
101
|
+
'HTG',
|
|
102
|
+
'HUF',
|
|
103
|
+
'IDR',
|
|
104
|
+
'ILS',
|
|
105
|
+
'INR',
|
|
106
|
+
'IQD',
|
|
107
|
+
'JMD',
|
|
108
|
+
'JOD',
|
|
109
|
+
'JPY',
|
|
110
|
+
'KES',
|
|
111
|
+
'KGS',
|
|
112
|
+
'KHR',
|
|
113
|
+
'KMF',
|
|
114
|
+
'KRW',
|
|
115
|
+
'KWD',
|
|
116
|
+
'KYD',
|
|
117
|
+
'KZT',
|
|
118
|
+
'LAK',
|
|
119
|
+
'LBP',
|
|
120
|
+
'LKR',
|
|
121
|
+
'LRD',
|
|
122
|
+
'LSL',
|
|
123
|
+
'LYD',
|
|
124
|
+
'MAD',
|
|
125
|
+
'MDL',
|
|
126
|
+
'MGA',
|
|
127
|
+
'MKD',
|
|
128
|
+
'MMK',
|
|
129
|
+
'MNT',
|
|
130
|
+
'MOP',
|
|
131
|
+
'MRU',
|
|
132
|
+
'MUR',
|
|
133
|
+
'MVR',
|
|
134
|
+
'MWK',
|
|
135
|
+
'MXN',
|
|
136
|
+
'MYR',
|
|
137
|
+
'MZN',
|
|
138
|
+
'NAD',
|
|
139
|
+
'NGN',
|
|
140
|
+
'NIO',
|
|
141
|
+
'NOK',
|
|
142
|
+
'NPR',
|
|
143
|
+
'NZD',
|
|
144
|
+
'OMR',
|
|
145
|
+
'PAB',
|
|
146
|
+
'PEN',
|
|
147
|
+
'PGK',
|
|
148
|
+
'PHP',
|
|
149
|
+
'PKR',
|
|
150
|
+
'PLN',
|
|
151
|
+
'PYG',
|
|
152
|
+
'QAR',
|
|
153
|
+
'RON',
|
|
154
|
+
'RSD',
|
|
155
|
+
'RUB',
|
|
156
|
+
'RWF',
|
|
157
|
+
'SAR',
|
|
158
|
+
'SBD',
|
|
159
|
+
'SCR',
|
|
160
|
+
'SEK',
|
|
161
|
+
'SGD',
|
|
162
|
+
'SHP',
|
|
163
|
+
'SLE',
|
|
164
|
+
'SLL',
|
|
165
|
+
'SOS',
|
|
166
|
+
'SRD',
|
|
167
|
+
'SSP',
|
|
168
|
+
'STN',
|
|
169
|
+
'SVC',
|
|
170
|
+
'SZL',
|
|
171
|
+
'THB',
|
|
172
|
+
'TND',
|
|
173
|
+
'TOP',
|
|
174
|
+
'TRY',
|
|
175
|
+
'TTD',
|
|
176
|
+
'TWD',
|
|
177
|
+
'TZS',
|
|
178
|
+
'UAH',
|
|
179
|
+
'UGX',
|
|
180
|
+
'USD',
|
|
181
|
+
'UYU',
|
|
182
|
+
'UZS',
|
|
183
|
+
'VES',
|
|
184
|
+
'VND',
|
|
185
|
+
'VUV',
|
|
186
|
+
'WST',
|
|
187
|
+
'XAF',
|
|
188
|
+
'XCD',
|
|
189
|
+
'XOF',
|
|
190
|
+
'XPF',
|
|
191
|
+
'YER',
|
|
192
|
+
'ZAR',
|
|
193
|
+
'ZMW',
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
tax_category: {
|
|
197
|
+
type: 'string',
|
|
198
|
+
description:
|
|
199
|
+
'Represents the different categories of taxation applicable to various products and services.',
|
|
200
|
+
enum: ['digital_products', 'saas', 'e_book', 'edtech'],
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
export const handler = (client: DodoPayments, args: Record<string, unknown> | undefined) => {
|
|
207
|
+
const { id, ...body } = args as any;
|
|
208
|
+
return client.addons.update(id, body);
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import DodoPayments from 'dodopayments';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'addons',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'update_images_addons',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const handler = (client: DodoPayments, args: Record<string, unknown> | undefined) => {
|
|
27
|
+
const { id, ...body } = args as any;
|
|
28
|
+
return client.addons.updateImages(id);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default { metadata, tool, handler };
|
package/src/tools/index.ts
CHANGED
|
@@ -48,6 +48,11 @@ import retrieve_discounts from './discounts/retrieve-discounts';
|
|
|
48
48
|
import update_discounts from './discounts/update-discounts';
|
|
49
49
|
import list_discounts from './discounts/list-discounts';
|
|
50
50
|
import delete_discounts from './discounts/delete-discounts';
|
|
51
|
+
import create_addons from './addons/create-addons';
|
|
52
|
+
import retrieve_addons from './addons/retrieve-addons';
|
|
53
|
+
import update_addons from './addons/update-addons';
|
|
54
|
+
import list_addons from './addons/list-addons';
|
|
55
|
+
import update_images_addons from './addons/update-images-addons';
|
|
51
56
|
|
|
52
57
|
export type HandlerFunction = (
|
|
53
58
|
client: DodoPayments,
|
|
@@ -117,6 +122,11 @@ addEndpoint(retrieve_discounts);
|
|
|
117
122
|
addEndpoint(update_discounts);
|
|
118
123
|
addEndpoint(list_discounts);
|
|
119
124
|
addEndpoint(delete_discounts);
|
|
125
|
+
addEndpoint(create_addons);
|
|
126
|
+
addEndpoint(retrieve_addons);
|
|
127
|
+
addEndpoint(update_addons);
|
|
128
|
+
addEndpoint(list_addons);
|
|
129
|
+
addEndpoint(update_images_addons);
|
|
120
130
|
|
|
121
131
|
export type Filter = {
|
|
122
132
|
type: 'resource' | 'operation' | 'tag' | 'tool';
|