hippocampus-mcp 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.
Files changed (70) hide show
  1. package/README.md +284 -0
  2. package/dist/aws/credentials-provider.d.ts +20 -0
  3. package/dist/aws/credentials-provider.d.ts.map +1 -0
  4. package/dist/aws/credentials-provider.js +107 -0
  5. package/dist/aws/credentials-provider.js.map +1 -0
  6. package/dist/config/environment.d.ts +12 -0
  7. package/dist/config/environment.d.ts.map +1 -0
  8. package/dist/config/environment.js +42 -0
  9. package/dist/config/environment.js.map +1 -0
  10. package/dist/config/index.d.ts +2 -0
  11. package/dist/config/index.d.ts.map +1 -0
  12. package/dist/config/index.js +2 -0
  13. package/dist/config/index.js.map +1 -0
  14. package/dist/data/dynamodb-client.d.ts +25 -0
  15. package/dist/data/dynamodb-client.d.ts.map +1 -0
  16. package/dist/data/dynamodb-client.js +107 -0
  17. package/dist/data/dynamodb-client.js.map +1 -0
  18. package/dist/data/entity-manager.d.ts +31 -0
  19. package/dist/data/entity-manager.d.ts.map +1 -0
  20. package/dist/data/entity-manager.js +330 -0
  21. package/dist/data/entity-manager.js.map +1 -0
  22. package/dist/data/models.d.ts +67 -0
  23. package/dist/data/models.d.ts.map +1 -0
  24. package/dist/data/models.js +19 -0
  25. package/dist/data/models.js.map +1 -0
  26. package/dist/data/preference-manager.d.ts +11 -0
  27. package/dist/data/preference-manager.d.ts.map +1 -0
  28. package/dist/data/preference-manager.js +47 -0
  29. package/dist/data/preference-manager.js.map +1 -0
  30. package/dist/data/search-engine.d.ts +19 -0
  31. package/dist/data/search-engine.d.ts.map +1 -0
  32. package/dist/data/search-engine.js +164 -0
  33. package/dist/data/search-engine.js.map +1 -0
  34. package/dist/index.d.ts +3 -0
  35. package/dist/index.d.ts.map +1 -0
  36. package/dist/index.js +105 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/mcp/resource-registry.d.ts +18 -0
  39. package/dist/mcp/resource-registry.d.ts.map +1 -0
  40. package/dist/mcp/resource-registry.js +140 -0
  41. package/dist/mcp/resource-registry.js.map +1 -0
  42. package/dist/mcp/tool-handler.d.ts +37 -0
  43. package/dist/mcp/tool-handler.d.ts.map +1 -0
  44. package/dist/mcp/tool-handler.js +221 -0
  45. package/dist/mcp/tool-handler.js.map +1 -0
  46. package/dist/mcp/tool-registry.d.ts +6 -0
  47. package/dist/mcp/tool-registry.d.ts.map +1 -0
  48. package/dist/mcp/tool-registry.js +619 -0
  49. package/dist/mcp/tool-registry.js.map +1 -0
  50. package/dist/protocol/jsonrpc-handler.d.ts +36 -0
  51. package/dist/protocol/jsonrpc-handler.d.ts.map +1 -0
  52. package/dist/protocol/jsonrpc-handler.js +143 -0
  53. package/dist/protocol/jsonrpc-handler.js.map +1 -0
  54. package/dist/protocol/stdio-handler.d.ts +20 -0
  55. package/dist/protocol/stdio-handler.d.ts.map +1 -0
  56. package/dist/protocol/stdio-handler.js +100 -0
  57. package/dist/protocol/stdio-handler.js.map +1 -0
  58. package/dist/protocol/types.d.ts +38 -0
  59. package/dist/protocol/types.d.ts.map +1 -0
  60. package/dist/protocol/types.js +11 -0
  61. package/dist/protocol/types.js.map +1 -0
  62. package/dist/utils/errors.d.ts +2 -0
  63. package/dist/utils/errors.d.ts.map +1 -0
  64. package/dist/utils/errors.js +2 -0
  65. package/dist/utils/errors.js.map +1 -0
  66. package/dist/utils/logger.d.ts +2 -0
  67. package/dist/utils/logger.d.ts.map +1 -0
  68. package/dist/utils/logger.js +2 -0
  69. package/dist/utils/logger.js.map +1 -0
  70. package/package.json +81 -0
@@ -0,0 +1,619 @@
1
+ const getPreferenceTool = {
2
+ name: 'get_preference',
3
+ description: 'Retrieve a personal preference by key. Returns null if the preference does not exist.',
4
+ inputSchema: {
5
+ type: 'object',
6
+ properties: {
7
+ preference_key: {
8
+ type: 'string',
9
+ description: 'The key of the preference to retrieve (e.g., "communication_style", "development_standards", "work_hours")'
10
+ }
11
+ },
12
+ required: ['preference_key']
13
+ }
14
+ };
15
+ const setPreferenceTool = {
16
+ name: 'set_preference',
17
+ description: 'Set or update a personal preference. Creates a new preference if it does not exist.',
18
+ inputSchema: {
19
+ type: 'object',
20
+ properties: {
21
+ preference_key: {
22
+ type: 'string',
23
+ description: 'The key of the preference to set (e.g., "communication_style", "development_standards", "work_hours")'
24
+ },
25
+ preference_value: {
26
+ type: 'string',
27
+ description: 'The value to store for this preference'
28
+ }
29
+ },
30
+ required: ['preference_key', 'preference_value']
31
+ }
32
+ };
33
+ const listPreferencesTool = {
34
+ name: 'list_preferences',
35
+ description: 'List all stored personal preferences.',
36
+ inputSchema: {
37
+ type: 'object',
38
+ properties: {},
39
+ required: []
40
+ }
41
+ };
42
+ const getPersonTool = {
43
+ name: 'get_person',
44
+ description: 'Retrieve information about a person by ID or name. Returns null if the person is not found.',
45
+ inputSchema: {
46
+ type: 'object',
47
+ properties: {
48
+ person_id: {
49
+ type: 'string',
50
+ description: 'The unique identifier (UUID) of the person'
51
+ },
52
+ person_name: {
53
+ type: 'string',
54
+ description: 'The name of the person to search for'
55
+ }
56
+ },
57
+ required: []
58
+ }
59
+ };
60
+ const addPersonTool = {
61
+ name: 'add_person',
62
+ description: 'Add a new person to the knowledge base with their relationship and contact information.',
63
+ inputSchema: {
64
+ type: 'object',
65
+ properties: {
66
+ name: {
67
+ type: 'string',
68
+ description: 'The name of the person'
69
+ },
70
+ relationship: {
71
+ type: 'string',
72
+ description: 'The relationship to this person (e.g., "colleague", "friend", "family")'
73
+ },
74
+ notes: {
75
+ type: 'string',
76
+ description: 'Additional notes about this person'
77
+ },
78
+ contact_info: {
79
+ type: 'object',
80
+ description: 'Contact information (e.g., {"email": "user@example.com", "phone": "+1234567890"})',
81
+ additionalProperties: {
82
+ type: 'string'
83
+ }
84
+ }
85
+ },
86
+ required: ['name']
87
+ }
88
+ };
89
+ const updatePersonTool = {
90
+ name: 'update_person',
91
+ description: 'Update information about an existing person. Only specified fields will be updated.',
92
+ inputSchema: {
93
+ type: 'object',
94
+ properties: {
95
+ person_id: {
96
+ type: 'string',
97
+ description: 'The unique identifier (UUID) of the person to update'
98
+ },
99
+ name: {
100
+ type: 'string',
101
+ description: 'Updated name'
102
+ },
103
+ relationship: {
104
+ type: 'string',
105
+ description: 'Updated relationship'
106
+ },
107
+ notes: {
108
+ type: 'string',
109
+ description: 'Updated notes'
110
+ },
111
+ contact_info: {
112
+ type: 'object',
113
+ description: 'Updated contact information',
114
+ additionalProperties: {
115
+ type: 'string'
116
+ }
117
+ },
118
+ last_interaction: {
119
+ type: 'string',
120
+ description: 'Date of last interaction (ISO 8601 format)'
121
+ }
122
+ },
123
+ required: ['person_id']
124
+ }
125
+ };
126
+ const searchPeopleTool = {
127
+ name: 'search_people',
128
+ description: 'Search for people by name, relationship, or notes. Returns all matching people.',
129
+ inputSchema: {
130
+ type: 'object',
131
+ properties: {
132
+ query: {
133
+ type: 'string',
134
+ description: 'Search query to match against name, relationship, and notes'
135
+ }
136
+ },
137
+ required: ['query']
138
+ }
139
+ };
140
+ const getEventTool = {
141
+ name: 'get_event',
142
+ description: 'Retrieve information about a specific event by ID. Returns null if the event is not found.',
143
+ inputSchema: {
144
+ type: 'object',
145
+ properties: {
146
+ event_id: {
147
+ type: 'string',
148
+ description: 'The unique identifier (UUID) of the event'
149
+ }
150
+ },
151
+ required: ['event_id']
152
+ }
153
+ };
154
+ const addEventTool = {
155
+ name: 'add_event',
156
+ description: 'Add a new event to the calendar with date, location, and attendees.',
157
+ inputSchema: {
158
+ type: 'object',
159
+ properties: {
160
+ title: {
161
+ type: 'string',
162
+ description: 'The title of the event'
163
+ },
164
+ date: {
165
+ type: 'string',
166
+ description: 'The date and time of the event (ISO 8601 format)'
167
+ },
168
+ location: {
169
+ type: 'string',
170
+ description: 'The location where the event takes place'
171
+ },
172
+ attendees: {
173
+ type: 'array',
174
+ description: 'List of attendee names',
175
+ items: {
176
+ type: 'string'
177
+ }
178
+ },
179
+ notes: {
180
+ type: 'string',
181
+ description: 'Additional notes about the event'
182
+ }
183
+ },
184
+ required: ['title', 'date']
185
+ }
186
+ };
187
+ const listEventsTool = {
188
+ name: 'list_events',
189
+ description: 'List events, optionally filtered by date range.',
190
+ inputSchema: {
191
+ type: 'object',
192
+ properties: {
193
+ start_date: {
194
+ type: 'string',
195
+ description: 'Start of date range (ISO 8601 format, inclusive)'
196
+ },
197
+ end_date: {
198
+ type: 'string',
199
+ description: 'End of date range (ISO 8601 format, inclusive)'
200
+ }
201
+ },
202
+ required: []
203
+ }
204
+ };
205
+ const updateEventTool = {
206
+ name: 'update_event',
207
+ description: 'Update information about an existing event. Only specified fields will be updated.',
208
+ inputSchema: {
209
+ type: 'object',
210
+ properties: {
211
+ event_id: {
212
+ type: 'string',
213
+ description: 'The unique identifier (UUID) of the event to update'
214
+ },
215
+ title: {
216
+ type: 'string',
217
+ description: 'Updated title'
218
+ },
219
+ date: {
220
+ type: 'string',
221
+ description: 'Updated date and time (ISO 8601 format)'
222
+ },
223
+ location: {
224
+ type: 'string',
225
+ description: 'Updated location'
226
+ },
227
+ attendees: {
228
+ type: 'array',
229
+ description: 'Updated list of attendee names',
230
+ items: {
231
+ type: 'string'
232
+ }
233
+ },
234
+ notes: {
235
+ type: 'string',
236
+ description: 'Updated notes'
237
+ }
238
+ },
239
+ required: ['event_id']
240
+ }
241
+ };
242
+ const getTaskTool = {
243
+ name: 'get_task',
244
+ description: 'Retrieve information about a specific task by ID. Returns null if the task is not found.',
245
+ inputSchema: {
246
+ type: 'object',
247
+ properties: {
248
+ task_id: {
249
+ type: 'string',
250
+ description: 'The unique identifier (UUID) of the task'
251
+ }
252
+ },
253
+ required: ['task_id']
254
+ }
255
+ };
256
+ const addTaskTool = {
257
+ name: 'add_task',
258
+ description: 'Add a new task with title, description, priority, due date, and status.',
259
+ inputSchema: {
260
+ type: 'object',
261
+ properties: {
262
+ title: {
263
+ type: 'string',
264
+ description: 'The title of the task'
265
+ },
266
+ description: {
267
+ type: 'string',
268
+ description: 'Detailed description of the task'
269
+ },
270
+ priority: {
271
+ type: 'string',
272
+ description: 'Priority level of the task',
273
+ enum: ['low', 'medium', 'high']
274
+ },
275
+ due_date: {
276
+ type: 'string',
277
+ description: 'Due date for the task (ISO 8601 format)'
278
+ },
279
+ status: {
280
+ type: 'string',
281
+ description: 'Current status of the task',
282
+ enum: ['todo', 'in_progress', 'done']
283
+ }
284
+ },
285
+ required: ['title']
286
+ }
287
+ };
288
+ const listTasksTool = {
289
+ name: 'list_tasks',
290
+ description: 'List tasks, optionally filtered by status and priority.',
291
+ inputSchema: {
292
+ type: 'object',
293
+ properties: {
294
+ status: {
295
+ type: 'string',
296
+ description: 'Filter by task status',
297
+ enum: ['todo', 'in_progress', 'done']
298
+ },
299
+ priority: {
300
+ type: 'string',
301
+ description: 'Filter by task priority',
302
+ enum: ['low', 'medium', 'high']
303
+ }
304
+ },
305
+ required: []
306
+ }
307
+ };
308
+ const updateTaskTool = {
309
+ name: 'update_task',
310
+ description: 'Update information about an existing task. Only specified fields will be updated.',
311
+ inputSchema: {
312
+ type: 'object',
313
+ properties: {
314
+ task_id: {
315
+ type: 'string',
316
+ description: 'The unique identifier (UUID) of the task to update'
317
+ },
318
+ title: {
319
+ type: 'string',
320
+ description: 'Updated title'
321
+ },
322
+ description: {
323
+ type: 'string',
324
+ description: 'Updated description'
325
+ },
326
+ priority: {
327
+ type: 'string',
328
+ description: 'Updated priority level',
329
+ enum: ['low', 'medium', 'high']
330
+ },
331
+ due_date: {
332
+ type: 'string',
333
+ description: 'Updated due date (ISO 8601 format)'
334
+ },
335
+ status: {
336
+ type: 'string',
337
+ description: 'Updated status',
338
+ enum: ['todo', 'in_progress', 'done']
339
+ }
340
+ },
341
+ required: ['task_id']
342
+ }
343
+ };
344
+ const getPlaceTool = {
345
+ name: 'get_place',
346
+ description: 'Retrieve information about a place by ID or name. Returns null if the place is not found.',
347
+ inputSchema: {
348
+ type: 'object',
349
+ properties: {
350
+ place_id: {
351
+ type: 'string',
352
+ description: 'The unique identifier (UUID) of the place'
353
+ },
354
+ place_name: {
355
+ type: 'string',
356
+ description: 'The name of the place to search for'
357
+ }
358
+ },
359
+ required: []
360
+ }
361
+ };
362
+ const addPlaceTool = {
363
+ name: 'add_place',
364
+ description: 'Add a new place with name, address, type, and optional coordinates.',
365
+ inputSchema: {
366
+ type: 'object',
367
+ properties: {
368
+ name: {
369
+ type: 'string',
370
+ description: 'The name of the place'
371
+ },
372
+ address: {
373
+ type: 'string',
374
+ description: 'The physical address of the place'
375
+ },
376
+ type: {
377
+ type: 'string',
378
+ description: 'The type of place (e.g., "restaurant", "office", "home", "park")'
379
+ },
380
+ notes: {
381
+ type: 'string',
382
+ description: 'Additional notes about the place'
383
+ },
384
+ coordinates: {
385
+ type: 'object',
386
+ description: 'Geographic coordinates of the place',
387
+ properties: {
388
+ latitude: {
389
+ type: 'number',
390
+ description: 'Latitude coordinate'
391
+ },
392
+ longitude: {
393
+ type: 'number',
394
+ description: 'Longitude coordinate'
395
+ }
396
+ },
397
+ required: ['latitude', 'longitude']
398
+ }
399
+ },
400
+ required: ['name']
401
+ }
402
+ };
403
+ const searchPlacesTool = {
404
+ name: 'search_places',
405
+ description: 'Search for places by name, address, type, or notes. Returns all matching places.',
406
+ inputSchema: {
407
+ type: 'object',
408
+ properties: {
409
+ query: {
410
+ type: 'string',
411
+ description: 'Search query to match against name, address, type, and notes'
412
+ }
413
+ },
414
+ required: ['query']
415
+ }
416
+ };
417
+ const updatePlaceTool = {
418
+ name: 'update_place',
419
+ description: 'Update information about an existing place. Only specified fields will be updated.',
420
+ inputSchema: {
421
+ type: 'object',
422
+ properties: {
423
+ place_id: {
424
+ type: 'string',
425
+ description: 'The unique identifier (UUID) of the place to update'
426
+ },
427
+ name: {
428
+ type: 'string',
429
+ description: 'Updated name'
430
+ },
431
+ address: {
432
+ type: 'string',
433
+ description: 'Updated address'
434
+ },
435
+ type: {
436
+ type: 'string',
437
+ description: 'Updated type'
438
+ },
439
+ notes: {
440
+ type: 'string',
441
+ description: 'Updated notes'
442
+ },
443
+ coordinates: {
444
+ type: 'object',
445
+ description: 'Updated geographic coordinates',
446
+ properties: {
447
+ latitude: {
448
+ type: 'number',
449
+ description: 'Latitude coordinate'
450
+ },
451
+ longitude: {
452
+ type: 'number',
453
+ description: 'Longitude coordinate'
454
+ }
455
+ },
456
+ required: ['latitude', 'longitude']
457
+ }
458
+ },
459
+ required: ['place_id']
460
+ }
461
+ };
462
+ const getNoteTool = {
463
+ name: 'get_note',
464
+ description: 'Retrieve a specific note by ID. Returns null if the note is not found.',
465
+ inputSchema: {
466
+ type: 'object',
467
+ properties: {
468
+ note_id: {
469
+ type: 'string',
470
+ description: 'The unique identifier (UUID) of the note'
471
+ }
472
+ },
473
+ required: ['note_id']
474
+ }
475
+ };
476
+ const addNoteTool = {
477
+ name: 'add_note',
478
+ description: 'Add a new note with title, content, optional category, and tags. Use categories to organize notes by type: "work_log" for daily work activities and accomplishments, "personal_journal" for personal reflections and thoughts, "meeting_notes" for meeting discussions, "ideas" for brainstorming and creative thoughts, "reference" for documentation and resources, or create custom categories as needed. Combine with tags for additional organization.',
479
+ inputSchema: {
480
+ type: 'object',
481
+ properties: {
482
+ title: {
483
+ type: 'string',
484
+ description: 'The title of the note'
485
+ },
486
+ content: {
487
+ type: 'string',
488
+ description: 'The content of the note'
489
+ },
490
+ category: {
491
+ type: 'string',
492
+ description: 'Category for organizing notes. Suggested: "work_log" (daily work activities), "personal_journal" (personal reflections), "meeting_notes" (meeting discussions), "ideas" (brainstorming), "reference" (documentation), or custom categories'
493
+ },
494
+ tags: {
495
+ type: 'array',
496
+ description: 'Tags for categorizing and searching notes',
497
+ items: {
498
+ type: 'string'
499
+ }
500
+ }
501
+ },
502
+ required: ['title', 'content']
503
+ }
504
+ };
505
+ const listNotesTool = {
506
+ name: 'list_notes',
507
+ description: 'List notes, optionally filtered by category and tags. Filter by category to get specific note types: "work_log" for work activities, "personal_journal" for personal reflections, "meeting_notes" for meetings, "ideas" for brainstorming, "reference" for documentation, or custom categories.',
508
+ inputSchema: {
509
+ type: 'object',
510
+ properties: {
511
+ category: {
512
+ type: 'string',
513
+ description: 'Filter by note category (e.g., "work_log", "personal_journal", "meeting_notes", "ideas", "reference")'
514
+ },
515
+ tags: {
516
+ type: 'array',
517
+ description: 'Filter by tags (returns notes that have any of the specified tags)',
518
+ items: {
519
+ type: 'string'
520
+ }
521
+ }
522
+ },
523
+ required: []
524
+ }
525
+ };
526
+ const updateNoteTool = {
527
+ name: 'update_note',
528
+ description: 'Update an existing note. Only specified fields will be updated.',
529
+ inputSchema: {
530
+ type: 'object',
531
+ properties: {
532
+ note_id: {
533
+ type: 'string',
534
+ description: 'The unique identifier (UUID) of the note to update'
535
+ },
536
+ title: {
537
+ type: 'string',
538
+ description: 'Updated title'
539
+ },
540
+ content: {
541
+ type: 'string',
542
+ description: 'Updated content'
543
+ },
544
+ category: {
545
+ type: 'string',
546
+ description: 'Updated category'
547
+ },
548
+ tags: {
549
+ type: 'array',
550
+ description: 'Updated tags',
551
+ items: {
552
+ type: 'string'
553
+ }
554
+ }
555
+ },
556
+ required: ['note_id']
557
+ }
558
+ };
559
+ const searchAllTool = {
560
+ name: 'search_all',
561
+ description: 'Search across all stored information (people, events, tasks, places, notes, preferences). Returns ranked results with entity type and preview.',
562
+ inputSchema: {
563
+ type: 'object',
564
+ properties: {
565
+ query: {
566
+ type: 'string',
567
+ description: 'Search query to match across all entity types'
568
+ },
569
+ entity_type: {
570
+ type: 'string',
571
+ description: 'Optional filter to search only specific entity type',
572
+ enum: ['preference', 'person', 'event', 'task', 'place', 'note']
573
+ },
574
+ limit: {
575
+ type: 'number',
576
+ description: 'Maximum number of results to return (default: 20)',
577
+ minimum: 1,
578
+ maximum: 100
579
+ }
580
+ },
581
+ required: ['query']
582
+ }
583
+ };
584
+ export const ALL_TOOLS = [
585
+ getPreferenceTool,
586
+ setPreferenceTool,
587
+ listPreferencesTool,
588
+ getPersonTool,
589
+ addPersonTool,
590
+ updatePersonTool,
591
+ searchPeopleTool,
592
+ getEventTool,
593
+ addEventTool,
594
+ listEventsTool,
595
+ updateEventTool,
596
+ getTaskTool,
597
+ addTaskTool,
598
+ listTasksTool,
599
+ updateTaskTool,
600
+ getPlaceTool,
601
+ addPlaceTool,
602
+ searchPlacesTool,
603
+ updatePlaceTool,
604
+ getNoteTool,
605
+ addNoteTool,
606
+ listNotesTool,
607
+ updateNoteTool,
608
+ searchAllTool
609
+ ];
610
+ export function getAllTools() {
611
+ return ALL_TOOLS;
612
+ }
613
+ export function getToolByName(name) {
614
+ return ALL_TOOLS.find(tool => tool.name === name);
615
+ }
616
+ export function getAllToolNames() {
617
+ return ALL_TOOLS.map(tool => tool.name);
618
+ }
619
+ //# sourceMappingURL=tool-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-registry.js","sourceRoot":"","sources":["../../src/mcp/tool-registry.ts"],"names":[],"mappings":"AAiBA,MAAM,iBAAiB,GAAY;IACjC,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,uFAAuF;IACpG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4GAA4G;aAC1H;SACF;QACD,QAAQ,EAAE,CAAC,gBAAgB,CAAC;KAC7B;CACF,CAAC;AAEF,MAAM,iBAAiB,GAAY;IACjC,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,qFAAqF;IAClG,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uGAAuG;aACrH;YACD,gBAAgB,EAAE;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wCAAwC;aACtD;SACF;QACD,QAAQ,EAAE,CAAC,gBAAgB,EAAE,kBAAkB,CAAC;KACjD;CACF,CAAC;AAEF,MAAM,mBAAmB,GAAY;IACnC,IAAI,EAAE,kBAA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,MAAM,UAAU,WAAW;IACzB,OAAO,SAAS,CAAC;AACnB,CAAC;AAQD,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACpD,CAAC;AAOD,MAAM,UAAU,eAAe;IAC7B,OAAO,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { MCPRequest, MCPResponse, MCPTool, MCPResource } from './types';
2
+ export type MethodHandler = (params?: any) => Promise<any>;
3
+ export interface ServerInfo {
4
+ name: string;
5
+ version: string;
6
+ }
7
+ export interface ServerCapabilities {
8
+ tools?: Record<string, any>;
9
+ resources?: Record<string, any>;
10
+ }
11
+ export type ToolExecutor = (toolName: string, params: Record<string, any>) => Promise<any>;
12
+ export type ResourceReader = (uri: string) => Promise<string>;
13
+ export declare class JSONRPCHandler {
14
+ private handlers;
15
+ private serverInfo;
16
+ private capabilities;
17
+ private toolRegistry;
18
+ private resourceRegistry;
19
+ private toolExecutor?;
20
+ private resourceReader?;
21
+ constructor(serverInfo: ServerInfo, capabilities: ServerCapabilities);
22
+ private registerBuiltInMethods;
23
+ setToolRegistry(tools: MCPTool[]): void;
24
+ setResourceRegistry(resources: MCPResource[]): void;
25
+ setToolExecutor(executor: ToolExecutor): void;
26
+ setResourceReader(reader: ResourceReader): void;
27
+ registerMethod(method: string, handler: MethodHandler): void;
28
+ handleRequest(request: MCPRequest): Promise<MCPResponse>;
29
+ private createSuccessResponse;
30
+ private createErrorResponse;
31
+ getRegisteredMethods(): string[];
32
+ hasMethod(method: string): boolean;
33
+ unregisterMethod(method: string): boolean;
34
+ clearHandlers(): void;
35
+ }
36
+ //# sourceMappingURL=jsonrpc-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonrpc-handler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