@cyanheads/geonames-mcp-server 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/AGENTS.md +31 -17
  2. package/CLAUDE.md +31 -17
  3. package/Dockerfile +22 -7
  4. package/README.md +66 -122
  5. package/changelog/0.1.x/0.1.3.md +46 -0
  6. package/changelog/0.2.x/0.2.0.md +37 -0
  7. package/dist/index.js +2 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/mcp-server/tools/definitions/find-postal-codes.tool.d.ts +8 -5
  10. package/dist/mcp-server/tools/definitions/find-postal-codes.tool.d.ts.map +1 -1
  11. package/dist/mcp-server/tools/definitions/find-postal-codes.tool.js +84 -42
  12. package/dist/mcp-server/tools/definitions/find-postal-codes.tool.js.map +1 -1
  13. package/dist/mcp-server/tools/definitions/get-children.tool.d.ts +6 -0
  14. package/dist/mcp-server/tools/definitions/get-children.tool.d.ts.map +1 -1
  15. package/dist/mcp-server/tools/definitions/get-children.tool.js +35 -18
  16. package/dist/mcp-server/tools/definitions/get-children.tool.js.map +1 -1
  17. package/dist/mcp-server/tools/definitions/get-countries.tool.d.ts +6 -0
  18. package/dist/mcp-server/tools/definitions/get-countries.tool.d.ts.map +1 -1
  19. package/dist/mcp-server/tools/definitions/get-countries.tool.js +32 -14
  20. package/dist/mcp-server/tools/definitions/get-countries.tool.js.map +1 -1
  21. package/dist/mcp-server/tools/definitions/get-hierarchy.tool.js +3 -3
  22. package/dist/mcp-server/tools/definitions/get-hierarchy.tool.js.map +1 -1
  23. package/dist/mcp-server/tools/definitions/get-place.tool.d.ts +3 -1
  24. package/dist/mcp-server/tools/definitions/get-place.tool.d.ts.map +1 -1
  25. package/dist/mcp-server/tools/definitions/get-place.tool.js +35 -11
  26. package/dist/mcp-server/tools/definitions/get-place.tool.js.map +1 -1
  27. package/dist/mcp-server/tools/definitions/index.d.ts +37 -5
  28. package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
  29. package/dist/mcp-server/tools/definitions/list-reference.tool.d.ts +6 -0
  30. package/dist/mcp-server/tools/definitions/list-reference.tool.d.ts.map +1 -1
  31. package/dist/mcp-server/tools/definitions/list-reference.tool.js +34 -14
  32. package/dist/mcp-server/tools/definitions/list-reference.tool.js.map +1 -1
  33. package/dist/mcp-server/tools/definitions/reverse-geocode.tool.d.ts.map +1 -1
  34. package/dist/mcp-server/tools/definitions/reverse-geocode.tool.js +85 -28
  35. package/dist/mcp-server/tools/definitions/reverse-geocode.tool.js.map +1 -1
  36. package/dist/mcp-server/tools/definitions/search-places.tool.d.ts +12 -2
  37. package/dist/mcp-server/tools/definitions/search-places.tool.d.ts.map +1 -1
  38. package/dist/mcp-server/tools/definitions/search-places.tool.js +107 -26
  39. package/dist/mcp-server/tools/definitions/search-places.tool.js.map +1 -1
  40. package/dist/mcp-server/tools/shared-inputs.d.ts +62 -20
  41. package/dist/mcp-server/tools/shared-inputs.d.ts.map +1 -1
  42. package/dist/mcp-server/tools/shared-inputs.js +94 -29
  43. package/dist/mcp-server/tools/shared-inputs.js.map +1 -1
  44. package/dist/services/geonames/country-codes.d.ts +7 -1
  45. package/dist/services/geonames/country-codes.d.ts.map +1 -1
  46. package/dist/services/geonames/country-codes.js +15 -1
  47. package/dist/services/geonames/country-codes.js.map +1 -1
  48. package/dist/services/geonames/geonames-service.d.ts +7 -3
  49. package/dist/services/geonames/geonames-service.d.ts.map +1 -1
  50. package/dist/services/geonames/geonames-service.js +85 -35
  51. package/dist/services/geonames/geonames-service.js.map +1 -1
  52. package/dist/services/geonames/response-parsers.d.ts +9 -5
  53. package/dist/services/geonames/response-parsers.d.ts.map +1 -1
  54. package/dist/services/geonames/response-parsers.js +102 -22
  55. package/dist/services/geonames/response-parsers.js.map +1 -1
  56. package/dist/services/geonames/types.d.ts +30 -13
  57. package/dist/services/geonames/types.d.ts.map +1 -1
  58. package/dist/services/geonames/types.js +4 -3
  59. package/dist/services/geonames/types.js.map +1 -1
  60. package/dist/services/geonames/upstream-errors.d.ts.map +1 -1
  61. package/dist/services/geonames/upstream-errors.js +7 -7
  62. package/dist/services/geonames/upstream-errors.js.map +1 -1
  63. package/dist/utils/inline-text.d.ts +57 -12
  64. package/dist/utils/inline-text.d.ts.map +1 -1
  65. package/dist/utils/inline-text.js +137 -20
  66. package/dist/utils/inline-text.js.map +1 -1
  67. package/package.json +15 -13
  68. package/server.json +10 -24
  69. package/skills/geonames-guide/SKILL.md +64 -0
@@ -1,19 +1,22 @@
1
1
  /**
2
2
  * @fileoverview geonames_find_postal_codes — postal codes by code or place name
3
- * (`postalCodeSearchJSON`, 1 credit) or near a coordinate (`findNearbyPostalCodesJSON`,
4
- * 2 credits), both cached a day.
3
+ * (`postalCodeSearchJSON`, 1 credit, paged by offset) or near a coordinate
4
+ * (`findNearbyPostalCodesJSON`, 2 credits), both cached a day. A `limit` above 100 is held to
5
+ * 100, and each call asks for one row past the page, which alone says whether more remain.
5
6
  * @module mcp-server/tools/definitions/find-postal-codes.tool
6
7
  */
7
8
  import { tool, z } from '@cyanheads/mcp-ts-core';
8
9
  import { JsonRpcErrorCode, McpError } from '@cyanheads/mcp-ts-core/errors';
9
10
  import { logger, withExtra } from '@cyanheads/mcp-ts-core/utils';
10
- import { blankAsUnset, countriesInput, geonamesUsernameInput, latInput, limitInput, lngInput, lowerCased, USERNAME_ALIASES, unknownCountryCodes, } from '../shared-inputs.js';
11
+ import { blankAsUnset, clampedLimitInput, clampLimit, countriesInput, geonamesUsernameInput, latInput, lngInput, lowerCased, offsetInput, USERNAME_ALIASES, unknownCountryCodes, unlistedCountriesFragment, } from '../shared-inputs.js';
11
12
  import { getGeoNamesService } from '../../../services/geonames/geonames-service.js';
12
13
  import { reasonOf } from '../../../services/geonames/upstream-errors.js';
13
- import { inlineText, tableCell } from '../../../utils/inline-text.js';
14
+ import { renderNotice, tableCell } from '../../../utils/inline-text.js';
14
15
  const MODES = ['code', 'place_name', 'nearby'];
15
- /** The most rows one call returns. */
16
+ /** The most rows one call returns; a larger `limit` is held to it. */
16
17
  const MAX_LIMIT = 100;
18
+ /** GeoNames' free service pages postal searches no further than `startRow=5000` (status 14 beyond). */
19
+ const MAX_OFFSET = 5000;
17
20
  /** GeoNames' free-tier ceiling on the nearby postal radius (status 24 beyond). */
18
21
  const MAX_RADIUS_KM = 30;
19
22
  /** Countries GeoNames holds only as code prefixes: Ireland's Eircode routing keys, Malta's letter prefixes. */
@@ -36,7 +39,7 @@ async function uncoveredCountries(countries, account, ctx) {
36
39
  logger.debug('Postal coverage lookup failed; the zero-hit notice skips the coverage check.', withExtra(ctx, {
37
40
  reason: reasonOf(error),
38
41
  code: error instanceof McpError ? error.code : undefined,
39
- account: account.source,
42
+ payer: account.source,
40
43
  }));
41
44
  return [];
42
45
  }
@@ -47,20 +50,21 @@ const division = (name, code, iso) => [name && tableCell(name), code && `(code $
47
50
  .join(' ') || 'Not available';
48
51
  export const findPostalCodesTool = tool('geonames_find_postal_codes', {
49
52
  title: 'Find GeoNames postal codes',
50
- description: 'Look up postal codes in the GeoNames postal database (122 countries): mode code resolves a postal code to its place, admin names, and centroid; mode place_name finds postal codes for a place name; mode nearby lists postal codes within radiusKm (up to 30 km) of a coordinate, nearest first. Ireland returns only Eircode routing keys and Malta only the letter prefix; the United Kingdom (GB), Canada, and the Netherlands hold both full codes and their outward or district prefixes. Check coverage with geonames_list_reference topic postal_countries. Costs 1 GeoNames credit (2 for nearby); cached.',
53
+ description: 'Look up postal codes in the GeoNames postal database (122 countries): mode code resolves a postal code to its place, admin names, and centroid; mode place_name finds postal codes for a place name; both page with offset, up to 5000; mode nearby lists postal codes within radiusKm (up to 30 km) of a coordinate, nearest first. Ireland returns only Eircode routing keys and Malta only the letter prefix; the United Kingdom (GB), Canada, and the Netherlands hold both full codes and their outward or district prefixes. Check coverage with geonames_list_reference topic postal_countries. Costs 1 GeoNames credit (2 for nearby); a code or place_name lookup with countries that returns nothing at offset 0 also reads the postal coverage list, 1 more credit unless that list is cached. Repeat lookups are cached.',
51
54
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: true },
52
55
  input: z.object({
53
- mode: lowerCased(z.enum(MODES)).describe('What to look up. code: the place for postalCode (required). place_name: the postal codes of placeName (required). nearby: postal codes around lat and lng (both required; countries not accepted). Case-insensitive.'),
56
+ mode: lowerCased(z.enum(MODES)).describe('What to look up. code: the place for postalCode (required). place_name: the postal codes of placeName (required). nearby: postal codes around lat and lng (both required; countries not accepted).'),
54
57
  postalCode: blankAsUnset(z.preprocess((value) => typeof value === 'string' ? value.replace(/\s+/g, ' ').toUpperCase() : value, z
55
58
  .string()
56
59
  .regex(/^[A-Z0-9][A-Z0-9 -]{0,11}$/)
57
- .optional())).describe('Postal code to resolve, such as 98101, SW1A 1AA, or K1A 0A1: letters, digits, spaces, and hyphens, up to 12 characters. Case and extra spaces are normalized. Required in mode code; in mode place_name it narrows the match; not used in mode nearby.'),
60
+ .optional())).describe('Postal code to resolve, such as 98101, SW1A 1AA, or K1A 0A1: capital letters, digits, spaces, and hyphens, up to 12 characters. Required in mode code; in mode place_name it narrows the match; not used in mode nearby.'),
58
61
  placeName: blankAsUnset(z.string().max(100).optional()).describe('Place name to find postal codes for, up to 100 characters. GeoNames matches it against place, admin, and country names. Required in mode place_name; in mode code it narrows the match; not used in mode nearby.'),
59
62
  lat: blankAsUnset(latInput.optional()).describe('Latitude in decimal degrees, -90 to 90. Required in mode nearby.'),
60
63
  lng: blankAsUnset(lngInput.optional()).describe('Longitude in decimal degrees, -180 to 180. Required in mode nearby.'),
61
64
  radiusKm: blankAsUnset(z.number().positive().max(MAX_RADIUS_KM).default(10)).describe("Search radius in kilometres for mode nearby, above 0 and at most 30 (GeoNames' free-tier limit). Default 10."),
62
- countries: countriesInput.describe('Keep only postal codes in these countries: ISO 3166-1 codes, up to 10, as a list or a comma-separated string: alpha-2 (US, GB, DE), alpha-3 (USA, GBR, DEU), or three-digit numeric (840, 826, 276), each sent to GeoNames as alpha-2. Case-insensitive; UK is accepted for GB. Modes code and place_name only.'),
63
- limit: limitInput(MAX_LIMIT, 10),
65
+ countries: countriesInput.describe("Countries to look up postal codes in: ISO 3166-1 codes, up to 10, as a list: alpha-2 (US, GB, DE), alpha-3 (USA, GBR, DEU), or three-digit numeric (840, 826, 276), each sent to GeoNames as alpha-2. UK is accepted for GB and FL for LI. A listed country also returns the territories GeoNames files under it (GB also returns IM, JE, and GG), each postal code's countryCode naming its own country. Modes code and place_name only."),
66
+ limit: clampedLimitInput(MAX_LIMIT, 10),
67
+ offset: offsetInput(MAX_OFFSET).describe('Postal codes to skip before the first one returned, 0 to 5000. Default 0. Modes code and place_name only; pass the nextOffset of the previous page to read the next one.'),
64
68
  geonamesUsername: geonamesUsernameInput,
65
69
  }),
66
70
  inputAliases: USERNAME_ALIASES,
@@ -75,14 +79,17 @@ export const findPostalCodesTool = tool('geonames_find_postal_codes', {
75
79
  adminCode1: z
76
80
  .string()
77
81
  .optional()
78
- .describe('First-order admin division code (state, province).'),
82
+ .describe("First-order admin division code (state, province) as the postal dataset records it, which can differ from the gazetteer code geonames_search_places filters on: DE 80331 carries BY here, where the gazetteer codes Bavaria 02. Not a geonames_search_places filter; for the gazetteer codes, call geonames_reverse_geocode at the row's lat and lng."),
79
83
  adminName1: z.string().optional().describe('First-order admin division name.'),
80
84
  adminCode2: z
81
85
  .string()
82
86
  .optional()
83
- .describe('Second-order admin division code (county, district).'),
87
+ .describe('Second-order admin division code (county, district) as the postal dataset records it, which can differ from the gazetteer code (Greater London rows carry 11609024, GLA, or E99999999). Not a geonames_search_places filter.'),
84
88
  adminName2: z.string().optional().describe('Second-order admin division name.'),
85
- adminCode3: z.string().optional().describe('Third-order admin division code.'),
89
+ adminCode3: z
90
+ .string()
91
+ .optional()
92
+ .describe('Third-order admin division code as the postal dataset records it. Not a geonames_search_places filter.'),
86
93
  adminName3: z.string().optional().describe('Third-order admin division name.'),
87
94
  iso3166_2: z
88
95
  .string()
@@ -102,31 +109,36 @@ export const findPostalCodesTool = tool('geonames_find_postal_codes', {
102
109
  .describe('Distance from the query point in kilometres. Mode nearby only; absent when GeoNames sent none.'),
103
110
  })
104
111
  .describe('One postal code.'))
105
- .describe('Matching postal codes; nearest first in mode nearby.'),
112
+ .describe('Matching postal codes on this page; nearest first in mode nearby.'),
113
+ nextOffset: z
114
+ .number()
115
+ .optional()
116
+ .describe("Offset of the next page in modes code and place_name; absent on the last page, in mode nearby, and once offset is 5000. Capped at 5000, the last offset GeoNames' free service accepts, so that page can repeat rows of this one."),
106
117
  }),
107
118
  enrichment: {
108
119
  truncated: z
109
120
  .boolean()
110
- .describe('True when a full page came back: GeoNames reports no total, so more may match.'),
111
- shown: z.number().describe('Postal codes returned.'),
112
- cap: z.number().describe('The limit that was applied.'),
121
+ .describe('True when more postal codes remain past this page; in mode nearby, more lie within radiusKm.'),
122
+ shown: z.number().describe('Postal codes returned on this page.'),
123
+ cap: z.number().describe('The limit applied: limit as given, or 100 when it asked for more.'),
113
124
  notice: z
114
125
  .string()
115
126
  .optional()
116
- .describe('Guidance when nothing matched, or when a full page suggests more matches.'),
127
+ .describe('Guidance: why nothing matched or nothing lies at offset, or how to reach the postal codes past this page (naming a limit held to 100), and which postal codes on the page lie in countries that countries does not list.'),
117
128
  },
129
+ enrichmentTrailer: { notice: { render: renderNotice } },
118
130
  errors: [
119
131
  {
120
132
  reason: 'mode_fields_mismatch',
121
133
  code: JsonRpcErrorCode.ValidationError,
122
- when: 'A field the mode requires is missing, or countries is given in mode nearby. The message names the field.',
123
- recovery: 'Supply the fields the chosen mode needs (code: postalCode; place_name: placeName; nearby: lat and lng, without countries) and call geonames_find_postal_codes again.',
134
+ when: 'A field the mode requires is missing, or countries is given or offset above 0 in mode nearby. The message names the field.',
135
+ recovery: 'Supply the fields the chosen mode needs (code: postalCode; place_name: placeName; nearby: lat and lng, without countries or offset) and call geonames_find_postal_codes again.',
124
136
  severity: 'notice',
125
137
  },
126
138
  {
127
139
  reason: 'unknown_country_code',
128
140
  code: JsonRpcErrorCode.ValidationError,
129
- when: 'A countries entry is a well-formed alpha-3 or three-digit numeric code that no country has.',
141
+ when: 'A countries entry, once mapped to alpha-2, is none of the 250 country codes or the retired AN, CS, and YU: an alpha-2 such as EL or EU, or an unassigned alpha-3 or numeric code.',
130
142
  recovery: 'Find the country with geonames_get_countries (nameContains matches its name), then call again with its alpha-2, alpha-3, or numeric code.',
131
143
  severity: 'notice',
132
144
  },
@@ -171,8 +183,9 @@ export const findPostalCodesTool = tool('geonames_find_postal_codes', {
171
183
  },
172
184
  ],
173
185
  async handler(input, ctx) {
174
- ctx.enrich({ truncated: false, shown: 0, cap: input.limit });
175
- const { mode, postalCode, placeName, lat, lng, countries } = input;
186
+ const { mode, postalCode, placeName, lat, lng, countries, offset } = input;
187
+ const { applied: limit, fragment: clampFragment } = clampLimit(input.limit, MAX_LIMIT);
188
+ ctx.enrich({ truncated: false, shown: 0, cap: limit });
176
189
  if (mode === 'code' && postalCode === undefined) {
177
190
  throw ctx.fail('mode_fields_mismatch', 'mode code needs postalCode.');
178
191
  }
@@ -188,6 +201,9 @@ export const findPostalCodesTool = tool('geonames_find_postal_codes', {
188
201
  if (countries !== undefined) {
189
202
  throw ctx.fail('mode_fields_mismatch', 'mode nearby does not take countries: the coordinate already places the search.');
190
203
  }
204
+ if (offset > 0) {
205
+ throw ctx.fail('mode_fields_mismatch', 'mode nearby takes no offset: it always returns the nearest postal codes first. Call again without offset.');
206
+ }
191
207
  point = { lat, lng };
192
208
  }
193
209
  const unknownCountries = unknownCountryCodes(countries);
@@ -197,23 +213,46 @@ export const findPostalCodesTool = tool('geonames_find_postal_codes', {
197
213
  }
198
214
  const service = getGeoNamesService();
199
215
  const account = service.resolveAccount(input.geonamesUsername);
200
- const postalCodes = point
201
- ? await service.postalNearby({ ...point, radiusKm: input.radiusKm, limit: input.limit }, account, ctx)
202
- : await service.postalSearch({ limit: input.limit, postalCode, placeName, countries }, account, ctx);
216
+ /** One row past the page: GeoNames sends no total, so the extra row is what says more remain. */
217
+ const rows = point
218
+ ? await service.postalNearby({ ...point, radiusKm: input.radiusKm, limit: limit + 1 }, account, ctx)
219
+ : await service.postalSearch({ limit: limit + 1, offset, postalCode, placeName, countries }, account, ctx);
220
+ const postalCodes = rows.slice(0, limit);
221
+ const more = rows.length > limit;
222
+ const next = offset + limit;
223
+ /** Past the cap, offset 5000 is still a page: it repeats this page's tail, then reaches row `next`. */
224
+ const nextOffset = more && !point && offset < MAX_OFFSET ? Math.min(next, MAX_OFFSET) : undefined;
203
225
  const shown = postalCodes.length;
204
226
  ctx.enrich({ shown });
205
- if (shown > 0 && shown === input.limit) {
206
- const atMax = input.limit === MAX_LIMIT;
207
- ctx.enrich.truncated({
208
- shown,
209
- cap: input.limit,
210
- guidance: mode === 'nearby'
211
- ? `GeoNames reports no total, and this page is full: more postal codes may lie within ${input.radiusKm} km. ${atMax ? `${MAX_LIMIT} is the most one call returns; query again from other points in the area to reach them.` : `Raise limit (max ${MAX_LIMIT}) to see them.`}`
212
- : `GeoNames reports no total, and this page is full: more postal codes may match. ${atMax ? 'Narrow' : `Raise limit (max ${MAX_LIMIT}), or narrow`} with countries or a more specific postalCode or placeName.`,
213
- });
227
+ /** The notice's fragments: clamp, more-rows, outside countries; or the past-end or zero-hit ones alone. */
228
+ const fragments = [];
229
+ if (more) {
230
+ ctx.enrich.truncated({ shown, cap: limit });
231
+ if (clampFragment !== undefined)
232
+ fragments.push(clampFragment);
233
+ if (point) {
234
+ fragments.push(limit < MAX_LIMIT
235
+ ? `More postal codes lie within ${input.radiusKm} km; raise limit (max ${MAX_LIMIT}) to see them.`
236
+ : `More postal codes lie within ${input.radiusKm} km, but ${clampFragment === undefined ? `${MAX_LIMIT} is the most one call returns and ` : ''}the nearby lookup does not page, so the rest cannot be reached in order of distance; a call from another point returns the nearest ${MAX_LIMIT} to that point.`);
237
+ }
238
+ else if (nextOffset === undefined) {
239
+ fragments.push("More postal codes match, but GeoNames' free service accepts no offset past 5,000, so no later page is reachable; narrow with countries or a more specific postalCode or placeName to reach the rest.");
240
+ }
241
+ else if (nextOffset < next) {
242
+ const repeated = next - MAX_OFFSET;
243
+ fragments.push(`More postal codes match; call again with offset ${MAX_OFFSET}, the last offset GeoNames' free service accepts (its first ${repeated} ${repeated === 1 ? 'row repeats' : 'rows repeat'} this page).`);
244
+ }
245
+ else {
246
+ fragments.push(`More postal codes match; call again with offset ${next}.`);
247
+ }
214
248
  }
215
- if (shown === 0) {
216
- const fragments = [];
249
+ const unlisted = unlistedCountriesFragment(postalCodes.map(({ countryCode }) => countryCode), countries, 'postal code');
250
+ if (unlisted !== undefined)
251
+ fragments.push(unlisted);
252
+ if (shown === 0 && offset > 0) {
253
+ fragments.push(`No postal code at offset ${offset}; GeoNames reports no total, so the matches end before this offset or there are none. Call again with a smaller offset.`);
254
+ }
255
+ else if (shown === 0) {
217
256
  if (mode === 'nearby') {
218
257
  fragments.push(input.radiusKm < MAX_RADIUS_KM
219
258
  ? `No postal code within ${input.radiusKm} km; raise radiusKm (max ${MAX_RADIUS_KM}).`
@@ -235,17 +274,18 @@ export const findPostalCodesTool = tool('geonames_find_postal_codes', {
235
274
  if (fragments.length === 0) {
236
275
  fragments.push(mode === 'code'
237
276
  ? 'No postal code matched; check the spelling, or try mode place_name with the town name.'
238
- : `No postal code matched "${inlineText(placeName ?? '')}"; check the spelling of placeName.`);
277
+ : `No postal code matched "${placeName ?? ''}"; check the spelling of placeName.`);
239
278
  }
240
279
  }
241
- ctx.enrich.notice(fragments.join(' '));
242
280
  }
243
- return { mode, postalCodes };
281
+ if (fragments.length > 0)
282
+ ctx.enrich.notice(fragments.join(' '));
283
+ return { mode, postalCodes, ...(nextOffset === undefined ? {} : { nextOffset }) };
244
284
  },
245
285
  format: (result) => {
246
286
  const lines = [`## GeoNames postal codes (mode ${result.mode})`, ''];
247
287
  if (result.postalCodes.length === 0) {
248
- lines.push('No postal codes matched.');
288
+ lines.push('No postal codes on this page.');
249
289
  return [{ type: 'text', text: lines.join('\n') }];
250
290
  }
251
291
  const withDistance = result.postalCodes.some((row) => row.distanceInKm !== undefined);
@@ -268,6 +308,8 @@ export const findPostalCodesTool = tool('geonames_find_postal_codes', {
268
308
  if (result.mode === 'nearby' && result.postalCodes[0]?.countryCode === 'US') {
269
309
  lines.push('', "The first US row's coordinates are the query point itself (GeoNames resolves it from ZIP-code areas); the other rows are centroids.");
270
310
  }
311
+ if (result.nextOffset !== undefined)
312
+ lines.push('', `Next page: offset ${result.nextOffset}.`);
271
313
  return [{ type: 'text', text: lines.join('\n') }];
272
314
  },
273
315
  });
@@ -1 +1 @@
1
- {"version":3,"file":"find-postal-codes.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-postal-codes.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAgB,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EACL,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAwB,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAE/D,MAAM,KAAK,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,CAAU,CAAC;AAExD,sCAAsC;AACtC,MAAM,SAAS,GAAG,GAAG,CAAC;AAEtB,kFAAkF;AAClF,MAAM,aAAa,GAAG,EAAE,CAAC;AAEzB,+GAA+G;AAC/G,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,I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Ae,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;YAC1F,CAAC;YACD,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACzC,CAAC;QACD,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,KAAK,IAAI,EAAE,CAAC;YAC5E,KAAK,CAAC,IAAI,CACR,EAAE,EACF,qIAAqI,CACtI,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"find-postal-codes.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/find-postal-codes.tool.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAgB,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAwB,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEjE,MAAM,KAAK,GAAG,CAAC,MAA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qI,CACtI,CAAC;QACJ,CAAC;QACD,IAAI,MAAM,CAAC,UAAU,KAAK,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,qBAAqB,MAAM,CAAC,UAAU,GAAG,CAAC,CAAC;QAC/F,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -47,6 +47,12 @@ export declare const getChildrenTool: import("@cyanheads/mcp-ts-core").ToolDefin
47
47
  }, z.core.$strip>>;
48
48
  nextOffset: z.ZodOptional<z.ZodNumber>;
49
49
  }, z.core.$strip>, readonly [{
50
+ readonly reason: "name_contains_unsearchable";
51
+ readonly code: JsonRpcErrorCode.ValidationError;
52
+ readonly when: "nameContains is not blank but holds no letter or digit (only punctuation, symbols, emoji, or invisible characters), so it would match every child.";
53
+ readonly recovery: "Pass at least one letter or digit of the child name in nameContains, or omit nameContains to list every child.";
54
+ readonly severity: "notice";
55
+ }, {
50
56
  readonly reason: "username_required";
51
57
  readonly code: JsonRpcErrorCode.Unauthorized;
52
58
  readonly when: "Neither geonamesUsername nor the server's GEONAMES_USERNAME supplies a GeoNames account.";
@@ -1 +1 @@
1
- {"version":3,"file":"get-children.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-children.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA6DjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwS1B,CAAC"}
1
+ {"version":3,"file":"get-children.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-children.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAkEjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwT1B,CAAC"}
@@ -9,9 +9,9 @@
9
9
  */
10
10
  import { tool, z } from '@cyanheads/mcp-ts-core';
11
11
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
12
- import { blankAsUnset, geonameIdInput, geonamesUsernameInput, limitInput, lowerCased, nameContainsInput, nameMatcher, offsetInput, paginate, USERNAME_ALIASES, } from '../shared-inputs.js';
12
+ import { blankAsUnset, clampedLimitInput, clampLimit, geonameIdInput, geonamesUsernameInput, lowerCased, nameContainsInput, nameMatcher, offsetInput, paginate, UNSEARCHABLE_NAME_MESSAGE, USERNAME_ALIASES, } from '../shared-inputs.js';
13
13
  import { getGeoNamesService } from '../../../services/geonames/geonames-service.js';
14
- import { inlineText, tableCell } from '../../../utils/inline-text.js';
14
+ import { blockStartText, renderNotice, tableCell } from '../../../utils/inline-text.js';
15
15
  const HIERARCHIES = [
16
16
  'administrative',
17
17
  'tourism',
@@ -19,6 +19,8 @@ const HIERARCHIES = [
19
19
  ];
20
20
  /** The most rows `childrenJSON` is asked for per parent. */
21
21
  const FETCH_CAP = 1000;
22
+ /** The most children one page returns; a larger `limit` is held to it. */
23
+ const MAX_LIMIT = 500;
22
24
  const fallbackRule = (tree) => `GeoNames answers with the administrative children when a feature has no ${tree} tree`;
23
25
  /**
24
26
  * True when a tree's whole fetched list is the administrative one: the same geonameIds,
@@ -38,13 +40,13 @@ const toChild = ({ countryGeonameId: _countryId, countryName: _countryName, dist
38
40
  const orNotAvailable = (value) => value === undefined ? 'Not available' : tableCell(value);
39
41
  export const getChildrenTool = tool('geonames_get_children', {
40
42
  title: 'List GeoNames children',
41
- description: "List the direct children of a GeoNames feature — Earth's continents, a continent's countries, a country's first-level divisions, a state's counties, a city's sections — in the administrative tree, or in the tourism tree (islands, coasts, and their municipalities; almost all in Spain) or the dependency tree (a country's dependent territories). Start from a country's geonameId (geonames_get_countries) or any admin division's. Children are mostly admin divisions (class A) and populated places (class P); continents and coasts are class L and islands class T. For other feature types inside a place, use geonames_search_places with a boundingBox. GeoNames answers a tourism or dependency request with the administrative children when the feature has no such tree, so the tool compares the two lists and sets sameAsAdministrative when they match, keeping the rows (a real tree can match too). The full child list is fetched once (1 GeoNames credit) and cached, so paging and nameContains filtering are free; a tourism or dependency call also reads the administrative list for the comparison, 1 more credit unless it is cached.",
43
+ description: "List the direct children of a GeoNames feature — Earth's continents, a continent's countries, a country's first-level divisions, a state's counties, a city's sections — in the administrative tree, or in the tourism tree (islands, coasts, and their municipalities; almost all in Spain) or the dependency tree (a country's dependent territories). Start from a country's geonameId (geonames_get_countries) or any admin division's. Children are mostly admin divisions (class A) and populated places (class P); continents and coasts are class L and islands class T. For other feature types inside a country or admin division, use geonames_search_places with its country in countries and its admin codes (adminLevels of geonames_get_place), which match exactly; a boundingBox also takes in neighboring areas, so keep it for a place that is not a division. GeoNames answers a tourism or dependency request with the administrative children when the feature has no such tree, so the tool compares the two lists and sets sameAsAdministrative when they match, keeping the rows (a real tree can match too). The full child list is fetched once (1 GeoNames credit) and cached, so paging and nameContains filtering are free; a tourism or dependency call also reads the administrative list for the comparison, 1 more credit unless it is cached.",
42
44
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: true },
43
45
  input: z.object({
44
- geonameId: geonameIdInput.describe('GeoNames id of the parent feature, a positive integer up to 2147483647 such as 6252001 (United States), as returned in geonameId by the other geonames tools. A geonames.org/<id> URL is reduced to its id.'),
45
- hierarchy: blankAsUnset(lowerCased(z.enum(HIERARCHIES).default('administrative'))).describe("Which tree to descend: administrative (the default: continents (class L), countries, admin divisions, populated places), tourism (islands (class T), coasts (class L), and their municipalities; almost all in Spain), or dependency (a country's dependent territories). For a feature with no tourism or dependency tree, GeoNames answers with its administrative children, which sameAsAdministrative flags; the comparison reads the administrative list, 1 more credit unless it is cached. Case-insensitive."),
46
- nameContains: nameContainsInput.describe('Keep only children whose name or toponym name contains every word of this text as a substring (kansas also matches Arkansas), ignoring case, accents, and punctuation.'),
47
- limit: limitInput(500, 100),
46
+ geonameId: geonameIdInput.describe('GeoNames id of the parent feature as a digit string up to 2147483647, such as "6252001" (United States): the geonameId the other geonames tools return, sent as a string.'),
47
+ hierarchy: blankAsUnset(lowerCased(z.enum(HIERARCHIES).default('administrative'))).describe("Which tree to descend: administrative (the default: continents (class L), countries, admin divisions, populated places), tourism (islands (class T), coasts (class L), and their municipalities; almost all in Spain), or dependency (a country's dependent territories). For a feature with no tourism or dependency tree, GeoNames answers with its administrative children, which sameAsAdministrative flags; the comparison reads the administrative list, 1 more credit unless it is cached."),
48
+ nameContains: nameContainsInput.describe('Keep only children whose name or toponym name contains every word of this text as a substring (kansas also matches Arkansas), ignoring case, accents, and punctuation. Give at least one letter or digit.'),
49
+ limit: clampedLimitInput(MAX_LIMIT, 100),
48
50
  offset: offsetInput(),
49
51
  geonamesUsername: geonamesUsernameInput,
50
52
  }),
@@ -114,13 +116,21 @@ export const getChildrenTool = tool('geonames_get_children', {
114
116
  totalCount: z.number().describe('Children matching nameContains, before paging.'),
115
117
  truncated: z.boolean().describe('True when more children remain past this page.'),
116
118
  shown: z.number().describe('Children returned on this page.'),
117
- cap: z.number().describe('The limit that was applied.'),
119
+ cap: z.number().describe('The limit applied: limit as given, or 500 when it asked for more.'),
118
120
  notice: z
119
121
  .string()
120
122
  .optional()
121
- .describe('Guidance when a tourism or dependency answer is the administrative children, there are no children, nothing matched, the offset is past the end, more pages remain, or GeoNames holds more children than it returns.'),
123
+ .describe('Guidance when a tourism or dependency answer is the administrative children, there are no children, nothing matched, the offset is past the end, more pages remain (naming a limit held to 500), or GeoNames holds more children than it returns.'),
122
124
  },
125
+ enrichmentTrailer: { notice: { render: renderNotice } },
123
126
  errors: [
127
+ {
128
+ reason: 'name_contains_unsearchable',
129
+ code: JsonRpcErrorCode.ValidationError,
130
+ when: 'nameContains is not blank but holds no letter or digit (only punctuation, symbols, emoji, or invisible characters), so it would match every child.',
131
+ recovery: 'Pass at least one letter or digit of the child name in nameContains, or omit nameContains to list every child.',
132
+ severity: 'notice',
133
+ },
124
134
  {
125
135
  reason: 'username_required',
126
136
  code: JsonRpcErrorCode.Unauthorized,
@@ -162,10 +172,15 @@ export const getChildrenTool = tool('geonames_get_children', {
162
172
  },
163
173
  ],
164
174
  async handler(input, ctx) {
175
+ const limit = clampLimit(input.limit, MAX_LIMIT);
165
176
  ctx.enrich.total(0);
166
- ctx.enrich({ truncated: false, shown: 0, cap: input.limit });
177
+ ctx.enrich({ truncated: false, shown: 0, cap: limit.applied });
167
178
  const { hierarchy } = input;
168
179
  const parentGeonameId = Number(input.geonameId);
180
+ const matcher = input.nameContains === undefined ? undefined : nameMatcher(input.nameContains);
181
+ if (input.nameContains !== undefined && matcher === undefined) {
182
+ throw ctx.fail('name_contains_unsearchable', UNSEARCHABLE_NAME_MESSAGE);
183
+ }
169
184
  const service = getGeoNamesService();
170
185
  const account = service.resolveAccount(input.geonamesUsername);
171
186
  const result = await service.children(input.geonameId, hierarchy, account, ctx);
@@ -182,9 +197,8 @@ export const getChildrenTool = tool('geonames_get_children', {
182
197
  const sameAsAdministrative = hierarchy === 'administrative' || all.length === 0
183
198
  ? undefined
184
199
  : isAdministrativeList(result, await service.children(input.geonameId, 'administrative', account, ctx));
185
- const matcher = input.nameContains === undefined ? undefined : nameMatcher(input.nameContains);
186
200
  const matches = matcher ? all.filter((child) => matcher([child.name, child.toponymName])) : all;
187
- const { page, nextOffset } = paginate(matches, input.offset, input.limit);
201
+ const { page, nextOffset } = paginate(matches, input.offset, limit.applied);
188
202
  ctx.enrich.total(matches.length);
189
203
  ctx.enrich({ shown: page.length });
190
204
  const fragments = [];
@@ -192,23 +206,26 @@ export const getChildrenTool = tool('geonames_get_children', {
192
206
  fragments.push(`These are the same children as the administrative tree's. ${fallbackRule(hierarchy)}, so this feature most likely has none; a real ${hierarchy} tree can also match its administrative children.`);
193
207
  }
194
208
  if (all.length === 0) {
209
+ const searchInside = "search inside it with geonames_search_places: an admin division by its country in countries and its admin codes (adminLevels of geonames_get_place), which match exactly, and a place that is not a division with a boundingBox. If the admin-code search returns only the division itself, GeoNames files nothing else under that code: search the division's boundingBox (geonames_get_place) instead, which also takes in neighboring areas.";
195
210
  fragments.push(hierarchy === 'administrative'
196
- ? 'This feature has no children in the administrative tree. Try hierarchy tourism or dependency, or search inside it with geonames_search_places and a boundingBox.'
197
- : `This feature has no children in the ${hierarchy} tree, nor in the administrative tree: ${fallbackRule(hierarchy)}. Try hierarchy ${hierarchy === 'tourism' ? 'dependency' : 'tourism'}, or search inside it with geonames_search_places and a boundingBox.`);
211
+ ? `This feature has no children in the administrative tree. Try hierarchy tourism or dependency, or ${searchInside}`
212
+ : `This feature has no children in the ${hierarchy} tree, nor in the administrative tree: ${fallbackRule(hierarchy)}. Try hierarchy ${hierarchy === 'tourism' ? 'dependency' : 'tourism'}, or ${searchInside}`);
198
213
  }
199
214
  else if (matches.length === 0 && input.nameContains !== undefined) {
200
- fragments.push(`No child name contains "${inlineText(input.nameContains)}" among ${all.length}; call again without nameContains to browse them all.`);
215
+ fragments.push(`No child name contains "${input.nameContains}" among ${all.length}; call again without nameContains to browse them all.`);
201
216
  }
202
217
  else if (page.length === 0) {
203
218
  fragments.push(`offset ${input.offset} is past the last child (${matches.length}); call again with a smaller offset.`);
204
219
  }
205
220
  if (nextOffset !== undefined) {
206
221
  const remaining = matches.length - nextOffset;
207
- ctx.enrich.truncated({ shown: page.length, cap: input.limit });
222
+ ctx.enrich.truncated({ shown: page.length, cap: limit.applied });
223
+ if (limit.fragment !== undefined)
224
+ fragments.push(limit.fragment);
208
225
  fragments.push(`${remaining} more ${remaining === 1 ? 'child' : 'children'}; call again with offset ${nextOffset}.`);
209
226
  }
210
227
  if (result.totalCount > all.length) {
211
- fragments.push(`GeoNames lists ${result.totalCount.toLocaleString('en-US')} children but returns at most ${FETCH_CAP.toLocaleString('en-US')} per parent; narrow with geonames_search_places using featureCodes and a boundingBox.`);
228
+ fragments.push(`GeoNames lists ${result.totalCount.toLocaleString('en-US')} children but returns at most ${FETCH_CAP.toLocaleString('en-US')} per parent; narrow with geonames_search_places using featureCodes, the parent's country in countries, and its admin codes (adminLevels of geonames_get_place).`);
212
229
  }
213
230
  if (fragments.length > 0)
214
231
  ctx.enrich.notice(fragments.join(' '));
@@ -234,7 +251,7 @@ export const getChildrenTool = tool('geonames_get_children', {
234
251
  lines.push('', `**Same as administrative children:** ${result.sameAsAdministrative}`);
235
252
  }
236
253
  if (result.guidance !== undefined)
237
- lines.push('', inlineText(result.guidance));
254
+ lines.push('', blockStartText(result.guidance));
238
255
  if (result.found && result.children.length === 0) {
239
256
  lines.push('', 'No children on this page.');
240
257
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get-children.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-children.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EACL,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,gBAAgB,GACjB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAE/D,MAAM,WAAW,GAAG;IAClB,gBAAgB;IAChB,SAAS;IACT,YAAY;CACgC,CA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;oBACjC,MAAM;oBACN,KAAK,CAAC,UAAU,KAAK,SAAS;wBAC5B,CAAC,CAAC,eAAe;wBACjB,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC;oBAC5C,KAAK,CAAC,GAAG,KAAK,SAAS,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS;wBAChD,CAAC,CAAC,eAAe;wBACjB,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC,GAAG,EAAE;iBACjC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAClB,CAAC;YACJ,CAAC;QACH,CAAC;QACD,IAAI,MAAM,CAAC,UAAU,KAAK,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,qBAAqB,MAAM,CAAC,UAAU,GAAG,CAAC,CAAC;QAC/F,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"get-children.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-children.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEjF,MAAM,WA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GAAG,CAAC,CAAC;QAC/F,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -47,6 +47,12 @@ export declare const getCountriesTool: import("@cyanheads/mcp-ts-core").ToolDefi
47
47
  notFound: z.ZodArray<z.ZodString>;
48
48
  nextOffset: z.ZodOptional<z.ZodNumber>;
49
49
  }, z.core.$strip>, readonly [{
50
+ readonly reason: "name_contains_unsearchable";
51
+ readonly code: JsonRpcErrorCode.ValidationError;
52
+ readonly when: "nameContains is not blank but holds no letter or digit (only punctuation, symbols, emoji, or invisible characters), so it would match every country.";
53
+ readonly recovery: "Pass at least one letter or digit of the country name in nameContains, or omit nameContains to list every country.";
54
+ readonly severity: "notice";
55
+ }, {
50
56
  readonly reason: "username_required";
51
57
  readonly code: JsonRpcErrorCode.Unauthorized;
52
58
  readonly when: "Neither geonamesUsername nor the server's GEONAMES_USERNAME supplies a GeoNames account.";
@@ -1 +1 @@
1
- {"version":3,"file":"get-countries.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-countries.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA4BjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+O3B,CAAC"}
1
+ {"version":3,"file":"get-countries.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-countries.tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAiCjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkQ3B,CAAC"}