@justmpm/comunicate 0.1.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/AGENTS.md +518 -0
- package/CLAUDE.md +518 -0
- package/LICENSE +21 -0
- package/README.md +159 -0
- package/dist/cli.d.ts +6 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +117 -0
- package/dist/cli.js.map +1 -0
- package/dist/comunicate/core/auth.d.ts +60 -0
- package/dist/comunicate/core/auth.d.ts.map +1 -0
- package/dist/comunicate/core/auth.js +150 -0
- package/dist/comunicate/core/auth.js.map +1 -0
- package/dist/comunicate/core/domains.d.ts +55 -0
- package/dist/comunicate/core/domains.d.ts.map +1 -0
- package/dist/comunicate/core/domains.js +157 -0
- package/dist/comunicate/core/domains.js.map +1 -0
- package/dist/comunicate/core/index.d.ts +9 -0
- package/dist/comunicate/core/index.d.ts.map +1 -0
- package/dist/comunicate/core/index.js +9 -0
- package/dist/comunicate/core/index.js.map +1 -0
- package/dist/comunicate/core/messaging.d.ts +50 -0
- package/dist/comunicate/core/messaging.d.ts.map +1 -0
- package/dist/comunicate/core/messaging.js +224 -0
- package/dist/comunicate/core/messaging.js.map +1 -0
- package/dist/comunicate/core/notifications.d.ts +26 -0
- package/dist/comunicate/core/notifications.d.ts.map +1 -0
- package/dist/comunicate/core/notifications.js +107 -0
- package/dist/comunicate/core/notifications.js.map +1 -0
- package/dist/comunicate/core/persistence.d.ts +28 -0
- package/dist/comunicate/core/persistence.d.ts.map +1 -0
- package/dist/comunicate/core/persistence.js +113 -0
- package/dist/comunicate/core/persistence.js.map +1 -0
- package/dist/comunicate/index.d.ts +11 -0
- package/dist/comunicate/index.d.ts.map +1 -0
- package/dist/comunicate/index.js +27 -0
- package/dist/comunicate/index.js.map +1 -0
- package/dist/comunicate/types/index.d.ts +5 -0
- package/dist/comunicate/types/index.d.ts.map +1 -0
- package/dist/comunicate/types/index.js +5 -0
- package/dist/comunicate/types/index.js.map +1 -0
- package/dist/comunicate/types/message.d.ts +21 -0
- package/dist/comunicate/types/message.d.ts.map +1 -0
- package/dist/comunicate/types/message.js +5 -0
- package/dist/comunicate/types/message.js.map +1 -0
- package/dist/mcp-server.d.ts +7 -0
- package/dist/mcp-server.d.ts.map +1 -0
- package/dist/mcp-server.js +314 -0
- package/dist/mcp-server.js.map +1 -0
- package/dist/mcp-tools/agent-communication.d.ts +342 -0
- package/dist/mcp-tools/agent-communication.d.ts.map +1 -0
- package/dist/mcp-tools/agent-communication.js +378 -0
- package/dist/mcp-tools/agent-communication.js.map +1 -0
- package/mcp-config.json +15 -0
- package/package.json +44 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* MCP Server - @justmpm/comunicate
|
|
4
|
+
* Model Context Protocol Server para comunicação entre agentes
|
|
5
|
+
*/
|
|
6
|
+
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
7
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
8
|
+
import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js';
|
|
9
|
+
import { sendAgentMessageHandler, getAgentMessagesHandler, getUnreadCountHandler, deleteMessageHandler, clearReadMessagesHandler, claimFileHandler, renewClaimHandler, releaseFileHandler, canEditFileHandler, getAgentClaimsHandler, getAllClaimsHandler, createAgentHandler, listAgentsHandler, getInactiveAgentsHandler } from './mcp-tools/agent-communication.js';
|
|
10
|
+
import { VERSION } from './comunicate/index.js';
|
|
11
|
+
// ============================================================================
|
|
12
|
+
// Definição das Tools
|
|
13
|
+
// ============================================================================
|
|
14
|
+
const TOOLS = [
|
|
15
|
+
{
|
|
16
|
+
name: 'send_agent_message',
|
|
17
|
+
description: 'Envia uma mensagem para outro agente',
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
token: { type: 'string', description: 'Token de autenticação do remetente' },
|
|
22
|
+
recipientId: { type: 'string', description: 'ID do agente destinatário' },
|
|
23
|
+
message: { type: 'string', description: 'Conteúdo da mensagem (max 4000 chars)' },
|
|
24
|
+
type: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
enum: ['text', 'assistance_request', 'task_update', 'notification'],
|
|
27
|
+
description: 'Tipo da mensagem',
|
|
28
|
+
default: 'text'
|
|
29
|
+
},
|
|
30
|
+
priority: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
enum: ['low', 'normal', 'high', 'urgent'],
|
|
33
|
+
description: 'Prioridade da mensagem',
|
|
34
|
+
default: 'normal'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
required: ['token', 'recipientId', 'message']
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'get_agent_messages',
|
|
42
|
+
description: 'Lê mensagens da inbox do agente',
|
|
43
|
+
inputSchema: {
|
|
44
|
+
type: 'object',
|
|
45
|
+
properties: {
|
|
46
|
+
token: { type: 'string', description: 'Token de autenticação' },
|
|
47
|
+
includeRead: {
|
|
48
|
+
type: 'boolean',
|
|
49
|
+
description: 'Incluir mensagens já lidas',
|
|
50
|
+
default: false
|
|
51
|
+
},
|
|
52
|
+
markAsRead: {
|
|
53
|
+
type: 'boolean',
|
|
54
|
+
description: 'Marcar mensagens como lidas ao ler',
|
|
55
|
+
default: true
|
|
56
|
+
},
|
|
57
|
+
limit: {
|
|
58
|
+
type: 'number',
|
|
59
|
+
description: 'Limite de mensagens (1-50)',
|
|
60
|
+
default: 10,
|
|
61
|
+
minimum: 1,
|
|
62
|
+
maximum: 50
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
required: ['token']
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'get_unread_count',
|
|
70
|
+
description: 'Retorna o número de mensagens não lidas',
|
|
71
|
+
inputSchema: {
|
|
72
|
+
type: 'object',
|
|
73
|
+
properties: {
|
|
74
|
+
token: { type: 'string', description: 'Token de autenticação' }
|
|
75
|
+
},
|
|
76
|
+
required: ['token']
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'delete_message',
|
|
81
|
+
description: 'Deleta uma mensagem específica',
|
|
82
|
+
inputSchema: {
|
|
83
|
+
type: 'object',
|
|
84
|
+
properties: {
|
|
85
|
+
token: { type: 'string', description: 'Token de autenticação' },
|
|
86
|
+
messageId: { type: 'string', description: 'ID da mensagem a deletar' }
|
|
87
|
+
},
|
|
88
|
+
required: ['token', 'messageId']
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'clear_read_messages',
|
|
93
|
+
description: 'Remove todas as mensagens lidas da inbox',
|
|
94
|
+
inputSchema: {
|
|
95
|
+
type: 'object',
|
|
96
|
+
properties: {
|
|
97
|
+
token: { type: 'string', description: 'Token de autenticação' }
|
|
98
|
+
},
|
|
99
|
+
required: ['token']
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'claim_file',
|
|
104
|
+
description: 'Reserva um arquivo para edição (quando fora do domínio)',
|
|
105
|
+
inputSchema: {
|
|
106
|
+
type: 'object',
|
|
107
|
+
properties: {
|
|
108
|
+
token: { type: 'string', description: 'Token de autenticação' },
|
|
109
|
+
filePath: { type: 'string', description: 'Caminho do arquivo a reservar' },
|
|
110
|
+
durationMinutes: {
|
|
111
|
+
type: 'number',
|
|
112
|
+
description: 'Duração da reserva em minutos (1-60)',
|
|
113
|
+
default: 15,
|
|
114
|
+
minimum: 1,
|
|
115
|
+
maximum: 60
|
|
116
|
+
},
|
|
117
|
+
reason: {
|
|
118
|
+
type: 'string',
|
|
119
|
+
description: 'Motivo da reserva (opcional)'
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
required: ['token', 'filePath']
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'renew_claim',
|
|
127
|
+
description: 'Renova um claim existente que está prestes a expirar',
|
|
128
|
+
inputSchema: {
|
|
129
|
+
type: 'object',
|
|
130
|
+
properties: {
|
|
131
|
+
token: { type: 'string', description: 'Token de autenticação' },
|
|
132
|
+
filePath: { type: 'string', description: 'Caminho do arquivo' },
|
|
133
|
+
additionalMinutes: {
|
|
134
|
+
type: 'number',
|
|
135
|
+
description: 'Tempo adicional em minutos (1-60)',
|
|
136
|
+
default: 15,
|
|
137
|
+
minimum: 1,
|
|
138
|
+
maximum: 60
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
required: ['token', 'filePath']
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'release_file',
|
|
146
|
+
description: 'Libera um arquivo reservado',
|
|
147
|
+
inputSchema: {
|
|
148
|
+
type: 'object',
|
|
149
|
+
properties: {
|
|
150
|
+
token: { type: 'string', description: 'Token de autenticação' },
|
|
151
|
+
filePath: { type: 'string', description: 'Caminho do arquivo a liberar' }
|
|
152
|
+
},
|
|
153
|
+
required: ['token', 'filePath']
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'can_edit_file',
|
|
158
|
+
description: 'Verifica se o agente pode editar um arquivo',
|
|
159
|
+
inputSchema: {
|
|
160
|
+
type: 'object',
|
|
161
|
+
properties: {
|
|
162
|
+
token: { type: 'string', description: 'Token de autenticação' },
|
|
163
|
+
filePath: { type: 'string', description: 'Caminho do arquivo a verificar' }
|
|
164
|
+
},
|
|
165
|
+
required: ['token', 'filePath']
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'get_agent_claims',
|
|
170
|
+
description: 'Lista todos os claims ativos do agente',
|
|
171
|
+
inputSchema: {
|
|
172
|
+
type: 'object',
|
|
173
|
+
properties: {
|
|
174
|
+
token: { type: 'string', description: 'Token de autenticação' }
|
|
175
|
+
},
|
|
176
|
+
required: ['token']
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: 'get_all_claims',
|
|
181
|
+
description: 'Lista todos os claims ativos no sistema (admin only)',
|
|
182
|
+
inputSchema: {
|
|
183
|
+
type: 'object',
|
|
184
|
+
properties: {
|
|
185
|
+
adminToken: { type: 'string', description: 'Token de administrador' }
|
|
186
|
+
},
|
|
187
|
+
required: ['adminToken']
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'create_agent',
|
|
192
|
+
description: 'Cria um novo agente (admin only)',
|
|
193
|
+
inputSchema: {
|
|
194
|
+
type: 'object',
|
|
195
|
+
properties: {
|
|
196
|
+
adminToken: { type: 'string', description: 'Token de admin' },
|
|
197
|
+
agentId: {
|
|
198
|
+
type: 'string',
|
|
199
|
+
pattern: '^[a-z0-9-]+$',
|
|
200
|
+
description: 'ID do agente (ex: backend-worker)'
|
|
201
|
+
},
|
|
202
|
+
capabilities: {
|
|
203
|
+
type: 'array',
|
|
204
|
+
items: { type: 'string' },
|
|
205
|
+
description: 'Capacidades (ex: ["api", "auth"])'
|
|
206
|
+
},
|
|
207
|
+
domains: {
|
|
208
|
+
type: 'array',
|
|
209
|
+
items: { type: 'string' },
|
|
210
|
+
description: 'Domínios permitidos (ex: ["src/api"])'
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
required: ['adminToken', 'agentId', 'capabilities', 'domains']
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: 'list_agents',
|
|
218
|
+
description: 'Lista todos os agentes registrados (admin only)',
|
|
219
|
+
inputSchema: {
|
|
220
|
+
type: 'object',
|
|
221
|
+
properties: {
|
|
222
|
+
adminToken: { type: 'string', description: 'Token de administrador' }
|
|
223
|
+
},
|
|
224
|
+
required: ['adminToken']
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: 'get_inactive_agents',
|
|
229
|
+
description: 'Lista agentes inativos (sem heartbeat) (admin only)',
|
|
230
|
+
inputSchema: {
|
|
231
|
+
type: 'object',
|
|
232
|
+
properties: {
|
|
233
|
+
adminToken: { type: 'string', description: 'Token de administrador' },
|
|
234
|
+
timeoutMinutes: {
|
|
235
|
+
type: 'number',
|
|
236
|
+
description: 'Tempo de inatividade em minutos',
|
|
237
|
+
default: 5,
|
|
238
|
+
minimum: 1,
|
|
239
|
+
maximum: 60
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
required: ['adminToken']
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
];
|
|
246
|
+
// ============================================================================
|
|
247
|
+
// Mapeamento de handlers
|
|
248
|
+
// ============================================================================
|
|
249
|
+
const handlers = {
|
|
250
|
+
send_agent_message: sendAgentMessageHandler,
|
|
251
|
+
get_agent_messages: getAgentMessagesHandler,
|
|
252
|
+
get_unread_count: getUnreadCountHandler,
|
|
253
|
+
delete_message: deleteMessageHandler,
|
|
254
|
+
clear_read_messages: clearReadMessagesHandler,
|
|
255
|
+
claim_file: claimFileHandler,
|
|
256
|
+
renew_claim: renewClaimHandler,
|
|
257
|
+
release_file: releaseFileHandler,
|
|
258
|
+
can_edit_file: canEditFileHandler,
|
|
259
|
+
get_agent_claims: getAgentClaimsHandler,
|
|
260
|
+
get_all_claims: getAllClaimsHandler,
|
|
261
|
+
create_agent: createAgentHandler,
|
|
262
|
+
list_agents: listAgentsHandler,
|
|
263
|
+
get_inactive_agents: getInactiveAgentsHandler
|
|
264
|
+
};
|
|
265
|
+
// ============================================================================
|
|
266
|
+
// Server Setup
|
|
267
|
+
// ============================================================================
|
|
268
|
+
const server = new Server({
|
|
269
|
+
name: '@justmpm/comunicate',
|
|
270
|
+
version: VERSION
|
|
271
|
+
}, {
|
|
272
|
+
capabilities: {
|
|
273
|
+
tools: {}
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
// List available tools
|
|
277
|
+
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
278
|
+
return { tools: TOOLS };
|
|
279
|
+
});
|
|
280
|
+
// Handle tool calls
|
|
281
|
+
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
282
|
+
const { name, arguments: args } = request.params;
|
|
283
|
+
const handler = handlers[name];
|
|
284
|
+
if (!handler) {
|
|
285
|
+
throw new Error(`Tool desconhecida: ${name}`);
|
|
286
|
+
}
|
|
287
|
+
try {
|
|
288
|
+
return await handler(args);
|
|
289
|
+
}
|
|
290
|
+
catch (error) {
|
|
291
|
+
return {
|
|
292
|
+
content: [
|
|
293
|
+
{
|
|
294
|
+
type: 'text',
|
|
295
|
+
text: `❌ Erro interno: ${error instanceof Error ? error.message : String(error)}`
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
isError: true
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
// ============================================================================
|
|
303
|
+
// Start Server
|
|
304
|
+
// ============================================================================
|
|
305
|
+
async function main() {
|
|
306
|
+
const transport = new StdioServerTransport();
|
|
307
|
+
await server.connect(transport);
|
|
308
|
+
console.error(`@justmpm/comunicate v${VERSION} rodando via stdio`);
|
|
309
|
+
}
|
|
310
|
+
main().catch((error) => {
|
|
311
|
+
console.error('Erro fatal:', error);
|
|
312
|
+
process.exit(1);
|
|
313
|
+
});
|
|
314
|
+
//# sourceMappingURL=mcp-server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["../src/mcp-server.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EAEvB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAk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AAC,MAAM,CAAC,KAAK,CAAC,EAAE;iBAClF;aACF;YACD,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E,KAAK,UAAU,IAAI;IACjB,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,wBAAwB,OAAO,oBAAoB,CAAC,CAAC;AACrE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;IACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Tools para comunicação entre agentes
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
export declare const SendMessageSchema: z.ZodObject<{
|
|
6
|
+
token: z.ZodString;
|
|
7
|
+
recipientId: z.ZodString;
|
|
8
|
+
message: z.ZodString;
|
|
9
|
+
type: z.ZodDefault<z.ZodEnum<["text", "assistance_request", "task_update", "notification"]>>;
|
|
10
|
+
priority: z.ZodDefault<z.ZodEnum<["low", "normal", "high", "urgent"]>>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
token: string;
|
|
13
|
+
recipientId: string;
|
|
14
|
+
message: string;
|
|
15
|
+
type: "text" | "assistance_request" | "task_update" | "notification";
|
|
16
|
+
priority: "low" | "normal" | "high" | "urgent";
|
|
17
|
+
}, {
|
|
18
|
+
token: string;
|
|
19
|
+
recipientId: string;
|
|
20
|
+
message: string;
|
|
21
|
+
type?: "text" | "assistance_request" | "task_update" | "notification" | undefined;
|
|
22
|
+
priority?: "low" | "normal" | "high" | "urgent" | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const GetMessagesSchema: z.ZodObject<{
|
|
25
|
+
token: z.ZodString;
|
|
26
|
+
includeRead: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
+
markAsRead: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
token: string;
|
|
31
|
+
includeRead: boolean;
|
|
32
|
+
markAsRead: boolean;
|
|
33
|
+
limit: number;
|
|
34
|
+
}, {
|
|
35
|
+
token: string;
|
|
36
|
+
includeRead?: boolean | undefined;
|
|
37
|
+
markAsRead?: boolean | undefined;
|
|
38
|
+
limit?: number | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
export declare const GetUnreadCountSchema: z.ZodObject<{
|
|
41
|
+
token: z.ZodString;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
token: string;
|
|
44
|
+
}, {
|
|
45
|
+
token: string;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const DeleteMessageSchema: z.ZodObject<{
|
|
48
|
+
token: z.ZodString;
|
|
49
|
+
messageId: z.ZodString;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
token: string;
|
|
52
|
+
messageId: string;
|
|
53
|
+
}, {
|
|
54
|
+
token: string;
|
|
55
|
+
messageId: string;
|
|
56
|
+
}>;
|
|
57
|
+
export declare const ClearReadMessagesSchema: z.ZodObject<{
|
|
58
|
+
token: z.ZodString;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
token: string;
|
|
61
|
+
}, {
|
|
62
|
+
token: string;
|
|
63
|
+
}>;
|
|
64
|
+
export declare const ClaimFileSchema: z.ZodObject<{
|
|
65
|
+
token: z.ZodString;
|
|
66
|
+
filePath: z.ZodString;
|
|
67
|
+
durationMinutes: z.ZodDefault<z.ZodNumber>;
|
|
68
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
token: string;
|
|
71
|
+
filePath: string;
|
|
72
|
+
durationMinutes: number;
|
|
73
|
+
reason?: string | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
token: string;
|
|
76
|
+
filePath: string;
|
|
77
|
+
durationMinutes?: number | undefined;
|
|
78
|
+
reason?: string | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
export declare const RenewClaimSchema: z.ZodObject<{
|
|
81
|
+
token: z.ZodString;
|
|
82
|
+
filePath: z.ZodString;
|
|
83
|
+
additionalMinutes: z.ZodDefault<z.ZodNumber>;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
token: string;
|
|
86
|
+
filePath: string;
|
|
87
|
+
additionalMinutes: number;
|
|
88
|
+
}, {
|
|
89
|
+
token: string;
|
|
90
|
+
filePath: string;
|
|
91
|
+
additionalMinutes?: number | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
export declare const ReleaseFileSchema: z.ZodObject<{
|
|
94
|
+
token: z.ZodString;
|
|
95
|
+
filePath: z.ZodString;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
token: string;
|
|
98
|
+
filePath: string;
|
|
99
|
+
}, {
|
|
100
|
+
token: string;
|
|
101
|
+
filePath: string;
|
|
102
|
+
}>;
|
|
103
|
+
export declare const CanEditFileSchema: z.ZodObject<{
|
|
104
|
+
token: z.ZodString;
|
|
105
|
+
filePath: z.ZodString;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
token: string;
|
|
108
|
+
filePath: string;
|
|
109
|
+
}, {
|
|
110
|
+
token: string;
|
|
111
|
+
filePath: string;
|
|
112
|
+
}>;
|
|
113
|
+
export declare const GetAgentClaimsSchema: z.ZodObject<{
|
|
114
|
+
token: z.ZodString;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
token: string;
|
|
117
|
+
}, {
|
|
118
|
+
token: string;
|
|
119
|
+
}>;
|
|
120
|
+
export declare const GetAllClaimsSchema: z.ZodObject<{
|
|
121
|
+
adminToken: z.ZodString;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
adminToken: string;
|
|
124
|
+
}, {
|
|
125
|
+
adminToken: string;
|
|
126
|
+
}>;
|
|
127
|
+
export declare const CreateAgentSchema: z.ZodObject<{
|
|
128
|
+
adminToken: z.ZodString;
|
|
129
|
+
agentId: z.ZodString;
|
|
130
|
+
capabilities: z.ZodArray<z.ZodString, "many">;
|
|
131
|
+
domains: z.ZodArray<z.ZodString, "many">;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
adminToken: string;
|
|
134
|
+
agentId: string;
|
|
135
|
+
capabilities: string[];
|
|
136
|
+
domains: string[];
|
|
137
|
+
}, {
|
|
138
|
+
adminToken: string;
|
|
139
|
+
agentId: string;
|
|
140
|
+
capabilities: string[];
|
|
141
|
+
domains: string[];
|
|
142
|
+
}>;
|
|
143
|
+
export declare const ListAgentsSchema: z.ZodObject<{
|
|
144
|
+
adminToken: z.ZodString;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
adminToken: string;
|
|
147
|
+
}, {
|
|
148
|
+
adminToken: string;
|
|
149
|
+
}>;
|
|
150
|
+
export declare const GetInactiveAgentsSchema: z.ZodObject<{
|
|
151
|
+
adminToken: z.ZodString;
|
|
152
|
+
timeoutMinutes: z.ZodDefault<z.ZodNumber>;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
adminToken: string;
|
|
155
|
+
timeoutMinutes: number;
|
|
156
|
+
}, {
|
|
157
|
+
adminToken: string;
|
|
158
|
+
timeoutMinutes?: number | undefined;
|
|
159
|
+
}>;
|
|
160
|
+
export declare function sendAgentMessageHandler(input: z.infer<typeof SendMessageSchema>): Promise<{
|
|
161
|
+
content: {
|
|
162
|
+
type: "text";
|
|
163
|
+
text: string;
|
|
164
|
+
}[];
|
|
165
|
+
isError: boolean;
|
|
166
|
+
} | {
|
|
167
|
+
content: {
|
|
168
|
+
type: "text";
|
|
169
|
+
text: string;
|
|
170
|
+
}[];
|
|
171
|
+
isError?: undefined;
|
|
172
|
+
}>;
|
|
173
|
+
export declare function getAgentMessagesHandler(input: z.infer<typeof GetMessagesSchema>): Promise<{
|
|
174
|
+
content: {
|
|
175
|
+
type: "text";
|
|
176
|
+
text: string;
|
|
177
|
+
}[];
|
|
178
|
+
isError: boolean;
|
|
179
|
+
} | {
|
|
180
|
+
content: {
|
|
181
|
+
type: "text";
|
|
182
|
+
text: string;
|
|
183
|
+
}[];
|
|
184
|
+
isError?: undefined;
|
|
185
|
+
}>;
|
|
186
|
+
export declare function getUnreadCountHandler(input: z.infer<typeof GetUnreadCountSchema>): Promise<{
|
|
187
|
+
content: {
|
|
188
|
+
type: "text";
|
|
189
|
+
text: string;
|
|
190
|
+
}[];
|
|
191
|
+
isError: boolean;
|
|
192
|
+
} | {
|
|
193
|
+
content: {
|
|
194
|
+
type: "text";
|
|
195
|
+
text: string;
|
|
196
|
+
}[];
|
|
197
|
+
isError?: undefined;
|
|
198
|
+
}>;
|
|
199
|
+
export declare function deleteMessageHandler(input: z.infer<typeof DeleteMessageSchema>): Promise<{
|
|
200
|
+
content: {
|
|
201
|
+
type: "text";
|
|
202
|
+
text: string;
|
|
203
|
+
}[];
|
|
204
|
+
isError: boolean;
|
|
205
|
+
} | {
|
|
206
|
+
content: {
|
|
207
|
+
type: "text";
|
|
208
|
+
text: string;
|
|
209
|
+
}[];
|
|
210
|
+
isError?: undefined;
|
|
211
|
+
}>;
|
|
212
|
+
export declare function clearReadMessagesHandler(input: z.infer<typeof ClearReadMessagesSchema>): Promise<{
|
|
213
|
+
content: {
|
|
214
|
+
type: "text";
|
|
215
|
+
text: string;
|
|
216
|
+
}[];
|
|
217
|
+
isError: boolean;
|
|
218
|
+
} | {
|
|
219
|
+
content: {
|
|
220
|
+
type: "text";
|
|
221
|
+
text: string;
|
|
222
|
+
}[];
|
|
223
|
+
isError?: undefined;
|
|
224
|
+
}>;
|
|
225
|
+
export declare function claimFileHandler(input: z.infer<typeof ClaimFileSchema>): Promise<{
|
|
226
|
+
content: {
|
|
227
|
+
type: "text";
|
|
228
|
+
text: string;
|
|
229
|
+
}[];
|
|
230
|
+
isError: boolean;
|
|
231
|
+
} | {
|
|
232
|
+
content: {
|
|
233
|
+
type: "text";
|
|
234
|
+
text: string;
|
|
235
|
+
}[];
|
|
236
|
+
isError?: undefined;
|
|
237
|
+
}>;
|
|
238
|
+
export declare function renewClaimHandler(input: z.infer<typeof RenewClaimSchema>): Promise<{
|
|
239
|
+
content: {
|
|
240
|
+
type: "text";
|
|
241
|
+
text: string;
|
|
242
|
+
}[];
|
|
243
|
+
isError: boolean;
|
|
244
|
+
} | {
|
|
245
|
+
content: {
|
|
246
|
+
type: "text";
|
|
247
|
+
text: string;
|
|
248
|
+
}[];
|
|
249
|
+
isError?: undefined;
|
|
250
|
+
}>;
|
|
251
|
+
export declare function releaseFileHandler(input: z.infer<typeof ReleaseFileSchema>): Promise<{
|
|
252
|
+
content: {
|
|
253
|
+
type: "text";
|
|
254
|
+
text: string;
|
|
255
|
+
}[];
|
|
256
|
+
isError: boolean;
|
|
257
|
+
} | {
|
|
258
|
+
content: {
|
|
259
|
+
type: "text";
|
|
260
|
+
text: string;
|
|
261
|
+
}[];
|
|
262
|
+
isError?: undefined;
|
|
263
|
+
}>;
|
|
264
|
+
export declare function canEditFileHandler(input: z.infer<typeof CanEditFileSchema>): Promise<{
|
|
265
|
+
content: {
|
|
266
|
+
type: "text";
|
|
267
|
+
text: string;
|
|
268
|
+
}[];
|
|
269
|
+
isError: boolean;
|
|
270
|
+
} | {
|
|
271
|
+
content: {
|
|
272
|
+
type: "text";
|
|
273
|
+
text: string;
|
|
274
|
+
}[];
|
|
275
|
+
isError?: undefined;
|
|
276
|
+
}>;
|
|
277
|
+
export declare function getAgentClaimsHandler(input: z.infer<typeof GetAgentClaimsSchema>): Promise<{
|
|
278
|
+
content: {
|
|
279
|
+
type: "text";
|
|
280
|
+
text: string;
|
|
281
|
+
}[];
|
|
282
|
+
isError: boolean;
|
|
283
|
+
} | {
|
|
284
|
+
content: {
|
|
285
|
+
type: "text";
|
|
286
|
+
text: string;
|
|
287
|
+
}[];
|
|
288
|
+
isError?: undefined;
|
|
289
|
+
}>;
|
|
290
|
+
export declare function getAllClaimsHandler(input: z.infer<typeof GetAllClaimsSchema>): Promise<{
|
|
291
|
+
content: {
|
|
292
|
+
type: "text";
|
|
293
|
+
text: string;
|
|
294
|
+
}[];
|
|
295
|
+
isError: boolean;
|
|
296
|
+
} | {
|
|
297
|
+
content: {
|
|
298
|
+
type: "text";
|
|
299
|
+
text: string;
|
|
300
|
+
}[];
|
|
301
|
+
isError?: undefined;
|
|
302
|
+
}>;
|
|
303
|
+
export declare function createAgentHandler(input: z.infer<typeof CreateAgentSchema>): Promise<{
|
|
304
|
+
content: {
|
|
305
|
+
type: "text";
|
|
306
|
+
text: string;
|
|
307
|
+
}[];
|
|
308
|
+
isError: boolean;
|
|
309
|
+
} | {
|
|
310
|
+
content: {
|
|
311
|
+
type: "text";
|
|
312
|
+
text: string;
|
|
313
|
+
}[];
|
|
314
|
+
isError?: undefined;
|
|
315
|
+
}>;
|
|
316
|
+
export declare function listAgentsHandler(input: z.infer<typeof ListAgentsSchema>): Promise<{
|
|
317
|
+
content: {
|
|
318
|
+
type: "text";
|
|
319
|
+
text: string;
|
|
320
|
+
}[];
|
|
321
|
+
isError: boolean;
|
|
322
|
+
} | {
|
|
323
|
+
content: {
|
|
324
|
+
type: "text";
|
|
325
|
+
text: string;
|
|
326
|
+
}[];
|
|
327
|
+
isError?: undefined;
|
|
328
|
+
}>;
|
|
329
|
+
export declare function getInactiveAgentsHandler(input: z.infer<typeof GetInactiveAgentsSchema>): Promise<{
|
|
330
|
+
content: {
|
|
331
|
+
type: "text";
|
|
332
|
+
text: string;
|
|
333
|
+
}[];
|
|
334
|
+
isError: boolean;
|
|
335
|
+
} | {
|
|
336
|
+
content: {
|
|
337
|
+
type: "text";
|
|
338
|
+
text: string;
|
|
339
|
+
}[];
|
|
340
|
+
isError?: undefined;
|
|
341
|
+
}>;
|
|
342
|
+
//# sourceMappingURL=agent-communication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-communication.d.ts","sourceRoot":"","sources":["../../src/mcp-tools/agent-communication.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6BxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAK1B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,CAAC;AAMH,wBAAsB,uBAAuB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC;;;;;;;;;;;;GAkBrF;AAED,wBAAsB,uBAAuB,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,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