@persistadev/mcp-server 3.6.3 → 4.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/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +90 -26
- package/dist/index.js.map +1 -1
- package/dist/multi-agent-handlers.d.ts +13 -0
- package/dist/multi-agent-handlers.d.ts.map +1 -0
- package/dist/multi-agent-handlers.js +288 -0
- package/dist/multi-agent-handlers.js.map +1 -0
- package/dist/multi-agent-tools.d.ts +17 -0
- package/dist/multi-agent-tools.d.ts.map +1 -0
- package/dist/multi-agent-tools.js +389 -0
- package/dist/multi-agent-tools.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* PERSISTA MULTI-AGENT COORDINATION TOOLS
|
|
4
|
+
*
|
|
5
|
+
* Tools for coordinating multiple AI agents working in parallel
|
|
6
|
+
* Prevents conflicts, enables communication, distributes work
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.MULTI_AGENT_TOOLS = void 0;
|
|
10
|
+
// ============================================
|
|
11
|
+
// MULTI-AGENT TOOL DEFINITIONS
|
|
12
|
+
// ============================================
|
|
13
|
+
exports.MULTI_AGENT_TOOLS = [
|
|
14
|
+
// ═══════════════════════════════════════
|
|
15
|
+
// AGENT REGISTRY
|
|
16
|
+
// ═══════════════════════════════════════
|
|
17
|
+
{
|
|
18
|
+
name: 'agent_register',
|
|
19
|
+
description: 'Register an agent with the coordination system. Call this when an agent starts working on a project.',
|
|
20
|
+
inputSchema: {
|
|
21
|
+
type: 'object',
|
|
22
|
+
properties: {
|
|
23
|
+
agent_id: { type: 'string', description: 'Unique agent identifier (e.g., "frontend_001")' },
|
|
24
|
+
agent_type: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
enum: ['frontend', 'backend', 'testing', 'deployment', 'coordinator', 'integration', 'database', 'devops', 'custom'],
|
|
27
|
+
description: 'Primary role of this agent'
|
|
28
|
+
},
|
|
29
|
+
agent_name: { type: 'string', description: 'Human-friendly name (optional)' },
|
|
30
|
+
capabilities: {
|
|
31
|
+
type: 'array',
|
|
32
|
+
items: { type: 'string' },
|
|
33
|
+
description: 'Technologies this agent can work with (e.g., ["react", "typescript"])'
|
|
34
|
+
},
|
|
35
|
+
project_name: { type: 'string', description: 'Project this agent is working on' },
|
|
36
|
+
model_info: { type: 'object', description: 'Model details (optional)' }
|
|
37
|
+
},
|
|
38
|
+
required: ['agent_id', 'agent_type']
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'agent_heartbeat',
|
|
43
|
+
description: 'Update agent heartbeat. Agents should call this every 30s to stay "active".',
|
|
44
|
+
inputSchema: {
|
|
45
|
+
type: 'object',
|
|
46
|
+
properties: {
|
|
47
|
+
agent_id: { type: 'string', description: 'Agent identifier' },
|
|
48
|
+
status: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
enum: ['active', 'idle', 'busy', 'blocked', 'error'],
|
|
51
|
+
description: 'Current agent status (optional)'
|
|
52
|
+
},
|
|
53
|
+
current_file: { type: 'string', description: 'File currently working on (optional)' },
|
|
54
|
+
current_task_id: { type: 'string', description: 'Task currently working on (optional)' }
|
|
55
|
+
},
|
|
56
|
+
required: ['agent_id']
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'agent_list',
|
|
61
|
+
description: 'List all active agents working on projects. Use this to discover other agents.',
|
|
62
|
+
inputSchema: {
|
|
63
|
+
type: 'object',
|
|
64
|
+
properties: {
|
|
65
|
+
project_name: { type: 'string', description: 'Filter by project (optional)' },
|
|
66
|
+
agent_type: { type: 'string', description: 'Filter by type (optional)' },
|
|
67
|
+
status: { type: 'string', description: 'Filter by status (optional)' }
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'agent_unregister',
|
|
73
|
+
description: 'Unregister an agent when done working. Releases all locks and marks as offline.',
|
|
74
|
+
inputSchema: {
|
|
75
|
+
type: 'object',
|
|
76
|
+
properties: {
|
|
77
|
+
agent_id: { type: 'string', description: 'Agent identifier' }
|
|
78
|
+
},
|
|
79
|
+
required: ['agent_id']
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
// ═══════════════════════════════════════
|
|
83
|
+
// FILE LOCKING (CRITICAL)
|
|
84
|
+
// ═══════════════════════════════════════
|
|
85
|
+
{
|
|
86
|
+
name: 'file_lock',
|
|
87
|
+
description: 'Lock a file for editing. ALWAYS lock before editing to prevent conflicts with other agents.',
|
|
88
|
+
inputSchema: {
|
|
89
|
+
type: 'object',
|
|
90
|
+
properties: {
|
|
91
|
+
agent_id: { type: 'string', description: 'Agent requesting lock' },
|
|
92
|
+
file_path: { type: 'string', description: 'Relative path to file (e.g., "src/components/Widget.tsx")' },
|
|
93
|
+
lock_type: {
|
|
94
|
+
type: 'string',
|
|
95
|
+
enum: ['read', 'write'],
|
|
96
|
+
description: 'read = multiple readers, write = exclusive access'
|
|
97
|
+
},
|
|
98
|
+
duration_minutes: { type: 'number', description: 'Auto-release after N minutes (default 5)' },
|
|
99
|
+
reason: { type: 'string', description: 'Why locking this file' },
|
|
100
|
+
project_name: { type: 'string', description: 'Project name' }
|
|
101
|
+
},
|
|
102
|
+
required: ['agent_id', 'file_path', 'lock_type']
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'file_unlock',
|
|
107
|
+
description: 'Release a file lock when done editing. Always unlock when finished!',
|
|
108
|
+
inputSchema: {
|
|
109
|
+
type: 'object',
|
|
110
|
+
properties: {
|
|
111
|
+
agent_id: { type: 'string', description: 'Agent releasing lock' },
|
|
112
|
+
file_path: { type: 'string', description: 'File to unlock' },
|
|
113
|
+
project_name: { type: 'string', description: 'Project name' }
|
|
114
|
+
},
|
|
115
|
+
required: ['agent_id', 'file_path']
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'file_check_lock',
|
|
120
|
+
description: 'Check if a file is currently locked by another agent before editing.',
|
|
121
|
+
inputSchema: {
|
|
122
|
+
type: 'object',
|
|
123
|
+
properties: {
|
|
124
|
+
file_path: { type: 'string', description: 'File to check' },
|
|
125
|
+
project_name: { type: 'string', description: 'Project name' }
|
|
126
|
+
},
|
|
127
|
+
required: ['file_path']
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'file_list_locks',
|
|
132
|
+
description: 'List all active file locks (useful for debugging conflicts)',
|
|
133
|
+
inputSchema: {
|
|
134
|
+
type: 'object',
|
|
135
|
+
properties: {
|
|
136
|
+
project_name: { type: 'string', description: 'Filter by project' },
|
|
137
|
+
agent_id: { type: 'string', description: 'Filter by agent' }
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
// ═══════════════════════════════════════
|
|
142
|
+
// TASK QUEUE
|
|
143
|
+
// ═══════════════════════════════════════
|
|
144
|
+
{
|
|
145
|
+
name: 'task_create',
|
|
146
|
+
description: 'Create a new task in the queue. Tasks coordinate work among agents.',
|
|
147
|
+
inputSchema: {
|
|
148
|
+
type: 'object',
|
|
149
|
+
properties: {
|
|
150
|
+
task_id: { type: 'string', description: 'Human-readable ID (e.g., "build_booking_widget")' },
|
|
151
|
+
title: { type: 'string', description: 'Task title' },
|
|
152
|
+
description: { type: 'string', description: 'What needs to be done' },
|
|
153
|
+
task_type: {
|
|
154
|
+
type: 'string',
|
|
155
|
+
enum: ['feature', 'bugfix', 'refactor', 'test', 'deploy', 'research', 'documentation', 'optimization', 'custom'],
|
|
156
|
+
description: 'Type of task'
|
|
157
|
+
},
|
|
158
|
+
priority: { type: 'number', minimum: 1, maximum: 10, description: 'Priority 1-10 (default 5)' },
|
|
159
|
+
suitable_for_agent_types: {
|
|
160
|
+
type: 'array',
|
|
161
|
+
items: { type: 'string' },
|
|
162
|
+
description: 'Which agent types can claim this (e.g., ["frontend", "integration"])'
|
|
163
|
+
},
|
|
164
|
+
required_capabilities: {
|
|
165
|
+
type: 'array',
|
|
166
|
+
items: { type: 'string' },
|
|
167
|
+
description: 'Required tech skills (e.g., ["react", "typescript"])'
|
|
168
|
+
},
|
|
169
|
+
dependencies: {
|
|
170
|
+
type: 'array',
|
|
171
|
+
items: { type: 'string' },
|
|
172
|
+
description: 'Task IDs that must complete first'
|
|
173
|
+
},
|
|
174
|
+
estimated_duration_minutes: { type: 'number', description: 'Estimated time to complete' },
|
|
175
|
+
project_name: { type: 'string', description: 'Project name' }
|
|
176
|
+
},
|
|
177
|
+
required: ['task_id', 'title', 'task_type']
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'task_claim',
|
|
182
|
+
description: 'Claim an available task to work on. Only claim tasks you can complete!',
|
|
183
|
+
inputSchema: {
|
|
184
|
+
type: 'object',
|
|
185
|
+
properties: {
|
|
186
|
+
task_id: { type: 'string', description: 'Task to claim' },
|
|
187
|
+
agent_id: { type: 'string', description: 'Agent claiming task' }
|
|
188
|
+
},
|
|
189
|
+
required: ['task_id', 'agent_id']
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: 'task_update',
|
|
194
|
+
description: 'Update task progress/status. Keep other agents informed!',
|
|
195
|
+
inputSchema: {
|
|
196
|
+
type: 'object',
|
|
197
|
+
properties: {
|
|
198
|
+
task_id: { type: 'string', description: 'Task to update' },
|
|
199
|
+
status: {
|
|
200
|
+
type: 'string',
|
|
201
|
+
enum: ['queued', 'claimed', 'in_progress', 'blocked', 'review', 'complete', 'failed', 'cancelled'],
|
|
202
|
+
description: 'New status'
|
|
203
|
+
},
|
|
204
|
+
progress_percent: { type: 'number', minimum: 0, maximum: 100, description: 'Progress 0-100%' },
|
|
205
|
+
notes: { type: 'string', description: 'Progress notes' },
|
|
206
|
+
blockers: {
|
|
207
|
+
type: 'array',
|
|
208
|
+
items: { type: 'string' },
|
|
209
|
+
description: 'What is blocking completion'
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
required: ['task_id']
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: 'task_complete',
|
|
217
|
+
description: 'Mark a task as complete. Unblocks dependent tasks!',
|
|
218
|
+
inputSchema: {
|
|
219
|
+
type: 'object',
|
|
220
|
+
properties: {
|
|
221
|
+
task_id: { type: 'string', description: 'Task to complete' },
|
|
222
|
+
result_summary: { type: 'string', description: 'What was accomplished' },
|
|
223
|
+
files_affected: {
|
|
224
|
+
type: 'array',
|
|
225
|
+
items: { type: 'string' },
|
|
226
|
+
description: 'Files created/modified'
|
|
227
|
+
},
|
|
228
|
+
tests_passing: { type: 'boolean', description: 'Are tests passing?' }
|
|
229
|
+
},
|
|
230
|
+
required: ['task_id']
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: 'task_list_available',
|
|
235
|
+
description: 'List tasks available to claim (no dependencies blocking, not claimed)',
|
|
236
|
+
inputSchema: {
|
|
237
|
+
type: 'object',
|
|
238
|
+
properties: {
|
|
239
|
+
agent_type: { type: 'string', description: 'Filter by suitable agent type' },
|
|
240
|
+
project_name: { type: 'string', description: 'Filter by project' }
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: 'task_list_all',
|
|
246
|
+
description: 'List all tasks with their status (for overview/coordination)',
|
|
247
|
+
inputSchema: {
|
|
248
|
+
type: 'object',
|
|
249
|
+
properties: {
|
|
250
|
+
status: { type: 'string', description: 'Filter by status' },
|
|
251
|
+
assigned_to: { type: 'string', description: 'Filter by agent' },
|
|
252
|
+
project_name: { type: 'string', description: 'Filter by project' }
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
// ═══════════════════════════════════════
|
|
257
|
+
// AGENT MESSAGING
|
|
258
|
+
// ═══════════════════════════════════════
|
|
259
|
+
{
|
|
260
|
+
name: 'agent_send_message',
|
|
261
|
+
description: 'Send a message to another agent or broadcast to all agents.',
|
|
262
|
+
inputSchema: {
|
|
263
|
+
type: 'object',
|
|
264
|
+
properties: {
|
|
265
|
+
from_agent_id: { type: 'string', description: 'Sender agent ID' },
|
|
266
|
+
to_agent_id: { type: 'string', description: 'Recipient agent ID (null for broadcast)' },
|
|
267
|
+
message_type: {
|
|
268
|
+
type: 'string',
|
|
269
|
+
enum: ['request', 'response', 'notification', 'question', 'error', 'coordination', 'broadcast'],
|
|
270
|
+
description: 'Type of message'
|
|
271
|
+
},
|
|
272
|
+
subject: { type: 'string', description: 'Message subject' },
|
|
273
|
+
message: { type: 'object', description: 'Message content (JSON)' },
|
|
274
|
+
priority: { type: 'number', minimum: 1, maximum: 10, description: 'Message priority' },
|
|
275
|
+
blocking: { type: 'boolean', description: 'Should sender wait for response?' },
|
|
276
|
+
related_task_id: { type: 'string', description: 'Related task (optional)' },
|
|
277
|
+
related_file: { type: 'string', description: 'Related file (optional)' },
|
|
278
|
+
project_name: { type: 'string', description: 'Project name' }
|
|
279
|
+
},
|
|
280
|
+
required: ['from_agent_id', 'message_type', 'message']
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
name: 'agent_read_messages',
|
|
285
|
+
description: 'Read messages sent to this agent. Check regularly for coordination!',
|
|
286
|
+
inputSchema: {
|
|
287
|
+
type: 'object',
|
|
288
|
+
properties: {
|
|
289
|
+
agent_id: { type: 'string', description: 'Agent reading messages' },
|
|
290
|
+
unread_only: { type: 'boolean', description: 'Only show unread messages (default true)' },
|
|
291
|
+
message_type: { type: 'string', description: 'Filter by type' },
|
|
292
|
+
limit: { type: 'number', description: 'Max messages to return (default 20)' }
|
|
293
|
+
},
|
|
294
|
+
required: ['agent_id']
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
name: 'agent_mark_message_read',
|
|
299
|
+
description: 'Mark a message as read.',
|
|
300
|
+
inputSchema: {
|
|
301
|
+
type: 'object',
|
|
302
|
+
properties: {
|
|
303
|
+
message_id: { type: 'string', description: 'Message ID' },
|
|
304
|
+
agent_id: { type: 'string', description: 'Agent marking as read' }
|
|
305
|
+
},
|
|
306
|
+
required: ['message_id', 'agent_id']
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
// ═══════════════════════════════════════
|
|
310
|
+
// CONFLICT DETECTION
|
|
311
|
+
// ═══════════════════════════════════════
|
|
312
|
+
{
|
|
313
|
+
name: 'conflict_report',
|
|
314
|
+
description: 'Report a detected conflict between agents (for learning/resolution)',
|
|
315
|
+
inputSchema: {
|
|
316
|
+
type: 'object',
|
|
317
|
+
properties: {
|
|
318
|
+
agent_a_id: { type: 'string', description: 'First agent involved' },
|
|
319
|
+
agent_b_id: { type: 'string', description: 'Second agent involved' },
|
|
320
|
+
conflict_type: {
|
|
321
|
+
type: 'string',
|
|
322
|
+
enum: ['file_edit', 'task_duplicate', 'resource_contention', 'dependency_violation', 'priority_clash', 'custom'],
|
|
323
|
+
description: 'Type of conflict'
|
|
324
|
+
},
|
|
325
|
+
severity: {
|
|
326
|
+
type: 'string',
|
|
327
|
+
enum: ['low', 'medium', 'high', 'critical'],
|
|
328
|
+
description: 'Impact level'
|
|
329
|
+
},
|
|
330
|
+
description: { type: 'string', description: 'What happened' },
|
|
331
|
+
context: { type: 'object', description: 'Additional context (file, task, etc.)' },
|
|
332
|
+
project_name: { type: 'string', description: 'Project name' }
|
|
333
|
+
},
|
|
334
|
+
required: ['agent_a_id', 'agent_b_id', 'conflict_type', 'severity', 'description']
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
name: 'conflict_list_active',
|
|
339
|
+
description: 'List active/unresolved conflicts (for coordinator agents)',
|
|
340
|
+
inputSchema: {
|
|
341
|
+
type: 'object',
|
|
342
|
+
properties: {
|
|
343
|
+
project_name: { type: 'string', description: 'Filter by project' },
|
|
344
|
+
severity: { type: 'string', description: 'Filter by severity' }
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
// ═══════════════════════════════════════
|
|
349
|
+
// COORDINATOR DIRECTIVES
|
|
350
|
+
// ═══════════════════════════════════════
|
|
351
|
+
{
|
|
352
|
+
name: 'coordinator_broadcast_directive',
|
|
353
|
+
description: 'Broadcast a coordination directive to agents (for coordinator agents)',
|
|
354
|
+
inputSchema: {
|
|
355
|
+
type: 'object',
|
|
356
|
+
properties: {
|
|
357
|
+
directive_type: {
|
|
358
|
+
type: 'string',
|
|
359
|
+
enum: ['priority_change', 'agent_reassignment', 'workflow_adjustment', 'conflict_resolution', 'resource_allocation', 'strategy_shift', 'emergency_stop'],
|
|
360
|
+
description: 'Type of directive'
|
|
361
|
+
},
|
|
362
|
+
directive: { type: 'string', description: 'The instruction' },
|
|
363
|
+
reasoning: { type: 'string', description: 'Why this directive is needed' },
|
|
364
|
+
target_agents: {
|
|
365
|
+
type: 'array',
|
|
366
|
+
items: { type: 'string' },
|
|
367
|
+
description: 'Agent IDs to receive this (empty = all)'
|
|
368
|
+
},
|
|
369
|
+
priority: { type: 'number', minimum: 1, maximum: 10, description: 'Directive priority' },
|
|
370
|
+
project_name: { type: 'string', description: 'Project name' }
|
|
371
|
+
},
|
|
372
|
+
required: ['directive_type', 'directive']
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
name: 'coordinator_read_directives',
|
|
377
|
+
description: 'Read directives issued by coordinator (agents should check regularly)',
|
|
378
|
+
inputSchema: {
|
|
379
|
+
type: 'object',
|
|
380
|
+
properties: {
|
|
381
|
+
agent_id: { type: 'string', description: 'Agent reading directives' },
|
|
382
|
+
status: { type: 'string', description: 'Filter by status' },
|
|
383
|
+
project_name: { type: 'string', description: 'Filter by project' }
|
|
384
|
+
},
|
|
385
|
+
required: ['agent_id']
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
];
|
|
389
|
+
//# sourceMappingURL=multi-agent-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-agent-tools.js","sourceRoot":"","sources":["../src/multi-agent-tools.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAaH,+CAA+C;AAC/C,+BAA+B;AAC/B,+CAA+C;AAElC,QAAA,iBAAiB,GAAqB;IACjD,0CAA0C;IAC1C,iBAAiB;IACjB,0CAA0C;IAC1C;QACE,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,sGAAsG;QACnH,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,gDAAgD,EAAE;gBAC3F,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC;oBACpH,WAAW,EAAE,4BAA4B;iBAC1C;gBACD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,gCAAgC,EAAE;gBAC7E,YAAY,EAAE;oBACZ,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,WAAW,EAAE,uEAAuE;iBACrF;gBACD,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,kCAAkC,EAAE;gBACjF,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,0BAA0B,EAAE;aACxE;YACD,QAAQ,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;SACrC;KACF;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,6EAA6E;QAC1F,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UA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
|
1
1
|
{
|
|
2
2
|
"name": "@persistadev/mcp-server",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "MCP server for Persista - AI Memory Infrastructure. Give your AI persistent memory across sessions.",
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"description": "MCP server for Persista - AI Memory Infrastructure + Multi-Agent Coordination. Give your AI persistent memory across sessions and coordinate multiple agents.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"bin": {
|
|
@@ -50,4 +50,4 @@
|
|
|
50
50
|
"tsx": "^4.7.0",
|
|
51
51
|
"typescript": "^5.3.3"
|
|
52
52
|
}
|
|
53
|
-
}
|
|
53
|
+
}
|