@lanonasis/cli 1.4.0 → 1.4.1
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/mcp-server.js +9 -9
- package/package.json +1 -1
package/dist/mcp-server.js
CHANGED
|
@@ -279,7 +279,7 @@ class LanonasisMCPServer {
|
|
|
279
279
|
switch (name) {
|
|
280
280
|
// Memory Management Tools
|
|
281
281
|
case 'create_memory': {
|
|
282
|
-
const response = await fetch(`${apiUrl}/api/memory`, {
|
|
282
|
+
const response = await fetch(`${apiUrl}/api/v1/memory`, {
|
|
283
283
|
method: 'POST',
|
|
284
284
|
headers,
|
|
285
285
|
body: JSON.stringify(args)
|
|
@@ -311,7 +311,7 @@ class LanonasisMCPServer {
|
|
|
311
311
|
if (args.tags && Array.isArray(args.tags)) {
|
|
312
312
|
args.tags.forEach((tag) => queryParams.append('tags', String(tag)));
|
|
313
313
|
}
|
|
314
|
-
const response = await fetch(`${apiUrl}/api/memory/search?${queryParams}`, {
|
|
314
|
+
const response = await fetch(`${apiUrl}/api/v1/memory/search?${queryParams}`, {
|
|
315
315
|
method: 'GET',
|
|
316
316
|
headers
|
|
317
317
|
});
|
|
@@ -330,7 +330,7 @@ class LanonasisMCPServer {
|
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
332
|
case 'get_memory': {
|
|
333
|
-
const response = await fetch(`${apiUrl}/api/memory/${args.id}`, {
|
|
333
|
+
const response = await fetch(`${apiUrl}/api/v1/memory/${args.id}`, {
|
|
334
334
|
method: 'GET',
|
|
335
335
|
headers
|
|
336
336
|
});
|
|
@@ -350,7 +350,7 @@ class LanonasisMCPServer {
|
|
|
350
350
|
}
|
|
351
351
|
case 'update_memory': {
|
|
352
352
|
const { id, ...updateData } = args;
|
|
353
|
-
const response = await fetch(`${apiUrl}/api/memory/${id}`, {
|
|
353
|
+
const response = await fetch(`${apiUrl}/api/v1/memory/${id}`, {
|
|
354
354
|
method: 'PUT',
|
|
355
355
|
headers,
|
|
356
356
|
body: JSON.stringify(updateData)
|
|
@@ -370,7 +370,7 @@ class LanonasisMCPServer {
|
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
372
|
case 'delete_memory': {
|
|
373
|
-
const response = await fetch(`${apiUrl}/api/memory/${args.id}`, {
|
|
373
|
+
const response = await fetch(`${apiUrl}/api/v1/memory/${args.id}`, {
|
|
374
374
|
method: 'DELETE',
|
|
375
375
|
headers
|
|
376
376
|
});
|
|
@@ -398,7 +398,7 @@ class LanonasisMCPServer {
|
|
|
398
398
|
if (args.tags && Array.isArray(args.tags)) {
|
|
399
399
|
args.tags.forEach((tag) => queryParams.append('tags', String(tag)));
|
|
400
400
|
}
|
|
401
|
-
const response = await fetch(`${apiUrl}/api/memory?${queryParams}`, {
|
|
401
|
+
const response = await fetch(`${apiUrl}/api/v1/memory?${queryParams}`, {
|
|
402
402
|
method: 'GET',
|
|
403
403
|
headers
|
|
404
404
|
});
|
|
@@ -418,7 +418,7 @@ class LanonasisMCPServer {
|
|
|
418
418
|
}
|
|
419
419
|
// API Key Management Tools
|
|
420
420
|
case 'create_api_key': {
|
|
421
|
-
const response = await fetch(`${apiUrl}/api/api-keys`, {
|
|
421
|
+
const response = await fetch(`${apiUrl}/api/v1/api-keys`, {
|
|
422
422
|
method: 'POST',
|
|
423
423
|
headers,
|
|
424
424
|
body: JSON.stringify(args)
|
|
@@ -443,7 +443,7 @@ class LanonasisMCPServer {
|
|
|
443
443
|
queryParams.append('project_id', String(args.project_id));
|
|
444
444
|
if (args.active_only !== undefined)
|
|
445
445
|
queryParams.append('active_only', args.active_only.toString());
|
|
446
|
-
const response = await fetch(`${apiUrl}/api/api-keys?${queryParams}`, {
|
|
446
|
+
const response = await fetch(`${apiUrl}/api/v1/api-keys?${queryParams}`, {
|
|
447
447
|
method: 'GET',
|
|
448
448
|
headers
|
|
449
449
|
});
|
|
@@ -462,7 +462,7 @@ class LanonasisMCPServer {
|
|
|
462
462
|
};
|
|
463
463
|
}
|
|
464
464
|
case 'get_health_status': {
|
|
465
|
-
const response = await fetch(`${apiUrl}/api/health`, {
|
|
465
|
+
const response = await fetch(`${apiUrl}/api/v1/health`, {
|
|
466
466
|
method: 'GET',
|
|
467
467
|
headers
|
|
468
468
|
});
|
package/package.json
CHANGED