@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.
- package/AGENTS.md +50 -19
- package/CLAUDE.md +50 -19
- package/README.md +124 -94
- package/changelog/0.2.x/0.2.0.md +27 -0
- package/dist/config/server-config.d.ts +6 -1
- package/dist/config/server-config.d.ts.map +1 -1
- package/dist/config/server-config.js +17 -3
- package/dist/config/server-config.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/definitions/{genealogy_find_common_ancestors.tool.d.ts → find-common-ancestors.tool.d.ts} +14 -12
- package/dist/mcp-server/tools/definitions/find-common-ancestors.tool.d.ts.map +1 -0
- package/dist/mcp-server/tools/definitions/find-common-ancestors.tool.js +35 -0
- package/dist/mcp-server/tools/definitions/find-common-ancestors.tool.js.map +1 -0
- package/dist/mcp-server/tools/definitions/find-person.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/find-person.tool.js +3 -2
- package/dist/mcp-server/tools/definitions/find-person.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/{genealogy_get_profiles.tool.d.ts → get-profiles.tool.d.ts} +2 -2
- package/dist/mcp-server/tools/definitions/get-profiles.tool.d.ts.map +1 -0
- package/dist/mcp-server/tools/definitions/{genealogy_get_profiles.tool.js → get-profiles.tool.js} +3 -3
- package/dist/mcp-server/tools/definitions/get-profiles.tool.js.map +1 -0
- package/dist/mcp-server/tools/definitions/get-record.tool.d.ts +8 -1
- package/dist/mcp-server/tools/definitions/get-record.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-record.tool.js +13 -1
- package/dist/mcp-server/tools/definitions/get-record.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/{genealogy_get_relatives.tool.d.ts → get-relatives.tool.d.ts} +13 -12
- package/dist/mcp-server/tools/definitions/get-relatives.tool.d.ts.map +1 -0
- package/dist/mcp-server/tools/definitions/get-relatives.tool.js +35 -0
- package/dist/mcp-server/tools/definitions/get-relatives.tool.js.map +1 -0
- package/dist/mcp-server/tools/definitions/get-transcription.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-transcription.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/get-transcription.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/list-reference.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/list-reference.tool.js +13 -7
- package/dist/mcp-server/tools/definitions/list-reference.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/{genealogy_search_profiles.tool.d.ts → search-profiles.tool.d.ts} +12 -4
- package/dist/mcp-server/tools/definitions/search-profiles.tool.d.ts.map +1 -0
- package/dist/mcp-server/tools/definitions/search-profiles.tool.js +27 -0
- package/dist/mcp-server/tools/definitions/search-profiles.tool.js.map +1 -0
- package/dist/mcp-server/tools/definitions/search-records.tool.d.ts +26 -0
- package/dist/mcp-server/tools/definitions/search-records.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-records.tool.js +33 -2
- package/dist/mcp-server/tools/definitions/search-records.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-transcriptions.tool.d.ts +6 -0
- package/dist/mcp-server/tools/definitions/search-transcriptions.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-transcriptions.tool.js +10 -1
- package/dist/mcp-server/tools/definitions/search-transcriptions.tool.js.map +1 -1
- package/dist/services/genealogy/discovery.d.ts +8 -20
- package/dist/services/genealogy/discovery.d.ts.map +1 -1
- package/dist/services/genealogy/discovery.js +37 -20
- package/dist/services/genealogy/discovery.js.map +1 -1
- package/dist/services/genealogy/records.d.ts +7 -2
- package/dist/services/genealogy/records.d.ts.map +1 -1
- package/dist/services/genealogy/search-records.d.ts +25 -2
- package/dist/services/genealogy/search-records.d.ts.map +1 -1
- package/dist/services/genealogy/search-records.js +65 -16
- package/dist/services/genealogy/search-records.js.map +1 -1
- package/dist/services/genealogy/upstream.d.ts.map +1 -1
- package/dist/services/genealogy/upstream.js +1 -1
- package/dist/services/genealogy/upstream.js.map +1 -1
- package/dist/services/mirror/mirror-build.d.ts.map +1 -1
- package/dist/services/mirror/mirror-build.js +11 -15
- package/dist/services/mirror/mirror-build.js.map +1 -1
- package/dist/services/mirror/mirror-service.d.ts +4 -4
- package/dist/services/mirror/mirror-service.d.ts.map +1 -1
- package/dist/services/mirror/mirror-service.js +4 -15
- package/dist/services/mirror/mirror-service.js.map +1 -1
- package/dist/services/mirror/mirror-snapshot.d.ts.map +1 -1
- package/dist/services/mirror/mirror-snapshot.js +2 -3
- package/dist/services/mirror/mirror-snapshot.js.map +1 -1
- package/dist/services/open-archives/client.d.ts +1 -0
- package/dist/services/open-archives/client.d.ts.map +1 -1
- package/dist/services/open-archives/client.js +17 -6
- package/dist/services/open-archives/client.js.map +1 -1
- package/dist/services/open-archives/read-record.d.ts +4 -4
- package/dist/services/open-archives/read-record.d.ts.map +1 -1
- package/dist/services/open-archives/read-record.js +10 -11
- package/dist/services/open-archives/read-record.js.map +1 -1
- package/dist/services/open-archives/reference.d.ts +7 -3
- package/dist/services/open-archives/reference.d.ts.map +1 -1
- package/dist/services/open-archives/reference.js +40 -0
- package/dist/services/open-archives/reference.js.map +1 -1
- package/dist/services/open-archives/search-records.d.ts +1 -0
- package/dist/services/open-archives/search-records.d.ts.map +1 -1
- package/dist/services/open-archives/search-records.js +17 -18
- package/dist/services/open-archives/search-records.js.map +1 -1
- package/dist/services/open-archives/transcriptions.d.ts +1 -1
- package/dist/services/open-archives/transcriptions.d.ts.map +1 -1
- package/dist/services/open-archives/transcriptions.js +14 -17
- package/dist/services/open-archives/transcriptions.js.map +1 -1
- package/dist/services/socrata/indexes.d.ts +5 -1
- package/dist/services/socrata/indexes.d.ts.map +1 -1
- package/dist/services/socrata/indexes.js +51 -28
- package/dist/services/socrata/indexes.js.map +1 -1
- package/dist/services/socrata/search-index.d.ts +2 -1
- package/dist/services/socrata/search-index.d.ts.map +1 -1
- package/dist/services/socrata/search-index.js +22 -17
- package/dist/services/socrata/search-index.js.map +1 -1
- package/dist/services/wikitree/find-common-ancestors.d.ts +1 -0
- package/dist/services/wikitree/find-common-ancestors.d.ts.map +1 -1
- package/dist/services/wikitree/find-common-ancestors.js +25 -12
- package/dist/services/wikitree/find-common-ancestors.js.map +1 -1
- package/dist/services/wikitree/profile.d.ts +4 -0
- package/dist/services/wikitree/profile.d.ts.map +1 -1
- package/dist/services/wikitree/profile.js +17 -16
- package/dist/services/wikitree/profile.js.map +1 -1
- package/dist/services/wikitree/read-family.d.ts.map +1 -1
- package/dist/services/wikitree/read-family.js +24 -5
- package/dist/services/wikitree/read-family.js.map +1 -1
- package/dist/services/wikitree/read-people.d.ts.map +1 -1
- package/dist/services/wikitree/read-people.js +19 -7
- package/dist/services/wikitree/read-people.js.map +1 -1
- package/dist/services/wikitree/search-profiles.d.ts +1 -1
- package/dist/services/wikitree/search-profiles.d.ts.map +1 -1
- package/dist/services/wikitree/search-profiles.js +15 -8
- package/dist/services/wikitree/search-profiles.js.map +1 -1
- package/dist/services/wikitree/wiki-request.d.ts +3 -1
- package/dist/services/wikitree/wiki-request.d.ts.map +1 -1
- package/dist/services/wikitree/wiki-request.js +5 -1
- package/dist/services/wikitree/wiki-request.js.map +1 -1
- package/package.json +6 -2
- package/server.json +6 -6
- package/skills/genealogy-guide/SKILL.md +47 -0
- package/dist/mcp-server/tools/definitions/genealogy_find_common_ancestors.tool.d.ts.map +0 -1
- package/dist/mcp-server/tools/definitions/genealogy_find_common_ancestors.tool.js +0 -17
- package/dist/mcp-server/tools/definitions/genealogy_find_common_ancestors.tool.js.map +0 -1
- package/dist/mcp-server/tools/definitions/genealogy_get_profiles.tool.d.ts.map +0 -1
- package/dist/mcp-server/tools/definitions/genealogy_get_profiles.tool.js.map +0 -1
- package/dist/mcp-server/tools/definitions/genealogy_get_relatives.tool.d.ts.map +0 -1
- package/dist/mcp-server/tools/definitions/genealogy_get_relatives.tool.js +0 -17
- package/dist/mcp-server/tools/definitions/genealogy_get_relatives.tool.js.map +0 -1
- package/dist/mcp-server/tools/definitions/genealogy_search_profiles.tool.d.ts.map +0 -1
- package/dist/mcp-server/tools/definitions/genealogy_search_profiles.tool.js +0 -16
- package/dist/mcp-server/tools/definitions/genealogy_search_profiles.tool.js.map +0 -1
- package/dist/services/wikitree/tool-output.d.ts +0 -21
- package/dist/services/wikitree/tool-output.d.ts.map +0 -1
- package/dist/services/wikitree/tool-output.js +0 -26
- 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
|
|
4
|
+
<div>10 Tools</div>
|
|
5
5
|
</p>
|
|
6
6
|
</div>
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/genealogy-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/genealogy-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -23,103 +23,131 @@
|
|
|
23
23
|
|
|
24
24
|
## Overview
|
|
25
25
|
|
|
26
|
-
|
|
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` |
|
|
33
|
-
| `genealogy_search_profiles` | Search WikiTree by names, dates
|
|
34
|
-
| `genealogy_get_profiles` | Read WikiTree profiles
|
|
35
|
-
| `genealogy_get_relatives` |
|
|
36
|
-
| `genealogy_find_common_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
|
|
39
|
-
| `genealogy_search_transcriptions` |
|
|
40
|
-
| `genealogy_get_transcription` | Read
|
|
41
|
-
| `genealogy_list_reference` | Look up source coverage,
|
|
42
|
-
|
|
43
|
-
###
|
|
44
|
-
|
|
45
|
-
|
|
|
46
|
-
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
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
|
-
|
|
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
|
-
-
|
|
59
|
-
-
|
|
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
|
-
-
|
|
64
|
-
-
|
|
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
|
|
69
|
-
-
|
|
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
|
-
-
|
|
74
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
83
|
-
-
|
|
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 `
|
|
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
|
-
-
|
|
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
|
-
|
|
115
|
+
---
|
|
94
116
|
|
|
95
|
-
|
|
117
|
+
### `genealogy_get_transcription` <sub>tool</sub>
|
|
96
118
|
|
|
97
|
-
|
|
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
|
-
|
|
122
|
+
---
|
|
100
123
|
|
|
101
|
-
###
|
|
124
|
+
### `genealogy_list_reference` <sub>tool</sub>
|
|
102
125
|
|
|
103
|
-
|
|
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
|
-
|
|
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
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
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
|
-
|
|
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` |
|
|
148
|
-
| `GENEALOGY_MIRROR_PATH` |
|
|
149
|
-
| `GENEALOGY_WITHHOLD_LIVING` | Historical privacy policy.
|
|
150
|
-
| `MCP_TRANSPORT_TYPE` | Transport
|
|
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
|
|
155
|
-
| `MCP_AUTH_MODE` | Authentication
|
|
156
|
-
| `MCP_LOG_LEVEL` |
|
|
157
|
-
| `
|
|
158
|
-
| `
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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` |
|
|
236
|
-
| `src/services/genealogy` | Discovery, record routing, source
|
|
237
|
-
| `src/services/wikitree` |
|
|
238
|
-
| `src/services/open-archives` |
|
|
239
|
-
| `src/services/socrata` |
|
|
240
|
-
| `src/services/mirror` |
|
|
241
|
-
| `src/config` | Server environment
|
|
242
|
-
| `tests/` | Provider,
|
|
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
|
|
275
|
+
See [`CLAUDE.md`](./CLAUDE.md) for development guidelines and architectural rules. The short version:
|
|
247
276
|
|
|
248
|
-
-
|
|
249
|
-
-
|
|
250
|
-
-
|
|
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":"
|
|
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;
|
|
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 {
|
|
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,
|
|
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
|
-
/**
|
|
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:
|
|
86
|
-
readonly code:
|
|
87
|
-
readonly when:
|
|
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:
|
|
90
|
-
readonly recovery:
|
|
91
|
+
readonly thrownBy: "service";
|
|
92
|
+
readonly recovery: "Open the public WikiTree profile or choose a different starting profile.";
|
|
91
93
|
}, {
|
|
92
|
-
readonly reason:
|
|
93
|
-
readonly code:
|
|
94
|
-
readonly when:
|
|
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:
|
|
97
|
-
readonly recovery:
|
|
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=
|
|
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"}
|