langmart-gateway-type3 3.0.45 → 3.0.47
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/dist/admin-tools.d.ts +46 -0
- package/dist/admin-tools.d.ts.map +1 -0
- package/dist/admin-tools.js +933 -0
- package/dist/admin-tools.js.map +1 -0
- package/dist/agent-tools.d.ts +38 -0
- package/dist/agent-tools.d.ts.map +1 -0
- package/dist/agent-tools.js +813 -0
- package/dist/agent-tools.js.map +1 -0
- package/dist/billing-tools.d.ts +25 -0
- package/dist/billing-tools.d.ts.map +1 -0
- package/dist/billing-tools.js +283 -0
- package/dist/billing-tools.js.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +792 -0
- package/dist/cli.js.map +1 -0
- package/dist/collection-tools.d.ts +26 -0
- package/dist/collection-tools.d.ts.map +1 -0
- package/dist/collection-tools.js +347 -0
- package/dist/collection-tools.js.map +1 -0
- package/dist/lib/tool-schema-validator.d.ts +35 -0
- package/dist/lib/tool-schema-validator.d.ts.map +1 -0
- package/dist/lib/tool-schema-validator.js +146 -0
- package/dist/lib/tool-schema-validator.js.map +1 -0
- package/dist/marketplace-tools.d.ts +116 -0
- package/dist/marketplace-tools.d.ts.map +1 -0
- package/dist/marketplace-tools.js +3089 -0
- package/dist/marketplace-tools.js.map +1 -0
- package/dist/organization-tools.d.ts +37 -0
- package/dist/organization-tools.d.ts.map +1 -0
- package/dist/organization-tools.js +609 -0
- package/dist/organization-tools.js.map +1 -0
- package/dist/seller-tools.d.ts +28 -0
- package/dist/seller-tools.d.ts.map +1 -0
- package/dist/seller-tools.js +437 -0
- package/dist/seller-tools.js.map +1 -0
- package/dist/support-tools.d.ts +23 -0
- package/dist/support-tools.d.ts.map +1 -0
- package/dist/support-tools.js +292 -0
- package/dist/support-tools.js.map +1 -0
- package/dist/test-key-redaction-integration.d.ts +7 -0
- package/dist/test-key-redaction-integration.d.ts.map +1 -0
- package/dist/test-key-redaction-integration.js +80 -0
- package/dist/test-key-redaction-integration.js.map +1 -0
- package/dist/test-key-redaction.d.ts +6 -0
- package/dist/test-key-redaction.d.ts.map +1 -0
- package/dist/test-key-redaction.js +115 -0
- package/dist/test-key-redaction.js.map +1 -0
- package/dist/test-vault-migration.d.ts +2 -0
- package/dist/test-vault-migration.d.ts.map +1 -0
- package/dist/test-vault-migration.js +130 -0
- package/dist/test-vault-migration.js.map +1 -0
- package/dist/user-tools.d.ts +40 -0
- package/dist/user-tools.d.ts.map +1 -0
- package/dist/user-tools.js +685 -0
- package/dist/user-tools.js.map +1 -0
- package/package.json +2 -70
- package/scripts/start.ps1 +24 -3
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Seller Tools - MCP Tools for Seller Management
|
|
4
|
+
*
|
|
5
|
+
* Provides tools for:
|
|
6
|
+
* - Seller registration and verification
|
|
7
|
+
* - Seller account management
|
|
8
|
+
* - Seller model catalog management
|
|
9
|
+
*/
|
|
10
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.SellerTools = exports.sellerToolDefinitions = void 0;
|
|
15
|
+
const axios_1 = __importDefault(require("axios"));
|
|
16
|
+
// ============= TOOL DEFINITIONS =============
|
|
17
|
+
exports.sellerToolDefinitions = [
|
|
18
|
+
{
|
|
19
|
+
type: 'function',
|
|
20
|
+
function: {
|
|
21
|
+
name: 'sellers_register',
|
|
22
|
+
description: 'Register as a new seller to monetize models. Response includes seller_id, which is required for all other seller tools (sellers_verify, sellers_models_add, etc).',
|
|
23
|
+
parameters: {
|
|
24
|
+
type: 'object',
|
|
25
|
+
properties: {
|
|
26
|
+
business_name: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'Legal business name or display name'
|
|
29
|
+
},
|
|
30
|
+
business_email: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: 'Contact email for business inquiries'
|
|
33
|
+
},
|
|
34
|
+
gateway_type: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
description: 'Type of gateway to use (2=Guided/Cloud, 3=Self-Hosted)',
|
|
37
|
+
enum: ['2', '3']
|
|
38
|
+
},
|
|
39
|
+
website: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'Business website URL (optional)'
|
|
42
|
+
},
|
|
43
|
+
description: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: 'Short description of your services (optional)'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
required: ['business_name', 'business_email', 'gateway_type']
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
metadata: {
|
|
52
|
+
category: 'sellers',
|
|
53
|
+
defaultEnabled: true,
|
|
54
|
+
adminOnly: false,
|
|
55
|
+
destructive: false,
|
|
56
|
+
requiresConfirmation: false,
|
|
57
|
+
apiEndpoint: '/api/sellers/register',
|
|
58
|
+
apiMethod: 'POST',
|
|
59
|
+
tags: ['sellers', 'register']
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
type: 'function',
|
|
64
|
+
function: {
|
|
65
|
+
name: 'sellers_verify',
|
|
66
|
+
description: 'Submit verification documents for a seller account. Requires seller_id from sellers_register.',
|
|
67
|
+
parameters: {
|
|
68
|
+
type: 'object',
|
|
69
|
+
properties: {
|
|
70
|
+
seller_id: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
description: 'Seller ID from registration'
|
|
73
|
+
},
|
|
74
|
+
documents: {
|
|
75
|
+
type: 'array',
|
|
76
|
+
items: {
|
|
77
|
+
type: 'object',
|
|
78
|
+
properties: {
|
|
79
|
+
type: {
|
|
80
|
+
type: 'string',
|
|
81
|
+
enum: ['business_license', 'tax_certificate', 'bank_statement', 'identity_verification', 'other'],
|
|
82
|
+
description: 'Type of document being uploaded'
|
|
83
|
+
},
|
|
84
|
+
url: { type: 'string', description: 'URL where document is hosted' },
|
|
85
|
+
filename: { type: 'string', description: 'Original filename of the document' }
|
|
86
|
+
},
|
|
87
|
+
required: ['type', 'url', 'filename'],
|
|
88
|
+
description: 'Verification document usage'
|
|
89
|
+
},
|
|
90
|
+
description: 'List of verification documents'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
required: ['seller_id', 'documents']
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
metadata: {
|
|
97
|
+
category: 'sellers',
|
|
98
|
+
defaultEnabled: true,
|
|
99
|
+
adminOnly: false,
|
|
100
|
+
destructive: false,
|
|
101
|
+
requiresConfirmation: false,
|
|
102
|
+
apiEndpoint: '/api/sellers/:id/verify',
|
|
103
|
+
apiMethod: 'POST',
|
|
104
|
+
tags: ['sellers', 'verify']
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
type: 'function',
|
|
109
|
+
function: {
|
|
110
|
+
name: 'sellers_activate',
|
|
111
|
+
description: 'Activate a seller account after approval and verification. Requires seller_id from sellers_register.',
|
|
112
|
+
parameters: {
|
|
113
|
+
type: 'object',
|
|
114
|
+
properties: {
|
|
115
|
+
seller_id: {
|
|
116
|
+
type: 'string',
|
|
117
|
+
description: 'Seller ID to activate'
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
required: ['seller_id']
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
metadata: {
|
|
124
|
+
category: 'sellers',
|
|
125
|
+
defaultEnabled: true,
|
|
126
|
+
adminOnly: false,
|
|
127
|
+
destructive: false,
|
|
128
|
+
requiresConfirmation: false,
|
|
129
|
+
apiEndpoint: '/api/sellers/:id/activate',
|
|
130
|
+
apiMethod: 'POST',
|
|
131
|
+
tags: ['sellers', 'activate']
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: 'function',
|
|
136
|
+
function: {
|
|
137
|
+
name: 'sellers_status',
|
|
138
|
+
description: 'Get status of a seller account including verification and model counts. Requires seller_id from sellers_register.',
|
|
139
|
+
parameters: {
|
|
140
|
+
type: 'object',
|
|
141
|
+
properties: {
|
|
142
|
+
seller_id: {
|
|
143
|
+
type: 'string',
|
|
144
|
+
description: 'Seller ID to check'
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
required: ['seller_id']
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
metadata: {
|
|
151
|
+
category: 'sellers',
|
|
152
|
+
defaultEnabled: true,
|
|
153
|
+
adminOnly: false,
|
|
154
|
+
destructive: false,
|
|
155
|
+
requiresConfirmation: false,
|
|
156
|
+
apiEndpoint: '/api/sellers/:id/status',
|
|
157
|
+
apiMethod: 'GET',
|
|
158
|
+
tags: ['sellers', 'status', 'get']
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
type: 'function',
|
|
163
|
+
function: {
|
|
164
|
+
name: 'sellers_models_list',
|
|
165
|
+
description: 'List models offered by a seller. Returns model_id for use with sellers_models_update or sellers_models_delete. Requires seller_id from sellers_register.',
|
|
166
|
+
parameters: {
|
|
167
|
+
type: 'object',
|
|
168
|
+
properties: {
|
|
169
|
+
seller_id: {
|
|
170
|
+
type: 'string',
|
|
171
|
+
description: 'Seller ID'
|
|
172
|
+
},
|
|
173
|
+
status: {
|
|
174
|
+
type: 'string',
|
|
175
|
+
enum: ['active', 'inactive', 'all'],
|
|
176
|
+
default: 'all',
|
|
177
|
+
description: 'Filter by model status'
|
|
178
|
+
},
|
|
179
|
+
include_metrics: {
|
|
180
|
+
type: 'boolean',
|
|
181
|
+
description: 'Include performance metrics in response'
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
required: ['seller_id']
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
metadata: {
|
|
188
|
+
category: 'sellers',
|
|
189
|
+
defaultEnabled: true,
|
|
190
|
+
adminOnly: false,
|
|
191
|
+
destructive: false,
|
|
192
|
+
requiresConfirmation: false,
|
|
193
|
+
apiEndpoint: '/api/sellers/:id/models',
|
|
194
|
+
apiMethod: 'GET',
|
|
195
|
+
tags: ['sellers', 'models', 'list']
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
type: 'function',
|
|
200
|
+
function: {
|
|
201
|
+
name: 'sellers_models_add',
|
|
202
|
+
description: 'Add a new model to your seller catalog. Requires seller_id from sellers_register.',
|
|
203
|
+
parameters: {
|
|
204
|
+
type: 'object',
|
|
205
|
+
properties: {
|
|
206
|
+
seller_id: { type: 'string', description: 'Seller ID' },
|
|
207
|
+
family: { type: 'string', description: 'Model family (e.g. "gpt-4")' },
|
|
208
|
+
category_key: { type: 'string', description: 'Unique key for this specific offering (e.g. "gpt-4-finance")' },
|
|
209
|
+
display_name: { type: 'string', description: 'Public facing name' },
|
|
210
|
+
seller_model_name: { type: 'string', description: 'Internal reference name' },
|
|
211
|
+
model_name_at_endpoint: { type: 'string', description: 'Actual model ID on the provider/gateway side' },
|
|
212
|
+
pricing: {
|
|
213
|
+
type: 'object',
|
|
214
|
+
description: 'Pricing configuration for the model',
|
|
215
|
+
properties: {
|
|
216
|
+
input_tokens_per_1k: { type: 'number', description: 'Cost per 1000 input tokens' },
|
|
217
|
+
output_tokens_per_1k: { type: 'number', description: 'Cost per 1000 output tokens' },
|
|
218
|
+
markup_percentage: { type: 'number', description: 'Percentage markup over provider cost' }
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
rate_limits: {
|
|
222
|
+
type: 'object',
|
|
223
|
+
description: 'Rate limit configuration',
|
|
224
|
+
properties: {
|
|
225
|
+
requests_per_minute: { type: 'number', description: 'Max RPM allowed' },
|
|
226
|
+
tokens_per_minute: { type: 'number', description: 'Max TPM allowed' }
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
capabilities: {
|
|
230
|
+
type: 'object',
|
|
231
|
+
description: 'Model capabilities dictionary (chat, completions, etc)'
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
required: ['seller_id', 'family', 'category_key', 'display_name', 'seller_model_name', 'model_name_at_endpoint']
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
metadata: {
|
|
238
|
+
category: 'sellers',
|
|
239
|
+
defaultEnabled: true,
|
|
240
|
+
adminOnly: false,
|
|
241
|
+
destructive: false,
|
|
242
|
+
requiresConfirmation: false,
|
|
243
|
+
apiEndpoint: '/api/sellers/:id/models',
|
|
244
|
+
apiMethod: 'POST',
|
|
245
|
+
tags: ['sellers', 'models', 'add']
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
type: 'function',
|
|
250
|
+
function: {
|
|
251
|
+
name: 'sellers_models_update',
|
|
252
|
+
description: 'Update an existing seller model. Requires seller_id from sellers_register and model_id from sellers_models_list.',
|
|
253
|
+
parameters: {
|
|
254
|
+
type: 'object',
|
|
255
|
+
properties: {
|
|
256
|
+
seller_id: { type: 'string', description: 'Seller ID owning the model' },
|
|
257
|
+
model_id: { type: 'string', description: 'Internal ID of the model offering' },
|
|
258
|
+
display_name: { type: 'string', description: 'New public display name' },
|
|
259
|
+
status: {
|
|
260
|
+
type: 'string',
|
|
261
|
+
enum: ['active', 'inactive', 'maintenance'],
|
|
262
|
+
description: 'New status for the model'
|
|
263
|
+
},
|
|
264
|
+
pricing: {
|
|
265
|
+
type: 'object',
|
|
266
|
+
description: 'Updated pricing configuration',
|
|
267
|
+
properties: {
|
|
268
|
+
input_tokens_per_1k: { type: 'number', description: 'Cost per 1000 input tokens' },
|
|
269
|
+
output_tokens_per_1k: { type: 'number', description: 'Cost per 1000 output tokens' },
|
|
270
|
+
markup_percentage: { type: 'number', description: 'Percentage markup over provider cost' }
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
required: ['seller_id', 'model_id']
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
metadata: {
|
|
278
|
+
category: 'sellers',
|
|
279
|
+
defaultEnabled: true,
|
|
280
|
+
adminOnly: false,
|
|
281
|
+
destructive: false,
|
|
282
|
+
requiresConfirmation: false,
|
|
283
|
+
apiEndpoint: '/api/sellers/:id/models/:modelId',
|
|
284
|
+
apiMethod: 'PUT',
|
|
285
|
+
tags: ['sellers', 'models', 'update']
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
type: 'function',
|
|
290
|
+
function: {
|
|
291
|
+
name: 'sellers_models_delete',
|
|
292
|
+
description: 'Deactivate/Remove a model from your catalog (soft delete). Requires seller_id from sellers_register and model_id from sellers_models_list.',
|
|
293
|
+
parameters: {
|
|
294
|
+
type: 'object',
|
|
295
|
+
properties: {
|
|
296
|
+
seller_id: { type: 'string', description: 'Seller ID owning the model' },
|
|
297
|
+
model_id: { type: 'string', description: 'ID of the model to delete' }
|
|
298
|
+
},
|
|
299
|
+
required: ['seller_id', 'model_id']
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
metadata: {
|
|
303
|
+
category: 'sellers',
|
|
304
|
+
defaultEnabled: true,
|
|
305
|
+
adminOnly: false,
|
|
306
|
+
destructive: true,
|
|
307
|
+
requiresConfirmation: true,
|
|
308
|
+
apiEndpoint: '/api/sellers/:id/models/:modelId',
|
|
309
|
+
apiMethod: 'DELETE',
|
|
310
|
+
tags: ['sellers', 'models', 'delete']
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
];
|
|
314
|
+
// ============= TOOL EXECUTOR =============
|
|
315
|
+
class SellerTools {
|
|
316
|
+
constructor(marketplaceUrl, apiKey) {
|
|
317
|
+
this.client = axios_1.default.create({
|
|
318
|
+
baseURL: marketplaceUrl,
|
|
319
|
+
timeout: 30000,
|
|
320
|
+
headers: {
|
|
321
|
+
'Authorization': `Bearer ${apiKey}`,
|
|
322
|
+
'Content-Type': 'application/json'
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
static getInstance(marketplaceUrl, apiKey) {
|
|
327
|
+
if (!SellerTools.instance && marketplaceUrl && apiKey) {
|
|
328
|
+
SellerTools.instance = new SellerTools(marketplaceUrl, apiKey);
|
|
329
|
+
}
|
|
330
|
+
if (!SellerTools.instance) {
|
|
331
|
+
throw new Error('SellerTools not initialized.');
|
|
332
|
+
}
|
|
333
|
+
return SellerTools.instance;
|
|
334
|
+
}
|
|
335
|
+
getTools() {
|
|
336
|
+
return exports.sellerToolDefinitions;
|
|
337
|
+
}
|
|
338
|
+
async executeTool(toolName, args) {
|
|
339
|
+
try {
|
|
340
|
+
switch (toolName) {
|
|
341
|
+
case 'sellers_register':
|
|
342
|
+
return await this.registerSeller(args);
|
|
343
|
+
case 'sellers_verify':
|
|
344
|
+
return await this.verifySeller(args);
|
|
345
|
+
case 'sellers_activate':
|
|
346
|
+
return await this.activateSeller(args.seller_id);
|
|
347
|
+
case 'sellers_status':
|
|
348
|
+
return await this.getSellerStatus(args.seller_id);
|
|
349
|
+
case 'sellers_models_list':
|
|
350
|
+
return await this.listModels(args);
|
|
351
|
+
case 'sellers_models_add':
|
|
352
|
+
return await this.addModel(args);
|
|
353
|
+
case 'sellers_models_update':
|
|
354
|
+
return await this.updateModel(args);
|
|
355
|
+
case 'sellers_models_delete':
|
|
356
|
+
return await this.deleteModel(args.seller_id, args.model_id);
|
|
357
|
+
default:
|
|
358
|
+
return { success: false, error: `Unknown seller tool: ${toolName}` };
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
catch (error) {
|
|
362
|
+
return { success: false, error: error.response?.data?.error || error.message };
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
async registerSeller(args) {
|
|
366
|
+
const response = await this.client.post('/api/sellers/register', args);
|
|
367
|
+
return {
|
|
368
|
+
success: true,
|
|
369
|
+
output: JSON.stringify(response.data, null, 2),
|
|
370
|
+
data: response.data
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
async verifySeller(args) {
|
|
374
|
+
const { seller_id, ...data } = args;
|
|
375
|
+
const response = await this.client.post(`/api/sellers/${seller_id}/verify`, data);
|
|
376
|
+
return {
|
|
377
|
+
success: true,
|
|
378
|
+
output: JSON.stringify(response.data, null, 2),
|
|
379
|
+
data: response.data
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
async activateSeller(sellerId) {
|
|
383
|
+
const response = await this.client.post(`/api/sellers/${sellerId}/activate`);
|
|
384
|
+
return {
|
|
385
|
+
success: true,
|
|
386
|
+
output: JSON.stringify(response.data, null, 2),
|
|
387
|
+
data: response.data
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
async getSellerStatus(sellerId) {
|
|
391
|
+
const response = await this.client.get(`/api/sellers/${sellerId}/status`);
|
|
392
|
+
return {
|
|
393
|
+
success: true,
|
|
394
|
+
output: JSON.stringify(response.data, null, 2),
|
|
395
|
+
data: response.data
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
async listModels(args) {
|
|
399
|
+
const { seller_id, ...params } = args;
|
|
400
|
+
const response = await this.client.get(`/api/sellers/${seller_id}/models`, { params });
|
|
401
|
+
return {
|
|
402
|
+
success: true,
|
|
403
|
+
output: JSON.stringify(response.data, null, 2),
|
|
404
|
+
data: response.data
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
async addModel(args) {
|
|
408
|
+
const { seller_id, ...data } = args;
|
|
409
|
+
const response = await this.client.post(`/api/sellers/${seller_id}/models`, data);
|
|
410
|
+
return {
|
|
411
|
+
success: true,
|
|
412
|
+
output: JSON.stringify(response.data, null, 2),
|
|
413
|
+
data: response.data
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
async updateModel(args) {
|
|
417
|
+
const { seller_id, model_id, ...data } = args;
|
|
418
|
+
const response = await this.client.put(`/api/sellers/${seller_id}/models/${model_id}`, data);
|
|
419
|
+
return {
|
|
420
|
+
success: true,
|
|
421
|
+
output: JSON.stringify(response.data, null, 2),
|
|
422
|
+
data: response.data
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
async deleteModel(sellerId, modelId) {
|
|
426
|
+
const response = await this.client.delete(`/api/sellers/${sellerId}/models/${modelId}`);
|
|
427
|
+
return {
|
|
428
|
+
success: true,
|
|
429
|
+
output: JSON.stringify(response.data, null, 2),
|
|
430
|
+
data: response.data
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
exports.SellerTools = SellerTools;
|
|
435
|
+
SellerTools.instance = null;
|
|
436
|
+
exports.default = SellerTools;
|
|
437
|
+
//# sourceMappingURL=seller-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seller-tools.js","sourceRoot":"","sources":["../seller-tools.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;AAEH,kDAA6C;AAG7C,+CAA+C;AAElC,QAAA,qBAAqB,GAAwB;IACtD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE;YACN,IAAI,EAAE,kBAAkB;YACxB,WAAW,EAAE,mKAAmK;YAChL,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,aAAa,EAAE;wBACX,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,qCAAqC;qBACrD;oBACD,cAAc,EAAE;wBACZ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,sCAAsC;qBACtD;oBACD,YAAY,EAAE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,wDAAwD;wBACrE,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;qBACnB;oBACD,OAAO,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iCAAiC;qBACjD;oBACD,WAAW,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,+CAA+C;qBAC/D;iBACJ;gBACD,QAAQ,EAAE,CAAC,eAAe,EAAE,gBAAgB,EAAE,cAAc,CAAC;aAChE;SACJ;QACD,QAAQ,EAAE;YACN,QAAQ,EAAE,SAAS;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AAE,IAAI,CAAC,CAAC;QAC7F,OAAO;YACH,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;YAC9C,IAAI,EAAE,QAAQ,CAAC,IAAI;SACtB,CAAC;IACN,CAAC;IAEO,KAAK,CAAC,WAAW,CAAC,QAAgB,EAAE,OAAe;QACvD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,QAAQ,WAAW,OAAO,EAAE,CAAC,CAAC;QACxF,OAAO;YACH,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;YAC9C,IAAI,EAAE,QAAQ,CAAC,IAAI;SACtB,CAAC;IACN,CAAC;;AAlIL,kCAmIC;AAlIkB,oBAAQ,GAAuB,IAAI,CAAC;AAoIvD,kBAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Support Tools - MCP Tools for Support Ticket Management
|
|
3
|
+
*
|
|
4
|
+
* Provides tools for:
|
|
5
|
+
* - Support tickets (list, create, get, reply, close)
|
|
6
|
+
*/
|
|
7
|
+
import { MCPToolDefinition, MCPToolResult } from './src/types/mcp-types';
|
|
8
|
+
export declare const supportToolDefinitions: MCPToolDefinition[];
|
|
9
|
+
export declare class SupportTools {
|
|
10
|
+
private static instance;
|
|
11
|
+
private client;
|
|
12
|
+
constructor(registryUrl: string, apiKey: string);
|
|
13
|
+
static getInstance(registryUrl?: string, apiKey?: string): SupportTools;
|
|
14
|
+
getTools(): MCPToolDefinition[];
|
|
15
|
+
executeTool(toolName: string, args: Record<string, any>): Promise<MCPToolResult>;
|
|
16
|
+
private listTickets;
|
|
17
|
+
private createTicket;
|
|
18
|
+
private getTicket;
|
|
19
|
+
private replyToTicket;
|
|
20
|
+
private closeTicket;
|
|
21
|
+
}
|
|
22
|
+
export default SupportTools;
|
|
23
|
+
//# sourceMappingURL=support-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"support-tools.d.ts","sourceRoot":"","sources":["../support-tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAIzE,eAAO,MAAM,sBAAsB,EAAE,iBAAiB,EAwKrD,CAAC;AAIF,qBAAa,YAAY;IACrB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA6B;IACpD,OAAO,CAAC,MAAM,CAAgB;gBAElB,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;WAWjC,WAAW,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,YAAY;IAUvE,QAAQ,IAAI,iBAAiB,EAAE;IAIzB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC;YAqB/E,WAAW;YAqCX,YAAY;YASZ,SAAS;YAST,aAAa;YAOb,WAAW;CAI5B;AAED,eAAe,YAAY,CAAC"}
|