@cyanheads/genealogy-mcp-server 0.1.1 → 0.2.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 (138) hide show
  1. package/AGENTS.md +50 -19
  2. package/CLAUDE.md +50 -19
  3. package/README.md +124 -94
  4. package/changelog/0.2.x/0.2.0.md +27 -0
  5. package/dist/config/server-config.d.ts +6 -1
  6. package/dist/config/server-config.d.ts.map +1 -1
  7. package/dist/config/server-config.js +17 -3
  8. package/dist/config/server-config.js.map +1 -1
  9. package/dist/index.js +5 -4
  10. package/dist/index.js.map +1 -1
  11. package/dist/mcp-server/tools/definitions/{genealogy_find_common_ancestors.tool.d.ts → find-common-ancestors.tool.d.ts} +14 -12
  12. package/dist/mcp-server/tools/definitions/find-common-ancestors.tool.d.ts.map +1 -0
  13. package/dist/mcp-server/tools/definitions/find-common-ancestors.tool.js +35 -0
  14. package/dist/mcp-server/tools/definitions/find-common-ancestors.tool.js.map +1 -0
  15. package/dist/mcp-server/tools/definitions/find-person.tool.d.ts.map +1 -1
  16. package/dist/mcp-server/tools/definitions/find-person.tool.js +3 -2
  17. package/dist/mcp-server/tools/definitions/find-person.tool.js.map +1 -1
  18. package/dist/mcp-server/tools/definitions/{genealogy_get_profiles.tool.d.ts → get-profiles.tool.d.ts} +2 -2
  19. package/dist/mcp-server/tools/definitions/get-profiles.tool.d.ts.map +1 -0
  20. package/dist/mcp-server/tools/definitions/{genealogy_get_profiles.tool.js → get-profiles.tool.js} +3 -3
  21. package/dist/mcp-server/tools/definitions/get-profiles.tool.js.map +1 -0
  22. package/dist/mcp-server/tools/definitions/get-record.tool.d.ts +8 -1
  23. package/dist/mcp-server/tools/definitions/get-record.tool.d.ts.map +1 -1
  24. package/dist/mcp-server/tools/definitions/get-record.tool.js +13 -1
  25. package/dist/mcp-server/tools/definitions/get-record.tool.js.map +1 -1
  26. package/dist/mcp-server/tools/definitions/{genealogy_get_relatives.tool.d.ts → get-relatives.tool.d.ts} +13 -12
  27. package/dist/mcp-server/tools/definitions/get-relatives.tool.d.ts.map +1 -0
  28. package/dist/mcp-server/tools/definitions/get-relatives.tool.js +35 -0
  29. package/dist/mcp-server/tools/definitions/get-relatives.tool.js.map +1 -0
  30. package/dist/mcp-server/tools/definitions/get-transcription.tool.d.ts.map +1 -1
  31. package/dist/mcp-server/tools/definitions/get-transcription.tool.js +1 -0
  32. package/dist/mcp-server/tools/definitions/get-transcription.tool.js.map +1 -1
  33. package/dist/mcp-server/tools/definitions/list-reference.tool.d.ts.map +1 -1
  34. package/dist/mcp-server/tools/definitions/list-reference.tool.js +13 -7
  35. package/dist/mcp-server/tools/definitions/list-reference.tool.js.map +1 -1
  36. package/dist/mcp-server/tools/definitions/{genealogy_search_profiles.tool.d.ts → search-profiles.tool.d.ts} +12 -4
  37. package/dist/mcp-server/tools/definitions/search-profiles.tool.d.ts.map +1 -0
  38. package/dist/mcp-server/tools/definitions/search-profiles.tool.js +27 -0
  39. package/dist/mcp-server/tools/definitions/search-profiles.tool.js.map +1 -0
  40. package/dist/mcp-server/tools/definitions/search-records.tool.d.ts +26 -0
  41. package/dist/mcp-server/tools/definitions/search-records.tool.d.ts.map +1 -1
  42. package/dist/mcp-server/tools/definitions/search-records.tool.js +33 -2
  43. package/dist/mcp-server/tools/definitions/search-records.tool.js.map +1 -1
  44. package/dist/mcp-server/tools/definitions/search-transcriptions.tool.d.ts +6 -0
  45. package/dist/mcp-server/tools/definitions/search-transcriptions.tool.d.ts.map +1 -1
  46. package/dist/mcp-server/tools/definitions/search-transcriptions.tool.js +10 -1
  47. package/dist/mcp-server/tools/definitions/search-transcriptions.tool.js.map +1 -1
  48. package/dist/services/genealogy/discovery.d.ts +8 -20
  49. package/dist/services/genealogy/discovery.d.ts.map +1 -1
  50. package/dist/services/genealogy/discovery.js +37 -20
  51. package/dist/services/genealogy/discovery.js.map +1 -1
  52. package/dist/services/genealogy/records.d.ts +7 -2
  53. package/dist/services/genealogy/records.d.ts.map +1 -1
  54. package/dist/services/genealogy/search-records.d.ts +25 -2
  55. package/dist/services/genealogy/search-records.d.ts.map +1 -1
  56. package/dist/services/genealogy/search-records.js +65 -16
  57. package/dist/services/genealogy/search-records.js.map +1 -1
  58. package/dist/services/genealogy/upstream.d.ts.map +1 -1
  59. package/dist/services/genealogy/upstream.js +1 -1
  60. package/dist/services/genealogy/upstream.js.map +1 -1
  61. package/dist/services/mirror/mirror-build.d.ts.map +1 -1
  62. package/dist/services/mirror/mirror-build.js +11 -15
  63. package/dist/services/mirror/mirror-build.js.map +1 -1
  64. package/dist/services/mirror/mirror-service.d.ts +4 -4
  65. package/dist/services/mirror/mirror-service.d.ts.map +1 -1
  66. package/dist/services/mirror/mirror-service.js +4 -15
  67. package/dist/services/mirror/mirror-service.js.map +1 -1
  68. package/dist/services/mirror/mirror-snapshot.d.ts.map +1 -1
  69. package/dist/services/mirror/mirror-snapshot.js +2 -3
  70. package/dist/services/mirror/mirror-snapshot.js.map +1 -1
  71. package/dist/services/open-archives/client.d.ts +1 -0
  72. package/dist/services/open-archives/client.d.ts.map +1 -1
  73. package/dist/services/open-archives/client.js +17 -6
  74. package/dist/services/open-archives/client.js.map +1 -1
  75. package/dist/services/open-archives/read-record.d.ts +4 -4
  76. package/dist/services/open-archives/read-record.d.ts.map +1 -1
  77. package/dist/services/open-archives/read-record.js +10 -11
  78. package/dist/services/open-archives/read-record.js.map +1 -1
  79. package/dist/services/open-archives/reference.d.ts +7 -3
  80. package/dist/services/open-archives/reference.d.ts.map +1 -1
  81. package/dist/services/open-archives/reference.js +40 -0
  82. package/dist/services/open-archives/reference.js.map +1 -1
  83. package/dist/services/open-archives/search-records.d.ts +1 -0
  84. package/dist/services/open-archives/search-records.d.ts.map +1 -1
  85. package/dist/services/open-archives/search-records.js +17 -18
  86. package/dist/services/open-archives/search-records.js.map +1 -1
  87. package/dist/services/open-archives/transcriptions.d.ts +1 -1
  88. package/dist/services/open-archives/transcriptions.d.ts.map +1 -1
  89. package/dist/services/open-archives/transcriptions.js +14 -17
  90. package/dist/services/open-archives/transcriptions.js.map +1 -1
  91. package/dist/services/socrata/indexes.d.ts +5 -1
  92. package/dist/services/socrata/indexes.d.ts.map +1 -1
  93. package/dist/services/socrata/indexes.js +51 -28
  94. package/dist/services/socrata/indexes.js.map +1 -1
  95. package/dist/services/socrata/search-index.d.ts +2 -1
  96. package/dist/services/socrata/search-index.d.ts.map +1 -1
  97. package/dist/services/socrata/search-index.js +22 -17
  98. package/dist/services/socrata/search-index.js.map +1 -1
  99. package/dist/services/wikitree/find-common-ancestors.d.ts +1 -0
  100. package/dist/services/wikitree/find-common-ancestors.d.ts.map +1 -1
  101. package/dist/services/wikitree/find-common-ancestors.js +25 -12
  102. package/dist/services/wikitree/find-common-ancestors.js.map +1 -1
  103. package/dist/services/wikitree/profile.d.ts +4 -0
  104. package/dist/services/wikitree/profile.d.ts.map +1 -1
  105. package/dist/services/wikitree/profile.js +17 -16
  106. package/dist/services/wikitree/profile.js.map +1 -1
  107. package/dist/services/wikitree/read-family.d.ts.map +1 -1
  108. package/dist/services/wikitree/read-family.js +24 -5
  109. package/dist/services/wikitree/read-family.js.map +1 -1
  110. package/dist/services/wikitree/read-people.d.ts.map +1 -1
  111. package/dist/services/wikitree/read-people.js +19 -7
  112. package/dist/services/wikitree/read-people.js.map +1 -1
  113. package/dist/services/wikitree/search-profiles.d.ts +1 -1
  114. package/dist/services/wikitree/search-profiles.d.ts.map +1 -1
  115. package/dist/services/wikitree/search-profiles.js +15 -8
  116. package/dist/services/wikitree/search-profiles.js.map +1 -1
  117. package/dist/services/wikitree/wiki-request.d.ts +3 -1
  118. package/dist/services/wikitree/wiki-request.d.ts.map +1 -1
  119. package/dist/services/wikitree/wiki-request.js +5 -1
  120. package/dist/services/wikitree/wiki-request.js.map +1 -1
  121. package/package.json +6 -2
  122. package/server.json +6 -6
  123. package/skills/genealogy-guide/SKILL.md +47 -0
  124. package/dist/mcp-server/tools/definitions/genealogy_find_common_ancestors.tool.d.ts.map +0 -1
  125. package/dist/mcp-server/tools/definitions/genealogy_find_common_ancestors.tool.js +0 -17
  126. package/dist/mcp-server/tools/definitions/genealogy_find_common_ancestors.tool.js.map +0 -1
  127. package/dist/mcp-server/tools/definitions/genealogy_get_profiles.tool.d.ts.map +0 -1
  128. package/dist/mcp-server/tools/definitions/genealogy_get_profiles.tool.js.map +0 -1
  129. package/dist/mcp-server/tools/definitions/genealogy_get_relatives.tool.d.ts.map +0 -1
  130. package/dist/mcp-server/tools/definitions/genealogy_get_relatives.tool.js +0 -17
  131. package/dist/mcp-server/tools/definitions/genealogy_get_relatives.tool.js.map +0 -1
  132. package/dist/mcp-server/tools/definitions/genealogy_search_profiles.tool.d.ts.map +0 -1
  133. package/dist/mcp-server/tools/definitions/genealogy_search_profiles.tool.js +0 -16
  134. package/dist/mcp-server/tools/definitions/genealogy_search_profiles.tool.js.map +0 -1
  135. package/dist/services/wikitree/tool-output.d.ts +0 -21
  136. package/dist/services/wikitree/tool-output.d.ts.map +0 -1
  137. package/dist/services/wikitree/tool-output.js +0 -26
  138. package/dist/services/wikitree/tool-output.js.map +0 -1
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  <div align="center">
2
2
  <h1>@cyanheads/genealogy-mcp-server</h1>
3
3
  <p><b>Search WikiTree family trees, Open Archives records and transcriptions, and US vital, veteran, and burial indexes via MCP. STDIO or Streamable HTTP.</b>
4
- <div>10 Tools • 22 Sources</div>
4
+ <div>10 Tools</div>
5
5
  </p>
6
6
  </div>
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-0.1.1-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/genealogy-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.4.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/genealogy-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/genealogy-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.4-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.2.0-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/genealogy-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.4.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/genealogy-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/genealogy-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.4-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -23,103 +23,131 @@
23
23
 
24
24
  ## Overview
25
25
 
26
- Start with a name, read a WikiTree profile or trace its family, and look for independent evidence in archival records. Ten read-only tools cover 22 sources. Ten sources are live and twelve come from an optional SQLite mirror. The public upstream searches need no API credentials. Run the server locally over stdio or self-host it over Streamable HTTP.
26
+ Family history research across WikiTree's shared tree, Open Archives records and transcriptions, and US vital, veteran, and burial indexes. Search all sources for a person in one call, read WikiTree profiles and walk their ancestors, descendants, and immediate family, find the common ancestors of two profiles, and look for documentary evidence in archival records. Ten sources are read live with no API keys, and twelve more US indexes come from an optional local SQLite mirror. Runs as a stdio process or a local Streamable HTTP server.
27
27
 
28
28
  ### Tools
29
29
 
30
30
  | Tool | Description |
31
31
  |:---|:---|
32
- | `genealogy_find_person` | Discover possible matches across the shared tree and eligible record collections |
33
- | `genealogy_search_profiles` | Search WikiTree by names, dates, places, and parents |
34
- | `genealogy_get_profiles` | Read WikiTree profiles in batches, with optional biographies and categories |
35
- | `genealogy_get_relatives` | Browse ancestors, descendants, or immediate family and marriages |
36
- | `genealogy_find_common_ancestors` | Compare two pedigrees and find their nearest visible shared ancestors |
37
- | `genealogy_search_records` | Search one archival, vital, veteran, or burial source |
38
- | `genealogy_get_record` | Read an Open Archives record with its citation, events, people, and relationships |
39
- | `genealogy_search_transcriptions` | Find published Open Archives transcriptions by text and archive |
40
- | `genealogy_get_transcription` | Read the complete transcription of a page and its archive references |
41
- | `genealogy_list_reference` | Look up source coverage, availability, filters, identifiers, and search syntax |
42
-
43
- ### Source coverage
44
-
45
- | Access | Sources |
46
- |:---|:---|
47
- | Live shared tree | `wikitree`, worldwide contributor research |
48
- | Live archives | `openarchieven`, covering chiefly the Netherlands, Belgium, France, and Suriname |
49
- | Live US indexes | `va_gravesites`, New York State and NYC deaths, Connecticut deaths, marriages and divorces, NYC births and marriages |
50
- | Local SQLite mirror | `va_birls`; deaths from New York (1880–1956), Hawaii, Minnesota, Missouri, Nebraska, New Jersey, and Vermont; Ohio, Missouri and South Dakota births; Hawaii marriages |
32
+ | `genealogy_find_person` | Search WikiTree and every eligible record source for one name, with a separate outcome per source |
33
+ | `genealogy_search_profiles` | Search WikiTree by names, birth and death dates and places, gender, and parents' names |
34
+ | `genealogy_get_profiles` | Read up to 100 WikiTree profiles, with optional biographies and categories |
35
+ | `genealogy_get_relatives` | Walk a profile's ancestors or descendants, or read its immediate family and marriages |
36
+ | `genealogy_find_common_ancestors` | Find the shared ancestors of two WikiTree profiles, nearest first |
37
+ | `genealogy_search_records` | Search one archival, vital, veteran, or burial source by name, event years, and place |
38
+ | `genealogy_get_record` | Read an Open Archives record with its citation, events, people, relationships, and scan links |
39
+ | `genealogy_search_transcriptions` | Search the text of transcribed Open Archives pages |
40
+ | `genealogy_get_transcription` | Read a transcribed page in full with its archive and inventory references |
41
+ | `genealogy_list_reference` | Look up source coverage, identifiers, filter vocabularies, search syntax, and page limits |
42
+
43
+ ### Sources
44
+
45
+ | Records | Live | Local mirror |
46
+ |:---|:---|:---|
47
+ | Family tree | `wikitree` (worldwide) | — |
48
+ | Archival records | `openarchieven` (chiefly the Netherlands, Belgium, France, and Suriname) | — |
49
+ | Deaths | `ny_deaths` 1957–1972, `nyc_deaths` 1862–1948, `ct_deaths` 1897–2001 | `ny_deaths_pre1957` 1880–1956, `nj_deaths` 2001–2017, `mn_deaths` 2011–2020, `hi_deaths` 1909–2023, `ne_deaths` 1956–1968, `vt_deaths` 2008–2020, `mo_deaths` 1968–2022 |
50
+ | Births | `nyc_births` 1855–1909 | `oh_births` 1908–2020, `mo_births` 1910–2022, `sd_births` to 1919 |
51
+ | Marriages and divorces | `ct_marriages` 1897–2001, `nyc_marriages` 1866–1937, `ct_divorces` 1655–1953 | `hi_marriages` 1909–2023 |
52
+ | Veterans and burials | `va_gravesites` (VA national cemeteries) | `va_birls` (VA veteran deaths, to 2023) |
51
53
 
52
- Call `genealogy_list_reference` with `{"topic":"sources"}` for exact source keys, year ranges, publishers, dataset links, supported filters, and mirror readiness. Coverage varies by collection and year. WikiTree is contributor research. Cite the linked profile for that research and the holding archive or index publisher for documentary evidence. Dates retain the precision of the source. Treat cross-source matches as hypotheses until the evidence connects them.
54
+ Years in the table are the published spans. Some indexes contain events outside those dates. `genealogy_list_reference` with `topic: "sources"` lists verified event-year bounds in `searchable_year_from` and `searchable_year_to` where known, alongside the publisher, dataset link, filters, and mirror readiness. `privacy_year_to` gives the active cutoff for protected birth, marriage, and divorce indexes.
53
55
 
54
56
  ## Capability reference
55
57
 
58
+ The [genealogy-guide](skills/genealogy-guide/SKILL.md) walks through tracing a family, checking a relationship against archival records, and following a transcription back to its source. MCP clients can read it at `skill://genealogy-guide/SKILL.md`.
59
+
56
60
  ### `genealogy_find_person` <sub>tool</sub>
57
61
 
58
- - Requires a first or last name. Add approximate birth and death years, place, or a two-letter country code to narrow eligible searches. Country scopes archival and index searches. WikiTree remains worldwide.
59
- - Returns an overview of up to ten visible matches per source, with applied filters and separate results for skipped or unavailable sources. Continue in the dedicated search tool.
62
+ - `first_name` or `last_name` required; optional approximate `birth_year`, `death_year` (birth, death, and burial indexes search two years on either side of the applicable event year), `place` (WikiTree birthplace, event place elsewhere), and a two-letter `country`, which scopes the record sources while WikiTree stays worldwide
63
+ - Up to 10 matches per source. Each source reports its own `status` (`ok`, `skipped` outside its country or years, or `unavailable`, which includes mirror sources while the mirror is off) with `has_more` and the `applied_filters` to continue in `genealogy_search_profiles` or `genealogy_search_records`
64
+
65
+ ---
60
66
 
61
67
  ### `genealogy_search_profiles` <sub>tool</sub>
62
68
 
63
- - Search by given, birth or current surname, dates and locations of birth and death, gender, or parents' names. Choose surname matching, variant handling, date spread, and sort.
64
- - Use `next_offset` when present. A visible total may be unavailable under the historical privacy policy.
69
+ - Supply `first_name` or `last_name`. Narrow the search with `real_name` (preferred given name), `last_name_current`, a birth or death date (`YYYY`, `YYYY-MM`, or `YYYY-MM-DD`) or place, `gender`, or a parent’s name. `date_spread_years` (1–20), `last_name_match`, `skip_variants`, `century_typo`, `date_include`, and `sort` tune matching
70
+ - Up to 100 profiles per page (default 10), continued with `next_offset`; `total` is omitted when the privacy policy may have withheld matches
71
+
72
+ ---
65
73
 
66
74
  ### `genealogy_get_profiles` <sub>tool</sub>
67
75
 
68
- - Pass up to 100 WikiTree numeric IDs, page names, or canonical profile links per batch. Reads include disclosed names and aliases, dates and places with source qualifications, gender, and available parent IDs.
69
- - Add `"include":["biography","categories"]` to retrieve available biographies in wiki markup and category titles. Categories cover the first ten distinct resolved profiles. Follow `deferred_ids` and `deferred_category_ids` for remaining work.
76
+ - Pass up to 100 numeric IDs, page names such as `Clemens-1`, or profile links. Merged keys resolve to the surviving visible profile. Each returned profile pairs the original `requested_id` with its canonical ID. Keys past 100 appear in `deferred_ids` and misses in `not_found`
77
+ - Profiles carry structured names and aliases, dates and places with WikiTree's `data_status` qualifications, gender, and parent IDs. `include: ["biography", "categories"]` adds wiki-markup biographies and category titles; categories cover the first 10 distinct profiles and list the rest in `deferred_category_ids`
78
+
79
+ ---
70
80
 
71
81
  ### `genealogy_get_relatives` <sub>tool</sub>
72
82
 
73
- - Set `direction` to `ancestors`, `descendants`, or `family`. Pedigrees default to three generations and support up to 25 generations of ancestors or ten of descendants. Immediate family includes available parents, siblings, spouses, children, and marriages.
74
- - Follow `next_offset` to continue. `open_ends` identifies parent slots that the source or privacy policy leaves unresolved.
83
+ - `direction`: `ancestors` (up to 25 generations), `descendants` (up to 10), or `family` (parents, siblings, spouses, children, and marriages); `generations` defaults to 3
84
+ - Up to 1,000 relatives per page (default 25), continued with `next_offset`. `open_ends` lists parent slots the source or the privacy policy leaves unresolved, and a missing or withheld starting profile returns `found: false`. Fails as `pedigree_permission_denied` or the retryable `walk_incomplete`
85
+
86
+ ---
75
87
 
76
88
  ### `genealogy_find_common_ancestors` <sub>tool</sub>
77
89
 
78
- - Compare two WikiTree profile keys up to 25 generations back (default ten). Returns visible shared ancestors with their shortest distance from each person and all ties for nearest by combined distance.
90
+ - Two profile keys, `a` and `b`, each searched up to 25 generations back (default 10)
91
+ - `common` lists every shared visible ancestor with `generations_from_a` and `generations_from_b`, a starting profile on the other’s verified ancestor path has distance zero on its own side, `nearest` holds all ties for the shortest combined distance, and `open_ends_a` / `open_ends_b` mark the gaps. Equivalent keys return `same_profile: true` with empty `common` and `nearest`. Fails as `pedigree_permission_denied` or the retryable `walk_incomplete`
92
+
93
+ ---
79
94
 
80
95
  ### `genealogy_search_records` <sub>tool</sub>
81
96
 
82
- - Choose a `source` and search by name, inclusive event-year bounds, and place where supported. A place can mean a cemetery city, birth city, death county, or other collection-specific field. Check `genealogy_list_reference` before supplying it.
83
- - Open Archives accepts a `query` in place of separate names and supports archive, record type, role, event place, birthplace, country, and sort filters. Its total counts matching person mentions, so several hits can share a record ID. That ID is available for Open Archives results. Use other indexes' publisher links and source references to follow up.
97
+ - One `source` per call with a name (or, for Open Archives, a `query` expression), inclusive `year_from` / `year_to` on the event, and `place` where the source supports it (cemetery city, death county, birth city, and so on). For NYC indexes, `soundex` narrows a name search. A `certificate_number` with a single year and borough can stand in for a name. `topic=sources` lists the accepted borough and county names. Open Archives adds `archive_code`, `source_type`, `relation_type`, `event_place`, `birth_place`, `country`, and `sort`
98
+ - Pages up to 100 rows for Open Archives and 1,200–2,000 for the US indexes, continued with `next_offset`. Open Archives accepts exact Dutch roles and known English aliases. It preserves the Dutch citation and includes `role_en` and `event_type_en` in `details` when a translation is available. Only Open Archives rows carry a `record_id` for `genealogy_get_record`, and its `total` counts person entries, so several hits can share one record
99
+ - Fails as `unsupported_filter`, `years_outside_coverage`, `years_outside_privacy`, `unsupported_place`, `certificate_scope_required`, `unknown_reference_value`, `page_out_of_range`, `mirror_disabled`, or `mirror_not_ready`
100
+
101
+ ---
84
102
 
85
103
  ### `genealogy_get_record` <sub>tool</sub>
86
104
 
87
- - Pass the `record_id` or canonical record link from an Open Archives hit. The result includes citation details, events, people, relationships, and supplied scan or viewer links. Dutch source terms are preserved, with English labels where known.
105
+ - Pass the `archive_code:identifier` key or the canonical record URL. Archive codes accept mixed case. A record URL may end in `/nl`, `/en`, `/de`, or `/fr`
106
+ - The citation (institution, archival reference, scan links), the event and any `additional_events`, people with roles and attributes, and their relationships. Dutch terms keep their source value beside an English `label_en` where one is known; an unknown ID returns `found: false` with `guidance`
107
+
108
+ ---
88
109
 
89
110
  ### `genealogy_search_transcriptions` <sub>tool</sub>
90
111
 
91
- - Use quoted phrases or `*` and `?` wildcards. Narrow by archive code, then archive number and inventory number. Year bounds filter the inventory span. A reported count of 10,000 is a lower bound.
112
+ - Full-text `query` with quoted phrases and `*` / `?` wildcards. Narrow by case-insensitive `archive_code`, then `archive_number`, then `inventory_number` (each needs the one before), and by `year_from` / `year_to` on the inventory span
113
+ - Up to 100 matching pages per call within a 10,000-result window; `total_is_lower_bound` flags a count at that ceiling, and snippets keep the source's emphasis markers
92
114
 
93
- ### `genealogy_get_transcription` <sub>tool</sub>
115
+ ---
94
116
 
95
- - Pass the `id` or canonical link from a transcription hit to retrieve the full page text, archive, inventory and page references, and available scan link.
117
+ ### `genealogy_get_transcription` <sub>tool</sub>
96
118
 
97
- ### `genealogy_list_reference` <sub>tool</sub>
119
+ - `id` or canonical page link from a `genealogy_search_transcriptions` hit
120
+ - The full page `text`, the holding `archive` (code, name, ISIL), `archive_number` and `inventory` references, page number, and `scan_url` when the source supplies one; an unknown ID returns `found: false`
98
121
 
99
- - Use `sources` for collection coverage, availability, and filters. Other topics cover `identifiers`, `privacy_levels`, `dates`, `archives`, `source_types`, `relation_types`, `search_syntax`, and `limits`.
122
+ ---
100
123
 
101
- ### Search to detail
124
+ ### `genealogy_list_reference` <sub>tool</sub>
102
125
 
103
- | Search | Follow-up |
104
- |:---|:---|
105
- | `genealogy_search_profiles` with `{"last_name":"Coret","birth_date":"1855","date_spread_years":5}` | Copy a result's `wikitree_id` or numeric `id` into `genealogy_get_profiles`'s `ids` array. Pass the same key as `id` to `genealogy_get_relatives` with `direction: "ancestors"`. |
106
- | `genealogy_search_records` with `{"source":"openarchieven","last_name":"Coret","year_from":1850,"year_to":1860}` | Copy the result's `record_id` into `genealogy_get_record`. |
107
- | `genealogy_search_transcriptions` with `{"query":"Coret","limit":5}` | Copy the page's `id` into `genealogy_get_transcription`. |
126
+ - One `topic` per call: `sources`, `identifiers`, `privacy_levels`, `dates`, `archives`, `source_types`, `relation_types`, `search_syntax`, or `limits`
127
+ - `sources` gives each source's years under the active privacy policy, publisher, dataset link, and supported filters, plus `ready` and `loaded_rows` for mirror sources. `archives` and `source_types` come from Open Archives, cached for a day, and fall back to the last good copy with a notice while it is unavailable
108
128
 
109
129
  ## Features
110
130
 
111
131
  Built on [`@cyanheads/mcp-ts-core`](https://github.com/cyanheads/mcp-ts-core): stdio and Streamable HTTP transports, pluggable auth (`none` / `jwt` / `oauth`), swappable storage (`in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2/D1`), structured logging with optional OpenTelemetry tracing.
112
132
 
113
- ### Historical privacy and downstream use
133
+ Genealogy-specific:
134
+
135
+ - Live reads from the WikiTree API, the Open Archives API, and the open-data portals of the VA, New York State, New York City, and Connecticut, with no API keys. Nothing WikiTree returns is kept after the request
136
+ - Optional mirror of twelve more US indexes from Reclaim the Records releases on the Internet Archive, built and refreshed by a separate CLI and served from a verified SQLite snapshot (see [Optional local mirror](#optional-local-mirror))
137
+ - Historical privacy policy, on by default: WikiTree returns only profiles with evidence of death and pedigrees stop at withheld profiles; the marriage, divorce, and Ohio and Missouri birth indexes return events more than 100 years old and drop unknown years; VA burial rows for family members omit the veteran's name. WikiTree's own privacy levels apply in every mode
138
+ - WikiTree's [App Policies](https://www.wikitree.com/wiki/Help:App_Policies), [Terms of Service](https://www.wikitree.com/about/terms.html), and [Acceptable Use Policy](https://www.wikitree.com/about/acceptable-use.html) cover downstream use: link back to WikiTree, follow its session retention rules, and keep its biographies off external sites. For Open Archives, cite the holding archive ([attribution guidance](https://www.openarchieven.nl/help/item.php/387?lang=en)); its [OAI-PMH metadata](https://www.openarchieven.nl/api/docs/oai-pmh/) is CC0, and scans and viewers follow each provider's terms
139
+ - Biographies, remarks, snippets, and transcriptions are third-party text returned as evidence, and can name other people
140
+
141
+ Agent-friendly output:
114
142
 
115
- - WikiTree results default to profiles with evidence that the subject is deceased. Its own access controls still apply. A private link or a branch that passes through a withheld profile can leave gaps in a pedigree. In both modes, use public biographies as research evidence, link back to WikiTree, respect its session retention rules, and keep WikiTree biographies off external sites. The server makes live reads and retains no WikiTree profile responses beyond the request. Your MCP client controls its own history and storage. [WikiTree App Policies](https://www.wikitree.com/wiki/Help:App_Policies) · [Terms of Service](https://www.wikitree.com/about/terms.html) · [Acceptable Use Policy](https://www.wikitree.com/about/acceptable-use.html)
116
- - Connecticut marriages and divorces, NYC marriages, Ohio and Missouri births, and Hawaii marriages apply a strict historical cutoff. The event year must be earlier than the current UTC year minus 100, and unknown years are excluded. During 2026, the last eligible year is 1925. Refresh the mirror after January 1 to admit the newly eligible year. Protected VA burial results withhold the associated veteran's name on family-member rows.
117
- - Cite the holding institution and collection for Open Archives evidence. CC0 applies to the provider's OAI-PMH metadata subject to its stated exclusions. Scans and viewers follow their respective providers' terms. [Open Archives attribution guidance](https://www.openarchieven.nl/help/item.php/387?lang=en) · [Metadata terms](https://www.openarchieven.nl/api/docs/oai-pmh/)
118
- - Treat source biographies, remarks, snippets, and transcriptions as evidence. They can contain third-party text and statements about other people.
143
+ - Provenance in results: `source`, publisher and dataset or collection links, snapshot `as_of` dates, and dates at source precision (`raw` text beside whichever `year`, `month`, and `day` are known)
144
+ - Per-source outcomes: `genealogy_find_person` reports `ok`, `skipped`, or `unavailable` with a `reason` for each source, so one failing index never hides the rest
145
+ - Misses as data: unknown IDs return `found: false` with `guidance`, batch reads list `not_found` and `deferred_ids`, and failures carry a typed `reason` with a recovery hint
146
+ - `content[]` carries the same JSON as `structuredContent`, followed by links to the cited sources
119
147
 
120
148
  ## Getting started
121
149
 
122
- Run locally in Claude Code:
150
+ Add it to Claude Code:
123
151
 
124
152
  ```sh
125
153
  claude mcp add genealogy-mcp-server -- npx -y @cyanheads/genealogy-mcp-server
@@ -138,53 +166,52 @@ For other clients, add this to the MCP config file:
138
166
  }
139
167
  ```
140
168
 
141
- For Docker or a source build, see [Running the server](#running-the-server).
169
+ The twelve mirrored indexes need a local mirror and `GENEALOGY_MIRROR_ENABLED=true` (see [Optional local mirror](#optional-local-mirror)). For Docker or a source build, see [Running the server](#running-the-server).
142
170
 
143
171
  ## Configuration
144
172
 
145
173
  | Variable | Description | Default |
146
174
  |:---|:---|:---|
147
- | `GENEALOGY_MIRROR_ENABLED` | Enable searches of a verified local mirror. Set to `true` after initialization. | `false` |
148
- | `GENEALOGY_MIRROR_PATH` | Directory used by both the CLI and server for mirror snapshots. | `~/.genealogy-mcp-server/mirror` (home directory); `/var/lib/genealogy-mcp-server` in Docker |
149
- | `GENEALOGY_WITHHOLD_LIVING` | Historical privacy policy. Explicit `false` lifts the server's policy only in private stdio. HTTP always applies it. | `true` |
150
- | `MCP_TRANSPORT_TYPE` | Transport, either `stdio` or `http`. | `stdio` |
175
+ | `GENEALOGY_MIRROR_ENABLED` | Search the twelve mirrored indexes. Set `true` once the mirror CLI has built a snapshot. | `false` |
176
+ | `GENEALOGY_MIRROR_PATH` | Absolute mirror directory shared by the server and mirror CLI. A leading `~/` expands to the user’s home directory. | `~/.genealogy-mcp-server/mirror` (`/var/lib/genealogy-mcp-server` in Docker) |
177
+ | `GENEALOGY_WITHHOLD_LIVING` | Historical privacy policy. Only an explicit `false` over stdio lifts it; HTTP always applies it. | `true` |
178
+ | `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http`. | `stdio` |
151
179
  | `MCP_HTTP_HOST` | HTTP bind address. | `127.0.0.1` |
152
180
  | `MCP_HTTP_PORT` | HTTP server port. | `3010` |
153
181
  | `MCP_HTTP_ENDPOINT_PATH` | HTTP endpoint path. | `/mcp` |
154
- | `MCP_SESSION_MODE` | HTTP session mode. | `stateless` |
155
- | `MCP_AUTH_MODE` | Authentication, either `none`, `jwt`, or `oauth`. | `none` |
156
- | `MCP_LOG_LEVEL` | Minimum log level. | `info` |
157
- | `OTEL_ENABLED` | Enable OpenTelemetry. | `false` |
158
- | `MCP_USAGE_REPORTING` | Opt in to sending tool-call summaries to the publisher. | `false` |
182
+ | `MCP_SESSION_MODE` | HTTP session mode: `stateless`, `stateful`, or `auto`. | `stateless` |
183
+ | `MCP_AUTH_MODE` | Authentication: `none`, `jwt`, or `oauth`. | `none` |
184
+ | `MCP_LOG_LEVEL` | Log level (`debug`, `info`, `warning`, `error`, etc.). | `info` |
185
+ | `LOGS_DIR` | Directory for log files (Node.js only). | `<app-root>/logs` |
186
+ | `OTEL_ENABLED` | Enable [OpenTelemetry](https://github.com/cyanheads/mcp-ts-core/tree/main/docs/telemetry). | `false` |
187
+ | `MCP_USAGE_REPORTING` | Set `true` to send a daily tool-call summary to the server's author. | `false` |
159
188
 
160
- See [`.env.example`](./.env.example) for the common framework overrides.
189
+ See [`.env.example`](./.env.example) for every server setting and the common framework overrides.
161
190
 
162
191
  ### Optional local mirror
163
192
 
164
- The mirror indexes twelve US archival collections from Reclaim the Records releases on the Internet Archive. It streams selected fields into SQLite, verifies the new indexes, and publishes a complete snapshot. The default protected build selects 51 input files totaling about 3.55 GB. Allow disk space for the active SQLite snapshot, a replacement build, and SQLite sidecar files. The upstream input size and the SQLite storage requirements differ.
193
+ The mirror indexes twelve US collections from Reclaim the Records releases on the Internet Archive. A build streams the selected CSV files into SQLite, keeps only the projected fields, verifies the result, and publishes it as one complete snapshot. The default build reads 51 files, about 3.55 GB; plan disk for the active snapshot, a replacement build during refresh, and SQLite's working files.
165
194
 
166
- With the npm package installed globally, initialize, verify, and refresh with the local CLI:
195
+ With the package installed globally, manage it with the mirror CLI:
167
196
 
168
197
  ```sh
169
198
  npm install -g @cyanheads/genealogy-mcp-server
170
- genealogy-mcp-server-mirror init
171
- genealogy-mcp-server-mirror verify
172
- genealogy-mcp-server-mirror refresh
199
+ genealogy-mcp-server-mirror init # build the first snapshot
200
+ genealogy-mcp-server-mirror verify # check the published snapshot
201
+ genealogy-mcp-server-mirror refresh # pick up changed release files or the next year past the privacy cutoff
173
202
  ```
174
203
 
175
- `init` builds the first snapshot, `verify` checks the current one, and `refresh` checks for updated archive files or a new historical cutoff. The server reads the published snapshot during requests. Run the CLI separately for updates.
204
+ From a checkout, run `bun run build`, then `bun run mirror:init`, `mirror:verify`, or `mirror:refresh`. The server only reads the published snapshot; set `GENEALOGY_MIRROR_ENABLED=true` in its environment and give the server and the CLI the same `GENEALOGY_MIRROR_PATH`.
176
205
 
177
- In a checkout, build first with `bun run build` and use `bun run mirror:init`, `bun run mirror:verify`, and `bun run mirror:refresh`. Set `GENEALOGY_MIRROR_ENABLED=true` in the server's environment (the `env` object in a stdio client config). Give the server and CLI the same mirror directory.
178
-
179
- For private stdio research with `GENEALOGY_WITHHOLD_LIVING=false`, initialize a separate mirror directory with that same setting and use it in the private client. Snapshot compatibility depends on the privacy setting. WikiTree's access controls and the source-specific field restrictions continue to apply.
206
+ A snapshot matches one privacy setting. For private stdio research with `GENEALOGY_WITHHOLD_LIVING=false`, build a separate mirror directory under that same setting (86 files, about 4.74 GB) and point that client at it.
180
207
 
181
208
  ## Running the server
182
209
 
183
210
  ### Local development
184
211
 
185
- Requires [Bun v1.4.4](https://bun.sh/) or higher for the build, and Node.js v24+ for the packaged server.
212
+ Requires [Bun v1.4.4](https://bun.sh/) or higher to build, and Node.js v24+ to run the built server.
186
213
 
187
- - **Clone and install**
214
+ - **Clone and install**:
188
215
 
189
216
  ```sh
190
217
  git clone https://github.com/cyanheads/genealogy-mcp-server.git
@@ -192,20 +219,22 @@ Requires [Bun v1.4.4](https://bun.sh/) or higher for the build, and Node.js v24+
192
219
  cp .env.example .env
193
220
  ```
194
221
 
195
- - **Build and run the production version**
222
+ - **Build and run the production version**:
196
223
 
197
224
  ```sh
225
+ # One-time build
198
226
  bun run rebuild
227
+
228
+ # Run the built server
199
229
  bun run start:http
200
230
  # or
201
231
  bun run start:stdio
202
232
  ```
203
233
 
204
- - **Run checks and tests**
205
-
234
+ - **Run checks and tests**:
206
235
  ```sh
207
- bun run devcheck
208
- bun run test
236
+ bun run devcheck # Lints, formats, type-checks, and more
237
+ bun run test # Runs the test suite
209
238
  ```
210
239
 
211
240
  ### Docker
@@ -214,9 +243,9 @@ Requires [Bun v1.4.4](https://bun.sh/) or higher for the build, and Node.js v24+
214
243
  docker run --rm -p 127.0.0.1:3010:3010 ghcr.io/cyanheads/genealogy-mcp-server:latest
215
244
  ```
216
245
 
217
- The image defaults to HTTP and stateless sessions. Point the client at `http://127.0.0.1:3010/mcp`. To run over stdio, configure the client to launch `docker run -i --rm -e MCP_TRANSPORT_TYPE=stdio ghcr.io/cyanheads/genealogy-mcp-server:latest`. Build the image locally with `docker build -t genealogy-mcp-server .`. Use `--build-arg OTEL_ENABLED=false` to omit OpenTelemetry peer dependencies.
246
+ The image defaults to HTTP transport, stateless session mode, and logs to `/var/log/genealogy-mcp-server`. To run it over stdio from an MCP client, use `"command": "docker"` with `"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/genealogy-mcp-server:latest"]`. To build locally, `docker build -t genealogy-mcp-server .`; OpenTelemetry peer dependencies are installed by default — build with `--build-arg OTEL_ENABLED=false` to omit them.
218
247
 
219
- For the optional protected mirror, use the same named volume for initialization, verification, refresh, and serving:
248
+ For the mirror, keep it on a named volume and run the CLI from the same image:
220
249
 
221
250
  ```sh
222
251
  docker volume create genealogy-mirror
@@ -226,28 +255,29 @@ docker run --rm -p 127.0.0.1:3010:3010 -v genealogy-mirror:/var/lib/genealogy-mc
226
255
  -e GENEALOGY_MIRROR_ENABLED=true ghcr.io/cyanheads/genealogy-mcp-server:latest
227
256
  ```
228
257
 
229
- Run the same CLI invocation with `verify` or `refresh` when needed.
258
+ Swap `init` for `verify` or `refresh` to maintain it.
230
259
 
231
260
  ## Project structure
232
261
 
233
262
  | Directory | Purpose |
234
263
  |:---|:---|
235
- | `src/mcp-server/tools` | The ten MCP tool definitions. |
236
- | `src/services/genealogy` | Discovery, record routing, source coverage, and shared schemas. |
237
- | `src/services/wikitree` | Profile reads, privacy filtering, and pedigree traversal. |
238
- | `src/services/open-archives` | Record and transcription search and detail. |
239
- | `src/services/socrata` | Queries for the eight live US indexes. |
240
- | `src/services/mirror` | Archive ingestion, SQLite indexes, and snapshot CLI. |
241
- | `src/config` | Server environment settings. |
242
- | `tests/` | Provider, policy, and mirror verification tests. |
264
+ | `src/mcp-server/tools` | Tool definitions (`*.tool.ts`). Ten read-only tools. |
265
+ | `src/services/genealogy` | Discovery, record-source routing, source descriptors, and shared schemas. |
266
+ | `src/services/wikitree` | WikiTree search, profile reads, privacy filtering, and pedigree walks. |
267
+ | `src/services/open-archives` | Open Archives records, transcriptions, and reference lists. |
268
+ | `src/services/socrata` | The eight live US indexes. |
269
+ | `src/services/mirror` | Mirror ingestion, SQLite snapshots, and the mirror CLI. |
270
+ | `src/config` | Server-specific environment variable parsing. |
271
+ | `tests/` | Provider, privacy, and mirror tests. |
243
272
 
244
273
  ## Development guide
245
274
 
246
- See [`CLAUDE.md`](./CLAUDE.md) for development guidelines and architectural rules and [`docs/tree.md`](./docs/tree.md) for the full layout.
275
+ See [`CLAUDE.md`](./CLAUDE.md) for development guidelines and architectural rules. The short version:
247
276
 
248
- - Register tools in `src/index.ts`. Handlers throw and the framework catches.
249
- - Validate upstream data before normalizing, and preserve source precision and provenance.
250
- - Render the same data in both MCP response surfaces.
277
+ - Handlers throw, framework catches — no `try/catch` in tool logic
278
+ - Use `ctx.log` for logging, `ctx.state` for storage
279
+ - Register new tools and resources in the `createApp()` arrays in `src/index.ts`
280
+ - Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
251
281
 
252
282
  ## Contributing
253
283
 
@@ -0,0 +1,27 @@
1
+ ---
2
+ summary: "Follow merged WikiTree profiles and find supporting evidence in historical records."
3
+ breaking: true
4
+ security: false
5
+ ---
6
+
7
+ # 0.2.0 — 2026-12-02
8
+
9
+ ## Added
10
+
11
+ - Added the genealogy-guide MCP resource for tracing WikiTree families and checking relationships against archival records.
12
+ - **NYC vital records** accept certificate-number and Soundex filters where indexed. A certificate lookup without a name requires a borough and a single year ([#15](https://github.com/cyanheads/genealogy-mcp-server/issues/15)).
13
+
14
+ ## Changed
15
+
16
+ - **Mirror directory** `GENEALOGY_MIRROR_PATH` requires an absolute path or a home-relative path starting with `~/`. If you configured a relative directory, set both the server and mirror CLI to the absolute path of your existing mirror.
17
+ - **Tool discovery** includes display titles and updated guidance for installation, privacy settings, and choosing a source.
18
+
19
+ ## Fixed
20
+
21
+ - **Merged WikiTree keys** resolve to the surviving profile across profile reads, family reads, and common-ancestor comparisons ([#7](https://github.com/cyanheads/genealogy-mcp-server/issues/7)).
22
+ - **Common ancestors** count a starting profile at generation zero when it is an ancestor of the other. Two keys for the same profile return `same_profile` ([#8](https://github.com/cyanheads/genealogy-mcp-server/issues/8)).
23
+ - **WikiTree name searches** return invalid-parameter errors for name-free searches ([#9](https://github.com/cyanheads/genealogy-mcp-server/issues/9)).
24
+ - **Open Archives roles** accept exact Dutch spellings and known English aliases. Returned citations preserve the Dutch roles ([#10](https://github.com/cyanheads/genealogy-mcp-server/issues/10)).
25
+ - **Person discovery** searches birth, death, and burial indexes within two years of an approximate event year and can find Connecticut records outside the catalogue span. A source timeout is reported separately from the other searches ([#11](https://github.com/cyanheads/genealogy-mcp-server/issues/11)).
26
+ - **Historical coverage** distinguishes verified event-year bounds, including New York State deaths, from catalogue spans and the privacy cutoff. Connecticut searches can reach indexed rows outside the catalogue span. NYC vital indexes recognize borough and county aliases ([#12](https://github.com/cyanheads/genealogy-mcp-server/issues/12)).
27
+ - **Open Archives identifiers** accept case-insensitive archive codes and localized record URLs ([#14](https://github.com/cyanheads/genealogy-mcp-server/issues/14)).
@@ -2,6 +2,11 @@
2
2
  export declare function getServerConfig(): {
3
3
  withholdLiving: boolean;
4
4
  mirrorEnabled: boolean;
5
- mirrorPath: string;
6
5
  };
6
+ /**
7
+ * Mirror directory shared with the mirror CLI. A leading `~` expands to the home directory. Throws a
8
+ * configuration error for any other relative GENEALOGY_MIRROR_PATH, since each process would resolve
9
+ * it against its own working directory and read a different mirror.
10
+ */
11
+ export declare function mirrorPath(): string;
7
12
  //# sourceMappingURL=server-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAKA,kFAAkF;AAClF,wBAAgB,eAAe;IAI3B,cAAc;IAId,aAAa;IACb,UAAU;EAKb"}
1
+ {"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAMA,kFAAkF;AAClF,wBAAgB,eAAe;IAI3B,cAAc;IAId,aAAa;EAEhB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAUnC"}
@@ -1,7 +1,8 @@
1
1
  /** @fileoverview Process configuration for historical privacy and the local record mirror. */
2
2
  import { homedir } from 'node:os';
3
- import { join, resolve } from 'node:path';
3
+ import { isAbsolute, join, resolve } from 'node:path';
4
4
  import { z } from '@cyanheads/mcp-ts-core';
5
+ import { configurationError } from '@cyanheads/mcp-ts-core/errors';
5
6
  /** Only explicit local opt-out permits loading or returning protected records. */
6
7
  export function getServerConfig() {
7
8
  const transport = (process.env.MCP_TRANSPORT_TYPE || 'stdio').toLowerCase();
@@ -10,8 +11,21 @@ export function getServerConfig() {
10
11
  withholdLiving: !(transport === 'stdio' &&
11
12
  process.env.GENEALOGY_WITHHOLD_LIVING?.trim().toLowerCase() === 'false'),
12
13
  mirrorEnabled: rawEnabled ? z.stringbool().parse(rawEnabled) : false,
13
- mirrorPath: resolve(process.env.GENEALOGY_MIRROR_PATH?.trim() ||
14
- join(homedir(), '.genealogy-mcp-server', 'mirror')),
15
14
  };
16
15
  }
16
+ /**
17
+ * Mirror directory shared with the mirror CLI. A leading `~` expands to the home directory. Throws a
18
+ * configuration error for any other relative GENEALOGY_MIRROR_PATH, since each process would resolve
19
+ * it against its own working directory and read a different mirror.
20
+ */
21
+ export function mirrorPath() {
22
+ const configured = process.env.GENEALOGY_MIRROR_PATH?.trim();
23
+ if (!configured)
24
+ return join(homedir(), '.genealogy-mcp-server', 'mirror');
25
+ const path = configured.replace(/^~(?=\/|$)/, homedir());
26
+ if (!isAbsolute(path)) {
27
+ throw configurationError(`GENEALOGY_MIRROR_PATH must be an absolute path; got "${configured}". Set the same absolute path for the mirror CLI and the MCP client.`);
28
+ }
29
+ return resolve(path);
30
+ }
17
31
  //# sourceMappingURL=server-config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"server-config.js","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAE3C,kFAAkF;AAClF,MAAM,UAAU,eAAe;IAC7B,MAAM,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;IAC5E,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,IAAI,EAAE,CAAC;IAChE,OAAO;QACL,cAAc,EAAE,CAAC,CACf,SAAS,KAAK,OAAO;YACrB,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,OAAO,CACxE;QACD,aAAa,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK;QACpE,UAAU,EAAE,OAAO,CACjB,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,IAAI,EAAE;YACvC,IAAI,CAAC,OAAO,EAAE,EAAE,uBAAuB,EAAE,QAAQ,CAAC,CACrD;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"server-config.js","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,kFAAkF;AAClF,MAAM,UAAU,eAAe;IAC7B,MAAM,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;IAC5E,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,IAAI,EAAE,CAAC;IAChE,OAAO;QACL,cAAc,EAAE,CAAC,CACf,SAAS,KAAK,OAAO;YACrB,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,OAAO,CACxE;QACD,aAAa,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK;KACrE,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,UAAU;IACxB,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAI,CAAC,UAAU;QAAE,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,uBAAuB,EAAE,QAAQ,CAAC,CAAC;IAC3E,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,EAAE,CAAC,CAAC;IACzD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACtB,MAAM,kBAAkB,CACtB,wDAAwD,UAAU,sEAAsE,CACzI,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;AACvB,CAAC"}
package/dist/index.js CHANGED
@@ -4,19 +4,20 @@
4
4
  * @module index
5
5
  */
6
6
  import { createApp } from '@cyanheads/mcp-ts-core';
7
+ import { findCommonAncestorsTool } from './mcp-server/tools/definitions/find-common-ancestors.tool.js';
7
8
  import { findPersonTool } from './mcp-server/tools/definitions/find-person.tool.js';
8
- import { findCommonAncestorsTool } from './mcp-server/tools/definitions/genealogy_find_common_ancestors.tool.js';
9
- import { getProfilesTool } from './mcp-server/tools/definitions/genealogy_get_profiles.tool.js';
10
- import { getRelativesTool } from './mcp-server/tools/definitions/genealogy_get_relatives.tool.js';
11
- import { searchProfilesTool } from './mcp-server/tools/definitions/genealogy_search_profiles.tool.js';
9
+ import { getProfilesTool } from './mcp-server/tools/definitions/get-profiles.tool.js';
12
10
  import { getRecordTool } from './mcp-server/tools/definitions/get-record.tool.js';
11
+ import { getRelativesTool } from './mcp-server/tools/definitions/get-relatives.tool.js';
13
12
  import { getTranscriptionTool } from './mcp-server/tools/definitions/get-transcription.tool.js';
14
13
  import { listReferenceTool } from './mcp-server/tools/definitions/list-reference.tool.js';
14
+ import { searchProfilesTool } from './mcp-server/tools/definitions/search-profiles.tool.js';
15
15
  import { searchRecordsTool } from './mcp-server/tools/definitions/search-records.tool.js';
16
16
  import { searchTranscriptionsTool } from './mcp-server/tools/definitions/search-transcriptions.tool.js';
17
17
  await createApp({
18
18
  name: 'genealogy-mcp-server',
19
19
  title: 'genealogy-mcp-server',
20
+ skills: 'skills',
20
21
  tools: [
21
22
  findPersonTool,
22
23
  searchProfilesTool,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wEAAwE,CAAC;AACjH,OAAO,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,gEAAgE,CAAC;AAClG,OAAO,EAAE,kBAAkB,EAAE,MAAM,kEAAkE,CAAC;AACtG,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AAExG,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,sBAAsB;IAC7B,KAAK,EAAE;QACL,cAAc;QACd,kBAAkB;QAClB,eAAe;QACf,gBAAgB;QAChB,uBAAuB;QACvB,iBAAiB;QACjB,aAAa;QACb,wBAAwB;QACxB,oBAAoB;QACpB,iBAAiB;KAClB;IACD,YAAY,EACV,whBAAwhB;IAC1hB,WAAW,EAAE,WAAW;IACxB,cAAc,EAAE,EAAE,QAAQ,EAAE,4CAA4C,EAAE;CAC3E,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAC;AACvG,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AAExG,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,sBAAsB;IAC7B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE;QACL,cAAc;QACd,kBAAkB;QAClB,eAAe;QACf,gBAAgB;QAChB,uBAAuB;QACvB,iBAAiB;QACjB,aAAa;QACb,wBAAwB;QACxB,oBAAoB;QACpB,iBAAiB;KAClB;IACD,YAAY,EACV,whBAAwhB;IAC1hB,WAAW,EAAE,WAAW;IACxB,cAAc,EAAE,EAAE,QAAQ,EAAE,4CAA4C,EAAE;CAC3E,CAAC,CAAC"}
@@ -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"}