@cyanheads/genealogy-mcp-server 0.1.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +54 -23
- package/CLAUDE.md +54 -23
- package/README.md +142 -94
- package/changelog/0.2.x/0.2.0.md +27 -0
- package/changelog/0.2.x/0.2.1.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 +14 -8
- 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 +34 -3
- 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 +44 -24
- package/dist/services/genealogy/discovery.js.map +1 -1
- package/dist/services/genealogy/records.d.ts +8 -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 +67 -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 -7
- package/dist/services/open-archives/read-record.d.ts.map +1 -1
- package/dist/services/open-archives/read-record.js +19 -15
- package/dist/services/open-archives/read-record.js.map +1 -1
- package/dist/services/open-archives/reference.d.ts +9 -3
- package/dist/services/open-archives/reference.d.ts.map +1 -1
- package/dist/services/open-archives/reference.js +64 -8
- 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 +18 -18
- package/dist/services/open-archives/search-records.js.map +1 -1
- package/dist/services/open-archives/source-labels.d.ts +4 -0
- package/dist/services/open-archives/source-labels.d.ts.map +1 -0
- package/dist/services/open-archives/source-labels.js +116 -0
- package/dist/services/open-archives/source-labels.js.map +1 -0
- 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 +6 -1
- package/dist/services/socrata/indexes.d.ts.map +1 -1
- package/dist/services/socrata/indexes.js +54 -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 +36 -19
- package/dist/services/socrata/search-index.js.map +1 -1
- package/dist/services/socrata/us-state-codes.d.ts +4 -0
- package/dist/services/socrata/us-state-codes.d.ts.map +1 -0
- package/dist/services/socrata/us-state-codes.js +55 -0
- package/dist/services/socrata/us-state-codes.js.map +1 -0
- 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 +3 -3
- package/dist/services/wikitree/search-profiles.d.ts.map +1 -1
- package/dist/services/wikitree/search-profiles.js +27 -20
- 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 +7 -3
- package/server.json +12 -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,125 +1,165 @@
|
|
|
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
|
|
|
14
14
|
<div align="center">
|
|
15
15
|
|
|
16
|
-
[](https://github.com/cyanheads/genealogy-mcp-server/releases/latest/download/genealogy-mcp-server.mcpb) [](https://github.com/cyanheads/genealogy-mcp-server/releases/latest/download/genealogy-mcp-server.mcpb) [](https://developers.openai.com/codex/mcp) [](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22genealogy-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Fgenealogy-mcp-server%22%5D%7D)
|
|
17
17
|
|
|
18
18
|
[](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
|
|
19
19
|
|
|
20
20
|
</div>
|
|
21
21
|
|
|
22
|
+
<div align="center">
|
|
23
|
+
|
|
24
|
+
**Public Hosted Server:** [https://genealogy.caseyjhand.com/mcp](https://genealogy.caseyjhand.com/mcp)
|
|
25
|
+
|
|
26
|
+
</div>
|
|
27
|
+
|
|
22
28
|
---
|
|
23
29
|
|
|
24
30
|
## Overview
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
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, a local Streamable HTTP server, or the public hosted endpoint above.
|
|
27
33
|
|
|
28
34
|
### Tools
|
|
29
35
|
|
|
30
36
|
| Tool | Description |
|
|
31
37
|
|:---|:---|
|
|
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
|
-
|
|
|
38
|
+
| `genealogy_find_person` | Search WikiTree and every eligible record source for one name, with a separate outcome per source |
|
|
39
|
+
| `genealogy_search_profiles` | Search WikiTree by names, birth and death dates and places, gender, and parents' names |
|
|
40
|
+
| `genealogy_get_profiles` | Read up to 100 WikiTree profiles, with optional biographies and categories |
|
|
41
|
+
| `genealogy_get_relatives` | Walk a profile's ancestors or descendants, or read its immediate family and marriages |
|
|
42
|
+
| `genealogy_find_common_ancestors` | Find the shared ancestors of two WikiTree profiles, nearest first |
|
|
43
|
+
| `genealogy_search_records` | Search one archival, vital, veteran, or burial source by name, event years, and place |
|
|
44
|
+
| `genealogy_get_record` | Read an Open Archives record with its citation, events, people, relationships, and scan links |
|
|
45
|
+
| `genealogy_search_transcriptions` | Search the text of transcribed Open Archives pages |
|
|
46
|
+
| `genealogy_get_transcription` | Read a transcribed page in full with its archive and inventory references |
|
|
47
|
+
| `genealogy_list_reference` | Look up source coverage, identifiers, filter vocabularies, search syntax, and page limits |
|
|
48
|
+
|
|
49
|
+
### Sources
|
|
50
|
+
|
|
51
|
+
| Records | Live | Local mirror |
|
|
52
|
+
|:---|:---|:---|
|
|
53
|
+
| Family tree | `wikitree` (worldwide) | — |
|
|
54
|
+
| Archival records | `openarchieven` (chiefly the Netherlands, Belgium, France, and Suriname) | — |
|
|
55
|
+
| 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 |
|
|
56
|
+
| Births | `nyc_births` 1855–1909 | `oh_births` 1908–2020, `mo_births` 1910–2022, `sd_births` to 1919 |
|
|
57
|
+
| Marriages and divorces | `ct_marriages` 1897–2001, `nyc_marriages` 1866–1937, `ct_divorces` 1655–1953 | `hi_marriages` 1909–2023 |
|
|
58
|
+
| Veterans and burials | `va_gravesites` (VA national cemeteries) | `va_birls` (VA veteran deaths, to 2023) |
|
|
51
59
|
|
|
52
|
-
|
|
60
|
+
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
61
|
|
|
54
62
|
## Capability reference
|
|
55
63
|
|
|
64
|
+
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`.
|
|
65
|
+
|
|
56
66
|
### `genealogy_find_person` <sub>tool</sub>
|
|
57
67
|
|
|
58
|
-
-
|
|
59
|
-
-
|
|
68
|
+
- Supply `first_name` or `last_name`. Birth, death and burial indexes search within two years of the applicable event year. Open Archives searches from two years before `birth_year` through two years after `death_year`, leaving either end open when omitted. The optional `place` scopes the WikiTree birthplace or the index-specific location. A two-letter `country` scopes record sources while WikiTree stays worldwide.
|
|
69
|
+
- 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`
|
|
70
|
+
|
|
71
|
+
---
|
|
60
72
|
|
|
61
73
|
### `genealogy_search_profiles` <sub>tool</sub>
|
|
62
74
|
|
|
63
|
-
-
|
|
64
|
-
-
|
|
75
|
+
- 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
|
|
76
|
+
- Up to 100 profiles per page (default 10), continued with `next_offset`; `total` is omitted when the privacy policy may have withheld matches
|
|
77
|
+
|
|
78
|
+
---
|
|
65
79
|
|
|
66
80
|
### `genealogy_get_profiles` <sub>tool</sub>
|
|
67
81
|
|
|
68
|
-
- Pass up to 100
|
|
69
|
-
-
|
|
82
|
+
- 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`
|
|
83
|
+
- 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`
|
|
84
|
+
|
|
85
|
+
---
|
|
70
86
|
|
|
71
87
|
### `genealogy_get_relatives` <sub>tool</sub>
|
|
72
88
|
|
|
73
|
-
-
|
|
74
|
-
-
|
|
89
|
+
- `direction`: `ancestors` (up to 25 generations), `descendants` (up to 10), or `family` (parents, siblings, spouses, children, and marriages); `generations` defaults to 3
|
|
90
|
+
- 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`
|
|
91
|
+
|
|
92
|
+
---
|
|
75
93
|
|
|
76
94
|
### `genealogy_find_common_ancestors` <sub>tool</sub>
|
|
77
95
|
|
|
78
|
-
-
|
|
96
|
+
- Two profile keys, `a` and `b`, each searched up to 25 generations back (default 10)
|
|
97
|
+
- `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`
|
|
98
|
+
|
|
99
|
+
---
|
|
79
100
|
|
|
80
101
|
### `genealogy_search_records` <sub>tool</sub>
|
|
81
102
|
|
|
82
|
-
-
|
|
83
|
-
-
|
|
103
|
+
- 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 (VA cemetery city or state name/code, Connecticut event town, or Open Archives event place, for example). Socrata indexes match the full surname and accept a given name before a space and additional names. The New York State death index ignores padding in its stored names. NYC `soundex` matches the published code, which marriage parties can share. 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`
|
|
104
|
+
- 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
|
|
105
|
+
- 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`
|
|
106
|
+
|
|
107
|
+
---
|
|
84
108
|
|
|
85
109
|
### `genealogy_get_record` <sub>tool</sub>
|
|
86
110
|
|
|
87
|
-
- Pass the `
|
|
111
|
+
- 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`
|
|
112
|
+
- 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`
|
|
113
|
+
|
|
114
|
+
---
|
|
88
115
|
|
|
89
116
|
### `genealogy_search_transcriptions` <sub>tool</sub>
|
|
90
117
|
|
|
91
|
-
-
|
|
118
|
+
- 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
|
|
119
|
+
- 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
120
|
|
|
93
|
-
|
|
121
|
+
---
|
|
94
122
|
|
|
95
|
-
|
|
123
|
+
### `genealogy_get_transcription` <sub>tool</sub>
|
|
96
124
|
|
|
97
|
-
|
|
125
|
+
- `id` or canonical page link from a `genealogy_search_transcriptions` hit
|
|
126
|
+
- 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
127
|
|
|
99
|
-
|
|
128
|
+
---
|
|
100
129
|
|
|
101
|
-
###
|
|
130
|
+
### `genealogy_list_reference` <sub>tool</sub>
|
|
102
131
|
|
|
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`. |
|
|
132
|
+
- One `topic` per call: `sources`, `identifiers`, `privacy_levels`, `dates`, `archives`, `source_types`, `relation_types`, `search_syntax`, or `limits`
|
|
133
|
+
- `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
134
|
|
|
109
135
|
## Features
|
|
110
136
|
|
|
111
137
|
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
138
|
|
|
113
|
-
|
|
139
|
+
Genealogy-specific:
|
|
140
|
+
|
|
141
|
+
- 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
|
|
142
|
+
- 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))
|
|
143
|
+
- 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
|
|
144
|
+
- 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
|
|
145
|
+
- Biographies, remarks, snippets, and transcriptions are third-party text returned as evidence, and can name other people
|
|
114
146
|
|
|
115
|
-
-
|
|
116
|
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
147
|
+
Agent-friendly output:
|
|
148
|
+
|
|
149
|
+
- 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)
|
|
150
|
+
- 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
|
|
151
|
+
- 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
|
|
152
|
+
- `content[]` carries the same JSON as `structuredContent`, followed by links to the cited sources
|
|
119
153
|
|
|
120
154
|
## Getting started
|
|
121
155
|
|
|
122
|
-
|
|
156
|
+
Connect to the hosted instance, no install:
|
|
157
|
+
|
|
158
|
+
```sh
|
|
159
|
+
claude mcp add --transport http genealogy-mcp-server https://genealogy.caseyjhand.com/mcp
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Or run it locally:
|
|
123
163
|
|
|
124
164
|
```sh
|
|
125
165
|
claude mcp add genealogy-mcp-server -- npx -y @cyanheads/genealogy-mcp-server
|
|
@@ -138,53 +178,58 @@ For other clients, add this to the MCP config file:
|
|
|
138
178
|
}
|
|
139
179
|
```
|
|
140
180
|
|
|
141
|
-
For Docker or a source build, see [Running the server](#running-the-server).
|
|
181
|
+
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
182
|
|
|
143
183
|
## Configuration
|
|
144
184
|
|
|
145
185
|
| Variable | Description | Default |
|
|
146
186
|
|:---|:---|:---|
|
|
147
|
-
| `GENEALOGY_MIRROR_ENABLED` |
|
|
148
|
-
| `GENEALOGY_MIRROR_PATH` |
|
|
149
|
-
| `GENEALOGY_WITHHOLD_LIVING` | Historical privacy policy.
|
|
150
|
-
| `MCP_TRANSPORT_TYPE` | Transport
|
|
187
|
+
| `GENEALOGY_MIRROR_ENABLED` | Search the twelve mirrored indexes. Set `true` once the mirror CLI has built a snapshot. | `false` |
|
|
188
|
+
| `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) |
|
|
189
|
+
| `GENEALOGY_WITHHOLD_LIVING` | Historical privacy policy. Only an explicit `false` over stdio lifts it; HTTP always applies it. | `true` |
|
|
190
|
+
| `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http`. | `stdio` |
|
|
151
191
|
| `MCP_HTTP_HOST` | HTTP bind address. | `127.0.0.1` |
|
|
152
192
|
| `MCP_HTTP_PORT` | HTTP server port. | `3010` |
|
|
153
193
|
| `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
|
-
| `
|
|
194
|
+
| `MCP_SESSION_MODE` | HTTP session mode: `stateless`, `stateful`, or `auto`. | `stateless` |
|
|
195
|
+
| `MCP_AUTH_MODE` | Authentication: `none`, `jwt`, or `oauth`. | `none` |
|
|
196
|
+
| `MCP_LOG_LEVEL` | Log level (`debug`, `info`, `warning`, `error`, etc.). | `info` |
|
|
197
|
+
| `LOGS_DIR` | Directory for log files (Node.js only). | `<app-root>/logs` |
|
|
198
|
+
| `OTEL_ENABLED` | Enable [OpenTelemetry](https://github.com/cyanheads/mcp-ts-core/tree/main/docs/telemetry). | `false` |
|
|
199
|
+
| `MCP_USAGE_REPORTING` | **Off unless set to `true`.** Opt in to a daily summary of tool-call counts, failure types, and latency, sent to the server's author. Never includes argument values, results, or error messages. Respects `DO_NOT_TRACK`. See [Usage reports](#usage-reports). | unset (off) |
|
|
159
200
|
|
|
160
|
-
See [`.env.example`](./.env.example) for the common framework overrides.
|
|
201
|
+
See [`.env.example`](./.env.example) for every server setting and the common framework overrides.
|
|
161
202
|
|
|
162
203
|
### Optional local mirror
|
|
163
204
|
|
|
164
|
-
The mirror indexes twelve US
|
|
205
|
+
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
206
|
|
|
166
|
-
With the
|
|
207
|
+
With the package installed globally, manage it with the mirror CLI:
|
|
167
208
|
|
|
168
209
|
```sh
|
|
169
210
|
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
|
|
211
|
+
genealogy-mcp-server-mirror init # build the first snapshot
|
|
212
|
+
genealogy-mcp-server-mirror verify # check the published snapshot
|
|
213
|
+
genealogy-mcp-server-mirror refresh # pick up changed release files or the next year past the privacy cutoff
|
|
173
214
|
```
|
|
174
215
|
|
|
175
|
-
|
|
216
|
+
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
217
|
|
|
177
|
-
|
|
218
|
+
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.
|
|
178
219
|
|
|
179
|
-
|
|
220
|
+
### Usage reports
|
|
221
|
+
|
|
222
|
+
Usage reports (telemetry) are **off by default**. Nothing is sent unless you set `MCP_USAGE_REPORTING=true`, and `DO_NOT_TRACK` is respected: any value other than `0`, `false`, `no`, or `off` keeps reports off.
|
|
223
|
+
|
|
224
|
+
When on, the server sends a summary to `https://telemetry.cyanheads.com/v1/reports` once a day and at shutdown: tool-call counts, failure types, latency, the server and runtime versions, OS, and CPU architecture. It identifies the install only by a keyed hash of a random ID and never includes argument values, results, error messages, environment values, or hostnames. Set `MCP_USAGE_REPORTING_ENDPOINT` to use your own receiver. [Full report format](https://github.com/cyanheads/mcp-ts-core/blob/main/framework-skills/api-telemetry/SKILL.md#usage-reports).
|
|
180
225
|
|
|
181
226
|
## Running the server
|
|
182
227
|
|
|
183
228
|
### Local development
|
|
184
229
|
|
|
185
|
-
Requires [Bun v1.4.4](https://bun.sh/) or higher
|
|
230
|
+
Requires [Bun v1.4.4](https://bun.sh/) or higher to build, and Node.js v24+ to run the built server.
|
|
186
231
|
|
|
187
|
-
- **Clone and install
|
|
232
|
+
- **Clone and install**:
|
|
188
233
|
|
|
189
234
|
```sh
|
|
190
235
|
git clone https://github.com/cyanheads/genealogy-mcp-server.git
|
|
@@ -192,20 +237,22 @@ Requires [Bun v1.4.4](https://bun.sh/) or higher for the build, and Node.js v24+
|
|
|
192
237
|
cp .env.example .env
|
|
193
238
|
```
|
|
194
239
|
|
|
195
|
-
- **Build and run the production version
|
|
240
|
+
- **Build and run the production version**:
|
|
196
241
|
|
|
197
242
|
```sh
|
|
243
|
+
# One-time build
|
|
198
244
|
bun run rebuild
|
|
245
|
+
|
|
246
|
+
# Run the built server
|
|
199
247
|
bun run start:http
|
|
200
248
|
# or
|
|
201
249
|
bun run start:stdio
|
|
202
250
|
```
|
|
203
251
|
|
|
204
|
-
- **Run checks and tests
|
|
205
|
-
|
|
252
|
+
- **Run checks and tests**:
|
|
206
253
|
```sh
|
|
207
|
-
bun run devcheck
|
|
208
|
-
bun run test
|
|
254
|
+
bun run devcheck # Lints, formats, type-checks, and more
|
|
255
|
+
bun run test # Runs the test suite
|
|
209
256
|
```
|
|
210
257
|
|
|
211
258
|
### Docker
|
|
@@ -214,9 +261,9 @@ Requires [Bun v1.4.4](https://bun.sh/) or higher for the build, and Node.js v24+
|
|
|
214
261
|
docker run --rm -p 127.0.0.1:3010:3010 ghcr.io/cyanheads/genealogy-mcp-server:latest
|
|
215
262
|
```
|
|
216
263
|
|
|
217
|
-
The image defaults to HTTP
|
|
264
|
+
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
265
|
|
|
219
|
-
For the
|
|
266
|
+
For the mirror, keep it on a named volume and run the CLI from the same image:
|
|
220
267
|
|
|
221
268
|
```sh
|
|
222
269
|
docker volume create genealogy-mirror
|
|
@@ -226,28 +273,29 @@ docker run --rm -p 127.0.0.1:3010:3010 -v genealogy-mirror:/var/lib/genealogy-mc
|
|
|
226
273
|
-e GENEALOGY_MIRROR_ENABLED=true ghcr.io/cyanheads/genealogy-mcp-server:latest
|
|
227
274
|
```
|
|
228
275
|
|
|
229
|
-
|
|
276
|
+
Swap `init` for `verify` or `refresh` to maintain it.
|
|
230
277
|
|
|
231
278
|
## Project structure
|
|
232
279
|
|
|
233
280
|
| Directory | Purpose |
|
|
234
281
|
|:---|:---|
|
|
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,
|
|
282
|
+
| `src/mcp-server/tools` | Tool definitions (`*.tool.ts`). Ten read-only tools. |
|
|
283
|
+
| `src/services/genealogy` | Discovery, record-source routing, source descriptors, and shared schemas. |
|
|
284
|
+
| `src/services/wikitree` | WikiTree search, profile reads, privacy filtering, and pedigree walks. |
|
|
285
|
+
| `src/services/open-archives` | Open Archives records, transcriptions, and reference lists. |
|
|
286
|
+
| `src/services/socrata` | The eight live US indexes. |
|
|
287
|
+
| `src/services/mirror` | Mirror ingestion, SQLite snapshots, and the mirror CLI. |
|
|
288
|
+
| `src/config` | Server-specific environment variable parsing. |
|
|
289
|
+
| `tests/` | Provider, privacy, and mirror tests. |
|
|
243
290
|
|
|
244
291
|
## Development guide
|
|
245
292
|
|
|
246
|
-
See [`CLAUDE.md`](./CLAUDE.md) for development guidelines and architectural rules
|
|
293
|
+
See [`CLAUDE.md`](./CLAUDE.md) for development guidelines and architectural rules. The short version:
|
|
247
294
|
|
|
248
|
-
-
|
|
249
|
-
-
|
|
250
|
-
-
|
|
295
|
+
- Handlers throw, framework catches — no `try/catch` in tool logic
|
|
296
|
+
- Use `ctx.log` for logging, `ctx.state` for storage
|
|
297
|
+
- Register new tools and resources in the `createApp()` arrays in `src/index.ts`
|
|
298
|
+
- Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
|
|
251
299
|
|
|
252
300
|
## Contributing
|
|
253
301
|
|
|
@@ -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)).
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Improve historical record matching and source labels."
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.2.1 — 2026-12-02
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **VA gravesite search** accepts a cemetery city or US state name or code in `place`. Source metadata and search notices describe the accepted values. ([#20](https://github.com/cyanheads/genealogy-mcp-server/issues/20))
|
|
12
|
+
|
|
13
|
+
## Changed
|
|
14
|
+
|
|
15
|
+
- **Installation and usage reporting docs** list the existing public Streamable HTTP endpoint in the README and MCP Registry metadata, update client install links, and explain the existing opt-in reports and `DO_NOT_TRACK`.
|
|
16
|
+
- **MCPB packaging** strips dependency test suites, and the packaging linter verifies the result.
|
|
17
|
+
|
|
18
|
+
## Fixed
|
|
19
|
+
|
|
20
|
+
- **Socrata vital indexes** match literal leading given names before additional names, ignore stored name padding in New York State death records, and preserve indexed NYC surname matching. NYC marriage Soundex uses the published code, which the parties can share. ([#17](https://github.com/cyanheads/genealogy-mcp-server/issues/17))
|
|
21
|
+
- **Open Archives discovery** uses a lower bound two years before the birth year and an upper bound two years after the death year. Either bound can be supplied on its own. ([#18](https://github.com/cyanheads/genealogy-mcp-server/issues/18))
|
|
22
|
+
- **Open Archives record detail** adds English role, event, and source labels alongside the Dutch citation. Source labels use a verified snapshot until the live catalog is fetched, with zero extra requests during detail reads. ([#19](https://github.com/cyanheads/genealogy-mcp-server/issues/19))
|
|
23
|
+
- **WikiTree search and discovery** give actionable advice when no visible profiles match. Direct search suggests widening surname matching when a restricted mode was requested, and the default surname mode is documented as `all`. ([#21](https://github.com/cyanheads/genealogy-mcp-server/issues/21))
|
|
24
|
+
|
|
25
|
+
## Dependencies
|
|
26
|
+
|
|
27
|
+
- `@cyanheads/mcp-ts-core` ^0.13.25 → ^0.13.26
|
|
@@ -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"}
|