sychev-lab-mcp-server 1.0.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.
Potentially problematic release.
This version of sychev-lab-mcp-server might be problematic. Click here for more details.
- package/README.md +116 -0
- package/dist/client.d.ts +111 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +143 -0
- package/dist/client.js.map +1 -0
- package/dist/config.d.ts +11 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +22 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +312 -0
- package/dist/index.js.map +1 -0
- package/dist/tools.d.ts +184 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +376 -0
- package/dist/tools.js.map +1 -0
- package/package.json +55 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Sychev Lab MCP Server
|
|
4
|
+
*
|
|
5
|
+
* Supports both stdio (for Claude Desktop) and HTTP (for remote clients) transports
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* node dist/index.js # Run with stdio transport (default)
|
|
9
|
+
* node dist/index.js --http # Run with HTTP transport
|
|
10
|
+
* node dist/index.js --http 3000 # Run HTTP on port 3000
|
|
11
|
+
*/
|
|
12
|
+
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
13
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
14
|
+
import { CallToolRequestSchema, ListToolsRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
|
|
15
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
16
|
+
import { validateConfig, config } from './config.js';
|
|
17
|
+
import { GetProductSchema, SearchProductsSchema, GetArticleSchema, GetTutorialSchema, GetCategoriesSchema, RegisterUserSchema, CreateCheckoutSchema, ListProductsSchema, ListArticlesSchema, ListTutorialsSchema, getProductDetails, searchProductsByCategory, getArticle, getTutorial, getCategories, registerUser, createStripeCheckout, listProducts, listArticles, listTutorials, } from './tools.js';
|
|
18
|
+
// Tool definitions with schemas
|
|
19
|
+
const TOOLS = [
|
|
20
|
+
{
|
|
21
|
+
name: 'list_products',
|
|
22
|
+
description: 'List all available products from the catalog. Optionally filter by featured products only.',
|
|
23
|
+
inputSchema: zodToJsonSchema(ListProductsSchema),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'get_product_details',
|
|
27
|
+
description: 'Get detailed information about a specific product including price, description, images, and specifications.',
|
|
28
|
+
inputSchema: zodToJsonSchema(GetProductSchema),
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'search_products_by_category',
|
|
32
|
+
description: 'Search products within a specific category. Returns matching products with their details.',
|
|
33
|
+
inputSchema: zodToJsonSchema(SearchProductsSchema),
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'get_categories',
|
|
37
|
+
description: 'Get all product categories available in the store.',
|
|
38
|
+
inputSchema: zodToJsonSchema(GetCategoriesSchema),
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'list_articles',
|
|
42
|
+
description: 'List all available articles. Optionally filter by featured articles only.',
|
|
43
|
+
inputSchema: zodToJsonSchema(ListArticlesSchema),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'get_article',
|
|
47
|
+
description: 'Get full content of a specific article by ID and language.',
|
|
48
|
+
inputSchema: zodToJsonSchema(GetArticleSchema),
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'list_tutorials',
|
|
52
|
+
description: 'List all available tutorials. Optionally filter by featured tutorials only.',
|
|
53
|
+
inputSchema: zodToJsonSchema(ListTutorialsSchema),
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'get_tutorial',
|
|
57
|
+
description: 'Get full content of a specific tutorial by ID and language including difficulty and duration.',
|
|
58
|
+
inputSchema: zodToJsonSchema(GetTutorialSchema),
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'register_user',
|
|
62
|
+
description: 'Register a new user account with email and password. Returns user UID on success.',
|
|
63
|
+
inputSchema: zodToJsonSchema(RegisterUserSchema),
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'create_stripe_checkout',
|
|
67
|
+
description: 'Create a Stripe checkout session for purchasing products. Provide product UUIDs and quantities; product details (name, price) are fetched automatically. Returns a URL to redirect the user to complete payment.',
|
|
68
|
+
inputSchema: zodToJsonSchema(CreateCheckoutSchema),
|
|
69
|
+
},
|
|
70
|
+
];
|
|
71
|
+
// Create MCP server
|
|
72
|
+
const server = new Server({
|
|
73
|
+
name: config.name,
|
|
74
|
+
version: config.version,
|
|
75
|
+
}, {
|
|
76
|
+
capabilities: {
|
|
77
|
+
tools: {},
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
// Handle list tools request
|
|
81
|
+
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
82
|
+
return { tools: TOOLS };
|
|
83
|
+
});
|
|
84
|
+
// Handle tool calls
|
|
85
|
+
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
86
|
+
const { name, arguments: args } = request.params;
|
|
87
|
+
try {
|
|
88
|
+
switch (name) {
|
|
89
|
+
case 'list_products':
|
|
90
|
+
return await listProducts(ListProductsSchema.parse(args));
|
|
91
|
+
case 'get_product_details':
|
|
92
|
+
return await getProductDetails(GetProductSchema.parse(args));
|
|
93
|
+
case 'search_products_by_category':
|
|
94
|
+
return await searchProductsByCategory(SearchProductsSchema.parse(args));
|
|
95
|
+
case 'get_categories':
|
|
96
|
+
return await getCategories(GetCategoriesSchema.parse(args));
|
|
97
|
+
case 'list_articles':
|
|
98
|
+
return await listArticles(ListArticlesSchema.parse(args));
|
|
99
|
+
case 'get_article':
|
|
100
|
+
return await getArticle(GetArticleSchema.parse(args));
|
|
101
|
+
case 'list_tutorials':
|
|
102
|
+
return await listTutorials(ListTutorialsSchema.parse(args));
|
|
103
|
+
case 'get_tutorial':
|
|
104
|
+
return await getTutorial(GetTutorialSchema.parse(args));
|
|
105
|
+
case 'register_user':
|
|
106
|
+
return await registerUser(RegisterUserSchema.parse(args));
|
|
107
|
+
case 'create_stripe_checkout':
|
|
108
|
+
return await createStripeCheckout(CreateCheckoutSchema.parse(args));
|
|
109
|
+
default:
|
|
110
|
+
return {
|
|
111
|
+
content: [{
|
|
112
|
+
type: 'text',
|
|
113
|
+
text: JSON.stringify({ error: `Unknown tool: ${name}` }),
|
|
114
|
+
}],
|
|
115
|
+
isError: true,
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
catch (error) {
|
|
120
|
+
if (error instanceof Error && error.name === 'ZodError') {
|
|
121
|
+
return {
|
|
122
|
+
content: [{
|
|
123
|
+
type: 'text',
|
|
124
|
+
text: JSON.stringify({
|
|
125
|
+
error: 'Invalid arguments',
|
|
126
|
+
details: error.message,
|
|
127
|
+
}, null, 2),
|
|
128
|
+
}],
|
|
129
|
+
isError: true,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
throw error;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
// Run server with stdio transport
|
|
136
|
+
async function runStdioServer() {
|
|
137
|
+
validateConfig();
|
|
138
|
+
const transport = new StdioServerTransport();
|
|
139
|
+
// Log to stderr so it doesn't interfere with stdio communication
|
|
140
|
+
console.error(`Sychev Lab MCP Server v${config.version}`);
|
|
141
|
+
console.error(`Connected to: ${config.baseUrl}`);
|
|
142
|
+
console.error('Running with stdio transport...');
|
|
143
|
+
await server.connect(transport);
|
|
144
|
+
}
|
|
145
|
+
// Run server with HTTP transport
|
|
146
|
+
async function runHttpServer(port) {
|
|
147
|
+
validateConfig();
|
|
148
|
+
const http = await import('http');
|
|
149
|
+
const url = await import('url');
|
|
150
|
+
// API key is optional - only used if MCP_API_KEY is set
|
|
151
|
+
const API_KEY = process.env.MCP_API_KEY;
|
|
152
|
+
const httpServer = http.createServer(async (req, res) => {
|
|
153
|
+
// CORS headers
|
|
154
|
+
res.setHeader('Access-Control-Allow-Origin', '*');
|
|
155
|
+
res.setHeader('Access-Control-Allow-Methods', 'POST, OPTIONS');
|
|
156
|
+
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
|
|
157
|
+
res.setHeader('Content-Type', 'application/json');
|
|
158
|
+
if (req.method === 'OPTIONS') {
|
|
159
|
+
res.writeHead(200);
|
|
160
|
+
res.end();
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
// Only accept POST requests
|
|
164
|
+
if (req.method !== 'POST') {
|
|
165
|
+
res.writeHead(405);
|
|
166
|
+
res.end(JSON.stringify({ error: 'Method not allowed' }));
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
// Check API key only if configured
|
|
170
|
+
if (API_KEY) {
|
|
171
|
+
const authHeader = req.headers['authorization'] || '';
|
|
172
|
+
const apiKey = authHeader.replace('Bearer ', '');
|
|
173
|
+
if (apiKey !== API_KEY) {
|
|
174
|
+
res.writeHead(401);
|
|
175
|
+
res.end(JSON.stringify({ error: 'Unauthorized' }));
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
// Parse URL
|
|
180
|
+
const parsedUrl = url.parse(req.url || '', true);
|
|
181
|
+
const pathname = parsedUrl.pathname;
|
|
182
|
+
// Read body
|
|
183
|
+
let body = '';
|
|
184
|
+
req.on('data', (chunk) => {
|
|
185
|
+
body += chunk.toString();
|
|
186
|
+
});
|
|
187
|
+
req.on('end', async () => {
|
|
188
|
+
try {
|
|
189
|
+
// Parse body for tool calls, empty body is ok for list
|
|
190
|
+
let requestData = {};
|
|
191
|
+
if (body.trim()) {
|
|
192
|
+
requestData = JSON.parse(body);
|
|
193
|
+
}
|
|
194
|
+
if (pathname === '/mcp/v1/tools/list') {
|
|
195
|
+
// List tools
|
|
196
|
+
res.writeHead(200);
|
|
197
|
+
res.end(JSON.stringify({ tools: TOOLS }));
|
|
198
|
+
}
|
|
199
|
+
else if (pathname === '/mcp/v1/tools/call') {
|
|
200
|
+
// Call tool
|
|
201
|
+
const { name, arguments: args } = requestData;
|
|
202
|
+
let result;
|
|
203
|
+
try {
|
|
204
|
+
switch (name) {
|
|
205
|
+
case 'list_products':
|
|
206
|
+
result = await listProducts(ListProductsSchema.parse(args));
|
|
207
|
+
break;
|
|
208
|
+
case 'get_product_details':
|
|
209
|
+
result = await getProductDetails(GetProductSchema.parse(args));
|
|
210
|
+
break;
|
|
211
|
+
case 'search_products_by_category':
|
|
212
|
+
result = await searchProductsByCategory(SearchProductsSchema.parse(args));
|
|
213
|
+
break;
|
|
214
|
+
case 'get_categories':
|
|
215
|
+
result = await getCategories(GetCategoriesSchema.parse(args));
|
|
216
|
+
break;
|
|
217
|
+
case 'list_articles':
|
|
218
|
+
result = await listArticles(ListArticlesSchema.parse(args));
|
|
219
|
+
break;
|
|
220
|
+
case 'get_article':
|
|
221
|
+
result = await getArticle(GetArticleSchema.parse(args));
|
|
222
|
+
break;
|
|
223
|
+
case 'list_tutorials':
|
|
224
|
+
result = await listTutorials(ListTutorialsSchema.parse(args));
|
|
225
|
+
break;
|
|
226
|
+
case 'get_tutorial':
|
|
227
|
+
result = await getTutorial(GetTutorialSchema.parse(args));
|
|
228
|
+
break;
|
|
229
|
+
case 'register_user':
|
|
230
|
+
result = await registerUser(RegisterUserSchema.parse(args));
|
|
231
|
+
break;
|
|
232
|
+
case 'create_stripe_checkout':
|
|
233
|
+
result = await createStripeCheckout(CreateCheckoutSchema.parse(args));
|
|
234
|
+
break;
|
|
235
|
+
default:
|
|
236
|
+
result = {
|
|
237
|
+
content: [{
|
|
238
|
+
type: 'text',
|
|
239
|
+
text: JSON.stringify({ error: `Unknown tool: ${name}` }),
|
|
240
|
+
}],
|
|
241
|
+
isError: true,
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
catch (error) {
|
|
246
|
+
if (error instanceof Error && error.name === 'ZodError') {
|
|
247
|
+
result = {
|
|
248
|
+
content: [{
|
|
249
|
+
type: 'text',
|
|
250
|
+
text: JSON.stringify({
|
|
251
|
+
error: 'Invalid arguments',
|
|
252
|
+
details: error.message,
|
|
253
|
+
}, null, 2),
|
|
254
|
+
}],
|
|
255
|
+
isError: true,
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
throw error;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
res.writeHead(200);
|
|
263
|
+
res.end(JSON.stringify(result));
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
res.writeHead(404);
|
|
267
|
+
res.end(JSON.stringify({ error: 'Not found' }));
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
catch (error) {
|
|
271
|
+
res.writeHead(500);
|
|
272
|
+
res.end(JSON.stringify({
|
|
273
|
+
error: 'Internal server error',
|
|
274
|
+
message: error instanceof Error ? error.message : 'Unknown error',
|
|
275
|
+
}));
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
httpServer.listen(port, () => {
|
|
280
|
+
console.log(`Sychev Lab MCP Server v${config.version}`);
|
|
281
|
+
console.log(`Connected to: ${config.baseUrl}`);
|
|
282
|
+
console.log(`HTTP transport running on port ${port}`);
|
|
283
|
+
console.log(`\nEndpoints:`);
|
|
284
|
+
console.log(` POST http://localhost:${port}/mcp/v1/tools/list`);
|
|
285
|
+
console.log(` POST http://localhost:${port}/mcp/v1/tools/call`);
|
|
286
|
+
console.log(` Content-Type: application/json`);
|
|
287
|
+
if (API_KEY) {
|
|
288
|
+
console.log(`\nAuthentication required:`);
|
|
289
|
+
console.log(` Authorization: Bearer <MCP_API_KEY>`);
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
// Parse command line arguments
|
|
294
|
+
const args = process.argv.slice(2);
|
|
295
|
+
const useHttp = args.includes('--http');
|
|
296
|
+
const httpPortIndex = args.indexOf('--http');
|
|
297
|
+
const httpPort = httpPortIndex !== -1 && args[httpPortIndex + 1]
|
|
298
|
+
? parseInt(args[httpPortIndex + 1], 10)
|
|
299
|
+
: 3000;
|
|
300
|
+
if (useHttp) {
|
|
301
|
+
runHttpServer(httpPort).catch((error) => {
|
|
302
|
+
console.error('Fatal error:', error);
|
|
303
|
+
process.exit(1);
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
runStdioServer().catch((error) => {
|
|
308
|
+
console.error('Fatal error:', error);
|
|
309
|
+
process.exit(1);
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;GASG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACH,qBAAqB,EACrB,sBAAsB,GAEzB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EACH,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,UAAU,EACV,WAAW,EACX,aAAa,EACb,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,aAAa,GAChB,MAAM,YAAY,CAAC;AAEpB,gCAAgC;AAChC,MAAM,KAAK,GAAW;IAClB;QACI,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,4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,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC;IACvC,CAAC,CAAC,IAAI,CAAC;AAEX,IAAI,OAAO,EAAE,CAAC;IACV,aAAa,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACpC,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC;KAAM,CAAC;IACJ,cAAc,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QAC7B,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Tools for Sychev Lab
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
export declare const GetProductSchema: z.ZodObject<{
|
|
6
|
+
productId: z.ZodString;
|
|
7
|
+
lang: z.ZodOptional<z.ZodEnum<["es", "en"]>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
productId: string;
|
|
10
|
+
lang?: "es" | "en" | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
productId: string;
|
|
13
|
+
lang?: "es" | "en" | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const SearchProductsSchema: z.ZodObject<{
|
|
16
|
+
categoryId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
categoryId?: string | undefined;
|
|
20
|
+
limit?: number | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
categoryId?: string | undefined;
|
|
23
|
+
limit?: number | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const GetArticleSchema: z.ZodObject<{
|
|
26
|
+
articleId: z.ZodString;
|
|
27
|
+
lang: z.ZodEnum<["es", "en"]>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
lang: "es" | "en";
|
|
30
|
+
articleId: string;
|
|
31
|
+
}, {
|
|
32
|
+
lang: "es" | "en";
|
|
33
|
+
articleId: string;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const GetTutorialSchema: z.ZodObject<{
|
|
36
|
+
tutorialId: z.ZodString;
|
|
37
|
+
lang: z.ZodEnum<["es", "en"]>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
lang: "es" | "en";
|
|
40
|
+
tutorialId: string;
|
|
41
|
+
}, {
|
|
42
|
+
lang: "es" | "en";
|
|
43
|
+
tutorialId: string;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const GetCategoriesSchema: z.ZodObject<{
|
|
46
|
+
includeProducts: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
includeProducts?: boolean | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
includeProducts?: boolean | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
export declare const RegisterUserSchema: z.ZodObject<{
|
|
53
|
+
email: z.ZodString;
|
|
54
|
+
password: z.ZodString;
|
|
55
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
email: string;
|
|
58
|
+
password: string;
|
|
59
|
+
displayName?: string | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
email: string;
|
|
62
|
+
password: string;
|
|
63
|
+
displayName?: string | undefined;
|
|
64
|
+
}>;
|
|
65
|
+
export declare const CreateCheckoutSchema: z.ZodObject<{
|
|
66
|
+
productId: z.ZodString;
|
|
67
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
guestEmail: z.ZodOptional<z.ZodString>;
|
|
69
|
+
guestName: z.ZodOptional<z.ZodString>;
|
|
70
|
+
locale: z.ZodOptional<z.ZodEnum<["es", "en"]>>;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
productId: string;
|
|
73
|
+
guestEmail?: string | undefined;
|
|
74
|
+
guestName?: string | undefined;
|
|
75
|
+
quantity?: number | undefined;
|
|
76
|
+
locale?: "es" | "en" | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
productId: string;
|
|
79
|
+
guestEmail?: string | undefined;
|
|
80
|
+
guestName?: string | undefined;
|
|
81
|
+
quantity?: number | undefined;
|
|
82
|
+
locale?: "es" | "en" | undefined;
|
|
83
|
+
}>;
|
|
84
|
+
export declare const ListProductsSchema: z.ZodObject<{
|
|
85
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
featuredOnly: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
limit?: number | undefined;
|
|
89
|
+
featuredOnly?: boolean | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
limit?: number | undefined;
|
|
92
|
+
featuredOnly?: boolean | undefined;
|
|
93
|
+
}>;
|
|
94
|
+
export declare const ListArticlesSchema: z.ZodObject<{
|
|
95
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
featuredOnly: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
limit?: number | undefined;
|
|
99
|
+
featuredOnly?: boolean | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
limit?: number | undefined;
|
|
102
|
+
featuredOnly?: boolean | undefined;
|
|
103
|
+
}>;
|
|
104
|
+
export declare const ListTutorialsSchema: z.ZodObject<{
|
|
105
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
featuredOnly: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
limit?: number | undefined;
|
|
109
|
+
featuredOnly?: boolean | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
limit?: number | undefined;
|
|
112
|
+
featuredOnly?: boolean | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
export declare function getProductDetails(args: z.infer<typeof GetProductSchema>): Promise<{
|
|
115
|
+
content: {
|
|
116
|
+
type: string;
|
|
117
|
+
text: string;
|
|
118
|
+
}[];
|
|
119
|
+
isError: boolean;
|
|
120
|
+
}>;
|
|
121
|
+
export declare function searchProductsByCategory(args: z.infer<typeof SearchProductsSchema>): Promise<{
|
|
122
|
+
content: {
|
|
123
|
+
type: string;
|
|
124
|
+
text: string;
|
|
125
|
+
}[];
|
|
126
|
+
isError: boolean;
|
|
127
|
+
}>;
|
|
128
|
+
export declare function getArticle(args: z.infer<typeof GetArticleSchema>): Promise<{
|
|
129
|
+
content: {
|
|
130
|
+
type: string;
|
|
131
|
+
text: string;
|
|
132
|
+
}[];
|
|
133
|
+
isError: boolean;
|
|
134
|
+
}>;
|
|
135
|
+
export declare function getTutorial(args: z.infer<typeof GetTutorialSchema>): Promise<{
|
|
136
|
+
content: {
|
|
137
|
+
type: string;
|
|
138
|
+
text: string;
|
|
139
|
+
}[];
|
|
140
|
+
isError: boolean;
|
|
141
|
+
}>;
|
|
142
|
+
export declare function getCategories(args: z.infer<typeof GetCategoriesSchema>): Promise<{
|
|
143
|
+
content: {
|
|
144
|
+
type: string;
|
|
145
|
+
text: string;
|
|
146
|
+
}[];
|
|
147
|
+
isError: boolean;
|
|
148
|
+
}>;
|
|
149
|
+
export declare function listProducts(args: z.infer<typeof ListProductsSchema>): Promise<{
|
|
150
|
+
content: {
|
|
151
|
+
type: string;
|
|
152
|
+
text: string;
|
|
153
|
+
}[];
|
|
154
|
+
isError: boolean;
|
|
155
|
+
}>;
|
|
156
|
+
export declare function listArticles(args: z.infer<typeof ListArticlesSchema>): Promise<{
|
|
157
|
+
content: {
|
|
158
|
+
type: string;
|
|
159
|
+
text: string;
|
|
160
|
+
}[];
|
|
161
|
+
isError: boolean;
|
|
162
|
+
}>;
|
|
163
|
+
export declare function listTutorials(args: z.infer<typeof ListTutorialsSchema>): Promise<{
|
|
164
|
+
content: {
|
|
165
|
+
type: string;
|
|
166
|
+
text: string;
|
|
167
|
+
}[];
|
|
168
|
+
isError: boolean;
|
|
169
|
+
}>;
|
|
170
|
+
export declare function registerUser(args: z.infer<typeof RegisterUserSchema>): Promise<{
|
|
171
|
+
content: {
|
|
172
|
+
type: string;
|
|
173
|
+
text: string;
|
|
174
|
+
}[];
|
|
175
|
+
isError: boolean;
|
|
176
|
+
}>;
|
|
177
|
+
export declare function createStripeCheckout(args: z.infer<typeof CreateCheckoutSchema>): Promise<{
|
|
178
|
+
content: {
|
|
179
|
+
type: string;
|
|
180
|
+
text: string;
|
|
181
|
+
}[];
|
|
182
|
+
isError: boolean;
|
|
183
|
+
}>;
|
|
184
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;EAE9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AAEH,eAAO,MAAM,mBAA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