@lanonasis/cli 3.6.4 → 3.6.5
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/commands/api-keys.d.ts +1 -2
- package/dist/commands/api-keys.js +78 -73
- package/dist/commands/auth.js +167 -160
- package/dist/commands/completion.js +39 -31
- package/dist/commands/config.js +201 -162
- package/dist/commands/enhanced-memory.js +17 -11
- package/dist/commands/guide.js +88 -79
- package/dist/commands/init.js +20 -14
- package/dist/commands/mcp.js +173 -142
- package/dist/commands/memory.js +83 -77
- package/dist/commands/organization.js +21 -15
- package/dist/commands/topics.js +58 -52
- package/dist/core/achievements.js +26 -19
- package/dist/core/architecture.js +59 -42
- package/dist/core/dashboard.js +81 -71
- package/dist/core/error-handler.js +39 -30
- package/dist/core/power-mode.js +53 -46
- package/dist/core/progress.js +44 -35
- package/dist/core/welcome.js +64 -56
- package/dist/enhanced-cli.js +58 -49
- package/dist/index-simple.js +112 -74
- package/dist/index.js +68 -63
- package/dist/mcp/access-control.js +17 -13
- package/dist/mcp/client/enhanced-client.js +23 -16
- package/dist/mcp/enhanced-server.js +14 -10
- package/dist/mcp/logger.js +6 -2
- package/dist/mcp/memory-state.js +17 -13
- package/dist/mcp/schemas/tool-schemas.d.ts +28 -28
- package/dist/mcp/schemas/tool-schemas.js +126 -122
- package/dist/mcp/server/lanonasis-server.js +51 -44
- package/dist/mcp/transports/transport-manager.js +25 -18
- package/dist/mcp/vector-store.js +10 -6
- package/dist/mcp-server.js +21 -17
- package/dist/utils/api.js +30 -21
- package/dist/utils/config.js +59 -13
- package/dist/utils/formatting.js +14 -6
- package/dist/utils/mcp-client.js +132 -77
- package/package.json +17 -93
- package/dist/completions/bash-completion.sh +0 -88
- package/dist/completions/fish-completion.fish +0 -132
- package/dist/completions/zsh-completion.zsh +0 -196
|
@@ -1,272 +1,275 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* MCP Tool Schema Definitions
|
|
3
4
|
* Provides Zod-based validation for all MCP tools
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.MCPSchemas = exports.SchemaValidator = exports.ErrorResponseSchema = exports.SuccessResponseSchema = exports.ToolExecutionSchema = exports.ImportExportSchema = exports.BulkOperationSchema = exports.SystemConfigSchema = exports.SystemHealthSchema = exports.ApiKeyRevokeSchema = exports.ApiKeyCreateSchema = exports.TopicListSchema = exports.TopicUpdateSchema = exports.TopicCreateSchema = exports.MemoryListSchema = exports.MemoryDeleteSchema = exports.MemoryUpdateSchema = exports.MemorySearchSchema = exports.MemoryCreateSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
6
9
|
// Memory schemas
|
|
7
|
-
|
|
8
|
-
title: z.string()
|
|
10
|
+
exports.MemoryCreateSchema = zod_1.z.object({
|
|
11
|
+
title: zod_1.z.string()
|
|
9
12
|
.min(1, 'Title is required')
|
|
10
13
|
.max(200, 'Title must be less than 200 characters')
|
|
11
14
|
.describe("Memory title"),
|
|
12
|
-
content: z.string()
|
|
15
|
+
content: zod_1.z.string()
|
|
13
16
|
.min(1, 'Content is required')
|
|
14
17
|
.describe("Memory content"),
|
|
15
|
-
memory_type: z.enum(["context", "reference", "note"])
|
|
18
|
+
memory_type: zod_1.z.enum(["context", "reference", "note"])
|
|
16
19
|
.default("context")
|
|
17
20
|
.describe("Type of memory"),
|
|
18
|
-
tags: z.array(z.string())
|
|
21
|
+
tags: zod_1.z.array(zod_1.z.string())
|
|
19
22
|
.optional()
|
|
20
23
|
.describe("Optional tags for categorization"),
|
|
21
|
-
topic_id: z.string()
|
|
24
|
+
topic_id: zod_1.z.string()
|
|
22
25
|
.uuid()
|
|
23
26
|
.optional()
|
|
24
27
|
.describe("Optional topic ID for organization"),
|
|
25
|
-
metadata: z.record(z.any())
|
|
28
|
+
metadata: zod_1.z.record(zod_1.z.any())
|
|
26
29
|
.optional()
|
|
27
30
|
.describe("Additional metadata")
|
|
28
31
|
});
|
|
29
|
-
|
|
30
|
-
query: z.string()
|
|
32
|
+
exports.MemorySearchSchema = zod_1.z.object({
|
|
33
|
+
query: zod_1.z.string()
|
|
31
34
|
.min(1, 'Search query is required')
|
|
32
35
|
.describe("Search query for semantic search"),
|
|
33
|
-
limit: z.number()
|
|
36
|
+
limit: zod_1.z.number()
|
|
34
37
|
.int()
|
|
35
38
|
.positive()
|
|
36
39
|
.max(100)
|
|
37
40
|
.default(10)
|
|
38
41
|
.describe("Maximum number of results"),
|
|
39
|
-
threshold: z.number()
|
|
42
|
+
threshold: zod_1.z.number()
|
|
40
43
|
.min(0)
|
|
41
44
|
.max(1)
|
|
42
45
|
.default(0.7)
|
|
43
46
|
.describe("Similarity threshold (0-1)"),
|
|
44
|
-
topic_id: z.string()
|
|
47
|
+
topic_id: zod_1.z.string()
|
|
45
48
|
.uuid()
|
|
46
49
|
.optional()
|
|
47
50
|
.describe("Filter by topic ID"),
|
|
48
|
-
tags: z.array(z.string())
|
|
51
|
+
tags: zod_1.z.array(zod_1.z.string())
|
|
49
52
|
.optional()
|
|
50
53
|
.describe("Filter by tags"),
|
|
51
|
-
memory_type: z.enum(["context", "reference", "note"])
|
|
54
|
+
memory_type: zod_1.z.enum(["context", "reference", "note"])
|
|
52
55
|
.optional()
|
|
53
56
|
.describe("Filter by memory type")
|
|
54
57
|
});
|
|
55
|
-
|
|
56
|
-
memory_id: z.string()
|
|
58
|
+
exports.MemoryUpdateSchema = zod_1.z.object({
|
|
59
|
+
memory_id: zod_1.z.string()
|
|
57
60
|
.uuid()
|
|
58
61
|
.describe("Memory ID to update"),
|
|
59
|
-
title: z.string()
|
|
62
|
+
title: zod_1.z.string()
|
|
60
63
|
.min(1)
|
|
61
64
|
.max(200)
|
|
62
65
|
.optional()
|
|
63
66
|
.describe("New title"),
|
|
64
|
-
content: z.string()
|
|
67
|
+
content: zod_1.z.string()
|
|
65
68
|
.min(1)
|
|
66
69
|
.optional()
|
|
67
70
|
.describe("New content"),
|
|
68
|
-
memory_type: z.enum(["context", "reference", "note"])
|
|
71
|
+
memory_type: zod_1.z.enum(["context", "reference", "note"])
|
|
69
72
|
.optional()
|
|
70
73
|
.describe("New memory type"),
|
|
71
|
-
tags: z.array(z.string())
|
|
74
|
+
tags: zod_1.z.array(zod_1.z.string())
|
|
72
75
|
.optional()
|
|
73
76
|
.describe("New tags (replaces existing)"),
|
|
74
|
-
metadata: z.record(z.any())
|
|
77
|
+
metadata: zod_1.z.record(zod_1.z.any())
|
|
75
78
|
.optional()
|
|
76
79
|
.describe("New metadata (merges with existing)")
|
|
77
80
|
});
|
|
78
|
-
|
|
79
|
-
memory_id: z.string()
|
|
81
|
+
exports.MemoryDeleteSchema = zod_1.z.object({
|
|
82
|
+
memory_id: zod_1.z.string()
|
|
80
83
|
.uuid()
|
|
81
84
|
.describe("Memory ID to delete"),
|
|
82
|
-
confirm: z.boolean()
|
|
85
|
+
confirm: zod_1.z.boolean()
|
|
83
86
|
.default(false)
|
|
84
87
|
.describe("Confirmation flag for deletion")
|
|
85
88
|
});
|
|
86
|
-
|
|
87
|
-
limit: z.number()
|
|
89
|
+
exports.MemoryListSchema = zod_1.z.object({
|
|
90
|
+
limit: zod_1.z.number()
|
|
88
91
|
.int()
|
|
89
92
|
.positive()
|
|
90
93
|
.max(100)
|
|
91
94
|
.default(20)
|
|
92
95
|
.describe("Maximum number of results"),
|
|
93
|
-
offset: z.number()
|
|
96
|
+
offset: zod_1.z.number()
|
|
94
97
|
.int()
|
|
95
98
|
.min(0)
|
|
96
99
|
.default(0)
|
|
97
100
|
.describe("Pagination offset"),
|
|
98
|
-
topic_id: z.string()
|
|
101
|
+
topic_id: zod_1.z.string()
|
|
99
102
|
.uuid()
|
|
100
103
|
.optional()
|
|
101
104
|
.describe("Filter by topic ID"),
|
|
102
|
-
tags: z.array(z.string())
|
|
105
|
+
tags: zod_1.z.array(zod_1.z.string())
|
|
103
106
|
.optional()
|
|
104
107
|
.describe("Filter by tags"),
|
|
105
|
-
memory_type: z.enum(["context", "reference", "note"])
|
|
108
|
+
memory_type: zod_1.z.enum(["context", "reference", "note"])
|
|
106
109
|
.optional()
|
|
107
110
|
.describe("Filter by memory type"),
|
|
108
|
-
sort_by: z.enum(["created_at", "updated_at", "title"])
|
|
111
|
+
sort_by: zod_1.z.enum(["created_at", "updated_at", "title"])
|
|
109
112
|
.default("created_at")
|
|
110
113
|
.describe("Sort field"),
|
|
111
|
-
order: z.enum(["asc", "desc"])
|
|
114
|
+
order: zod_1.z.enum(["asc", "desc"])
|
|
112
115
|
.default("desc")
|
|
113
116
|
.describe("Sort order")
|
|
114
117
|
});
|
|
115
118
|
// Topic schemas
|
|
116
|
-
|
|
117
|
-
name: z.string()
|
|
119
|
+
exports.TopicCreateSchema = zod_1.z.object({
|
|
120
|
+
name: zod_1.z.string()
|
|
118
121
|
.min(1, 'Topic name is required')
|
|
119
122
|
.max(100, 'Topic name must be less than 100 characters')
|
|
120
123
|
.describe("Topic name"),
|
|
121
|
-
description: z.string()
|
|
124
|
+
description: zod_1.z.string()
|
|
122
125
|
.max(500)
|
|
123
126
|
.optional()
|
|
124
127
|
.describe("Topic description"),
|
|
125
|
-
parent_id: z.string()
|
|
128
|
+
parent_id: zod_1.z.string()
|
|
126
129
|
.uuid()
|
|
127
130
|
.optional()
|
|
128
131
|
.describe("Parent topic ID for nesting"),
|
|
129
|
-
color: z.string()
|
|
132
|
+
color: zod_1.z.string()
|
|
130
133
|
.regex(/^#[0-9A-Fa-f]{6}$/)
|
|
131
134
|
.optional()
|
|
132
135
|
.describe("Topic color in hex format"),
|
|
133
|
-
icon: z.string()
|
|
136
|
+
icon: zod_1.z.string()
|
|
134
137
|
.optional()
|
|
135
138
|
.describe("Topic icon identifier")
|
|
136
139
|
});
|
|
137
|
-
|
|
138
|
-
topic_id: z.string()
|
|
140
|
+
exports.TopicUpdateSchema = zod_1.z.object({
|
|
141
|
+
topic_id: zod_1.z.string()
|
|
139
142
|
.uuid()
|
|
140
143
|
.describe("Topic ID to update"),
|
|
141
|
-
name: z.string()
|
|
144
|
+
name: zod_1.z.string()
|
|
142
145
|
.min(1)
|
|
143
146
|
.max(100)
|
|
144
147
|
.optional()
|
|
145
148
|
.describe("New name"),
|
|
146
|
-
description: z.string()
|
|
149
|
+
description: zod_1.z.string()
|
|
147
150
|
.max(500)
|
|
148
151
|
.optional()
|
|
149
152
|
.describe("New description"),
|
|
150
|
-
parent_id: z.string()
|
|
153
|
+
parent_id: zod_1.z.string()
|
|
151
154
|
.uuid()
|
|
152
155
|
.nullable()
|
|
153
156
|
.optional()
|
|
154
157
|
.describe("New parent topic ID"),
|
|
155
|
-
color: z.string()
|
|
158
|
+
color: zod_1.z.string()
|
|
156
159
|
.regex(/^#[0-9A-Fa-f]{6}$/)
|
|
157
160
|
.optional()
|
|
158
161
|
.describe("New color"),
|
|
159
|
-
icon: z.string()
|
|
162
|
+
icon: zod_1.z.string()
|
|
160
163
|
.optional()
|
|
161
164
|
.describe("New icon")
|
|
162
165
|
});
|
|
163
|
-
|
|
164
|
-
limit: z.number()
|
|
166
|
+
exports.TopicListSchema = zod_1.z.object({
|
|
167
|
+
limit: zod_1.z.number()
|
|
165
168
|
.int()
|
|
166
169
|
.positive()
|
|
167
170
|
.max(100)
|
|
168
171
|
.default(20)
|
|
169
172
|
.describe("Maximum number of results"),
|
|
170
|
-
parent_id: z.string()
|
|
173
|
+
parent_id: zod_1.z.string()
|
|
171
174
|
.uuid()
|
|
172
175
|
.nullable()
|
|
173
176
|
.optional()
|
|
174
177
|
.describe("Filter by parent topic (null for root topics)"),
|
|
175
|
-
include_children: z.boolean()
|
|
178
|
+
include_children: zod_1.z.boolean()
|
|
176
179
|
.default(false)
|
|
177
180
|
.describe("Include child topics in results")
|
|
178
181
|
});
|
|
179
182
|
// API Key schemas
|
|
180
|
-
|
|
181
|
-
name: z.string()
|
|
183
|
+
exports.ApiKeyCreateSchema = zod_1.z.object({
|
|
184
|
+
name: zod_1.z.string()
|
|
182
185
|
.min(1, 'API key name is required')
|
|
183
186
|
.max(100, 'Name must be less than 100 characters')
|
|
184
187
|
.describe("API key name for identification"),
|
|
185
|
-
permissions: z.array(z.enum(["read", "write", "delete", "admin"]))
|
|
188
|
+
permissions: zod_1.z.array(zod_1.z.enum(["read", "write", "delete", "admin"]))
|
|
186
189
|
.default(["read"])
|
|
187
190
|
.describe("Permissions for the API key"),
|
|
188
|
-
expires_at: z.string()
|
|
191
|
+
expires_at: zod_1.z.string()
|
|
189
192
|
.datetime()
|
|
190
193
|
.optional()
|
|
191
194
|
.describe("Optional expiration date (ISO 8601)")
|
|
192
195
|
});
|
|
193
|
-
|
|
194
|
-
key_id: z.string()
|
|
196
|
+
exports.ApiKeyRevokeSchema = zod_1.z.object({
|
|
197
|
+
key_id: zod_1.z.string()
|
|
195
198
|
.describe("API key ID to revoke"),
|
|
196
|
-
reason: z.string()
|
|
199
|
+
reason: zod_1.z.string()
|
|
197
200
|
.optional()
|
|
198
201
|
.describe("Reason for revocation")
|
|
199
202
|
});
|
|
200
203
|
// System schemas
|
|
201
|
-
|
|
202
|
-
verbose: z.boolean()
|
|
204
|
+
exports.SystemHealthSchema = zod_1.z.object({
|
|
205
|
+
verbose: zod_1.z.boolean()
|
|
203
206
|
.default(false)
|
|
204
207
|
.describe("Include detailed diagnostics"),
|
|
205
|
-
include_dependencies: z.boolean()
|
|
208
|
+
include_dependencies: zod_1.z.boolean()
|
|
206
209
|
.default(true)
|
|
207
210
|
.describe("Check dependency health"),
|
|
208
|
-
timeout: z.number()
|
|
211
|
+
timeout: zod_1.z.number()
|
|
209
212
|
.positive()
|
|
210
213
|
.default(5000)
|
|
211
214
|
.describe("Health check timeout in milliseconds")
|
|
212
215
|
});
|
|
213
|
-
|
|
214
|
-
action: z.enum(["get", "set", "reset"])
|
|
216
|
+
exports.SystemConfigSchema = zod_1.z.object({
|
|
217
|
+
action: zod_1.z.enum(["get", "set", "reset"])
|
|
215
218
|
.describe("Configuration action"),
|
|
216
|
-
key: z.string()
|
|
219
|
+
key: zod_1.z.string()
|
|
217
220
|
.optional()
|
|
218
221
|
.describe("Configuration key (required for set/get specific)"),
|
|
219
|
-
value: z.any()
|
|
222
|
+
value: zod_1.z.any()
|
|
220
223
|
.optional()
|
|
221
224
|
.describe("Configuration value (required for set)"),
|
|
222
|
-
scope: z.enum(["user", "global"])
|
|
225
|
+
scope: zod_1.z.enum(["user", "global"])
|
|
223
226
|
.default("user")
|
|
224
227
|
.describe("Configuration scope")
|
|
225
228
|
});
|
|
226
229
|
// Advanced operation schemas
|
|
227
|
-
|
|
228
|
-
operation: z.enum(["create", "update", "delete"])
|
|
230
|
+
exports.BulkOperationSchema = zod_1.z.object({
|
|
231
|
+
operation: zod_1.z.enum(["create", "update", "delete"])
|
|
229
232
|
.describe("Bulk operation type"),
|
|
230
|
-
entity_type: z.enum(["memory", "topic", "apikey"])
|
|
233
|
+
entity_type: zod_1.z.enum(["memory", "topic", "apikey"])
|
|
231
234
|
.describe("Entity type for bulk operation"),
|
|
232
|
-
items: z.array(z.record(z.any()))
|
|
235
|
+
items: zod_1.z.array(zod_1.z.record(zod_1.z.any()))
|
|
233
236
|
.min(1)
|
|
234
237
|
.max(100)
|
|
235
238
|
.describe("Items for bulk operation"),
|
|
236
|
-
transaction: z.boolean()
|
|
239
|
+
transaction: zod_1.z.boolean()
|
|
237
240
|
.default(true)
|
|
238
241
|
.describe("Execute as transaction (all or nothing)")
|
|
239
242
|
});
|
|
240
|
-
|
|
241
|
-
action: z.enum(["import", "export"])
|
|
243
|
+
exports.ImportExportSchema = zod_1.z.object({
|
|
244
|
+
action: zod_1.z.enum(["import", "export"])
|
|
242
245
|
.describe("Import or export action"),
|
|
243
|
-
format: z.enum(["json", "csv", "markdown"])
|
|
246
|
+
format: zod_1.z.enum(["json", "csv", "markdown"])
|
|
244
247
|
.default("json")
|
|
245
248
|
.describe("Data format"),
|
|
246
|
-
entity_type: z.enum(["memory", "topic", "all"])
|
|
249
|
+
entity_type: zod_1.z.enum(["memory", "topic", "all"])
|
|
247
250
|
.default("all")
|
|
248
251
|
.describe("Entity type to import/export"),
|
|
249
|
-
file_path: z.string()
|
|
252
|
+
file_path: zod_1.z.string()
|
|
250
253
|
.optional()
|
|
251
254
|
.describe("File path for import/export"),
|
|
252
|
-
filters: z.record(z.any())
|
|
255
|
+
filters: zod_1.z.record(zod_1.z.any())
|
|
253
256
|
.optional()
|
|
254
257
|
.describe("Filters for export")
|
|
255
258
|
});
|
|
256
259
|
// Tool execution schema
|
|
257
|
-
|
|
258
|
-
tool_name: z.string()
|
|
260
|
+
exports.ToolExecutionSchema = zod_1.z.object({
|
|
261
|
+
tool_name: zod_1.z.string()
|
|
259
262
|
.describe("Name of the tool to execute"),
|
|
260
|
-
arguments: z.record(z.any())
|
|
263
|
+
arguments: zod_1.z.record(zod_1.z.any())
|
|
261
264
|
.describe("Tool arguments"),
|
|
262
|
-
timeout: z.number()
|
|
265
|
+
timeout: zod_1.z.number()
|
|
263
266
|
.positive()
|
|
264
267
|
.default(30000)
|
|
265
268
|
.describe("Execution timeout in milliseconds"),
|
|
266
|
-
retry_on_failure: z.boolean()
|
|
269
|
+
retry_on_failure: zod_1.z.boolean()
|
|
267
270
|
.default(false)
|
|
268
271
|
.describe("Retry on failure"),
|
|
269
|
-
max_retries: z.number()
|
|
272
|
+
max_retries: zod_1.z.number()
|
|
270
273
|
.int()
|
|
271
274
|
.min(0)
|
|
272
275
|
.max(5)
|
|
@@ -274,31 +277,31 @@ export const ToolExecutionSchema = z.object({
|
|
|
274
277
|
.describe("Maximum retry attempts")
|
|
275
278
|
});
|
|
276
279
|
// Response schemas
|
|
277
|
-
|
|
278
|
-
success: z.boolean().default(true),
|
|
279
|
-
data: z.any(),
|
|
280
|
-
message: z.string().optional(),
|
|
281
|
-
metadata: z.object({
|
|
282
|
-
timestamp: z.string().datetime(),
|
|
283
|
-
duration_ms: z.number().optional(),
|
|
284
|
-
request_id: z.string().optional()
|
|
280
|
+
exports.SuccessResponseSchema = zod_1.z.object({
|
|
281
|
+
success: zod_1.z.boolean().default(true),
|
|
282
|
+
data: zod_1.z.any(),
|
|
283
|
+
message: zod_1.z.string().optional(),
|
|
284
|
+
metadata: zod_1.z.object({
|
|
285
|
+
timestamp: zod_1.z.string().datetime(),
|
|
286
|
+
duration_ms: zod_1.z.number().optional(),
|
|
287
|
+
request_id: zod_1.z.string().optional()
|
|
285
288
|
}).optional()
|
|
286
289
|
});
|
|
287
|
-
|
|
288
|
-
success: z.boolean().default(false),
|
|
289
|
-
error: z.object({
|
|
290
|
-
code: z.string(),
|
|
291
|
-
message: z.string(),
|
|
292
|
-
details: z.any().optional(),
|
|
293
|
-
stack: z.string().optional()
|
|
290
|
+
exports.ErrorResponseSchema = zod_1.z.object({
|
|
291
|
+
success: zod_1.z.boolean().default(false),
|
|
292
|
+
error: zod_1.z.object({
|
|
293
|
+
code: zod_1.z.string(),
|
|
294
|
+
message: zod_1.z.string(),
|
|
295
|
+
details: zod_1.z.any().optional(),
|
|
296
|
+
stack: zod_1.z.string().optional()
|
|
294
297
|
}),
|
|
295
|
-
metadata: z.object({
|
|
296
|
-
timestamp: z.string().datetime(),
|
|
297
|
-
request_id: z.string().optional()
|
|
298
|
+
metadata: zod_1.z.object({
|
|
299
|
+
timestamp: zod_1.z.string().datetime(),
|
|
300
|
+
request_id: zod_1.z.string().optional()
|
|
298
301
|
}).optional()
|
|
299
302
|
});
|
|
300
303
|
// Validation helper
|
|
301
|
-
|
|
304
|
+
class SchemaValidator {
|
|
302
305
|
/**
|
|
303
306
|
* Validate data against a schema
|
|
304
307
|
*/
|
|
@@ -307,7 +310,7 @@ export class SchemaValidator {
|
|
|
307
310
|
return schema.parse(data);
|
|
308
311
|
}
|
|
309
312
|
catch (error) {
|
|
310
|
-
if (error instanceof z.ZodError) {
|
|
313
|
+
if (error instanceof zod_1.z.ZodError) {
|
|
311
314
|
throw new Error(`Validation error: ${error.errors
|
|
312
315
|
.map(e => `${e.path.join('.')}: ${e.message}`)
|
|
313
316
|
.join(', ')}`);
|
|
@@ -343,36 +346,37 @@ export class SchemaValidator {
|
|
|
343
346
|
};
|
|
344
347
|
}
|
|
345
348
|
}
|
|
349
|
+
exports.SchemaValidator = SchemaValidator;
|
|
346
350
|
// Export all schemas as a collection
|
|
347
|
-
|
|
351
|
+
exports.MCPSchemas = {
|
|
348
352
|
memory: {
|
|
349
|
-
create: MemoryCreateSchema,
|
|
350
|
-
search: MemorySearchSchema,
|
|
351
|
-
update: MemoryUpdateSchema,
|
|
352
|
-
delete: MemoryDeleteSchema,
|
|
353
|
-
list: MemoryListSchema
|
|
353
|
+
create: exports.MemoryCreateSchema,
|
|
354
|
+
search: exports.MemorySearchSchema,
|
|
355
|
+
update: exports.MemoryUpdateSchema,
|
|
356
|
+
delete: exports.MemoryDeleteSchema,
|
|
357
|
+
list: exports.MemoryListSchema
|
|
354
358
|
},
|
|
355
359
|
topic: {
|
|
356
|
-
create: TopicCreateSchema,
|
|
357
|
-
update: TopicUpdateSchema,
|
|
358
|
-
list: TopicListSchema
|
|
360
|
+
create: exports.TopicCreateSchema,
|
|
361
|
+
update: exports.TopicUpdateSchema,
|
|
362
|
+
list: exports.TopicListSchema
|
|
359
363
|
},
|
|
360
364
|
apikey: {
|
|
361
|
-
create: ApiKeyCreateSchema,
|
|
362
|
-
revoke: ApiKeyRevokeSchema
|
|
365
|
+
create: exports.ApiKeyCreateSchema,
|
|
366
|
+
revoke: exports.ApiKeyRevokeSchema
|
|
363
367
|
},
|
|
364
368
|
system: {
|
|
365
|
-
health: SystemHealthSchema,
|
|
366
|
-
config: SystemConfigSchema
|
|
369
|
+
health: exports.SystemHealthSchema,
|
|
370
|
+
config: exports.SystemConfigSchema
|
|
367
371
|
},
|
|
368
372
|
operations: {
|
|
369
|
-
bulk: BulkOperationSchema,
|
|
370
|
-
importExport: ImportExportSchema,
|
|
371
|
-
toolExecution: ToolExecutionSchema
|
|
373
|
+
bulk: exports.BulkOperationSchema,
|
|
374
|
+
importExport: exports.ImportExportSchema,
|
|
375
|
+
toolExecution: exports.ToolExecutionSchema
|
|
372
376
|
},
|
|
373
377
|
responses: {
|
|
374
|
-
success: SuccessResponseSchema,
|
|
375
|
-
error: ErrorResponseSchema
|
|
378
|
+
success: exports.SuccessResponseSchema,
|
|
379
|
+
error: exports.ErrorResponseSchema
|
|
376
380
|
}
|
|
377
381
|
};
|
|
378
|
-
|
|
382
|
+
exports.default = exports.MCPSchemas;
|