mcp-grampsweb 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 (67) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +133 -0
  3. package/dist/auth.d.ts +37 -0
  4. package/dist/auth.d.ts.map +1 -0
  5. package/dist/auth.js +119 -0
  6. package/dist/auth.js.map +1 -0
  7. package/dist/client.d.ts +44 -0
  8. package/dist/client.d.ts.map +1 -0
  9. package/dist/client.js +153 -0
  10. package/dist/client.js.map +1 -0
  11. package/dist/config.d.ts +11 -0
  12. package/dist/config.d.ts.map +1 -0
  13. package/dist/config.js +32 -0
  14. package/dist/config.js.map +1 -0
  15. package/dist/constants.d.ts +24 -0
  16. package/dist/constants.d.ts.map +1 -0
  17. package/dist/constants.js +50 -0
  18. package/dist/constants.js.map +1 -0
  19. package/dist/index.d.ts +9 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +132 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/schemas/common.d.ts +308 -0
  24. package/dist/schemas/common.d.ts.map +1 -0
  25. package/dist/schemas/common.js +120 -0
  26. package/dist/schemas/common.js.map +1 -0
  27. package/dist/schemas/entities.d.ts +1165 -0
  28. package/dist/schemas/entities.d.ts.map +1 -0
  29. package/dist/schemas/entities.js +125 -0
  30. package/dist/schemas/entities.js.map +1 -0
  31. package/dist/schemas/index.d.ts +7 -0
  32. package/dist/schemas/index.d.ts.map +1 -0
  33. package/dist/schemas/index.js +7 -0
  34. package/dist/schemas/index.js.map +1 -0
  35. package/dist/schemas/search.d.ts +47 -0
  36. package/dist/schemas/search.d.ts.map +1 -0
  37. package/dist/schemas/search.js +24 -0
  38. package/dist/schemas/search.js.map +1 -0
  39. package/dist/tools/analysis.d.ts +115 -0
  40. package/dist/tools/analysis.d.ts.map +1 -0
  41. package/dist/tools/analysis.js +387 -0
  42. package/dist/tools/analysis.js.map +1 -0
  43. package/dist/tools/create.d.ts +355 -0
  44. package/dist/tools/create.d.ts.map +1 -0
  45. package/dist/tools/create.js +547 -0
  46. package/dist/tools/create.js.map +1 -0
  47. package/dist/tools/index.d.ts +468 -0
  48. package/dist/tools/index.d.ts.map +1 -0
  49. package/dist/tools/index.js +17 -0
  50. package/dist/tools/index.js.map +1 -0
  51. package/dist/tools/search.d.ts +95 -0
  52. package/dist/tools/search.d.ts.map +1 -0
  53. package/dist/tools/search.js +161 -0
  54. package/dist/tools/search.js.map +1 -0
  55. package/dist/types.d.ts +210 -0
  56. package/dist/types.d.ts.map +1 -0
  57. package/dist/types.js +5 -0
  58. package/dist/types.js.map +1 -0
  59. package/dist/utils/errors.d.ts +19 -0
  60. package/dist/utils/errors.d.ts.map +1 -0
  61. package/dist/utils/errors.js +48 -0
  62. package/dist/utils/errors.js.map +1 -0
  63. package/dist/utils/formatting.d.ts +60 -0
  64. package/dist/utils/formatting.d.ts.map +1 -0
  65. package/dist/utils/formatting.js +256 -0
  66. package/dist/utils/formatting.js.map +1 -0
  67. package/package.json +48 -0
@@ -0,0 +1,355 @@
1
+ /**
2
+ * Entity creation tools
3
+ */
4
+ import { z } from "zod";
5
+ import { createPersonSchema, createFamilySchema, createEventSchema, createPlaceSchema, createSourceSchema, createCitationSchema, createNoteSchema, createMediaSchema, createRepositorySchema } from "../schemas/entities.js";
6
+ /**
7
+ * Create a person
8
+ */
9
+ export declare function grampsCreatePerson(params: z.infer<typeof createPersonSchema>): Promise<string>;
10
+ /**
11
+ * Create a family
12
+ */
13
+ export declare function grampsCreateFamily(params: z.infer<typeof createFamilySchema>): Promise<string>;
14
+ /**
15
+ * Create an event
16
+ */
17
+ export declare function grampsCreateEvent(params: z.infer<typeof createEventSchema>): Promise<string>;
18
+ /**
19
+ * Create a place
20
+ */
21
+ export declare function grampsCreatePlace(params: z.infer<typeof createPlaceSchema>): Promise<string>;
22
+ /**
23
+ * Create a source
24
+ */
25
+ export declare function grampsCreateSource(params: z.infer<typeof createSourceSchema>): Promise<string>;
26
+ /**
27
+ * Create a citation
28
+ */
29
+ export declare function grampsCreateCitation(params: z.infer<typeof createCitationSchema>): Promise<string>;
30
+ /**
31
+ * Create a note
32
+ */
33
+ export declare function grampsCreateNote(params: z.infer<typeof createNoteSchema>): Promise<string>;
34
+ /**
35
+ * Create a media object
36
+ */
37
+ export declare function grampsCreateMedia(params: z.infer<typeof createMediaSchema>): Promise<string>;
38
+ /**
39
+ * Create a repository
40
+ */
41
+ export declare function grampsCreateRepository(params: z.infer<typeof createRepositorySchema>): Promise<string>;
42
+ export declare const createTools: {
43
+ gramps_create_person: {
44
+ name: string;
45
+ description: string;
46
+ inputSchema: {
47
+ type: "object";
48
+ properties: {
49
+ gramps_id: {
50
+ type: string;
51
+ description: string;
52
+ };
53
+ primary_name: {
54
+ type: string;
55
+ description: string;
56
+ properties: {
57
+ first_name: {
58
+ type: string;
59
+ };
60
+ surname: {
61
+ type: string;
62
+ };
63
+ suffix: {
64
+ type: string;
65
+ };
66
+ title: {
67
+ type: string;
68
+ };
69
+ };
70
+ };
71
+ gender: {
72
+ type: string;
73
+ enum: string[];
74
+ description: string;
75
+ };
76
+ private: {
77
+ type: string;
78
+ description: string;
79
+ };
80
+ };
81
+ required: string[];
82
+ };
83
+ handler: typeof grampsCreatePerson;
84
+ };
85
+ gramps_create_family: {
86
+ name: string;
87
+ description: string;
88
+ inputSchema: {
89
+ type: "object";
90
+ properties: {
91
+ gramps_id: {
92
+ type: string;
93
+ description: string;
94
+ };
95
+ father_handle: {
96
+ type: string;
97
+ description: string;
98
+ };
99
+ mother_handle: {
100
+ type: string;
101
+ description: string;
102
+ };
103
+ child_ref_list: {
104
+ type: string;
105
+ items: {
106
+ type: string;
107
+ properties: {
108
+ ref: {
109
+ type: string;
110
+ description: string;
111
+ };
112
+ frel: {
113
+ type: string;
114
+ description: string;
115
+ };
116
+ mrel: {
117
+ type: string;
118
+ description: string;
119
+ };
120
+ };
121
+ required: string[];
122
+ };
123
+ description: string;
124
+ };
125
+ type: {
126
+ type: string;
127
+ description: string;
128
+ };
129
+ };
130
+ required: never[];
131
+ };
132
+ handler: typeof grampsCreateFamily;
133
+ };
134
+ gramps_create_event: {
135
+ name: string;
136
+ description: string;
137
+ inputSchema: {
138
+ type: "object";
139
+ properties: {
140
+ gramps_id: {
141
+ type: string;
142
+ description: string;
143
+ };
144
+ type: {
145
+ type: string;
146
+ description: string;
147
+ };
148
+ date: {
149
+ type: string;
150
+ description: string;
151
+ properties: {
152
+ dateval: {
153
+ type: string;
154
+ items: {
155
+ type: string;
156
+ };
157
+ description: string;
158
+ };
159
+ text: {
160
+ type: string;
161
+ description: string;
162
+ };
163
+ };
164
+ };
165
+ place: {
166
+ type: string;
167
+ description: string;
168
+ };
169
+ description: {
170
+ type: string;
171
+ description: string;
172
+ };
173
+ };
174
+ required: string[];
175
+ };
176
+ handler: typeof grampsCreateEvent;
177
+ };
178
+ gramps_create_place: {
179
+ name: string;
180
+ description: string;
181
+ inputSchema: {
182
+ type: "object";
183
+ properties: {
184
+ gramps_id: {
185
+ type: string;
186
+ description: string;
187
+ };
188
+ title: {
189
+ type: string;
190
+ description: string;
191
+ };
192
+ name: {
193
+ type: string;
194
+ properties: {
195
+ value: {
196
+ type: string;
197
+ description: string;
198
+ };
199
+ };
200
+ description: string;
201
+ };
202
+ lat: {
203
+ type: string;
204
+ description: string;
205
+ };
206
+ long: {
207
+ type: string;
208
+ description: string;
209
+ };
210
+ place_type: {
211
+ type: string;
212
+ description: string;
213
+ };
214
+ };
215
+ required: never[];
216
+ };
217
+ handler: typeof grampsCreatePlace;
218
+ };
219
+ gramps_create_source: {
220
+ name: string;
221
+ description: string;
222
+ inputSchema: {
223
+ type: "object";
224
+ properties: {
225
+ gramps_id: {
226
+ type: string;
227
+ description: string;
228
+ };
229
+ title: {
230
+ type: string;
231
+ description: string;
232
+ };
233
+ author: {
234
+ type: string;
235
+ description: string;
236
+ };
237
+ pubinfo: {
238
+ type: string;
239
+ description: string;
240
+ };
241
+ abbrev: {
242
+ type: string;
243
+ description: string;
244
+ };
245
+ };
246
+ required: string[];
247
+ };
248
+ handler: typeof grampsCreateSource;
249
+ };
250
+ gramps_create_citation: {
251
+ name: string;
252
+ description: string;
253
+ inputSchema: {
254
+ type: "object";
255
+ properties: {
256
+ gramps_id: {
257
+ type: string;
258
+ description: string;
259
+ };
260
+ source_handle: {
261
+ type: string;
262
+ description: string;
263
+ };
264
+ page: {
265
+ type: string;
266
+ description: string;
267
+ };
268
+ confidence: {
269
+ type: string;
270
+ description: string;
271
+ };
272
+ };
273
+ required: string[];
274
+ };
275
+ handler: typeof grampsCreateCitation;
276
+ };
277
+ gramps_create_note: {
278
+ name: string;
279
+ description: string;
280
+ inputSchema: {
281
+ type: "object";
282
+ properties: {
283
+ gramps_id: {
284
+ type: string;
285
+ description: string;
286
+ };
287
+ text: {
288
+ type: string;
289
+ description: string;
290
+ };
291
+ type: {
292
+ type: string;
293
+ description: string;
294
+ };
295
+ format: {
296
+ type: string;
297
+ description: string;
298
+ };
299
+ };
300
+ required: string[];
301
+ };
302
+ handler: typeof grampsCreateNote;
303
+ };
304
+ gramps_create_media: {
305
+ name: string;
306
+ description: string;
307
+ inputSchema: {
308
+ type: "object";
309
+ properties: {
310
+ gramps_id: {
311
+ type: string;
312
+ description: string;
313
+ };
314
+ path: {
315
+ type: string;
316
+ description: string;
317
+ };
318
+ mime: {
319
+ type: string;
320
+ description: string;
321
+ };
322
+ desc: {
323
+ type: string;
324
+ description: string;
325
+ };
326
+ };
327
+ required: string[];
328
+ };
329
+ handler: typeof grampsCreateMedia;
330
+ };
331
+ gramps_create_repository: {
332
+ name: string;
333
+ description: string;
334
+ inputSchema: {
335
+ type: "object";
336
+ properties: {
337
+ gramps_id: {
338
+ type: string;
339
+ description: string;
340
+ };
341
+ name: {
342
+ type: string;
343
+ description: string;
344
+ };
345
+ type: {
346
+ type: string;
347
+ description: string;
348
+ };
349
+ };
350
+ required: string[];
351
+ };
352
+ handler: typeof grampsCreateRepository;
353
+ };
354
+ };
355
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/tools/create.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,wBAAwB,CAAC;AAgBhC;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,GACzC,OAAO,CAAC,MAAM,CAAC,CAqCjB;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,GACzC,OAAO,CAAC,MAAM,CAAC,CAiCjB;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,GACxC,OAAO,CAAC,MAAM,CAAC,CA0BjB;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,GACxC,OAAO,CAAC,MAAM,CAAC,CA8BjB;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,GACzC,OAAO,CAAC,MAAM,CAAC,CAyBjB;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,GAC3C,OAAO,CAAC,MAAM,CAAC,CAqBjB;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,GACvC,OAAO,CAAC,MAAM,CAAC,CAkBjB;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,GACxC,OAAO,CAAC,MAAM,CAAC,CAyBjB;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,GAC7C,OAAO,CAAC,MAAM,CAAC,CAuBjB;AAGD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyTvB,CAAC"}