@anastops/mcp-server 0.1.0 → 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.
- package/dist/formatters.d.ts.map +1 -1
- package/dist/formatters.js +12 -3
- package/dist/formatters.js.map +1 -1
- package/dist/handlers/agent-handlers.d.ts +8 -0
- package/dist/handlers/agent-handlers.d.ts.map +1 -0
- package/dist/handlers/agent-handlers.js +184 -0
- package/dist/handlers/agent-handlers.js.map +1 -0
- package/dist/handlers/artifact-handlers.d.ts +8 -0
- package/dist/handlers/artifact-handlers.d.ts.map +1 -0
- package/dist/handlers/artifact-handlers.js +122 -0
- package/dist/handlers/artifact-handlers.js.map +1 -0
- package/dist/handlers/cost-handlers.d.ts +8 -0
- package/dist/handlers/cost-handlers.d.ts.map +1 -0
- package/dist/handlers/cost-handlers.js +140 -0
- package/dist/handlers/cost-handlers.js.map +1 -0
- package/dist/handlers/handlers.agent.d.ts +10 -0
- package/dist/handlers/handlers.agent.d.ts.map +1 -0
- package/dist/handlers/handlers.agent.js +99 -0
- package/dist/handlers/handlers.agent.js.map +1 -0
- package/dist/handlers/handlers.base.d.ts +82 -0
- package/dist/handlers/handlers.base.d.ts.map +1 -0
- package/dist/handlers/handlers.base.js +337 -0
- package/dist/handlers/handlers.base.js.map +1 -0
- package/dist/handlers/handlers.lock.d.ts +8 -0
- package/dist/handlers/handlers.lock.d.ts.map +1 -0
- package/dist/handlers/handlers.lock.js +111 -0
- package/dist/handlers/handlers.lock.js.map +1 -0
- package/dist/handlers/handlers.memory.d.ts +11 -0
- package/dist/handlers/handlers.memory.d.ts.map +1 -0
- package/dist/handlers/handlers.memory.js +122 -0
- package/dist/handlers/handlers.memory.js.map +1 -0
- package/dist/handlers/handlers.monitoring.d.ts +8 -0
- package/dist/handlers/handlers.monitoring.d.ts.map +1 -0
- package/dist/handlers/handlers.monitoring.js +99 -0
- package/dist/handlers/handlers.monitoring.js.map +1 -0
- package/dist/handlers/handlers.orchestration.d.ts +9 -0
- package/dist/handlers/handlers.orchestration.d.ts.map +1 -0
- package/dist/handlers/handlers.orchestration.js +128 -0
- package/dist/handlers/handlers.orchestration.js.map +1 -0
- package/dist/handlers/handlers.session.d.ts +18 -0
- package/dist/handlers/handlers.session.d.ts.map +1 -0
- package/dist/handlers/handlers.session.js +286 -0
- package/dist/handlers/handlers.session.js.map +1 -0
- package/dist/handlers/handlers.task.d.ts +15 -0
- package/dist/handlers/handlers.task.d.ts.map +1 -0
- package/dist/handlers/handlers.task.js +753 -0
- package/dist/handlers/handlers.task.js.map +1 -0
- package/dist/handlers/handlers.utility.d.ts +10 -0
- package/dist/handlers/handlers.utility.d.ts.map +1 -0
- package/dist/handlers/handlers.utility.js +59 -0
- package/dist/handlers/handlers.utility.js.map +1 -0
- package/dist/handlers/index.d.ts +18 -0
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +209 -0
- package/dist/handlers/index.js.map +1 -0
- package/dist/handlers/lock-handlers.d.ts +8 -0
- package/dist/handlers/lock-handlers.d.ts.map +1 -0
- package/dist/handlers/lock-handlers.js +154 -0
- package/dist/handlers/lock-handlers.js.map +1 -0
- package/dist/handlers/memory-handlers.d.ts +8 -0
- package/dist/handlers/memory-handlers.d.ts.map +1 -0
- package/dist/handlers/memory-handlers.js +76 -0
- package/dist/handlers/memory-handlers.js.map +1 -0
- package/dist/handlers/orchestration-handlers.d.ts +8 -0
- package/dist/handlers/orchestration-handlers.d.ts.map +1 -0
- package/dist/handlers/orchestration-handlers.js +113 -0
- package/dist/handlers/orchestration-handlers.js.map +1 -0
- package/dist/handlers/session-handlers.d.ts +8 -0
- package/dist/handlers/session-handlers.d.ts.map +1 -0
- package/dist/handlers/session-handlers.js +558 -0
- package/dist/handlers/session-handlers.js.map +1 -0
- package/dist/handlers/task-handlers.d.ts +8 -0
- package/dist/handlers/task-handlers.d.ts.map +1 -0
- package/dist/handlers/task-handlers.js +677 -0
- package/dist/handlers/task-handlers.js.map +1 -0
- package/dist/handlers/tool-definitions.d.ts +2626 -0
- package/dist/handlers/tool-definitions.d.ts.map +1 -0
- package/dist/handlers/tool-definitions.js +641 -0
- package/dist/handlers/tool-definitions.js.map +1 -0
- package/dist/handlers/types.d.ts +90 -0
- package/dist/handlers/types.d.ts.map +1 -0
- package/dist/handlers/types.js +5 -0
- package/dist/handlers/types.js.map +1 -0
- package/dist/handlers/utility-handlers.d.ts +8 -0
- package/dist/handlers/utility-handlers.d.ts.map +1 -0
- package/dist/handlers/utility-handlers.js +113 -0
- package/dist/handlers/utility-handlers.js.map +1 -0
- package/dist/handlers/utils.d.ts +30 -0
- package/dist/handlers/utils.d.ts.map +1 -0
- package/dist/handlers/utils.js +95 -0
- package/dist/handlers/utils.js.map +1 -0
- package/dist/handlers.d.ts +17 -2260
- package/dist/handlers.d.ts.map +1 -1
- package/dist/handlers.js +17 -1836
- package/dist/handlers.js.map +1 -1
- package/dist/index.js +41 -7
- package/dist/index.js.map +1 -1
- package/dist/persistence.d.ts.map +1 -1
- package/dist/persistence.js +84 -47
- package/dist/persistence.js.map +1 -1
- package/dist/schemas.d.ts +299 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +334 -0
- package/dist/schemas.js.map +1 -0
- package/package.json +8 -5
package/dist/schemas.js
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod validation schemas for MCP tool inputs
|
|
3
|
+
*
|
|
4
|
+
* SECURITY: All user input must be validated before processing.
|
|
5
|
+
* These schemas enforce type safety and prevent injection attacks.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
// Common validators
|
|
9
|
+
const sessionIdSchema = z
|
|
10
|
+
.string()
|
|
11
|
+
.min(1)
|
|
12
|
+
.max(64)
|
|
13
|
+
.regex(/^[a-zA-Z0-9_-]+$/, 'Invalid session ID format');
|
|
14
|
+
const taskIdSchema = z
|
|
15
|
+
.string()
|
|
16
|
+
.min(1)
|
|
17
|
+
.max(64)
|
|
18
|
+
.regex(/^[a-zA-Z0-9_-]+$/, 'Invalid task ID format');
|
|
19
|
+
const agentIdSchema = z
|
|
20
|
+
.string()
|
|
21
|
+
.min(1)
|
|
22
|
+
.max(64)
|
|
23
|
+
.regex(/^[a-zA-Z0-9_-]+$/, 'Invalid agent ID format');
|
|
24
|
+
const artifactIdSchema = z
|
|
25
|
+
.string()
|
|
26
|
+
.min(1)
|
|
27
|
+
.max(64)
|
|
28
|
+
.regex(/^[a-zA-Z0-9_-]+$/, 'Invalid artifact ID format');
|
|
29
|
+
// Limit string lengths to prevent DoS via memory exhaustion
|
|
30
|
+
const shortStringSchema = z.string().max(500);
|
|
31
|
+
const mediumStringSchema = z.string().max(5000);
|
|
32
|
+
const longStringSchema = z.string().max(100000); // 100KB max for prompts/content
|
|
33
|
+
const pathSchema = z
|
|
34
|
+
.string()
|
|
35
|
+
.max(1000)
|
|
36
|
+
// eslint-disable-next-line no-control-regex -- Required to validate path characters
|
|
37
|
+
.regex(/^[^<>:"|?*\x00-\x1F]+$/, 'Invalid path characters');
|
|
38
|
+
// Session tools schemas
|
|
39
|
+
export const sessionSpawnSchema = z.object({
|
|
40
|
+
objective: mediumStringSchema,
|
|
41
|
+
context_files: z.array(pathSchema).max(100).optional(),
|
|
42
|
+
parent_session: sessionIdSchema.optional(),
|
|
43
|
+
concurrency: z.number().int().min(1).max(10).optional(),
|
|
44
|
+
auto_execute: z.boolean().optional(),
|
|
45
|
+
});
|
|
46
|
+
export const sessionStatusSchema = z.object({
|
|
47
|
+
session_id: sessionIdSchema,
|
|
48
|
+
});
|
|
49
|
+
export const sessionListSchema = z.object({
|
|
50
|
+
status: z.enum(['active', 'completed', 'archived']).optional(),
|
|
51
|
+
include_forks: z.boolean().optional(),
|
|
52
|
+
limit: z.number().int().min(1).max(1000).optional(),
|
|
53
|
+
format: z.enum(['table', 'json']).optional(),
|
|
54
|
+
});
|
|
55
|
+
export const sessionForkSchema = z.object({
|
|
56
|
+
session_id: sessionIdSchema,
|
|
57
|
+
fork_point: z.number().int().min(0).optional(),
|
|
58
|
+
reason: mediumStringSchema.optional(),
|
|
59
|
+
});
|
|
60
|
+
export const sessionArchiveSchema = z.object({
|
|
61
|
+
session_id: sessionIdSchema,
|
|
62
|
+
});
|
|
63
|
+
export const sessionReportSchema = z.object({
|
|
64
|
+
session_id: sessionIdSchema.optional(),
|
|
65
|
+
status: z.enum(['active', 'completed', 'archived']).optional(),
|
|
66
|
+
include_output: z.boolean().optional(),
|
|
67
|
+
include_artifacts: z.boolean().optional(),
|
|
68
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
69
|
+
});
|
|
70
|
+
export const sessionPurgeSchema = z.object({
|
|
71
|
+
session_id: sessionIdSchema.optional(),
|
|
72
|
+
session_ids: z.array(sessionIdSchema).max(100).optional(),
|
|
73
|
+
status: z.enum(['active', 'completed', 'archived']).optional(),
|
|
74
|
+
older_than_days: z.number().int().min(0).max(3650).optional(),
|
|
75
|
+
confirm: z.boolean(),
|
|
76
|
+
});
|
|
77
|
+
export const sessionQueueConfigSchema = z.object({
|
|
78
|
+
session_id: sessionIdSchema,
|
|
79
|
+
concurrency: z.number().int().min(1).max(10).optional(),
|
|
80
|
+
auto_execute: z.boolean().optional(),
|
|
81
|
+
});
|
|
82
|
+
export const queueStatusSchema = z.object({
|
|
83
|
+
session_id: sessionIdSchema,
|
|
84
|
+
});
|
|
85
|
+
// Agent tools schemas
|
|
86
|
+
export const agentCreateSchema = z.object({
|
|
87
|
+
session_id: sessionIdSchema,
|
|
88
|
+
role: z.enum([
|
|
89
|
+
'orchestrator',
|
|
90
|
+
'planner',
|
|
91
|
+
'implementer',
|
|
92
|
+
'reviewer',
|
|
93
|
+
'tester',
|
|
94
|
+
'debugger',
|
|
95
|
+
'documenter',
|
|
96
|
+
'specialist',
|
|
97
|
+
]),
|
|
98
|
+
name: shortStringSchema.optional(),
|
|
99
|
+
provider: shortStringSchema.optional(),
|
|
100
|
+
model: shortStringSchema.optional(),
|
|
101
|
+
});
|
|
102
|
+
export const agentDeploySchema = z.object({
|
|
103
|
+
agent_id: agentIdSchema,
|
|
104
|
+
task_id: taskIdSchema,
|
|
105
|
+
});
|
|
106
|
+
export const agentStatusSchema = z.object({
|
|
107
|
+
agent_id: agentIdSchema,
|
|
108
|
+
});
|
|
109
|
+
export const agentListSchema = z.object({
|
|
110
|
+
session_id: sessionIdSchema,
|
|
111
|
+
status: shortStringSchema.optional(),
|
|
112
|
+
format: z.enum(['table', 'json']).optional(),
|
|
113
|
+
});
|
|
114
|
+
export const agentRetireSchema = z.object({
|
|
115
|
+
agent_id: agentIdSchema,
|
|
116
|
+
});
|
|
117
|
+
// Task tools schemas
|
|
118
|
+
const taskDefinitionSchema = z.object({
|
|
119
|
+
type: shortStringSchema,
|
|
120
|
+
description: mediumStringSchema,
|
|
121
|
+
prompt: longStringSchema,
|
|
122
|
+
context_files: z.array(pathSchema).max(100).optional(),
|
|
123
|
+
force_provider: shortStringSchema.optional(),
|
|
124
|
+
force_tier: z.number().int().min(1).max(5).optional(),
|
|
125
|
+
agent: shortStringSchema.optional(),
|
|
126
|
+
skills: z.array(shortStringSchema).max(50).optional(),
|
|
127
|
+
});
|
|
128
|
+
export const taskCreateSchema = z.object({
|
|
129
|
+
session_id: sessionIdSchema,
|
|
130
|
+
type: shortStringSchema,
|
|
131
|
+
description: mediumStringSchema,
|
|
132
|
+
prompt: longStringSchema,
|
|
133
|
+
context_files: z.array(pathSchema).max(100).optional(),
|
|
134
|
+
force_provider: shortStringSchema.optional(),
|
|
135
|
+
force_tier: z.number().int().min(1).max(5).optional(),
|
|
136
|
+
agent: shortStringSchema.optional(),
|
|
137
|
+
skills: z.array(shortStringSchema).max(50).optional(),
|
|
138
|
+
});
|
|
139
|
+
export const taskBatchCreateSchema = z.object({
|
|
140
|
+
session_id: sessionIdSchema,
|
|
141
|
+
tasks: z.array(taskDefinitionSchema).min(1).max(50),
|
|
142
|
+
});
|
|
143
|
+
export const taskBatchExecuteSchema = z.object({
|
|
144
|
+
task_ids: z.array(taskIdSchema).min(1).max(50),
|
|
145
|
+
parallel: z.boolean().optional(),
|
|
146
|
+
wait: z.boolean().optional(),
|
|
147
|
+
});
|
|
148
|
+
export const taskQueueSchema = z.object({
|
|
149
|
+
task_id: taskIdSchema,
|
|
150
|
+
});
|
|
151
|
+
export const taskStatusSchema = z.object({
|
|
152
|
+
task_id: taskIdSchema,
|
|
153
|
+
});
|
|
154
|
+
export const taskCompleteSchema = z.object({
|
|
155
|
+
task_id: taskIdSchema,
|
|
156
|
+
content: longStringSchema,
|
|
157
|
+
artifacts: z.array(shortStringSchema).max(100).optional(),
|
|
158
|
+
});
|
|
159
|
+
export const taskListSchema = z.object({
|
|
160
|
+
session_id: sessionIdSchema,
|
|
161
|
+
status: shortStringSchema.optional(),
|
|
162
|
+
format: z.enum(['table', 'json']).optional(),
|
|
163
|
+
});
|
|
164
|
+
export const taskExecuteSchema = z.object({
|
|
165
|
+
task_id: taskIdSchema,
|
|
166
|
+
wait: z.boolean().optional(),
|
|
167
|
+
});
|
|
168
|
+
export const taskCancelSchema = z.object({
|
|
169
|
+
task_id: taskIdSchema,
|
|
170
|
+
});
|
|
171
|
+
export const taskRetrySchema = z.object({
|
|
172
|
+
task_id: taskIdSchema,
|
|
173
|
+
});
|
|
174
|
+
// Lock tools schemas
|
|
175
|
+
export const lockAcquireSchema = z.object({
|
|
176
|
+
session_id: sessionIdSchema,
|
|
177
|
+
file_path: pathSchema,
|
|
178
|
+
ttl: z.number().int().min(1000).max(3600000).optional(), // 1s to 1h
|
|
179
|
+
});
|
|
180
|
+
export const lockReleaseSchema = z.object({
|
|
181
|
+
session_id: sessionIdSchema,
|
|
182
|
+
file_path: pathSchema,
|
|
183
|
+
});
|
|
184
|
+
export const lockStatusSchema = z.object({
|
|
185
|
+
session_id: sessionIdSchema.optional(),
|
|
186
|
+
file_path: pathSchema.optional(),
|
|
187
|
+
});
|
|
188
|
+
// Cost monitoring schemas
|
|
189
|
+
export const sessionCostSchema = z.object({
|
|
190
|
+
session_id: sessionIdSchema,
|
|
191
|
+
});
|
|
192
|
+
export const sessionMetricsSchema = z.object({
|
|
193
|
+
session_id: sessionIdSchema,
|
|
194
|
+
});
|
|
195
|
+
export const sessionThrottleSchema = z.object({
|
|
196
|
+
session_id: sessionIdSchema,
|
|
197
|
+
provider: shortStringSchema.optional(),
|
|
198
|
+
});
|
|
199
|
+
// Memory tools schemas
|
|
200
|
+
export const memoryStoreSchema = z.object({
|
|
201
|
+
key: shortStringSchema,
|
|
202
|
+
value: z.unknown(),
|
|
203
|
+
session_id: sessionIdSchema.optional(),
|
|
204
|
+
});
|
|
205
|
+
export const memoryRetrieveSchema = z.object({
|
|
206
|
+
key: shortStringSchema,
|
|
207
|
+
});
|
|
208
|
+
export const artifactSaveSchema = z.object({
|
|
209
|
+
session_id: sessionIdSchema,
|
|
210
|
+
type: z.enum(['code', 'document', 'data', 'config', 'test', 'other']),
|
|
211
|
+
name: shortStringSchema,
|
|
212
|
+
content: longStringSchema,
|
|
213
|
+
});
|
|
214
|
+
export const artifactGetSchema = z.object({
|
|
215
|
+
artifact_id: artifactIdSchema,
|
|
216
|
+
});
|
|
217
|
+
export const artifactListSchema = z.object({
|
|
218
|
+
session_id: sessionIdSchema,
|
|
219
|
+
type: z.enum(['code', 'document', 'data', 'config', 'test', 'other']).optional(),
|
|
220
|
+
});
|
|
221
|
+
export const contextOptimizeSchema = z.object({
|
|
222
|
+
session_id: sessionIdSchema,
|
|
223
|
+
objective: mediumStringSchema,
|
|
224
|
+
phase: z.enum(['planning', 'implementation', 'verification', 'completed']),
|
|
225
|
+
progress: z.number().min(0).max(100),
|
|
226
|
+
messages: z
|
|
227
|
+
.array(z.object({
|
|
228
|
+
role: z.enum(['user', 'assistant', 'system']),
|
|
229
|
+
content: longStringSchema,
|
|
230
|
+
tokens: z.number().int().min(0),
|
|
231
|
+
}))
|
|
232
|
+
.max(1000),
|
|
233
|
+
});
|
|
234
|
+
// Orchestration tools schemas
|
|
235
|
+
export const dispatchSchema = z.object({
|
|
236
|
+
session_id: sessionIdSchema,
|
|
237
|
+
prompt: longStringSchema,
|
|
238
|
+
type: shortStringSchema.optional(),
|
|
239
|
+
force_provider: shortStringSchema.optional(),
|
|
240
|
+
force_tier: z.number().int().min(1).max(5).optional(),
|
|
241
|
+
});
|
|
242
|
+
export const routeSchema = z.object({
|
|
243
|
+
type: shortStringSchema,
|
|
244
|
+
description: mediumStringSchema,
|
|
245
|
+
});
|
|
246
|
+
export const broadcastSchema = z.object({
|
|
247
|
+
session_id: sessionIdSchema,
|
|
248
|
+
message: mediumStringSchema,
|
|
249
|
+
message_type: z.enum(['info', 'warning', 'error', 'progress', 'complete']).optional(),
|
|
250
|
+
});
|
|
251
|
+
export const aggregateSchema = z.object({
|
|
252
|
+
task_ids: z.array(taskIdSchema).min(1).max(100),
|
|
253
|
+
strategy: z.enum(['concat', 'merge', 'first', 'last', 'vote']).optional(),
|
|
254
|
+
});
|
|
255
|
+
// Utility tools schemas
|
|
256
|
+
export const healthCheckSchema = z.object({
|
|
257
|
+
include_providers: z.boolean().optional(),
|
|
258
|
+
});
|
|
259
|
+
export const providerListSchema = z.object({
|
|
260
|
+
filter_healthy: z.boolean().optional(),
|
|
261
|
+
include_capabilities: z.boolean().optional(),
|
|
262
|
+
});
|
|
263
|
+
export const metricsGetSchema = z.object({
|
|
264
|
+
metric_type: z.enum(['routing', 'tokens', 'costs', 'all']).optional(),
|
|
265
|
+
});
|
|
266
|
+
export const configGetSchema = z.object({
|
|
267
|
+
key: shortStringSchema,
|
|
268
|
+
});
|
|
269
|
+
export const configSetSchema = z.object({
|
|
270
|
+
key: shortStringSchema,
|
|
271
|
+
value: z.unknown(),
|
|
272
|
+
});
|
|
273
|
+
// Schema registry for tool validation
|
|
274
|
+
export const toolSchemas = {
|
|
275
|
+
session_spawn: sessionSpawnSchema,
|
|
276
|
+
session_status: sessionStatusSchema,
|
|
277
|
+
session_list: sessionListSchema,
|
|
278
|
+
session_fork: sessionForkSchema,
|
|
279
|
+
session_archive: sessionArchiveSchema,
|
|
280
|
+
session_report: sessionReportSchema,
|
|
281
|
+
session_purge: sessionPurgeSchema,
|
|
282
|
+
session_queue_config: sessionQueueConfigSchema,
|
|
283
|
+
queue_status: queueStatusSchema,
|
|
284
|
+
agent_create: agentCreateSchema,
|
|
285
|
+
agent_deploy: agentDeploySchema,
|
|
286
|
+
agent_status: agentStatusSchema,
|
|
287
|
+
agent_list: agentListSchema,
|
|
288
|
+
agent_retire: agentRetireSchema,
|
|
289
|
+
task_create: taskCreateSchema,
|
|
290
|
+
task_batch_create: taskBatchCreateSchema,
|
|
291
|
+
task_batch_execute: taskBatchExecuteSchema,
|
|
292
|
+
task_queue: taskQueueSchema,
|
|
293
|
+
task_status: taskStatusSchema,
|
|
294
|
+
task_complete: taskCompleteSchema,
|
|
295
|
+
task_list: taskListSchema,
|
|
296
|
+
task_execute: taskExecuteSchema,
|
|
297
|
+
task_cancel: taskCancelSchema,
|
|
298
|
+
task_retry: taskRetrySchema,
|
|
299
|
+
lock_acquire: lockAcquireSchema,
|
|
300
|
+
lock_release: lockReleaseSchema,
|
|
301
|
+
lock_status: lockStatusSchema,
|
|
302
|
+
session_cost: sessionCostSchema,
|
|
303
|
+
session_metrics: sessionMetricsSchema,
|
|
304
|
+
session_throttle: sessionThrottleSchema,
|
|
305
|
+
memory_store: memoryStoreSchema,
|
|
306
|
+
memory_retrieve: memoryRetrieveSchema,
|
|
307
|
+
artifact_save: artifactSaveSchema,
|
|
308
|
+
artifact_get: artifactGetSchema,
|
|
309
|
+
artifact_list: artifactListSchema,
|
|
310
|
+
context_optimize: contextOptimizeSchema,
|
|
311
|
+
dispatch: dispatchSchema,
|
|
312
|
+
route: routeSchema,
|
|
313
|
+
broadcast: broadcastSchema,
|
|
314
|
+
aggregate: aggregateSchema,
|
|
315
|
+
health_check: healthCheckSchema,
|
|
316
|
+
provider_list: providerListSchema,
|
|
317
|
+
metrics_get: metricsGetSchema,
|
|
318
|
+
config_get: configGetSchema,
|
|
319
|
+
config_set: configSetSchema,
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* Validate tool input against its schema
|
|
323
|
+
* @throws ZodError if validation fails
|
|
324
|
+
*/
|
|
325
|
+
export function validateToolInput(toolName, args) {
|
|
326
|
+
const schema = toolSchemas[toolName];
|
|
327
|
+
if (!schema) {
|
|
328
|
+
// Tools without schemas pass through (backwards compatibility)
|
|
329
|
+
// In production, all tools should have schemas
|
|
330
|
+
return args;
|
|
331
|
+
}
|
|
332
|
+
return schema.parse(args);
|
|
333
|
+
}
|
|
334
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAoB;AACpB,MAAM,eAAe,GAAG,CAAC;KACtB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CAAC,kBAAkB,EAAE,2BAA2B,CAAC,CAAC;AAC1D,MAAM,YAAY,GAAG,CAAC;KACnB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,CAAC;AACvD,MAAM,aAAa,GAAG,CAAC;KACpB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CAAC,kBAAkB,EAAE,yBAAyB,CAAC,CAAC;AACxD,MAAM,gBAAgB,GAAG,CAAC;KACvB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CAAC,kBAAkB,EAAE,4BAA4B,CAAC,CAAC;AAE3D,4DAA4D;AAC5D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W,EAAE,gBAAgB;IAC7B,UAAU,EAAE,eAAe;IAC3B,YAAY,EAAE,iBAAiB;IAC/B,YAAY,EAAE,iBAAiB;IAC/B,WAAW,EAAE,gBAAgB;IAC7B,YAAY,EAAE,iBAAiB;IAC/B,eAAe,EAAE,oBAAoB;IACrC,gBAAgB,EAAE,qBAAqB;IACvC,YAAY,EAAE,iBAAiB;IAC/B,eAAe,EAAE,oBAAoB;IACrC,aAAa,EAAE,kBAAkB;IACjC,YAAY,EAAE,iBAAiB;IAC/B,aAAa,EAAE,kBAAkB;IACjC,gBAAgB,EAAE,qBAAqB;IACvC,QAAQ,EAAE,cAAc;IACxB,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,eAAe;IAC1B,SAAS,EAAE,eAAe;IAC1B,YAAY,EAAE,iBAAiB;IAC/B,aAAa,EAAE,kBAAkB;IACjC,WAAW,EAAE,gBAAgB;IAC7B,UAAU,EAAE,eAAe;IAC3B,UAAU,EAAE,eAAe;CAC5B,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,QAAgB,EAAE,IAAa;IAC/D,MAAM,MAAM,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;IACrC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,+DAA+D;QAC/D,+CAA+C;QAC/C,OAAO,IAA+B,CAAC;IACzC,CAAC;IAED,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,CAA4B,CAAC;AACvD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anastops/mcp-server",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "MCP server exposing 28 orchestration tools for AI agents",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"bin": {
|
|
9
|
-
"anastops-mcp": "./dist/index.js"
|
|
9
|
+
"anastops-mcp": "./dist/index.js",
|
|
10
|
+
"mcp-server": "./dist/index.js"
|
|
10
11
|
},
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
@@ -21,15 +22,17 @@
|
|
|
21
22
|
"test": "vitest run",
|
|
22
23
|
"test:watch": "vitest",
|
|
23
24
|
"test:coverage": "vitest run --coverage",
|
|
24
|
-
"lint": "eslint src --ext .ts",
|
|
25
|
+
"lint": "eslint src --ext .ts --ignore-pattern='**/__tests__/**' --ignore-pattern='**/*.test.ts'",
|
|
25
26
|
"typecheck": "tsc --noEmit",
|
|
26
27
|
"clean": "rm -rf dist"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@anastops/adapters": "
|
|
30
|
-
"@anastops/core": "
|
|
30
|
+
"@anastops/adapters": "1.0.0",
|
|
31
|
+
"@anastops/core": "1.0.0",
|
|
31
32
|
"@anthropic-ai/claude-agent-sdk": "^0.2.12",
|
|
32
33
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
34
|
+
"@sentry/node": "^8.32.0",
|
|
35
|
+
"@sentry/profiling-node": "^8.32.0",
|
|
33
36
|
"chalk": "^5.6.2",
|
|
34
37
|
"lru-cache": "^10.2.0",
|
|
35
38
|
"mongodb": "^6.16.0",
|