@cyanheads/genealogy-mcp-server 0.1.1 → 0.2.1

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 (147) hide show
  1. package/AGENTS.md +54 -23
  2. package/CLAUDE.md +54 -23
  3. package/README.md +142 -94
  4. package/changelog/0.2.x/0.2.0.md +27 -0
  5. package/changelog/0.2.x/0.2.1.md +27 -0
  6. package/dist/config/server-config.d.ts +6 -1
  7. package/dist/config/server-config.d.ts.map +1 -1
  8. package/dist/config/server-config.js +17 -3
  9. package/dist/config/server-config.js.map +1 -1
  10. package/dist/index.js +5 -4
  11. package/dist/index.js.map +1 -1
  12. package/dist/mcp-server/tools/definitions/{genealogy_find_common_ancestors.tool.d.ts → find-common-ancestors.tool.d.ts} +14 -12
  13. package/dist/mcp-server/tools/definitions/find-common-ancestors.tool.d.ts.map +1 -0
  14. package/dist/mcp-server/tools/definitions/find-common-ancestors.tool.js +35 -0
  15. package/dist/mcp-server/tools/definitions/find-common-ancestors.tool.js.map +1 -0
  16. package/dist/mcp-server/tools/definitions/find-person.tool.d.ts.map +1 -1
  17. package/dist/mcp-server/tools/definitions/find-person.tool.js +3 -2
  18. package/dist/mcp-server/tools/definitions/find-person.tool.js.map +1 -1
  19. package/dist/mcp-server/tools/definitions/{genealogy_get_profiles.tool.d.ts → get-profiles.tool.d.ts} +2 -2
  20. package/dist/mcp-server/tools/definitions/get-profiles.tool.d.ts.map +1 -0
  21. package/dist/mcp-server/tools/definitions/{genealogy_get_profiles.tool.js → get-profiles.tool.js} +3 -3
  22. package/dist/mcp-server/tools/definitions/get-profiles.tool.js.map +1 -0
  23. package/dist/mcp-server/tools/definitions/get-record.tool.d.ts +8 -1
  24. package/dist/mcp-server/tools/definitions/get-record.tool.d.ts.map +1 -1
  25. package/dist/mcp-server/tools/definitions/get-record.tool.js +13 -1
  26. package/dist/mcp-server/tools/definitions/get-record.tool.js.map +1 -1
  27. package/dist/mcp-server/tools/definitions/{genealogy_get_relatives.tool.d.ts → get-relatives.tool.d.ts} +13 -12
  28. package/dist/mcp-server/tools/definitions/get-relatives.tool.d.ts.map +1 -0
  29. package/dist/mcp-server/tools/definitions/get-relatives.tool.js +35 -0
  30. package/dist/mcp-server/tools/definitions/get-relatives.tool.js.map +1 -0
  31. package/dist/mcp-server/tools/definitions/get-transcription.tool.d.ts.map +1 -1
  32. package/dist/mcp-server/tools/definitions/get-transcription.tool.js +1 -0
  33. package/dist/mcp-server/tools/definitions/get-transcription.tool.js.map +1 -1
  34. package/dist/mcp-server/tools/definitions/list-reference.tool.d.ts.map +1 -1
  35. package/dist/mcp-server/tools/definitions/list-reference.tool.js +14 -8
  36. package/dist/mcp-server/tools/definitions/list-reference.tool.js.map +1 -1
  37. package/dist/mcp-server/tools/definitions/{genealogy_search_profiles.tool.d.ts → search-profiles.tool.d.ts} +12 -4
  38. package/dist/mcp-server/tools/definitions/search-profiles.tool.d.ts.map +1 -0
  39. package/dist/mcp-server/tools/definitions/search-profiles.tool.js +27 -0
  40. package/dist/mcp-server/tools/definitions/search-profiles.tool.js.map +1 -0
  41. package/dist/mcp-server/tools/definitions/search-records.tool.d.ts +26 -0
  42. package/dist/mcp-server/tools/definitions/search-records.tool.d.ts.map +1 -1
  43. package/dist/mcp-server/tools/definitions/search-records.tool.js +34 -3
  44. package/dist/mcp-server/tools/definitions/search-records.tool.js.map +1 -1
  45. package/dist/mcp-server/tools/definitions/search-transcriptions.tool.d.ts +6 -0
  46. package/dist/mcp-server/tools/definitions/search-transcriptions.tool.d.ts.map +1 -1
  47. package/dist/mcp-server/tools/definitions/search-transcriptions.tool.js +10 -1
  48. package/dist/mcp-server/tools/definitions/search-transcriptions.tool.js.map +1 -1
  49. package/dist/services/genealogy/discovery.d.ts +8 -20
  50. package/dist/services/genealogy/discovery.d.ts.map +1 -1
  51. package/dist/services/genealogy/discovery.js +44 -24
  52. package/dist/services/genealogy/discovery.js.map +1 -1
  53. package/dist/services/genealogy/records.d.ts +8 -2
  54. package/dist/services/genealogy/records.d.ts.map +1 -1
  55. package/dist/services/genealogy/search-records.d.ts +25 -2
  56. package/dist/services/genealogy/search-records.d.ts.map +1 -1
  57. package/dist/services/genealogy/search-records.js +67 -16
  58. package/dist/services/genealogy/search-records.js.map +1 -1
  59. package/dist/services/genealogy/upstream.d.ts.map +1 -1
  60. package/dist/services/genealogy/upstream.js +1 -1
  61. package/dist/services/genealogy/upstream.js.map +1 -1
  62. package/dist/services/mirror/mirror-build.d.ts.map +1 -1
  63. package/dist/services/mirror/mirror-build.js +11 -15
  64. package/dist/services/mirror/mirror-build.js.map +1 -1
  65. package/dist/services/mirror/mirror-service.d.ts +4 -4
  66. package/dist/services/mirror/mirror-service.d.ts.map +1 -1
  67. package/dist/services/mirror/mirror-service.js +4 -15
  68. package/dist/services/mirror/mirror-service.js.map +1 -1
  69. package/dist/services/mirror/mirror-snapshot.d.ts.map +1 -1
  70. package/dist/services/mirror/mirror-snapshot.js +2 -3
  71. package/dist/services/mirror/mirror-snapshot.js.map +1 -1
  72. package/dist/services/open-archives/client.d.ts +1 -0
  73. package/dist/services/open-archives/client.d.ts.map +1 -1
  74. package/dist/services/open-archives/client.js +17 -6
  75. package/dist/services/open-archives/client.js.map +1 -1
  76. package/dist/services/open-archives/read-record.d.ts +4 -7
  77. package/dist/services/open-archives/read-record.d.ts.map +1 -1
  78. package/dist/services/open-archives/read-record.js +19 -15
  79. package/dist/services/open-archives/read-record.js.map +1 -1
  80. package/dist/services/open-archives/reference.d.ts +9 -3
  81. package/dist/services/open-archives/reference.d.ts.map +1 -1
  82. package/dist/services/open-archives/reference.js +64 -8
  83. package/dist/services/open-archives/reference.js.map +1 -1
  84. package/dist/services/open-archives/search-records.d.ts +1 -0
  85. package/dist/services/open-archives/search-records.d.ts.map +1 -1
  86. package/dist/services/open-archives/search-records.js +18 -18
  87. package/dist/services/open-archives/search-records.js.map +1 -1
  88. package/dist/services/open-archives/source-labels.d.ts +4 -0
  89. package/dist/services/open-archives/source-labels.d.ts.map +1 -0
  90. package/dist/services/open-archives/source-labels.js +116 -0
  91. package/dist/services/open-archives/source-labels.js.map +1 -0
  92. package/dist/services/open-archives/transcriptions.d.ts +1 -1
  93. package/dist/services/open-archives/transcriptions.d.ts.map +1 -1
  94. package/dist/services/open-archives/transcriptions.js +14 -17
  95. package/dist/services/open-archives/transcriptions.js.map +1 -1
  96. package/dist/services/socrata/indexes.d.ts +6 -1
  97. package/dist/services/socrata/indexes.d.ts.map +1 -1
  98. package/dist/services/socrata/indexes.js +54 -28
  99. package/dist/services/socrata/indexes.js.map +1 -1
  100. package/dist/services/socrata/search-index.d.ts +2 -1
  101. package/dist/services/socrata/search-index.d.ts.map +1 -1
  102. package/dist/services/socrata/search-index.js +36 -19
  103. package/dist/services/socrata/search-index.js.map +1 -1
  104. package/dist/services/socrata/us-state-codes.d.ts +4 -0
  105. package/dist/services/socrata/us-state-codes.d.ts.map +1 -0
  106. package/dist/services/socrata/us-state-codes.js +55 -0
  107. package/dist/services/socrata/us-state-codes.js.map +1 -0
  108. package/dist/services/wikitree/find-common-ancestors.d.ts +1 -0
  109. package/dist/services/wikitree/find-common-ancestors.d.ts.map +1 -1
  110. package/dist/services/wikitree/find-common-ancestors.js +25 -12
  111. package/dist/services/wikitree/find-common-ancestors.js.map +1 -1
  112. package/dist/services/wikitree/profile.d.ts +4 -0
  113. package/dist/services/wikitree/profile.d.ts.map +1 -1
  114. package/dist/services/wikitree/profile.js +17 -16
  115. package/dist/services/wikitree/profile.js.map +1 -1
  116. package/dist/services/wikitree/read-family.d.ts.map +1 -1
  117. package/dist/services/wikitree/read-family.js +24 -5
  118. package/dist/services/wikitree/read-family.js.map +1 -1
  119. package/dist/services/wikitree/read-people.d.ts.map +1 -1
  120. package/dist/services/wikitree/read-people.js +19 -7
  121. package/dist/services/wikitree/read-people.js.map +1 -1
  122. package/dist/services/wikitree/search-profiles.d.ts +3 -3
  123. package/dist/services/wikitree/search-profiles.d.ts.map +1 -1
  124. package/dist/services/wikitree/search-profiles.js +27 -20
  125. package/dist/services/wikitree/search-profiles.js.map +1 -1
  126. package/dist/services/wikitree/wiki-request.d.ts +3 -1
  127. package/dist/services/wikitree/wiki-request.d.ts.map +1 -1
  128. package/dist/services/wikitree/wiki-request.js +5 -1
  129. package/dist/services/wikitree/wiki-request.js.map +1 -1
  130. package/package.json +7 -3
  131. package/server.json +12 -6
  132. package/skills/genealogy-guide/SKILL.md +47 -0
  133. package/dist/mcp-server/tools/definitions/genealogy_find_common_ancestors.tool.d.ts.map +0 -1
  134. package/dist/mcp-server/tools/definitions/genealogy_find_common_ancestors.tool.js +0 -17
  135. package/dist/mcp-server/tools/definitions/genealogy_find_common_ancestors.tool.js.map +0 -1
  136. package/dist/mcp-server/tools/definitions/genealogy_get_profiles.tool.d.ts.map +0 -1
  137. package/dist/mcp-server/tools/definitions/genealogy_get_profiles.tool.js.map +0 -1
  138. package/dist/mcp-server/tools/definitions/genealogy_get_relatives.tool.d.ts.map +0 -1
  139. package/dist/mcp-server/tools/definitions/genealogy_get_relatives.tool.js +0 -17
  140. package/dist/mcp-server/tools/definitions/genealogy_get_relatives.tool.js.map +0 -1
  141. package/dist/mcp-server/tools/definitions/genealogy_search_profiles.tool.d.ts.map +0 -1
  142. package/dist/mcp-server/tools/definitions/genealogy_search_profiles.tool.js +0 -16
  143. package/dist/mcp-server/tools/definitions/genealogy_search_profiles.tool.js.map +0 -1
  144. package/dist/services/wikitree/tool-output.d.ts +0 -21
  145. package/dist/services/wikitree/tool-output.d.ts.map +0 -1
  146. package/dist/services/wikitree/tool-output.js +0 -26
  147. package/dist/services/wikitree/tool-output.js.map +0 -1
@@ -1,4 +1,5 @@
1
- /** src/mcp-server/tools/definitions/genealogy_find_common_ancestors.tool.ts — Find Common WikiTree Ancestors. */
1
+ /** @fileoverview Compare two WikiTree pedigrees for shared ancestors and the nearest ties. */
2
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
2
3
  /** Find Common WikiTree Ancestors. */
3
4
  export declare const findCommonAncestorsTool: import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
4
5
  a: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodInt]>;
@@ -30,6 +31,7 @@ export declare const findCommonAncestorsTool: import("@cyanheads/mcp-ts-core").T
30
31
  privacy_limited: import("zod").ZodBoolean;
31
32
  url: import("zod").ZodOptional<import("zod").ZodString>;
32
33
  }, import("zod/v4/core").$strip>>;
34
+ same_profile: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
33
35
  generations: import("zod").ZodOptional<import("zod").ZodInt>;
34
36
  common: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
35
37
  id: import("zod").ZodInt;
@@ -82,18 +84,18 @@ export declare const findCommonAncestorsTool: import("@cyanheads/mcp-ts-core").T
82
84
  }>;
83
85
  }, import("zod/v4/core").$strip>>>;
84
86
  }, import("zod/v4/core").$strip>, readonly [{
85
- readonly reason: 'pedigree_permission_denied';
86
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Forbidden;
87
- readonly when: 'WikiTree declines permission to traverse the starting profile.';
87
+ readonly reason: "pedigree_permission_denied";
88
+ readonly code: JsonRpcErrorCode.Forbidden;
89
+ readonly when: "WikiTree declines permission to traverse the starting profile.";
88
90
  readonly retryable: false;
89
- readonly thrownBy: 'service';
90
- readonly recovery: 'Open the public WikiTree profile or choose a different starting profile.';
91
+ readonly thrownBy: "service";
92
+ readonly recovery: "Open the public WikiTree profile or choose a different starting profile.";
91
93
  }, {
92
- readonly reason: 'walk_incomplete';
93
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
94
- readonly when: 'WikiTree returns an inconsistent or stalled pedigree walk.';
94
+ readonly reason: "walk_incomplete";
95
+ readonly code: JsonRpcErrorCode.ServiceUnavailable;
96
+ readonly when: "WikiTree returns an inconsistent or stalled pedigree walk.";
95
97
  readonly retryable: true;
96
- readonly thrownBy: 'service';
97
- readonly recovery: 'Retry with fewer generations or use genealogy_get_profiles for the starting profiles.';
98
+ readonly thrownBy: "service";
99
+ readonly recovery: "Retry with fewer generations or use genealogy_get_profiles for the starting profiles.";
98
100
  }], undefined>;
99
- //# sourceMappingURL=genealogy_find_common_ancestors.tool.d.ts.map
101
+ //# sourceMappingURL=find-common-ancestors.tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-common-ancestors.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-common-ancestors.tool.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAG9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AASjE,sCAAsC;AACtC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BlC,CAAC"}
@@ -0,0 +1,35 @@
1
+ /** @fileoverview Compare two WikiTree pedigrees for shared ancestors and the nearest ties. */
2
+ import { tool } from '@cyanheads/mcp-ts-core';
3
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
4
+ import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
5
+ import { findCommonAncestors, findCommonAncestorsInput, findCommonAncestorsOutput, } from '../../../services/wikitree/find-common-ancestors.js';
6
+ import { wikiTreeDeadline } from '../../../services/wikitree/wiki-request.js';
7
+ /** Find Common WikiTree Ancestors. */
8
+ export const findCommonAncestorsTool = tool('genealogy_find_common_ancestors', {
9
+ title: 'Find Common WikiTree Ancestors',
10
+ description: 'Compare the visible ancestors of two WikiTree profiles within a generation limit. Returns shared ancestors and all ties for the shortest combined distance, including a starting profile when it is an ancestor of the other. Reports same_profile when both keys resolve to one profile. Use genealogy_get_relatives to inspect either profile’s pedigree and gaps.',
11
+ annotations: readOnly,
12
+ errors: [
13
+ {
14
+ reason: 'pedigree_permission_denied',
15
+ code: JsonRpcErrorCode.Forbidden,
16
+ when: 'WikiTree declines permission to traverse the starting profile.',
17
+ retryable: false,
18
+ thrownBy: 'service',
19
+ recovery: 'Open the public WikiTree profile or choose a different starting profile.',
20
+ },
21
+ {
22
+ reason: 'walk_incomplete',
23
+ code: JsonRpcErrorCode.ServiceUnavailable,
24
+ when: 'WikiTree returns an inconsistent or stalled pedigree walk.',
25
+ retryable: true,
26
+ thrownBy: 'service',
27
+ recovery: 'Retry with fewer generations or use genealogy_get_profiles for the starting profiles.',
28
+ },
29
+ ],
30
+ input: findCommonAncestorsInput,
31
+ output: findCommonAncestorsOutput,
32
+ handler: (input, ctx) => findCommonAncestors(input, wikiTreeDeadline(ctx.signal)),
33
+ format: formatData,
34
+ });
35
+ //# sourceMappingURL=find-common-ancestors.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-common-ancestors.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-common-ancestors.tool.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAE9F,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAE9E,sCAAsC;AACtC,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC,iCAAiC,EAAE;IAC7E,KAAK,EAAE,gCAAgC;IACvC,WAAW,EACT,sWAAsW;IACxW,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE;QACN;YACE,MAAM,EAAE,4BAA4B;YACpC,IAAI,EAAE,gBAAgB,CAAC,SAAS;YAChC,IAAI,EAAE,gEAAgE;YACtE,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE,0EAA0E;SACrF;QACD;YACE,MAAM,EAAE,iBAAiB;YACzB,IAAI,EAAE,gBAAgB,CAAC,kBAAkB;YACzC,IAAI,EAAE,4DAA4D;YAClE,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,SAAS;YACnB,QAAQ,EACN,uFAAuF;SAC1F;KACF;IACD,KAAK,EAAE,wBAAwB;IAC/B,MAAM,EAAE,yBAAyB;IACjC,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACjF,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"find-person.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-person.tool.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAiCjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA6BzB,CAAC"}
1
+ {"version":3,"file":"find-person.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-person.tool.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAiCjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAkCzB,CAAC"}
@@ -27,13 +27,14 @@ const outcome = z
27
27
  })
28
28
  .describe('One attributed provider outcome.');
29
29
  export const findPersonTool = tool('genealogy_find_person', {
30
+ title: 'Find Person Across Sources',
30
31
  description: 'Find candidate matches across WikiTree, Open Archives, and US indexes with at least one given name or surname. Returns up to ten matches per eligible source. Continue with genealogy_search_profiles for WikiTree or genealogy_search_records for one record index. Matches across sources can refer to different people.',
31
32
  annotations: readOnly,
32
33
  input: z.object({
33
34
  first_name: optionalText.describe('Given name.'),
34
35
  last_name: optionalText.describe('Family name.'),
35
- birth_year: year.describe('Approximate birth year.'),
36
- death_year: year.describe('Approximate death year.'),
36
+ birth_year: year.describe('Approximate birth year. Birth indexes search within two years. Open Archives starts two years earlier.'),
37
+ death_year: year.describe('Approximate death year. Death and burial indexes search within two years. Open Archives searches through two years later.'),
37
38
  place: optionalText.describe('Birthplace on WikiTree, event place on supporting record sources.'),
38
39
  country: z
39
40
  .string()
@@ -1 +1 @@
1
- {"version":3,"file":"find-person.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-person.tool.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AACpE,OAAO,EACL,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,IAAI,GACL,MAAM,4CAA4C,CAAC;AAEpD,MAAM,OAAO,GAAG,CAAC;KACd,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IACrD,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,IAAI,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC;SACtC,QAAQ,CAAC,yCAAyC,CAAC;IACtD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;IACtF,IAAI,EAAE,CAAC;SACJ,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;SACxC,QAAQ,EAAE;SACV,QAAQ,CAAC,gCAAgC,CAAC;IAC7C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,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,YAAY,CAAC,QAAQ,CAC1B,mEAAmE,CACpE;QACD,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,IAAI,EAAE;aACN,KAAK,CAAC,gBAAgB,CAAC;aACvB,QAAQ,EAAE;aACV,QAAQ,CAAC,gEAAgE,CAAC;KAC9E,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACzF,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,wCAAwC,CAAC;QAC5E,QAAQ,EAAE,CAAC;aACR,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;aACxC,QAAQ,CAAC,oDAAoD,CAAC;KAClE,CAAC;IACF,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC;IACpD,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- /** src/mcp-server/tools/definitions/genealogy_get_profiles.tool.ts — Read WikiTree Profiles. */
1
+ /** @fileoverview Read WikiTree profiles in request order, with optional biographies or categories. */
2
2
  /** Read WikiTree Profiles. */
3
3
  export declare const getProfilesTool: import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
4
4
  ids: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodInt]>>;
@@ -47,4 +47,4 @@ export declare const getProfilesTool: import("@cyanheads/mcp-ts-core").ToolDefin
47
47
  deferred_category_ids: import("zod").ZodArray<import("zod").ZodInt>;
48
48
  guidance: import("zod").ZodOptional<import("zod").ZodString>;
49
49
  }, import("zod/v4/core").$strip>, undefined, undefined>;
50
- //# sourceMappingURL=genealogy_get_profiles.tool.d.ts.map
50
+ //# sourceMappingURL=get-profiles.tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-profiles.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-profiles.tool.ts"],"names":[],"mappings":"AAAA,sGAAsG;AAWtG,8BAA8B;AAC9B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAS1B,CAAC"}
@@ -1,8 +1,8 @@
1
- /** src/mcp-server/tools/definitions/genealogy_get_profiles.tool.ts — Read WikiTree Profiles. */
1
+ /** @fileoverview Read WikiTree profiles in request order, with optional biographies or categories. */
2
2
  import { tool } from '@cyanheads/mcp-ts-core';
3
3
  import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
4
4
  import { getProfiles, getProfilesInput, getProfilesOutput, } from '../../../services/wikitree/get-profiles.js';
5
- import { wikiTreeDeadline } from '../../../services/wikitree/tool-output.js';
5
+ import { wikiTreeDeadline } from '../../../services/wikitree/wiki-request.js';
6
6
  /** Read WikiTree Profiles. */
7
7
  export const getProfilesTool = tool('genealogy_get_profiles', {
8
8
  title: 'Read WikiTree Profiles',
@@ -13,4 +13,4 @@ export const getProfilesTool = tool('genealogy_get_profiles', {
13
13
  handler: (input, ctx) => getProfiles(input, wikiTreeDeadline(ctx.signal)),
14
14
  format: formatData,
15
15
  });
16
- //# sourceMappingURL=genealogy_get_profiles.tool.js.map
16
+ //# sourceMappingURL=get-profiles.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-profiles.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-profiles.tool.ts"],"names":[],"mappings":"AAAA,sGAAsG;AAEtG,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAE9E,8BAA8B;AAC9B,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,wBAAwB,EAAE;IAC5D,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EACT,sPAAsP;IACxP,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,gBAAgB;IACvB,MAAM,EAAE,iBAAiB;IACzB,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACzE,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  /** @fileoverview Read an Open Archives record by its ID or canonical URL. */
2
2
  import { z } from '@cyanheads/mcp-ts-core';
3
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
3
4
  export declare const getRecordTool: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
4
5
  record_id: z.ZodString;
5
6
  }, z.core.$strip>, z.ZodObject<{
@@ -13,5 +14,11 @@ export declare const getRecordTool: import("@cyanheads/mcp-ts-core").ToolDefinit
13
14
  relations: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
15
  url: z.ZodOptional<z.ZodString>;
15
16
  guidance: z.ZodOptional<z.ZodString>;
16
- }, z.core.$strip>, undefined, undefined>;
17
+ }, z.core.$strip>, readonly [{
18
+ readonly reason: "unknown_reference_value";
19
+ readonly code: JsonRpcErrorCode.InvalidParams;
20
+ readonly when: "The archive code in the record ID or URL is unknown.";
21
+ readonly recovery: "Use genealogy_list_reference with topic=archives and copy the archive code.";
22
+ readonly thrownBy: "service";
23
+ }], undefined>;
17
24
  //# sourceMappingURL=get-record.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-record.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-record.tool.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAGjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;wCA0CxB,CAAC"}
1
+ {"version":3,"file":"get-record.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-record.tool.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAIjE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;cAsDxB,CAAC"}
@@ -1,16 +1,28 @@
1
1
  /** @fileoverview Read an Open Archives record by its ID or canonical URL. */
2
2
  import { tool, z } from '@cyanheads/mcp-ts-core';
3
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
3
4
  import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
5
+ import { archiveCodeRecovery } from '../../../services/open-archives/client.js';
4
6
  import { readArchiveRecord } from '../../../services/open-archives/read-record.js';
5
7
  export const getRecordTool = tool('genealogy_get_record', {
8
+ title: 'Read Open Archives Record',
6
9
  description: 'Read an Open Archives record by its ID or canonical URL. Returns its source citation, scan links, people, events and relationships. Obtain an ID with genealogy_search_records.',
7
10
  annotations: readOnly,
11
+ errors: [
12
+ {
13
+ reason: 'unknown_reference_value',
14
+ code: JsonRpcErrorCode.InvalidParams,
15
+ when: 'The archive code in the record ID or URL is unknown.',
16
+ recovery: archiveCodeRecovery,
17
+ thrownBy: 'service',
18
+ },
19
+ ],
8
20
  input: z.object({
9
21
  record_id: z
10
22
  .string()
11
23
  .trim()
12
24
  .min(1)
13
- .describe('archive_code:identifier or canonical URL from genealogy_search_records.'),
25
+ .describe('archive_code:identifier or an Open Archives HTTPS record URL, including a language suffix (/nl, /en, /de, or /fr). The archive code is case-insensitive.'),
14
26
  }),
15
27
  output: z.object({
16
28
  source: z.string().describe('Record provider.'),
@@ -1 +1 @@
1
- {"version":3,"file":"get-record.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-record.tool.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,sBAAsB,EAAE;IACxD,WAAW,EACT,iLAAiL;IACnL,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,CAAC,yEAAyE,CAAC;KACvF,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;QAC/C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;QAChE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;QACzD,QAAQ,EAAE,CAAC;aACR,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;aAC/B,QAAQ,EAAE;aACV,QAAQ,CACP,mFAAmF,CACpF;QACH,KAAK,EAAE,CAAC;aACL,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,E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CAAC;QACjF,iBAAiB,EAAE,CAAC;aACjB,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;aACxC,QAAQ,EAAE;aACV,QAAQ,CAAC,iCAAiC,CAAC;QAC9C,OAAO,EAAE,CAAC;aACP,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;aACxC,QAAQ,EAAE;aACV,QAAQ,CAAC,iDAAiD,CAAC;QAC9D,SAAS,EAAE,CAAC;aACT,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;aACxC,QAAQ,EAAE;aACV,QAAQ,CAAC,oDAAoD,CAAC;QACjE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;QACzD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;KAClF,CAAC;IACF,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC;IACvE,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- /** src/mcp-server/tools/definitions/genealogy_get_relatives.tool.ts — Read WikiTree Relatives. */
1
+ /** @fileoverview Trace WikiTree parents or children by generation, or read immediate family. */
2
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
2
3
  /** Read WikiTree Relatives. */
3
4
  export declare const getRelativesTool: import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
4
5
  id: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodInt]>;
@@ -75,18 +76,18 @@ export declare const getRelativesTool: import("@cyanheads/mcp-ts-core").ToolDefi
75
76
  }>;
76
77
  }, import("zod/v4/core").$strip>>>;
77
78
  }, import("zod/v4/core").$strip>, readonly [{
78
- readonly reason: 'pedigree_permission_denied';
79
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Forbidden;
80
- readonly when: 'WikiTree declines permission to traverse the starting profile.';
79
+ readonly reason: "pedigree_permission_denied";
80
+ readonly code: JsonRpcErrorCode.Forbidden;
81
+ readonly when: "WikiTree declines permission to traverse the starting profile.";
81
82
  readonly retryable: false;
82
- readonly thrownBy: 'service';
83
- readonly recovery: 'Open the public WikiTree profile or choose a different starting profile.';
83
+ readonly thrownBy: "service";
84
+ readonly recovery: "Open the public WikiTree profile or choose a different starting profile.";
84
85
  }, {
85
- readonly reason: 'walk_incomplete';
86
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
87
- readonly when: 'WikiTree returns an inconsistent or stalled pedigree walk.';
86
+ readonly reason: "walk_incomplete";
87
+ readonly code: JsonRpcErrorCode.ServiceUnavailable;
88
+ readonly when: "WikiTree returns an inconsistent or stalled pedigree walk.";
88
89
  readonly retryable: true;
89
- readonly thrownBy: 'service';
90
- readonly recovery: 'Retry with fewer generations or use genealogy_get_profiles for the starting profiles.';
90
+ readonly thrownBy: "service";
91
+ readonly recovery: "Retry with fewer generations or use genealogy_get_profiles for the starting profiles.";
91
92
  }], undefined>;
92
- //# sourceMappingURL=genealogy_get_relatives.tool.d.ts.map
93
+ //# sourceMappingURL=get-relatives.tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-relatives.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-relatives.tool.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAGhG,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AASjE,+BAA+B;AAC/B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4B3B,CAAC"}
@@ -0,0 +1,35 @@
1
+ /** @fileoverview Trace WikiTree parents or children by generation, or read immediate family. */
2
+ import { tool } from '@cyanheads/mcp-ts-core';
3
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
4
+ import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
5
+ import { getRelatives, getRelativesInput, getRelativesOutput, } from '../../../services/wikitree/get-relatives.js';
6
+ import { wikiTreeDeadline } from '../../../services/wikitree/wiki-request.js';
7
+ /** Read WikiTree Relatives. */
8
+ export const getRelativesTool = tool('genealogy_get_relatives', {
9
+ title: 'Read WikiTree Relatives',
10
+ description: 'Trace parents or children by generation, or read immediate parents, siblings, spouses, and children with recorded marriages. Continue with next_offset when present. Use genealogy_find_common_ancestors to compare two pedigrees.',
11
+ annotations: readOnly,
12
+ errors: [
13
+ {
14
+ reason: 'pedigree_permission_denied',
15
+ code: JsonRpcErrorCode.Forbidden,
16
+ when: 'WikiTree declines permission to traverse the starting profile.',
17
+ retryable: false,
18
+ thrownBy: 'service',
19
+ recovery: 'Open the public WikiTree profile or choose a different starting profile.',
20
+ },
21
+ {
22
+ reason: 'walk_incomplete',
23
+ code: JsonRpcErrorCode.ServiceUnavailable,
24
+ when: 'WikiTree returns an inconsistent or stalled pedigree walk.',
25
+ retryable: true,
26
+ thrownBy: 'service',
27
+ recovery: 'Retry with fewer generations or use genealogy_get_profiles for the starting profiles.',
28
+ },
29
+ ],
30
+ input: getRelativesInput,
31
+ output: getRelativesOutput,
32
+ handler: (input, ctx) => getRelatives(input, wikiTreeDeadline(ctx.signal)),
33
+ format: formatData,
34
+ });
35
+ //# sourceMappingURL=get-relatives.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-relatives.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-relatives.tool.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAEhG,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAE9E,+BAA+B;AAC/B,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,yBAAyB,EAAE;IAC9D,KAAK,EAAE,yBAAyB;IAChC,WAAW,EACT,oOAAoO;IACtO,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE;QACN;YACE,MAAM,EAAE,4BAA4B;YACpC,IAAI,EAAE,gBAAgB,CAAC,SAAS;YAChC,IAAI,EAAE,gEAAgE;YACtE,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE,0EAA0E;SACrF;QACD;YACE,MAAM,EAAE,iBAAiB;YACzB,IAAI,EAAE,gBAAgB,CAAC,kBAAkB;YACzC,IAAI,EAAE,4DAA4D;YAClE,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,SAAS;YACnB,QAAQ,EACN,uFAAuF;SAC1F;KACF;IACD,KAAK,EAAE,iBAAiB;IACxB,MAAM,EAAE,kBAAkB;IAC1B,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1E,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-transcription.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-transcription.tool.ts"],"names":[],"mappings":"AAAA,gIAAgI;AAChI,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAGjD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;wCAmC/B,CAAC"}
1
+ {"version":3,"file":"get-transcription.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-transcription.tool.ts"],"names":[],"mappings":"AAAA,gIAAgI;AAChI,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAGjD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;wCAoC/B,CAAC"}
@@ -3,6 +3,7 @@ import { tool, z } from '@cyanheads/mcp-ts-core';
3
3
  import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
4
4
  import { readTranscription } from '../../../services/open-archives/transcriptions.js';
5
5
  export const getTranscriptionTool = tool('genealogy_get_transcription', {
6
+ title: 'Read Open Archives Transcription',
6
7
  description: 'Read a transcribed Open Archives page in full, with the holding archive, inventory reference and scan link. Supply an ID from genealogy_search_transcriptions.',
7
8
  annotations: readOnly,
8
9
  input: z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"get-transcription.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-transcription.tool.ts"],"names":[],"mappings":"AAAA,gIAAgI;AAChI,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACtF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,6BAA6B,EAAE;IACtE,WAAW,EACT,gKAAgK;IAClK,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,EAAE,EAAE,CAAC;aACF,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CA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AQ,CAAC,wCAAwC,CAAC;KACnF,CAAC;IACF,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC;IAChE,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
1
+ {"version":3,"file":"get-transcription.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-transcription.tool.ts"],"names":[],"mappings":"AAAA,gIAAgI;AAChI,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACtF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,6BAA6B,EAAE;IACtE,KAAK,EAAE,kCAAkC;IACzC,WAAW,EACT,gKAAgK;IAClK,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,EAAE,EAAE,CAAC;aACF,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,CAAC,gEAAgE,CAAC;KAC9E,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;QACtD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;QAClD,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;QACvD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;QAClF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAA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3,"file":"list-reference.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/list-reference.tool.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAuBjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqL5B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /** @fileoverview Source coverage, syntax and decoding guidance for the genealogy tools. */
2
2
  import { tool, z } from '@cyanheads/mcp-ts-core';
3
3
  import { getServerConfig } from '../../../config/server-config.js';
4
- import { effectiveYearTo, profileSource, recordLimit, recordSources, } from '../../../services/genealogy/search-records.js';
4
+ import { profileSource, recordLimit, recordSources, recordYearCoverage, } from '../../../services/genealogy/search-records.js';
5
5
  import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
6
6
  import { mirrorStatus } from '../../../services/mirror/mirror-service.js';
7
7
  import { archiveReference, relations } from '../../../services/open-archives/reference.js';
@@ -17,6 +17,7 @@ const topics = [
17
17
  'limits',
18
18
  ];
19
19
  export const listReferenceTool = tool('genealogy_list_reference', {
20
+ title: 'Look Up Genealogy Reference',
20
21
  description: 'Look up source coverage and availability, valid identifiers, date and privacy conventions, archive codes, filter vocabularies, query syntax or page limits.',
21
22
  annotations: readOnly,
22
23
  input: z.object({
@@ -49,7 +50,14 @@ export const listReferenceTool = tool('genealogy_list_reference', {
49
50
  };
50
51
  }
51
52
  if (topic === 'relation_types')
52
- return { source: 'openarchieven', topic, data: relations };
53
+ return {
54
+ source: 'openarchieven',
55
+ topic,
56
+ data: relations,
57
+ notices: [
58
+ 'These Dutch roles have known aliases. Other Dutch roles can be searched using their exact spelling and capitalization.',
59
+ ],
60
+ };
53
61
  if (topic === 'sources')
54
62
  return {
55
63
  source: 'genealogy',
@@ -58,10 +66,7 @@ export const listReferenceTool = tool('genealogy_list_reference', {
58
66
  const status = s.access === 'mirror' ? mirrorStatus(s.id) : undefined;
59
67
  return {
60
68
  ...s,
61
- ...(effectiveYearTo(s) !== s.year_to && {
62
- published_year_to: s.year_to,
63
- year_to: effectiveYearTo(s),
64
- }),
69
+ ...recordYearCoverage(s),
65
70
  ready: s.access === 'mirror' ? Boolean(status) : undefined,
66
71
  loaded_rows: status?.total,
67
72
  as_of: status?.as_of ?? s.as_of,
@@ -69,6 +74,7 @@ export const listReferenceTool = tool('genealogy_list_reference', {
69
74
  }),
70
75
  notices: [
71
76
  'WikiTree covers a worldwide shared tree. Documentary records cover participating archives and selected US indexes. A missing match cannot exclude a record elsewhere.',
77
+ 'year_from and year_to summarize catalogue coverage, with published_year_to retaining the original end when privacy lowers year_to. searchable_year_from and searchable_year_to identify verified indexed event-year bounds where available. privacy_year_to is the policy cutoff.',
72
78
  ],
73
79
  };
74
80
  const config = getServerConfig();
@@ -84,7 +90,7 @@ export const listReferenceTool = tool('genealogy_list_reference', {
84
90
  },
85
91
  {
86
92
  source: 'openarchieven',
87
- identifiers: 'archive_code:identifier for records, opaque page ID for transcriptions. Copy from a matching search row.',
93
+ identifiers: 'Copy archive_code:identifier or the Open Archives record URL from a search row. Archive codes are case-insensitive. Record URLs can include a /nl, /en, /de or /fr suffix. For transcriptions, copy the opaque page ID.',
88
94
  },
89
95
  {
90
96
  source: 'indexes',
@@ -142,7 +148,7 @@ export const listReferenceTool = tool('genealogy_list_reference', {
142
148
  },
143
149
  {
144
150
  source: 'socrata',
145
- names: 'Case-insensitive exact given name and surname. A marriage or divorce matches both fields on one party.',
151
+ names: 'Case-insensitive name matching. Match the full surname and the given name exactly or at the start of the given-name field followed by a space. Stored name fields are trimmed for matching, with NYC surnames used as published. A marriage or divorce matches both fields on one party.',
146
152
  },
147
153
  {
148
154
  source: 'mirror',
@@ -1 +1 @@
1
- {"version":3,"file":"list-reference.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/list-reference.tool.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,OAAO,EAAE,IAAI,EAAE,CA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;wBACJ,EAAE,IAAI,EAAE,uBAAuB,EAAE,UAAU,EAAE,EAAE,EAAE;wBACjD,EAAE,IAAI,EAAE,2BAA2B,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE;wBAChE,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE;wBAC9D;4BACE,IAAI,EAAE,yBAAyB;4BAC/B,OAAO,EAAE,EAAE;4BACX,OAAO,EAAE,IAAI;4BACb,oBAAoB,EAAE,EAAE;4BACxB,sBAAsB,EAAE,EAAE;yBAC3B;wBACD,EAAE,IAAI,EAAE,iCAAiC,EAAE,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE;wBAC/E,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;4BAC3B,IAAI,EAAE,0BAA0B;4BAChC,MAAM,EAAE,CAAC,CAAC,EAAE;4BACZ,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC;yBACxB,CAAC,CAAC;qBACJ;iBACF,CAAC;QACN,CAAC;IACH,CAAC;IACD,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
1
+ {"version":3,"file":"list-reference.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/list-reference.tool.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EACL,aAAa,EACb,WAAW,EACX,aAAa,EACb,kBAAkB,GACnB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,M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E,EAAE;yBAC3B;wBACD,EAAE,IAAI,EAAE,iCAAiC,EAAE,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE;wBAC/E,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;4BAC3B,IAAI,EAAE,0BAA0B;4BAChC,MAAM,EAAE,CAAC,CAAC,EAAE;4BACZ,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC;yBACxB,CAAC,CAAC;qBACJ;iBACF,CAAC;QACN,CAAC;IACH,CAAC;IACD,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- /** src/mcp-server/tools/definitions/genealogy_search_profiles.tool.ts — Search WikiTree Profiles. */
1
+ /** @fileoverview Search visible WikiTree profiles by name with optional filters. */
2
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
2
3
  /** Search WikiTree Profiles. */
3
4
  export declare const searchProfilesTool: import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
4
5
  first_name: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodOptional<import("zod").ZodString>, unknown>>;
@@ -46,7 +47,7 @@ export declare const searchProfilesTool: import("@cyanheads/mcp-ts-core").ToolDe
46
47
  }>>;
47
48
  offset: import("zod").ZodDefault<import("zod").ZodInt>;
48
49
  limit: import("zod").ZodDefault<import("zod").ZodInt>;
49
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
50
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
50
51
  source: import("zod").ZodLiteral<"wikitree">;
51
52
  total: import("zod").ZodOptional<import("zod").ZodInt>;
52
53
  offset: import("zod").ZodInt;
@@ -65,5 +66,12 @@ export declare const searchProfilesTool: import("@cyanheads/mcp-ts-core").ToolDe
65
66
  url: import("zod").ZodOptional<import("zod").ZodString>;
66
67
  }, import("zod/v4/core").$strip>>;
67
68
  notices: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
68
- }, import("zod/v4/core").$strip>, undefined, undefined>;
69
- //# sourceMappingURL=genealogy_search_profiles.tool.d.ts.map
69
+ }, import("zod/v4/core").$strip>, readonly [{
70
+ readonly reason: "search_name_required";
71
+ readonly code: JsonRpcErrorCode.InvalidParams;
72
+ readonly when: "WikiTree reports that the search has no usable name.";
73
+ readonly recovery: "Provide first_name or last_name as a nonblank name.";
74
+ readonly retryable: false;
75
+ readonly thrownBy: "service";
76
+ }], undefined>;
77
+ //# sourceMappingURL=search-profiles.tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-profiles.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-profiles.tool.ts"],"names":[],"mappings":"AAAA,oFAAoF;AAGpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AASjE,gCAAgC;AAChC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmB7B,CAAC"}
@@ -0,0 +1,27 @@
1
+ /** @fileoverview Search visible WikiTree profiles by name with optional filters. */
2
+ import { tool } from '@cyanheads/mcp-ts-core';
3
+ import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
4
+ import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
5
+ import { searchProfiles, searchProfilesInput, searchProfilesOutput, } from '../../../services/wikitree/search-profiles.js';
6
+ import { wikiTreeDeadline } from '../../../services/wikitree/wiki-request.js';
7
+ /** Search WikiTree Profiles. */
8
+ export const searchProfilesTool = tool('genealogy_search_profiles', {
9
+ title: 'Search WikiTree Profiles',
10
+ description: 'Find visible WikiTree profiles by first_name or last_name. Dates, places, gender, preferred name, current surname, and parent names narrow the search. Use returned IDs with genealogy_get_profiles for biographies and citations, or genealogy_get_relatives for family links. Continue with next_offset when present.',
11
+ annotations: readOnly,
12
+ errors: [
13
+ {
14
+ reason: 'search_name_required',
15
+ code: JsonRpcErrorCode.InvalidParams,
16
+ when: 'WikiTree reports that the search has no usable name.',
17
+ recovery: 'Provide first_name or last_name as a nonblank name.',
18
+ retryable: false,
19
+ thrownBy: 'service',
20
+ },
21
+ ],
22
+ input: searchProfilesInput,
23
+ output: searchProfilesOutput,
24
+ handler: (input, ctx) => searchProfiles(input, wikiTreeDeadline(ctx.signal)),
25
+ format: formatData,
26
+ });
27
+ //# sourceMappingURL=search-profiles.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-profiles.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-profiles.tool.ts"],"names":[],"mappings":"AAAA,oFAAoF;AAEpF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAE9E,gCAAgC;AAChC,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC,2BAA2B,EAAE;IAClE,KAAK,EAAE,0BAA0B;IACjC,WAAW,EACT,yTAAyT;IAC3T,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE;QACN;YACE,MAAM,EAAE,sBAAsB;YAC9B,IAAI,EAAE,gBAAgB,CAAC,aAAa;YACpC,IAAI,EAAE,sDAAsD;YAC5D,QAAQ,EAAE,qDAAqD;YAC/D,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,SAAS;SACpB;KACF;IACD,KAAK,EAAE,mBAAmB;IAC1B,MAAM,EAAE,oBAAoB;IAC5B,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5E,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
@@ -7,6 +7,8 @@ export declare const searchRecordsTool: import("@cyanheads/mcp-ts-core").ToolDef
7
7
  }>;
8
8
  first_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
9
9
  last_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
10
+ certificate_number: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
11
+ soundex: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
10
12
  year_from: z.ZodOptional<z.ZodNumber>;
11
13
  year_to: z.ZodOptional<z.ZodNumber>;
12
14
  place: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
@@ -53,6 +55,30 @@ export declare const searchRecordsTool: import("@cyanheads/mcp-ts-core").ToolDef
53
55
  readonly when: "A filter is unavailable for the selected source.";
54
56
  readonly recovery: "Read genealogy_list_reference with topic=sources and remove unsupported filters.";
55
57
  readonly thrownBy: "service";
58
+ }, {
59
+ readonly reason: "years_outside_coverage";
60
+ readonly code: JsonRpcErrorCode.InvalidParams;
61
+ readonly when: "The requested years fall wholly outside the verified event years for the selected index.";
62
+ readonly recovery: "Choose years that overlap the verified bounds in this error or select another record source.";
63
+ readonly thrownBy: "service";
64
+ }, {
65
+ readonly reason: "years_outside_privacy";
66
+ readonly code: JsonRpcErrorCode.InvalidParams;
67
+ readonly when: "The requested years are later than the latest visible event year.";
68
+ readonly recovery: "Choose an earlier year within the visible coverage in this error.";
69
+ readonly thrownBy: "service";
70
+ }, {
71
+ readonly reason: "unsupported_place";
72
+ readonly code: JsonRpcErrorCode.InvalidParams;
73
+ readonly when: "The selected NYC vital index does not recognize the borough or county.";
74
+ readonly recovery: "Use an accepted borough or county name from this error or topic=sources.";
75
+ readonly thrownBy: "service";
76
+ }, {
77
+ readonly reason: "certificate_scope_required";
78
+ readonly code: JsonRpcErrorCode.InvalidParams;
79
+ readonly when: "A NYC vital certificate number is supplied without a name, borough and single year.";
80
+ readonly recovery: "Add a name or supply place and set year_from and year_to to the same year.";
81
+ readonly thrownBy: "service";
56
82
  }, {
57
83
  readonly reason: "unknown_reference_value";
58
84
  readonly code: JsonRpcErrorCode.InvalidParams;
@@ -1 +1 @@
1
- {"version":3,"file":"search-records.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-records.tool.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAWjE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0E5B,CAAC"}
1
+ {"version":3,"file":"search-records.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-records.tool.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAWjE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgH5B,CAAC"}