Skip to main content
Glama
README.md1.64 kB
# Lunar Example Consumer App (Node.js) This application is designed to demonstrate the use of Lunar Interceptor within a Node.js environment. Ensure you have Lunar Proxy running and properly configured to intercept and analyze the HTTP traffic generated by this app. The Cat Fact API is provided by https://catfact.ninja/fact and is subject to its availability and rate limiting. ## Installation Before running the app, ensure you have Node.js installed on your computer. This app is compatible with Node.js versions 10.x and newer. ### Install Dependencies **Lunar Interceptor**: The application requires the Lunar Interceptor to capture and analyze HTTP traffic. Install it using npm: ```bash npm install lunar-interceptor@2.x.x ``` No additional dependencies are required for this app since it uses the native https and readline modules available in Node.js. ## Configuration To run the client with Lunar Proxy, you need to set the LUNAR_PROXY_HOST environment variable. This variable should be set to the host or IP of the Lunar Proxy, including the port it is listening on. For a typical setup, you can set this environment variable in your terminal session like so: ```bash export LUNAR_PROXY_HOST="localhost:8000" ``` Replace `localhost:8000` with the actual address and port of your Lunar Proxy setup. The value assigned to `LUNAR_PROXY_HOST` should only include the hostname and port, without the `HTTP` prefix. For example, use `localhost:8000` and not `http://localhost:8000`. ## Run Your App After setting up the environment variable, you can run the application directly from your terminal: ```bash node main.js ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheLunarCompany/lunar'

If you have feedback or need assistance with the MCP directory API, please join our Discord server