@chrischall/tripadvisor-mcp 0.5.1 → 0.6.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.
@@ -16,16 +16,29 @@ export function registerLocationTools(server) {
16
16
  const data = await client.get(`/locations${qs({ id: ids, locale })}`, { cache: 'static' });
17
17
  return viewResponse(view, data, 'locationList');
18
18
  });
19
+ // `view` belongs here, and its rung is the SUBTRACTIVE one — not
20
+ // `compactLocation`, even though that projector reads exactly this shape.
21
+ // `compactLocation` answers with the row `ta_search_locations` already
22
+ // returned beside the id you looked up, so running it here would drop the
23
+ // descriptions, phone, opening hours and coordinates that are the entire
24
+ // reason to call the detail endpoint: a "compact" rung that removes the
25
+ // record's whole point is worse than none. What this payload actually
26
+ // carries incidentally is the rating-star `traveler_ratings.overall
27
+ // .icon_url`, which `stripMediaUrls` drops without collapsing anything —
28
+ // the same case as `ta_get_location_reviews` below. (chrischall#77.)
19
29
  server.registerTool('ta_get_location_details', {
20
- description: 'Get full details for a TripAdvisor location: names, descriptions, address, coordinates, traveler ratings, phone, category, and listing URLs.',
30
+ description: 'Get full details for a TripAdvisor location: names, descriptions, address, coordinates, traveler ratings, ' +
31
+ 'phone, category, and listing URLs. Rating-icon and other incidental image URLs are dropped by default; ' +
32
+ 'pass view:"full" for TripAdvisor\'s whole record.',
21
33
  annotations: { readOnlyHint: true, openWorldHint: true },
22
34
  inputSchema: {
23
35
  locationId: LocationId,
24
36
  locale: LocaleList,
37
+ view: viewArg(),
25
38
  },
26
- }, async ({ locationId, locale }) => {
39
+ }, async ({ locationId, locale, view }) => {
27
40
  const data = await client.get(`/locations/${locationId}${qs({ locale })}`, { cache: 'static' });
28
- return minifiedResult(data);
41
+ return viewResponse(view, data);
29
42
  });
30
43
  // NO `view` on this tool, deliberately. Its product IS the image URLs: a
31
44
  // photos item is `{id, location_id, photo: {key, original_size_url, …}, …}`
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /** Single source of the server version. release-please bumps the literal below. */
2
- export const VERSION = '0.5.1'; // x-release-please-version
2
+ export const VERSION = '0.6.0'; // x-release-please-version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrischall/tripadvisor-mcp",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "mcpName": "io.github.chrischall/tripadvisor-mcp",
5
5
  "description": "TripAdvisor Terra API MCP server for Claude — search locations, details, photos, and reviews. Developed and maintained by AI (Claude Code).",
6
6
  "author": "Claude Code (AI) <https://www.anthropic.com/claude>",
package/server.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "url": "https://github.com/chrischall/tripadvisor-mcp",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.5.1",
9
+ "version": "0.6.0",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@chrischall/tripadvisor-mcp",
14
- "version": "0.5.1",
14
+ "version": "0.6.0",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },