@littlebearapps/australian-history-mcp 0.6.0 → 0.6.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/package.json +1 -1
- package/dist/clients/datagovau_client.d.ts +0 -61
- package/dist/clients/datagovau_client.d.ts.map +0 -1
- package/dist/clients/datagovau_client.js +0 -421
- package/dist/clients/datagovau_client.js.map +0 -1
- package/dist/clients/prov_client.d.ts +0 -64
- package/dist/clients/prov_client.d.ts.map +0 -1
- package/dist/clients/prov_client.js +0 -393
- package/dist/clients/prov_client.js.map +0 -1
- package/dist/clients/trove_client.d.ts +0 -77
- package/dist/clients/trove_client.d.ts.map +0 -1
- package/dist/clients/trove_client.js +0 -374
- package/dist/clients/trove_client.js.map +0 -1
- package/dist/tools/datagovau_browse.d.ts +0 -96
- package/dist/tools/datagovau_browse.d.ts.map +0 -1
- package/dist/tools/datagovau_browse.js +0 -297
- package/dist/tools/datagovau_browse.js.map +0 -1
- package/dist/tools/datagovau_dataset.d.ts +0 -79
- package/dist/tools/datagovau_dataset.d.ts.map +0 -1
- package/dist/tools/datagovau_dataset.js +0 -246
- package/dist/tools/datagovau_dataset.js.map +0 -1
- package/dist/tools/datagovau_search.d.ts +0 -58
- package/dist/tools/datagovau_search.d.ts.map +0 -1
- package/dist/tools/datagovau_search.js +0 -112
- package/dist/tools/datagovau_search.js.map +0 -1
- package/dist/tools/harvest.d.ts +0 -175
- package/dist/tools/harvest.d.ts.map +0 -1
- package/dist/tools/harvest.js +0 -426
- package/dist/tools/harvest.js.map +0 -1
- package/dist/tools/prov_images.d.ts +0 -38
- package/dist/tools/prov_images.d.ts.map +0 -1
- package/dist/tools/prov_images.js +0 -87
- package/dist/tools/prov_images.js.map +0 -1
- package/dist/tools/prov_search.d.ts +0 -60
- package/dist/tools/prov_search.d.ts.map +0 -1
- package/dist/tools/prov_search.js +0 -131
- package/dist/tools/prov_search.js.map +0 -1
- package/dist/tools/trove_newspaper.d.ts +0 -100
- package/dist/tools/trove_newspaper.d.ts.map +0 -1
- package/dist/tools/trove_newspaper.js +0 -282
- package/dist/tools/trove_newspaper.js.map +0 -1
- package/dist/tools/trove_search.d.ts +0 -62
- package/dist/tools/trove_search.d.ts.map +0 -1
- package/dist/tools/trove_search.js +0 -143
- package/dist/tools/trove_search.js.map +0 -1
- package/dist/types.d.ts +0 -231
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -5
- package/dist/types.js.map +0 -1
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PROV Search Tool - Search the Public Record Office Victoria collection
|
|
3
|
-
*/
|
|
4
|
-
import { provClient } from '../clients/prov_client.js';
|
|
5
|
-
export const provSearchSchema = {
|
|
6
|
-
name: 'prov_search',
|
|
7
|
-
description: `Search the Public Record Office Victoria (PROV) collection for Victorian state government archives.
|
|
8
|
-
|
|
9
|
-
Use this to find:
|
|
10
|
-
- Historical photographs and maps
|
|
11
|
-
- Government records and files
|
|
12
|
-
- Council meeting minutes
|
|
13
|
-
- State agency records
|
|
14
|
-
|
|
15
|
-
PROV holds records from Victorian state government agencies, local councils, and courts.`,
|
|
16
|
-
inputSchema: {
|
|
17
|
-
type: 'object',
|
|
18
|
-
properties: {
|
|
19
|
-
query: {
|
|
20
|
-
type: 'string',
|
|
21
|
-
description: 'Search text (e.g., "Melbourne Town Hall", "Fitzroy council")',
|
|
22
|
-
},
|
|
23
|
-
series: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
description: 'VPRS series number (e.g., "VPRS 515" or "515")',
|
|
26
|
-
},
|
|
27
|
-
agency: {
|
|
28
|
-
type: 'string',
|
|
29
|
-
description: 'VA agency number (e.g., "VA 473" or "473")',
|
|
30
|
-
},
|
|
31
|
-
recordForm: {
|
|
32
|
-
type: 'string',
|
|
33
|
-
description: 'Type of record (e.g., "Photograph or Image", "File", "Volume")',
|
|
34
|
-
enum: [
|
|
35
|
-
'Photograph or Image',
|
|
36
|
-
'Map, Plan, or Drawing',
|
|
37
|
-
'File',
|
|
38
|
-
'Volume',
|
|
39
|
-
'Document',
|
|
40
|
-
'Card',
|
|
41
|
-
'Object',
|
|
42
|
-
'Moving Image',
|
|
43
|
-
'Sound Recording',
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
dateFrom: {
|
|
47
|
-
type: 'string',
|
|
48
|
-
description: 'Start date (YYYY-MM-DD or YYYY)',
|
|
49
|
-
},
|
|
50
|
-
dateTo: {
|
|
51
|
-
type: 'string',
|
|
52
|
-
description: 'End date (YYYY-MM-DD or YYYY)',
|
|
53
|
-
},
|
|
54
|
-
digitisedOnly: {
|
|
55
|
-
type: 'boolean',
|
|
56
|
-
description: 'Only return records with digitised images',
|
|
57
|
-
default: false,
|
|
58
|
-
},
|
|
59
|
-
limit: {
|
|
60
|
-
type: 'number',
|
|
61
|
-
description: 'Maximum results to return (1-100)',
|
|
62
|
-
default: 20,
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
required: [],
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
export async function executePROVSearch(input) {
|
|
69
|
-
try {
|
|
70
|
-
// Validate at least one search parameter
|
|
71
|
-
if (!input.query && !input.series && !input.agency) {
|
|
72
|
-
return {
|
|
73
|
-
content: [{
|
|
74
|
-
type: 'text',
|
|
75
|
-
text: JSON.stringify({
|
|
76
|
-
error: 'At least one of query, series, or agency is required',
|
|
77
|
-
}),
|
|
78
|
-
}],
|
|
79
|
-
isError: true,
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
const params = {
|
|
83
|
-
query: input.query,
|
|
84
|
-
series: input.series,
|
|
85
|
-
agency: input.agency,
|
|
86
|
-
recordForm: input.recordForm,
|
|
87
|
-
startDate: input.dateFrom,
|
|
88
|
-
endDate: input.dateTo,
|
|
89
|
-
digitisedOnly: input.digitisedOnly ?? false,
|
|
90
|
-
rows: Math.min(input.limit ?? 20, 100),
|
|
91
|
-
};
|
|
92
|
-
const result = await provClient.search(params);
|
|
93
|
-
return {
|
|
94
|
-
content: [{
|
|
95
|
-
type: 'text',
|
|
96
|
-
text: JSON.stringify({
|
|
97
|
-
source: 'prov',
|
|
98
|
-
totalResults: result.totalResults,
|
|
99
|
-
returned: result.records.length,
|
|
100
|
-
records: result.records.map(r => ({
|
|
101
|
-
id: r.id,
|
|
102
|
-
title: r.title,
|
|
103
|
-
description: r.description?.substring(0, 200),
|
|
104
|
-
series: r.series,
|
|
105
|
-
seriesTitle: r.seriesTitle,
|
|
106
|
-
agency: r.agency,
|
|
107
|
-
recordForm: r.recordForm,
|
|
108
|
-
dateRange: r.startDate && r.endDate
|
|
109
|
-
? `${r.startDate} - ${r.endDate}`
|
|
110
|
-
: r.startDate || r.endDate,
|
|
111
|
-
digitised: r.digitised,
|
|
112
|
-
url: r.url,
|
|
113
|
-
iiifManifest: r.iiifManifest,
|
|
114
|
-
})),
|
|
115
|
-
}, null, 2),
|
|
116
|
-
}],
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
catch (error) {
|
|
120
|
-
return {
|
|
121
|
-
content: [{
|
|
122
|
-
type: 'text',
|
|
123
|
-
text: JSON.stringify({
|
|
124
|
-
error: error instanceof Error ? error.message : 'Unknown error',
|
|
125
|
-
}),
|
|
126
|
-
}],
|
|
127
|
-
isError: true,
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
//# sourceMappingURL=prov_search.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prov_search.js","sourceRoot":"","sources":["../../src/tools/prov_search.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE;;;;;;;;yFAQ0E;IACvF,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,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I,CAAC,CAAC,OAAO;4BAC5B,SAAS,EAAE,CAAC,CAAC,SAAS;4BACtB,GAAG,EAAE,CAAC,CAAC,GAAG;4BACV,YAAY,EAAE,CAAC,CAAC,YAAY;yBAC7B,CAAC,CAAC;qBACJ,EAAE,IAAI,EAAE,CAAC,CAAC;iBACZ,CAAC;SACH,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,OAAO,EAAE,CAAC;oBACR,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;wBACnB,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe;qBAChE,CAAC;iBACH,CAAC;YACF,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trove Newspaper Tools - Get article details and list titles
|
|
3
|
-
*/
|
|
4
|
-
import type { MCPToolResponse } from '../types.js';
|
|
5
|
-
export declare const troveNewspaperArticleSchema: {
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
inputSchema: {
|
|
9
|
-
type: "object";
|
|
10
|
-
properties: {
|
|
11
|
-
articleId: {
|
|
12
|
-
type: string;
|
|
13
|
-
description: string;
|
|
14
|
-
};
|
|
15
|
-
type: {
|
|
16
|
-
type: string;
|
|
17
|
-
description: string;
|
|
18
|
-
enum: string[];
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
includeText: {
|
|
22
|
-
type: string;
|
|
23
|
-
description: string;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
required: string[];
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export declare function executeTroveNewspaperArticle(input: {
|
|
31
|
-
articleId: string;
|
|
32
|
-
type?: 'newspaper' | 'gazette';
|
|
33
|
-
includeText?: boolean;
|
|
34
|
-
}): Promise<MCPToolResponse>;
|
|
35
|
-
export declare const troveListTitlesSchema: {
|
|
36
|
-
name: string;
|
|
37
|
-
description: string;
|
|
38
|
-
inputSchema: {
|
|
39
|
-
type: "object";
|
|
40
|
-
properties: {
|
|
41
|
-
type: {
|
|
42
|
-
type: string;
|
|
43
|
-
description: string;
|
|
44
|
-
enum: string[];
|
|
45
|
-
default: string;
|
|
46
|
-
};
|
|
47
|
-
state: {
|
|
48
|
-
type: string;
|
|
49
|
-
description: string;
|
|
50
|
-
enum: string[];
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
required: never[];
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
export declare function executeTroveListTitles(input: {
|
|
57
|
-
type?: 'newspaper' | 'gazette';
|
|
58
|
-
state?: string;
|
|
59
|
-
}): Promise<MCPToolResponse>;
|
|
60
|
-
export declare const troveTitleDetailsSchema: {
|
|
61
|
-
name: string;
|
|
62
|
-
description: string;
|
|
63
|
-
inputSchema: {
|
|
64
|
-
type: "object";
|
|
65
|
-
properties: {
|
|
66
|
-
titleId: {
|
|
67
|
-
type: string;
|
|
68
|
-
description: string;
|
|
69
|
-
};
|
|
70
|
-
type: {
|
|
71
|
-
type: string;
|
|
72
|
-
description: string;
|
|
73
|
-
enum: string[];
|
|
74
|
-
default: string;
|
|
75
|
-
};
|
|
76
|
-
includeYears: {
|
|
77
|
-
type: string;
|
|
78
|
-
description: string;
|
|
79
|
-
default: boolean;
|
|
80
|
-
};
|
|
81
|
-
dateFrom: {
|
|
82
|
-
type: string;
|
|
83
|
-
description: string;
|
|
84
|
-
};
|
|
85
|
-
dateTo: {
|
|
86
|
-
type: string;
|
|
87
|
-
description: string;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
required: string[];
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
export declare function executeTroveTitleDetails(input: {
|
|
94
|
-
titleId: string;
|
|
95
|
-
type?: 'newspaper' | 'gazette';
|
|
96
|
-
includeYears?: boolean;
|
|
97
|
-
dateFrom?: string;
|
|
98
|
-
dateTo?: string;
|
|
99
|
-
}): Promise<MCPToolResponse>;
|
|
100
|
-
//# sourceMappingURL=trove_newspaper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trove_newspaper.d.ts","sourceRoot":"","sources":["../../src/tools/trove_newspaper.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAc,MAAM,aAAa,CAAC;AAM/D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;CA8BvC,CAAC;AAEF,wBAAsB,4BAA4B,CAAC,KAAK,EAAE;IACxD,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,OAAO,CAAC,eAAe,CAAC,CAkE3B;AAMD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;CAuBjC,CAAC;AAEF,wBAAsB,sBAAsB,CAAC,KAAK,EAAE;IAClD,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,eAAe,CAAC,CAkD3B;AAMD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCnC,CAAC;AAEF,wBAAsB,wBAAwB,CAAC,KAAK,EAAE;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,eAAe,CAAC,CAiE3B"}
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trove Newspaper Tools - Get article details and list titles
|
|
3
|
-
*/
|
|
4
|
-
import { createTroveClient } from '../clients/trove_client.js';
|
|
5
|
-
// ============================================================================
|
|
6
|
-
// Get Newspaper Article
|
|
7
|
-
// ============================================================================
|
|
8
|
-
export const troveNewspaperArticleSchema = {
|
|
9
|
-
name: 'trove_newspaper_article',
|
|
10
|
-
description: `Get the full details of a newspaper or gazette article from Trove.
|
|
11
|
-
|
|
12
|
-
Use this after searching to retrieve:
|
|
13
|
-
- Complete article text (OCR)
|
|
14
|
-
- PDF link for the original page
|
|
15
|
-
- Correction and tag counts
|
|
16
|
-
- Full metadata`,
|
|
17
|
-
inputSchema: {
|
|
18
|
-
type: 'object',
|
|
19
|
-
properties: {
|
|
20
|
-
articleId: {
|
|
21
|
-
type: 'string',
|
|
22
|
-
description: 'The Trove article ID (from search results)',
|
|
23
|
-
},
|
|
24
|
-
type: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
description: 'Article type',
|
|
27
|
-
enum: ['newspaper', 'gazette'],
|
|
28
|
-
default: 'newspaper',
|
|
29
|
-
},
|
|
30
|
-
includeText: {
|
|
31
|
-
type: 'boolean',
|
|
32
|
-
description: 'Include the full OCR text of the article',
|
|
33
|
-
default: true,
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
required: ['articleId'],
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
export async function executeTroveNewspaperArticle(input) {
|
|
40
|
-
try {
|
|
41
|
-
const client = createTroveClient();
|
|
42
|
-
if (!client.hasApiKey()) {
|
|
43
|
-
return {
|
|
44
|
-
content: [{
|
|
45
|
-
type: 'text',
|
|
46
|
-
text: JSON.stringify({
|
|
47
|
-
error: 'TROVE_API_KEY not configured',
|
|
48
|
-
}),
|
|
49
|
-
}],
|
|
50
|
-
isError: true,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
const article = input.type === 'gazette'
|
|
54
|
-
? await client.getGazetteArticle(input.articleId, input.includeText ?? true)
|
|
55
|
-
: await client.getNewspaperArticle(input.articleId, input.includeText ?? true);
|
|
56
|
-
if (!article) {
|
|
57
|
-
return {
|
|
58
|
-
content: [{
|
|
59
|
-
type: 'text',
|
|
60
|
-
text: JSON.stringify({
|
|
61
|
-
error: `Article ${input.articleId} not found`,
|
|
62
|
-
}),
|
|
63
|
-
}],
|
|
64
|
-
isError: true,
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
content: [{
|
|
69
|
-
type: 'text',
|
|
70
|
-
text: JSON.stringify({
|
|
71
|
-
source: 'trove',
|
|
72
|
-
article: {
|
|
73
|
-
id: article.id,
|
|
74
|
-
heading: article.heading,
|
|
75
|
-
newspaper: article.title,
|
|
76
|
-
newspaperId: article.titleId,
|
|
77
|
-
date: article.date,
|
|
78
|
-
page: article.page,
|
|
79
|
-
category: article.category,
|
|
80
|
-
wordCount: article.wordCount,
|
|
81
|
-
correctionCount: article.correctionCount,
|
|
82
|
-
illustrated: article.illustrated,
|
|
83
|
-
url: article.troveUrl,
|
|
84
|
-
pdfUrl: article.pdfUrl,
|
|
85
|
-
fullText: article.fullText,
|
|
86
|
-
},
|
|
87
|
-
}, null, 2),
|
|
88
|
-
}],
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
catch (error) {
|
|
92
|
-
return {
|
|
93
|
-
content: [{
|
|
94
|
-
type: 'text',
|
|
95
|
-
text: JSON.stringify({
|
|
96
|
-
error: error instanceof Error ? error.message : 'Unknown error',
|
|
97
|
-
}),
|
|
98
|
-
}],
|
|
99
|
-
isError: true,
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
// ============================================================================
|
|
104
|
-
// List Newspaper Titles
|
|
105
|
-
// ============================================================================
|
|
106
|
-
export const troveListTitlesSchema = {
|
|
107
|
-
name: 'trove_list_titles',
|
|
108
|
-
description: `List available newspaper or gazette titles in Trove.
|
|
109
|
-
|
|
110
|
-
Use this to discover what publications are available for a particular state.
|
|
111
|
-
Returns publication dates and issue counts.`,
|
|
112
|
-
inputSchema: {
|
|
113
|
-
type: 'object',
|
|
114
|
-
properties: {
|
|
115
|
-
type: {
|
|
116
|
-
type: 'string',
|
|
117
|
-
description: 'Type of publication',
|
|
118
|
-
enum: ['newspaper', 'gazette'],
|
|
119
|
-
default: 'newspaper',
|
|
120
|
-
},
|
|
121
|
-
state: {
|
|
122
|
-
type: 'string',
|
|
123
|
-
description: 'Filter by state',
|
|
124
|
-
enum: ['vic', 'nsw', 'qld', 'sa', 'wa', 'tas', 'nt', 'act', 'national'],
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
required: [],
|
|
128
|
-
},
|
|
129
|
-
};
|
|
130
|
-
export async function executeTroveListTitles(input) {
|
|
131
|
-
try {
|
|
132
|
-
const client = createTroveClient();
|
|
133
|
-
if (!client.hasApiKey()) {
|
|
134
|
-
return {
|
|
135
|
-
content: [{
|
|
136
|
-
type: 'text',
|
|
137
|
-
text: JSON.stringify({
|
|
138
|
-
error: 'TROVE_API_KEY not configured',
|
|
139
|
-
}),
|
|
140
|
-
}],
|
|
141
|
-
isError: true,
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
const titles = input.type === 'gazette'
|
|
145
|
-
? await client.listGazetteTitles(input.state)
|
|
146
|
-
: await client.listNewspaperTitles(input.state);
|
|
147
|
-
return {
|
|
148
|
-
content: [{
|
|
149
|
-
type: 'text',
|
|
150
|
-
text: JSON.stringify({
|
|
151
|
-
source: 'trove',
|
|
152
|
-
type: input.type ?? 'newspaper',
|
|
153
|
-
state: input.state ?? 'all',
|
|
154
|
-
count: titles.length,
|
|
155
|
-
titles: titles.map(t => ({
|
|
156
|
-
id: t.id,
|
|
157
|
-
title: t.title,
|
|
158
|
-
state: t.state,
|
|
159
|
-
issn: t.issn,
|
|
160
|
-
dateRange: `${t.startDate} - ${t.endDate}`,
|
|
161
|
-
url: t.troveUrl,
|
|
162
|
-
})),
|
|
163
|
-
}, null, 2),
|
|
164
|
-
}],
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
catch (error) {
|
|
168
|
-
return {
|
|
169
|
-
content: [{
|
|
170
|
-
type: 'text',
|
|
171
|
-
text: JSON.stringify({
|
|
172
|
-
error: error instanceof Error ? error.message : 'Unknown error',
|
|
173
|
-
}),
|
|
174
|
-
}],
|
|
175
|
-
isError: true,
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
// ============================================================================
|
|
180
|
-
// Get Title Details
|
|
181
|
-
// ============================================================================
|
|
182
|
-
export const troveTitleDetailsSchema = {
|
|
183
|
-
name: 'trove_title_details',
|
|
184
|
-
description: `Get detailed information about a newspaper or gazette title.
|
|
185
|
-
|
|
186
|
-
Use this to find:
|
|
187
|
-
- Available years and issue counts
|
|
188
|
-
- Specific issue dates for a date range`,
|
|
189
|
-
inputSchema: {
|
|
190
|
-
type: 'object',
|
|
191
|
-
properties: {
|
|
192
|
-
titleId: {
|
|
193
|
-
type: 'string',
|
|
194
|
-
description: 'The Trove title ID',
|
|
195
|
-
},
|
|
196
|
-
type: {
|
|
197
|
-
type: 'string',
|
|
198
|
-
description: 'Type of publication',
|
|
199
|
-
enum: ['newspaper', 'gazette'],
|
|
200
|
-
default: 'newspaper',
|
|
201
|
-
},
|
|
202
|
-
includeYears: {
|
|
203
|
-
type: 'boolean',
|
|
204
|
-
description: 'Include list of available years',
|
|
205
|
-
default: true,
|
|
206
|
-
},
|
|
207
|
-
dateFrom: {
|
|
208
|
-
type: 'string',
|
|
209
|
-
description: 'Start of date range for issue list (YYYYMMDD)',
|
|
210
|
-
},
|
|
211
|
-
dateTo: {
|
|
212
|
-
type: 'string',
|
|
213
|
-
description: 'End of date range for issue list (YYYYMMDD)',
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
required: ['titleId'],
|
|
217
|
-
},
|
|
218
|
-
};
|
|
219
|
-
export async function executeTroveTitleDetails(input) {
|
|
220
|
-
try {
|
|
221
|
-
const client = createTroveClient();
|
|
222
|
-
if (!client.hasApiKey()) {
|
|
223
|
-
return {
|
|
224
|
-
content: [{
|
|
225
|
-
type: 'text',
|
|
226
|
-
text: JSON.stringify({
|
|
227
|
-
error: 'TROVE_API_KEY not configured',
|
|
228
|
-
}),
|
|
229
|
-
}],
|
|
230
|
-
isError: true,
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
const details = await client.getTitleDetails(input.titleId, {
|
|
234
|
-
type: input.type,
|
|
235
|
-
includeYears: input.includeYears ?? true,
|
|
236
|
-
dateRange: input.dateFrom && input.dateTo
|
|
237
|
-
? { from: input.dateFrom, to: input.dateTo }
|
|
238
|
-
: undefined,
|
|
239
|
-
});
|
|
240
|
-
if (!details) {
|
|
241
|
-
return {
|
|
242
|
-
content: [{
|
|
243
|
-
type: 'text',
|
|
244
|
-
text: JSON.stringify({
|
|
245
|
-
error: `Title ${input.titleId} not found`,
|
|
246
|
-
}),
|
|
247
|
-
}],
|
|
248
|
-
isError: true,
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
return {
|
|
252
|
-
content: [{
|
|
253
|
-
type: 'text',
|
|
254
|
-
text: JSON.stringify({
|
|
255
|
-
source: 'trove',
|
|
256
|
-
title: {
|
|
257
|
-
id: details.id,
|
|
258
|
-
name: details.title,
|
|
259
|
-
state: details.state,
|
|
260
|
-
issn: details.issn,
|
|
261
|
-
dateRange: `${details.startDate} - ${details.endDate}`,
|
|
262
|
-
url: details.troveUrl,
|
|
263
|
-
years: details.years,
|
|
264
|
-
issues: details.issues,
|
|
265
|
-
},
|
|
266
|
-
}, null, 2),
|
|
267
|
-
}],
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
catch (error) {
|
|
271
|
-
return {
|
|
272
|
-
content: [{
|
|
273
|
-
type: 'text',
|
|
274
|
-
text: JSON.stringify({
|
|
275
|
-
error: error instanceof Error ? error.message : 'Unknown error',
|
|
276
|
-
}),
|
|
277
|
-
}],
|
|
278
|
-
isError: true,
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
//# sourceMappingURL=trove_newspaper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trove_newspaper.js","sourceRoot":"","sources":["../../src/tools/trove_newspaper.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE;;;;;;gBAMC;IACd,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4CAA4C;aAC1D;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC;gBAC9B,OAAO,EAAE,WAAW;aACrB;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,0CAA0C;gBACvD,OAAO,EAAE,IAAI;aACd;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,KAIlD;IACC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,iBAAiB,EAAE,CAAC;QAEnC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC;YACxB,OAAO;gBACL,OAAO,EAAE,CAAC;wBACR,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;4BACnB,KAAK,EAAE,8BAA8B;yBACtC,CAAC;qBACH,CAAC;gBACF,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAA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IAAI,CAAC,SAAS,CAAC;wBACnB,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe;qBAChE,CAAC;iBACH,CAAC;YACF,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trove Search Tool - Search the National Library of Australia's Trove collection
|
|
3
|
-
*/
|
|
4
|
-
import type { MCPToolResponse } from '../types.js';
|
|
5
|
-
export declare const troveSearchSchema: {
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
inputSchema: {
|
|
9
|
-
type: "object";
|
|
10
|
-
properties: {
|
|
11
|
-
query: {
|
|
12
|
-
type: string;
|
|
13
|
-
description: string;
|
|
14
|
-
};
|
|
15
|
-
category: {
|
|
16
|
-
type: string;
|
|
17
|
-
description: string;
|
|
18
|
-
enum: string[];
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
state: {
|
|
22
|
-
type: string;
|
|
23
|
-
description: string;
|
|
24
|
-
enum: string[];
|
|
25
|
-
};
|
|
26
|
-
dateFrom: {
|
|
27
|
-
type: string;
|
|
28
|
-
description: string;
|
|
29
|
-
};
|
|
30
|
-
dateTo: {
|
|
31
|
-
type: string;
|
|
32
|
-
description: string;
|
|
33
|
-
};
|
|
34
|
-
format: {
|
|
35
|
-
type: string;
|
|
36
|
-
description: string;
|
|
37
|
-
};
|
|
38
|
-
includeFullText: {
|
|
39
|
-
type: string;
|
|
40
|
-
description: string;
|
|
41
|
-
default: boolean;
|
|
42
|
-
};
|
|
43
|
-
limit: {
|
|
44
|
-
type: string;
|
|
45
|
-
description: string;
|
|
46
|
-
default: number;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
required: string[];
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
export declare function executeTroveSearch(input: {
|
|
53
|
-
query: string;
|
|
54
|
-
category?: string;
|
|
55
|
-
state?: string;
|
|
56
|
-
dateFrom?: string;
|
|
57
|
-
dateTo?: string;
|
|
58
|
-
format?: string;
|
|
59
|
-
includeFullText?: boolean;
|
|
60
|
-
limit?: number;
|
|
61
|
-
}): Promise<MCPToolResponse>;
|
|
62
|
-
//# sourceMappingURL=trove_search.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trove_search.d.ts","sourceRoot":"","sources":["../../src/tools/trove_search.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,eAAe,EAA6B,MAAM,aAAa,CAAC;AAE9E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuD7B,CAAC;AAEF,wBAAsB,kBAAkB,CAAC,KAAK,EAAE;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,eAAe,CAAC,CAkF3B"}
|