npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bj-old-mcp-cm

v2.0.2

Published

This project is an MCP (Model Context Protocol) server named `gethotelinfo`. It provides tools that can be accessed by an MCP client.

Downloads

74

Readme

Adiona MCP Server (gethotelinfo)

This project is an MCP (Model Context Protocol) server named gethotelinfo. It provides tools that can be accessed by an MCP client.

Project Structure

.
├── .gitattributes
├── .gitignore
├── package-lock.json
├── package.json
├── pnpm-lock.yaml
├── src
│   ├── server.ts                # Main MCP server setup and initialization
│   └── tools
│       ├── getRoomTypes.ts      # Logic for the 'get_room_types' tool
│       ├── getSupportedOtas.ts  # Logic for the 'get_supported_otas' tool
│       ├── getOtaRates.ts       # Logic for the 'get_ota_rates' tool
│       └── beIndividualRateUpdate.ts # Logic for the 'be_individual_rate_update' tool
└── tsconfig.json                # TypeScript configuration
  • src/: Contains all the TypeScript source code.
    • src/server.ts: The main entry point for the MCP server. It initializes FastMCP, registers tools, and starts the server.
    • src/tools/: Contains individual files for each tool provided by the server.
      • getRoomTypes.ts: Implements the get_room_types tool, which fetches available room types for a given hotel ID.
      • getSupportedOtas.ts: Implements the get_supported_otas tool, which fetches the list of supported OTAs for a given hotel ID.
      • getOtaRates.ts: Implements the get_ota_rates tool, which fetches OTA rates for a specific hotel, room type, and date range.
      • beIndividualRateUpdate.ts: Implements the be_individual_rate_update tool, which updates individual rates.
  • package.json: Defines project metadata, dependencies, and scripts.
  • tsconfig.json: Configures the TypeScript compiler options.
  • dist/: (Generated after build) Contains the compiled JavaScript code.

Available Tools

get_room_types

  • Description: Get all OTAs by room type and rate plans for a specific hotel ID.
  • Parameters:
    • hotel_id (number): ID of the hotel.
  • Returns: A JSON string containing the full API response, which includes OTA information grouped by room types and their mapped rate plans.

get_supported_otas

  • Description: Get the list of supported OTAs for a specific hotel ID.
  • Parameters:
    • hotel_id (number): ID of the hotel.
  • Returns: A JSON string containing an array of OTA objects, each with ota_name, ota_id, and logo.

get_ota_rates

  • Description: Get OTA rates for a specific hotel, room type, and date range.
  • Parameters:
    • hotel_id (number): ID of the hotel.
    • room_type_id (number): ID of the room type.
    • from_date (string): Start date for fetching rates (e.g., YYYY-MM-DD).
    • to_date (string): End date for fetching rates (e.g., YYYY-MM-DD).
  • Returns: A JSON string containing the OTA rates data. (The exact structure of this data depends on the API response).

be_individual_rate_update

  • Description: Update individual rates for specified OTAs, room types, and dates.
  • Parameters:
    • hotel_id (number): ID of the hotel.
    • ota_id (array of strings): Array of OTA IDs to update (e.g., ["-1"]).
    • rates (array of objects): Array of rate update objects. Each object should contain:
      • room_type_id (number): ID of the room type.
      • room_type (string): Name/description of the room type.
      • plan_type (string): Plan type (e.g., "EP").
      • rate_plan_id (number): ID of the rate plan.
      • rates (array of objects): Array of specific date rates. Each object should contain:
        • bar_price (number): Base rate.
        • date (string): Date for the rate (e.g., "DD-MM-YYYY").
        • extra_adult_price (number): Price for an extra adult.
        • extra_child_price (number): Price for an extra child.
        • los (number): Length of stay.
        • multiple_occupancy (array of strings): Array of occupancy-based prices.
  • Returns: A JSON string containing the API response from the rate update operation.

Setup and Running

  1. Install Dependencies:

    npm install
    # or
    # pnpm install
    # or
    # yarn install
  2. Build the Project: This command compiles the TypeScript code into JavaScript in the dist directory.

    npm run build
  3. Run the Server: This command starts the MCP server using the compiled JavaScript.

    npm run start

    The server will then be accessible via STDIO transport as configured.

Development

  • To make changes, edit the TypeScript files in the src directory.
  • After making changes, rebuild the project using npm run build.