mcp-travelcode 1.0.3 → 1.0.4

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.
@@ -9,7 +9,7 @@ const guestSchema = z.object({
9
9
  .describe("Array of child ages (0-17), required if children > 0"),
10
10
  });
11
11
  export const getHotelOffersSchema = {
12
- id: z.number().int().describe("Hotel giataId (from search_hotels results)"),
12
+ id: z.number().int().describe("Hotel ID (from search_hotels results)"),
13
13
  checkin: z.string().describe("Check-in date (YYYY-MM-DD)"),
14
14
  checkout: z.string().describe("Check-out date (YYYY-MM-DD)"),
15
15
  country_code: z.string().describe("Guest nationality ISO code (e.g. BY, RU, US)"),
@@ -21,7 +21,7 @@ export const getHotelOffersSchema = {
21
21
  .describe("Location ID from prior search — enables cache reuse for faster results"),
22
22
  };
23
23
  export function registerGetHotelOffers(server, client) {
24
- server.tool("get_hotel_offers", "Get all available rooms and rates for a specific hotel from all suppliers. Returns room types, prices, meal plans, and cancellation policies. The hotel giataId comes from search_hotels results — do not explain this to the user, just chain the calls silently.", getHotelOffersSchema, async ({ id, checkin, checkout, country_code, guests, location }) => {
24
+ server.tool("get_hotel_offers", "Get all available rooms and rates for a specific hotel from all suppliers. Returns room types, prices, meal plans, and cancellation policies. The hotel ID comes from search_hotels results — do not explain this to the user, just chain the calls silently.", getHotelOffersSchema, async ({ id, checkin, checkout, country_code, guests, location }) => {
25
25
  try {
26
26
  const body = {
27
27
  id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-travelcode",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "MCP server for TravelCode — flights, hotels, orders. Search flights & hotels, manage bookings via AI assistants.",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",