@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
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** @fileoverview Compare two WikiTree pedigrees for shared ancestors and the nearest ties. */
|
|
2
|
+
import { tool } from '@cyanheads/mcp-ts-core';
|
|
3
|
+
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
4
|
+
import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
|
|
5
|
+
import { findCommonAncestors, findCommonAncestorsInput, findCommonAncestorsOutput, } from '../../../services/wikitree/find-common-ancestors.js';
|
|
6
|
+
import { wikiTreeDeadline } from '../../../services/wikitree/wiki-request.js';
|
|
7
|
+
/** Find Common WikiTree Ancestors. */
|
|
8
|
+
export const findCommonAncestorsTool = tool('genealogy_find_common_ancestors', {
|
|
9
|
+
title: 'Find Common WikiTree Ancestors',
|
|
10
|
+
description: 'Compare the visible ancestors of two WikiTree profiles within a generation limit. Returns shared ancestors and all ties for the shortest combined distance, including a starting profile when it is an ancestor of the other. Reports same_profile when both keys resolve to one profile. Use genealogy_get_relatives to inspect either profile’s pedigree and gaps.',
|
|
11
|
+
annotations: readOnly,
|
|
12
|
+
errors: [
|
|
13
|
+
{
|
|
14
|
+
reason: 'pedigree_permission_denied',
|
|
15
|
+
code: JsonRpcErrorCode.Forbidden,
|
|
16
|
+
when: 'WikiTree declines permission to traverse the starting profile.',
|
|
17
|
+
retryable: false,
|
|
18
|
+
thrownBy: 'service',
|
|
19
|
+
recovery: 'Open the public WikiTree profile or choose a different starting profile.',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
reason: 'walk_incomplete',
|
|
23
|
+
code: JsonRpcErrorCode.ServiceUnavailable,
|
|
24
|
+
when: 'WikiTree returns an inconsistent or stalled pedigree walk.',
|
|
25
|
+
retryable: true,
|
|
26
|
+
thrownBy: 'service',
|
|
27
|
+
recovery: 'Retry with fewer generations or use genealogy_get_profiles for the starting profiles.',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
input: findCommonAncestorsInput,
|
|
31
|
+
output: findCommonAncestorsOutput,
|
|
32
|
+
handler: (input, ctx) => findCommonAncestors(input, wikiTreeDeadline(ctx.signal)),
|
|
33
|
+
format: formatData,
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=find-common-ancestors.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-common-ancestors.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-common-ancestors.tool.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAE9F,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAE9E,sCAAsC;AACtC,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC,iCAAiC,EAAE;IAC7E,KAAK,EAAE,gCAAgC;IACvC,WAAW,EACT,sWAAsW;IACxW,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE;QACN;YACE,MAAM,EAAE,4BAA4B;YACpC,IAAI,EAAE,gBAAgB,CAAC,SAAS;YAChC,IAAI,EAAE,gEAAgE;YACtE,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE,0EAA0E;SACrF;QACD;YACE,MAAM,EAAE,iBAAiB;YACzB,IAAI,EAAE,gBAAgB,CAAC,kBAAkB;YACzC,IAAI,EAAE,4DAA4D;YAClE,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,SAAS;YACnB,QAAQ,EACN,uFAAuF;SAC1F;KACF;IACD,KAAK,EAAE,wBAAwB;IAC/B,MAAM,EAAE,yBAAyB;IACjC,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACjF,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-person.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-person.tool.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAiCjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"find-person.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-person.tool.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAiCjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAgCzB,CAAC"}
|
|
@@ -27,13 +27,14 @@ const outcome = z
|
|
|
27
27
|
})
|
|
28
28
|
.describe('One attributed provider outcome.');
|
|
29
29
|
export const findPersonTool = tool('genealogy_find_person', {
|
|
30
|
+
title: 'Find Person Across Sources',
|
|
30
31
|
description: 'Find candidate matches across WikiTree, Open Archives, and US indexes with at least one given name or surname. Returns up to ten matches per eligible source. Continue with genealogy_search_profiles for WikiTree or genealogy_search_records for one record index. Matches across sources can refer to different people.',
|
|
31
32
|
annotations: readOnly,
|
|
32
33
|
input: z.object({
|
|
33
34
|
first_name: optionalText.describe('Given name.'),
|
|
34
35
|
last_name: optionalText.describe('Family name.'),
|
|
35
|
-
birth_year: year.describe('Approximate birth year.'),
|
|
36
|
-
death_year: year.describe('Approximate death year.'),
|
|
36
|
+
birth_year: year.describe('Approximate birth year. Birth indexes search within two years.'),
|
|
37
|
+
death_year: year.describe('Approximate death year. Death and burial indexes search within two years.'),
|
|
37
38
|
place: optionalText.describe('Birthplace on WikiTree, event place on supporting record sources.'),
|
|
38
39
|
country: z
|
|
39
40
|
.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-person.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-person.tool.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AACpE,OAAO,EACL,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,IAAI,GACL,MAAM,4CAA4C,CAAC;AAEpD,MAAM,OAAO,GAAG,CAAC;KACd,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IACrD,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,IAAI,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC;SACtC,QAAQ,CAAC,yCAAyC,CAAC;IACtD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;IACtF,IAAI,EAAE,CAAC;SACJ,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,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C;IACpD,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** @fileoverview Read WikiTree profiles in request order, with optional biographies or categories. */
|
|
2
2
|
/** Read WikiTree Profiles. */
|
|
3
3
|
export declare const getProfilesTool: import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
4
4
|
ids: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodInt]>>;
|
|
@@ -47,4 +47,4 @@ export declare const getProfilesTool: import("@cyanheads/mcp-ts-core").ToolDefin
|
|
|
47
47
|
deferred_category_ids: import("zod").ZodArray<import("zod").ZodInt>;
|
|
48
48
|
guidance: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
49
|
}, import("zod/v4/core").$strip>, undefined, undefined>;
|
|
50
|
-
//# sourceMappingURL=
|
|
50
|
+
//# sourceMappingURL=get-profiles.tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-profiles.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-profiles.tool.ts"],"names":[],"mappings":"AAAA,sGAAsG;AAWtG,8BAA8B;AAC9B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAS1B,CAAC"}
|
package/dist/mcp-server/tools/definitions/{genealogy_get_profiles.tool.js → get-profiles.tool.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** @fileoverview Read WikiTree profiles in request order, with optional biographies or categories. */
|
|
2
2
|
import { tool } from '@cyanheads/mcp-ts-core';
|
|
3
3
|
import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
|
|
4
4
|
import { getProfiles, getProfilesInput, getProfilesOutput, } from '../../../services/wikitree/get-profiles.js';
|
|
5
|
-
import { wikiTreeDeadline } from '../../../services/wikitree/
|
|
5
|
+
import { wikiTreeDeadline } from '../../../services/wikitree/wiki-request.js';
|
|
6
6
|
/** Read WikiTree Profiles. */
|
|
7
7
|
export const getProfilesTool = tool('genealogy_get_profiles', {
|
|
8
8
|
title: 'Read WikiTree Profiles',
|
|
@@ -13,4 +13,4 @@ export const getProfilesTool = tool('genealogy_get_profiles', {
|
|
|
13
13
|
handler: (input, ctx) => getProfiles(input, wikiTreeDeadline(ctx.signal)),
|
|
14
14
|
format: formatData,
|
|
15
15
|
});
|
|
16
|
-
//# sourceMappingURL=
|
|
16
|
+
//# sourceMappingURL=get-profiles.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-profiles.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-profiles.tool.ts"],"names":[],"mappings":"AAAA,sGAAsG;AAEtG,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAE9E,8BAA8B;AAC9B,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,wBAAwB,EAAE;IAC5D,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EACT,sPAAsP;IACxP,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,gBAAgB;IACvB,MAAM,EAAE,iBAAiB;IACzB,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACzE,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @fileoverview Read an Open Archives record by its ID or canonical URL. */
|
|
2
2
|
import { z } from '@cyanheads/mcp-ts-core';
|
|
3
|
+
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
3
4
|
export declare const getRecordTool: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
|
|
4
5
|
record_id: z.ZodString;
|
|
5
6
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -13,5 +14,11 @@ export declare const getRecordTool: import("@cyanheads/mcp-ts-core").ToolDefinit
|
|
|
13
14
|
relations: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
14
15
|
url: z.ZodOptional<z.ZodString>;
|
|
15
16
|
guidance: z.ZodOptional<z.ZodString>;
|
|
16
|
-
}, z.core.$strip>,
|
|
17
|
+
}, z.core.$strip>, readonly [{
|
|
18
|
+
readonly reason: "unknown_reference_value";
|
|
19
|
+
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
20
|
+
readonly when: "The archive code in the record ID or URL is unknown.";
|
|
21
|
+
readonly recovery: "Use genealogy_list_reference with topic=archives and copy the archive code.";
|
|
22
|
+
readonly thrownBy: "service";
|
|
23
|
+
}], undefined>;
|
|
17
24
|
//# sourceMappingURL=get-record.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-record.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-record.tool.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-record.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-record.tool.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAIjE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;cAsDxB,CAAC"}
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
/** @fileoverview Read an Open Archives record by its ID or canonical URL. */
|
|
2
2
|
import { tool, z } from '@cyanheads/mcp-ts-core';
|
|
3
|
+
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
3
4
|
import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
|
|
5
|
+
import { archiveCodeRecovery } from '../../../services/open-archives/client.js';
|
|
4
6
|
import { readArchiveRecord } from '../../../services/open-archives/read-record.js';
|
|
5
7
|
export const getRecordTool = tool('genealogy_get_record', {
|
|
8
|
+
title: 'Read Open Archives Record',
|
|
6
9
|
description: 'Read an Open Archives record by its ID or canonical URL. Returns its source citation, scan links, people, events and relationships. Obtain an ID with genealogy_search_records.',
|
|
7
10
|
annotations: readOnly,
|
|
11
|
+
errors: [
|
|
12
|
+
{
|
|
13
|
+
reason: 'unknown_reference_value',
|
|
14
|
+
code: JsonRpcErrorCode.InvalidParams,
|
|
15
|
+
when: 'The archive code in the record ID or URL is unknown.',
|
|
16
|
+
recovery: archiveCodeRecovery,
|
|
17
|
+
thrownBy: 'service',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
8
20
|
input: z.object({
|
|
9
21
|
record_id: z
|
|
10
22
|
.string()
|
|
11
23
|
.trim()
|
|
12
24
|
.min(1)
|
|
13
|
-
.describe('archive_code:identifier or
|
|
25
|
+
.describe('archive_code:identifier or an Open Archives HTTPS record URL, including a language suffix (/nl, /en, /de, or /fr). The archive code is case-insensitive.'),
|
|
14
26
|
}),
|
|
15
27
|
output: z.object({
|
|
16
28
|
source: z.string().describe('Record provider.'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-record.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-record.tool.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,sBAAsB,EAAE;IACxD,WAAW,EACT,iLAAiL;IACnL,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,
|
|
1
|
+
{"version":3,"file":"get-record.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-record.tool.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,sBAAsB,EAAE;IACxD,KAAK,EAAE,2BAA2B;IAClC,WAAW,EACT,iLAAiL;IACnL,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE;QACN;YACE,MAAM,EAAE,yBAAyB;YACjC,IAAI,EAAE,gBAAgB,CAAC,aAAa;YACpC,IAAI,EAAE,sDAAsD;YAC5D,QAAQ,EAAE,mBAAmB;YAC7B,QAAQ,EAAE,SAAS;SACpB;KACF;IACD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,CACP,0JAA0J,CAC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B,CAAC;QACzD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;KAClF,CAAC;IACF,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC;IACvE,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** @fileoverview Trace WikiTree parents or children by generation, or read immediate family. */
|
|
2
|
+
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
2
3
|
/** Read WikiTree Relatives. */
|
|
3
4
|
export declare const getRelativesTool: import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
4
5
|
id: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodInt]>;
|
|
@@ -75,18 +76,18 @@ export declare const getRelativesTool: import("@cyanheads/mcp-ts-core").ToolDefi
|
|
|
75
76
|
}>;
|
|
76
77
|
}, import("zod/v4/core").$strip>>>;
|
|
77
78
|
}, import("zod/v4/core").$strip>, readonly [{
|
|
78
|
-
readonly reason:
|
|
79
|
-
readonly code:
|
|
80
|
-
readonly when:
|
|
79
|
+
readonly reason: "pedigree_permission_denied";
|
|
80
|
+
readonly code: JsonRpcErrorCode.Forbidden;
|
|
81
|
+
readonly when: "WikiTree declines permission to traverse the starting profile.";
|
|
81
82
|
readonly retryable: false;
|
|
82
|
-
readonly thrownBy:
|
|
83
|
-
readonly recovery:
|
|
83
|
+
readonly thrownBy: "service";
|
|
84
|
+
readonly recovery: "Open the public WikiTree profile or choose a different starting profile.";
|
|
84
85
|
}, {
|
|
85
|
-
readonly reason:
|
|
86
|
-
readonly code:
|
|
87
|
-
readonly when:
|
|
86
|
+
readonly reason: "walk_incomplete";
|
|
87
|
+
readonly code: JsonRpcErrorCode.ServiceUnavailable;
|
|
88
|
+
readonly when: "WikiTree returns an inconsistent or stalled pedigree walk.";
|
|
88
89
|
readonly retryable: true;
|
|
89
|
-
readonly thrownBy:
|
|
90
|
-
readonly recovery:
|
|
90
|
+
readonly thrownBy: "service";
|
|
91
|
+
readonly recovery: "Retry with fewer generations or use genealogy_get_profiles for the starting profiles.";
|
|
91
92
|
}], undefined>;
|
|
92
|
-
//# sourceMappingURL=
|
|
93
|
+
//# sourceMappingURL=get-relatives.tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-relatives.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-relatives.tool.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAGhG,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AASjE,+BAA+B;AAC/B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4B3B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** @fileoverview Trace WikiTree parents or children by generation, or read immediate family. */
|
|
2
|
+
import { tool } from '@cyanheads/mcp-ts-core';
|
|
3
|
+
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
4
|
+
import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
|
|
5
|
+
import { getRelatives, getRelativesInput, getRelativesOutput, } from '../../../services/wikitree/get-relatives.js';
|
|
6
|
+
import { wikiTreeDeadline } from '../../../services/wikitree/wiki-request.js';
|
|
7
|
+
/** Read WikiTree Relatives. */
|
|
8
|
+
export const getRelativesTool = tool('genealogy_get_relatives', {
|
|
9
|
+
title: 'Read WikiTree Relatives',
|
|
10
|
+
description: 'Trace parents or children by generation, or read immediate parents, siblings, spouses, and children with recorded marriages. Continue with next_offset when present. Use genealogy_find_common_ancestors to compare two pedigrees.',
|
|
11
|
+
annotations: readOnly,
|
|
12
|
+
errors: [
|
|
13
|
+
{
|
|
14
|
+
reason: 'pedigree_permission_denied',
|
|
15
|
+
code: JsonRpcErrorCode.Forbidden,
|
|
16
|
+
when: 'WikiTree declines permission to traverse the starting profile.',
|
|
17
|
+
retryable: false,
|
|
18
|
+
thrownBy: 'service',
|
|
19
|
+
recovery: 'Open the public WikiTree profile or choose a different starting profile.',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
reason: 'walk_incomplete',
|
|
23
|
+
code: JsonRpcErrorCode.ServiceUnavailable,
|
|
24
|
+
when: 'WikiTree returns an inconsistent or stalled pedigree walk.',
|
|
25
|
+
retryable: true,
|
|
26
|
+
thrownBy: 'service',
|
|
27
|
+
recovery: 'Retry with fewer generations or use genealogy_get_profiles for the starting profiles.',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
input: getRelativesInput,
|
|
31
|
+
output: getRelativesOutput,
|
|
32
|
+
handler: (input, ctx) => getRelatives(input, wikiTreeDeadline(ctx.signal)),
|
|
33
|
+
format: formatData,
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=get-relatives.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-relatives.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-relatives.tool.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAEhG,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAE9E,+BAA+B;AAC/B,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,yBAAyB,EAAE;IAC9D,KAAK,EAAE,yBAAyB;IAChC,WAAW,EACT,oOAAoO;IACtO,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE;QACN;YACE,MAAM,EAAE,4BAA4B;YACpC,IAAI,EAAE,gBAAgB,CAAC,SAAS;YAChC,IAAI,EAAE,gEAAgE;YACtE,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE,0EAA0E;SACrF;QACD;YACE,MAAM,EAAE,iBAAiB;YACzB,IAAI,EAAE,gBAAgB,CAAC,kBAAkB;YACzC,IAAI,EAAE,4DAA4D;YAClE,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,SAAS;YACnB,QAAQ,EACN,uFAAuF;SAC1F;KACF;IACD,KAAK,EAAE,iBAAiB;IACxB,MAAM,EAAE,kBAAkB;IAC1B,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1E,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-transcription.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-transcription.tool.ts"],"names":[],"mappings":"AAAA,gIAAgI;AAChI,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAGjD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-transcription.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-transcription.tool.ts"],"names":[],"mappings":"AAAA,gIAAgI;AAChI,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAGjD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;wCAoC/B,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { tool, z } from '@cyanheads/mcp-ts-core';
|
|
|
3
3
|
import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
|
|
4
4
|
import { readTranscription } from '../../../services/open-archives/transcriptions.js';
|
|
5
5
|
export const getTranscriptionTool = tool('genealogy_get_transcription', {
|
|
6
|
+
title: 'Read Open Archives Transcription',
|
|
6
7
|
description: 'Read a transcribed Open Archives page in full, with the holding archive, inventory reference and scan link. Supply an ID from genealogy_search_transcriptions.',
|
|
7
8
|
annotations: readOnly,
|
|
8
9
|
input: z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-transcription.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-transcription.tool.ts"],"names":[],"mappings":"AAAA,gIAAgI;AAChI,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACtF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,6BAA6B,EAAE;IACtE,WAAW,EACT,gKAAgK;IAClK,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,EAAE,EAAE,CAAC;aACF,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,CAAC,gEAAgE,CAAC;KAC9E,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;QACtD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;QAClD,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;QACvD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE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AAE,CAAC,CAAC,OAAO,EAAE,CAAC;aAC/B,QAAQ,EAAE;aACV,QAAQ,CAAC,2CAA2C,CAAC;QACxD,SAAS,EAAE,CAAC;aACT,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;aAC/B,QAAQ,EAAE;aACV,QAAQ,CAAC,kCAAkC,CAAC;QAC/C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;QACvD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;KACnF,CAAC;IACF,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC;IAChE,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-reference.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/list-reference.tool.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAuBjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"list-reference.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/list-reference.tool.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAuBjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqL5B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @fileoverview Source coverage, syntax and decoding guidance for the genealogy tools. */
|
|
2
2
|
import { tool, z } from '@cyanheads/mcp-ts-core';
|
|
3
3
|
import { getServerConfig } from '../../../config/server-config.js';
|
|
4
|
-
import {
|
|
4
|
+
import { profileSource, recordLimit, recordSources, recordYearCoverage, } from '../../../services/genealogy/search-records.js';
|
|
5
5
|
import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
|
|
6
6
|
import { mirrorStatus } from '../../../services/mirror/mirror-service.js';
|
|
7
7
|
import { archiveReference, relations } from '../../../services/open-archives/reference.js';
|
|
@@ -17,6 +17,7 @@ const topics = [
|
|
|
17
17
|
'limits',
|
|
18
18
|
];
|
|
19
19
|
export const listReferenceTool = tool('genealogy_list_reference', {
|
|
20
|
+
title: 'Look Up Genealogy Reference',
|
|
20
21
|
description: 'Look up source coverage and availability, valid identifiers, date and privacy conventions, archive codes, filter vocabularies, query syntax or page limits.',
|
|
21
22
|
annotations: readOnly,
|
|
22
23
|
input: z.object({
|
|
@@ -49,7 +50,14 @@ export const listReferenceTool = tool('genealogy_list_reference', {
|
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
52
|
if (topic === 'relation_types')
|
|
52
|
-
return {
|
|
53
|
+
return {
|
|
54
|
+
source: 'openarchieven',
|
|
55
|
+
topic,
|
|
56
|
+
data: relations,
|
|
57
|
+
notices: [
|
|
58
|
+
'These Dutch roles have known aliases. Other Dutch roles can be searched using their exact spelling and capitalization.',
|
|
59
|
+
],
|
|
60
|
+
};
|
|
53
61
|
if (topic === 'sources')
|
|
54
62
|
return {
|
|
55
63
|
source: 'genealogy',
|
|
@@ -58,10 +66,7 @@ export const listReferenceTool = tool('genealogy_list_reference', {
|
|
|
58
66
|
const status = s.access === 'mirror' ? mirrorStatus(s.id) : undefined;
|
|
59
67
|
return {
|
|
60
68
|
...s,
|
|
61
|
-
...(
|
|
62
|
-
published_year_to: s.year_to,
|
|
63
|
-
year_to: effectiveYearTo(s),
|
|
64
|
-
}),
|
|
69
|
+
...recordYearCoverage(s),
|
|
65
70
|
ready: s.access === 'mirror' ? Boolean(status) : undefined,
|
|
66
71
|
loaded_rows: status?.total,
|
|
67
72
|
as_of: status?.as_of ?? s.as_of,
|
|
@@ -69,6 +74,7 @@ export const listReferenceTool = tool('genealogy_list_reference', {
|
|
|
69
74
|
}),
|
|
70
75
|
notices: [
|
|
71
76
|
'WikiTree covers a worldwide shared tree. Documentary records cover participating archives and selected US indexes. A missing match cannot exclude a record elsewhere.',
|
|
77
|
+
'year_from and year_to summarize catalogue coverage, with published_year_to retaining the original end when privacy lowers year_to. searchable_year_from and searchable_year_to identify verified indexed event-year bounds where available. privacy_year_to is the policy cutoff.',
|
|
72
78
|
],
|
|
73
79
|
};
|
|
74
80
|
const config = getServerConfig();
|
|
@@ -84,7 +90,7 @@ export const listReferenceTool = tool('genealogy_list_reference', {
|
|
|
84
90
|
},
|
|
85
91
|
{
|
|
86
92
|
source: 'openarchieven',
|
|
87
|
-
identifiers: 'archive_code:identifier
|
|
93
|
+
identifiers: 'Copy archive_code:identifier or the Open Archives record URL from a search row. Archive codes are case-insensitive. Record URLs can include a /nl, /en, /de or /fr suffix. For transcriptions, copy the opaque page ID.',
|
|
88
94
|
},
|
|
89
95
|
{
|
|
90
96
|
source: 'indexes',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-reference.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/list-reference.tool.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"list-reference.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/list-reference.tool.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,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O,EAAE,GAAG,EAAE;wBAChE,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE;wBAC9D;4BACE,IAAI,EAAE,yBAAyB;4BAC/B,OAAO,EAAE,EAAE;4BACX,OAAO,EAAE,IAAI;4BACb,oBAAoB,EAAE,EAAE;4BACxB,sBAAsB,EAAE,EAAE;yBAC3B;wBACD,EAAE,IAAI,EAAE,iCAAiC,EAAE,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE;wBAC/E,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;4BAC3B,IAAI,EAAE,0BAA0B;4BAChC,MAAM,EAAE,CAAC,CAAC,EAAE;4BACZ,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC;yBACxB,CAAC,CAAC;qBACJ;iBACF,CAAC;QACN,CAAC;IACH,CAAC;IACD,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** @fileoverview Search visible WikiTree profiles by name with optional filters. */
|
|
2
|
+
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
2
3
|
/** Search WikiTree Profiles. */
|
|
3
4
|
export declare const searchProfilesTool: import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
4
5
|
first_name: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodOptional<import("zod").ZodString>, unknown>>;
|
|
@@ -46,7 +47,7 @@ export declare const searchProfilesTool: import("@cyanheads/mcp-ts-core").ToolDe
|
|
|
46
47
|
}>>;
|
|
47
48
|
offset: import("zod").ZodDefault<import("zod").ZodInt>;
|
|
48
49
|
limit: import("zod").ZodDefault<import("zod").ZodInt>;
|
|
49
|
-
}, import("zod/v4/core").$
|
|
50
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
50
51
|
source: import("zod").ZodLiteral<"wikitree">;
|
|
51
52
|
total: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
52
53
|
offset: import("zod").ZodInt;
|
|
@@ -65,5 +66,12 @@ export declare const searchProfilesTool: import("@cyanheads/mcp-ts-core").ToolDe
|
|
|
65
66
|
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
66
67
|
}, import("zod/v4/core").$strip>>;
|
|
67
68
|
notices: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
68
|
-
}, import("zod/v4/core").$strip>,
|
|
69
|
-
|
|
69
|
+
}, import("zod/v4/core").$strip>, readonly [{
|
|
70
|
+
readonly reason: "search_name_required";
|
|
71
|
+
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
72
|
+
readonly when: "WikiTree reports that the search has no usable name.";
|
|
73
|
+
readonly recovery: "Provide first_name or last_name as a nonblank name.";
|
|
74
|
+
readonly retryable: false;
|
|
75
|
+
readonly thrownBy: "service";
|
|
76
|
+
}], undefined>;
|
|
77
|
+
//# sourceMappingURL=search-profiles.tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-profiles.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-profiles.tool.ts"],"names":[],"mappings":"AAAA,oFAAoF;AAGpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AASjE,gCAAgC;AAChC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmB7B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @fileoverview Search visible WikiTree profiles by name with optional filters. */
|
|
2
|
+
import { tool } from '@cyanheads/mcp-ts-core';
|
|
3
|
+
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
4
|
+
import { formatData, readOnly } from '../../../services/genealogy/tool-fields.js';
|
|
5
|
+
import { searchProfiles, searchProfilesInput, searchProfilesOutput, } from '../../../services/wikitree/search-profiles.js';
|
|
6
|
+
import { wikiTreeDeadline } from '../../../services/wikitree/wiki-request.js';
|
|
7
|
+
/** Search WikiTree Profiles. */
|
|
8
|
+
export const searchProfilesTool = tool('genealogy_search_profiles', {
|
|
9
|
+
title: 'Search WikiTree Profiles',
|
|
10
|
+
description: 'Find visible WikiTree profiles by first_name or last_name. Dates, places, gender, preferred name, current surname, and parent names narrow the search. Use returned IDs with genealogy_get_profiles for biographies and citations, or genealogy_get_relatives for family links. Continue with next_offset when present.',
|
|
11
|
+
annotations: readOnly,
|
|
12
|
+
errors: [
|
|
13
|
+
{
|
|
14
|
+
reason: 'search_name_required',
|
|
15
|
+
code: JsonRpcErrorCode.InvalidParams,
|
|
16
|
+
when: 'WikiTree reports that the search has no usable name.',
|
|
17
|
+
recovery: 'Provide first_name or last_name as a nonblank name.',
|
|
18
|
+
retryable: false,
|
|
19
|
+
thrownBy: 'service',
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
input: searchProfilesInput,
|
|
23
|
+
output: searchProfilesOutput,
|
|
24
|
+
handler: (input, ctx) => searchProfiles(input, wikiTreeDeadline(ctx.signal)),
|
|
25
|
+
format: formatData,
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=search-profiles.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-profiles.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-profiles.tool.ts"],"names":[],"mappings":"AAAA,oFAAoF;AAEpF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAE9E,gCAAgC;AAChC,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC,2BAA2B,EAAE;IAClE,KAAK,EAAE,0BAA0B;IACjC,WAAW,EACT,yTAAyT;IAC3T,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE;QACN;YACE,MAAM,EAAE,sBAAsB;YAC9B,IAAI,EAAE,gBAAgB,CAAC,aAAa;YACpC,IAAI,EAAE,sDAAsD;YAC5D,QAAQ,EAAE,qDAAqD;YAC/D,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,SAAS;SACpB;KACF;IACD,KAAK,EAAE,mBAAmB;IAC1B,MAAM,EAAE,oBAAoB;IAC5B,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5E,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
|
|
@@ -7,6 +7,8 @@ export declare const searchRecordsTool: import("@cyanheads/mcp-ts-core").ToolDef
|
|
|
7
7
|
}>;
|
|
8
8
|
first_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
9
9
|
last_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
10
|
+
certificate_number: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
11
|
+
soundex: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
10
12
|
year_from: z.ZodOptional<z.ZodNumber>;
|
|
11
13
|
year_to: z.ZodOptional<z.ZodNumber>;
|
|
12
14
|
place: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
@@ -53,6 +55,30 @@ export declare const searchRecordsTool: import("@cyanheads/mcp-ts-core").ToolDef
|
|
|
53
55
|
readonly when: "A filter is unavailable for the selected source.";
|
|
54
56
|
readonly recovery: "Read genealogy_list_reference with topic=sources and remove unsupported filters.";
|
|
55
57
|
readonly thrownBy: "service";
|
|
58
|
+
}, {
|
|
59
|
+
readonly reason: "years_outside_coverage";
|
|
60
|
+
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
61
|
+
readonly when: "The requested years fall wholly outside the verified event years for the selected index.";
|
|
62
|
+
readonly recovery: "Choose years that overlap the verified bounds in this error or select another record source.";
|
|
63
|
+
readonly thrownBy: "service";
|
|
64
|
+
}, {
|
|
65
|
+
readonly reason: "years_outside_privacy";
|
|
66
|
+
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
67
|
+
readonly when: "The requested years are later than the latest visible event year.";
|
|
68
|
+
readonly recovery: "Choose an earlier year within the visible coverage in this error.";
|
|
69
|
+
readonly thrownBy: "service";
|
|
70
|
+
}, {
|
|
71
|
+
readonly reason: "unsupported_place";
|
|
72
|
+
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
73
|
+
readonly when: "The selected NYC vital index does not recognize the borough or county.";
|
|
74
|
+
readonly recovery: "Use an accepted borough or county name from this error or topic=sources.";
|
|
75
|
+
readonly thrownBy: "service";
|
|
76
|
+
}, {
|
|
77
|
+
readonly reason: "certificate_scope_required";
|
|
78
|
+
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
79
|
+
readonly when: "A NYC vital certificate number is supplied without a name, borough and single year.";
|
|
80
|
+
readonly recovery: "Add a name or supply place and set year_from and year_to to the same year.";
|
|
81
|
+
readonly thrownBy: "service";
|
|
56
82
|
}, {
|
|
57
83
|
readonly reason: "unknown_reference_value";
|
|
58
84
|
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-records.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-records.tool.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAWjE,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"search-records.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-records.tool.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAWjE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgH5B,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { recordPageSchema } from '../../../services/genealogy/records.js';
|
|
|
5
5
|
import { recordSources, searchRecords } from '../../../services/genealogy/search-records.js';
|
|
6
6
|
import { formatData, limit, offset, optionalText, readOnly, year, } from '../../../services/genealogy/tool-fields.js';
|
|
7
7
|
export const searchRecordsTool = tool('genealogy_search_records', {
|
|
8
|
+
title: 'Search Documentary Records',
|
|
8
9
|
description: 'Search one source for documentary records by person and event year. Use genealogy_list_reference with topic=sources to choose an archive or vital, veteran, or burial index and check its filters. Use next_offset to continue or pass an Open Archives record ID to genealogy_get_record.',
|
|
9
10
|
annotations: readOnly,
|
|
10
11
|
input: z.object({
|
|
@@ -13,13 +14,15 @@ export const searchRecordsTool = tool('genealogy_search_records', {
|
|
|
13
14
|
.describe('Record source from genealogy_list_reference.'),
|
|
14
15
|
first_name: optionalText.describe('Given name of a person in the record.'),
|
|
15
16
|
last_name: optionalText.describe('Surname of a person in the record.'),
|
|
17
|
+
certificate_number: optionalText.describe('NYC vital certificate number as printed in the index. Without a name, supply a place and the same year in both year fields.'),
|
|
18
|
+
soundex: optionalText.describe('NYC vital index Soundex code, such as K400. Use with a name or a scoped certificate lookup.'),
|
|
16
19
|
year_from: year.describe('Earliest event year, inclusive.'),
|
|
17
20
|
year_to: year.describe('Latest event year, inclusive.'),
|
|
18
21
|
place: optionalText.describe('Source-specific event place. See reference for applicable place fields.'),
|
|
19
22
|
query: optionalText.describe('Open Archives name expression, in place of separate names.'),
|
|
20
|
-
archive_code: optionalText.describe('Open Archives holding archive.'),
|
|
23
|
+
archive_code: optionalText.describe('Case-insensitive Open Archives holding archive code.'),
|
|
21
24
|
source_type: optionalText.describe('Open Archives source type in Dutch or English.'),
|
|
22
|
-
relation_type: optionalText.describe('Open Archives role
|
|
25
|
+
relation_type: optionalText.describe('Exact Dutch Open Archives role or a known English alias. Consult genealogy_list_reference with topic=relation_types for examples.'),
|
|
23
26
|
event_place: optionalText.describe('Open Archives event place, an alternative to place.'),
|
|
24
27
|
birth_place: optionalText.describe('Open Archives birthplace.'),
|
|
25
28
|
country: optionalText.describe('Open Archives country code.'),
|
|
@@ -43,6 +46,34 @@ export const searchRecordsTool = tool('genealogy_search_records', {
|
|
|
43
46
|
recovery: 'Read genealogy_list_reference with topic=sources and remove unsupported filters.',
|
|
44
47
|
thrownBy: 'service',
|
|
45
48
|
},
|
|
49
|
+
{
|
|
50
|
+
reason: 'years_outside_coverage',
|
|
51
|
+
code: JsonRpcErrorCode.InvalidParams,
|
|
52
|
+
when: 'The requested years fall wholly outside the verified event years for the selected index.',
|
|
53
|
+
recovery: 'Choose years that overlap the verified bounds in this error or select another record source.',
|
|
54
|
+
thrownBy: 'service',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
reason: 'years_outside_privacy',
|
|
58
|
+
code: JsonRpcErrorCode.InvalidParams,
|
|
59
|
+
when: 'The requested years are later than the latest visible event year.',
|
|
60
|
+
recovery: 'Choose an earlier year within the visible coverage in this error.',
|
|
61
|
+
thrownBy: 'service',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
reason: 'unsupported_place',
|
|
65
|
+
code: JsonRpcErrorCode.InvalidParams,
|
|
66
|
+
when: 'The selected NYC vital index does not recognize the borough or county.',
|
|
67
|
+
recovery: 'Use an accepted borough or county name from this error or topic=sources.',
|
|
68
|
+
thrownBy: 'service',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
reason: 'certificate_scope_required',
|
|
72
|
+
code: JsonRpcErrorCode.InvalidParams,
|
|
73
|
+
when: 'A NYC vital certificate number is supplied without a name, borough and single year.',
|
|
74
|
+
recovery: 'Add a name or supply place and set year_from and year_to to the same year.',
|
|
75
|
+
thrownBy: 'service',
|
|
76
|
+
},
|
|
46
77
|
{
|
|
47
78
|
reason: 'unknown_reference_value',
|
|
48
79
|
code: JsonRpcErrorCode.InvalidParams,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-records.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-records.tool.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EACL,UAAU,EACV,KAAK,EACL,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,IAAI,GACL,MAAM,4CAA4C,CAAC;AACpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,CAAC,0BAA0B,EAAE;IAChE,WAAW,EACT,4RAA4R;IAC9R,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,CAAC;aACN,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;aACpC,QAAQ,CAAC,8CAA8C,CAAC;QAC3D,UAAU,EAAE,YAAY,CAAC,QAAQ,CAAC,uCAAuC,CAAC;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AAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC;IACzD,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC"}
|
|
@@ -29,6 +29,12 @@ export declare const searchTranscriptionsTool: import("@cyanheads/mcp-ts-core").
|
|
|
29
29
|
}, z.core.$strip>>;
|
|
30
30
|
notices: z.ZodArray<z.ZodString>;
|
|
31
31
|
}, z.core.$strip>, readonly [{
|
|
32
|
+
readonly reason: "unknown_reference_value";
|
|
33
|
+
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
34
|
+
readonly when: "The holding archive code is unknown.";
|
|
35
|
+
readonly recovery: "Use genealogy_list_reference with topic=archives and copy the archive code.";
|
|
36
|
+
readonly thrownBy: "service";
|
|
37
|
+
}, {
|
|
32
38
|
readonly reason: "page_out_of_range";
|
|
33
39
|
readonly code: JsonRpcErrorCode.InvalidParams;
|
|
34
40
|
readonly when: "The requested offset exceeds the accessible transcription search window.";
|