### Install litra-rs via Homebrew Source: https://github.com/timrogers/litra-rs/blob/main/README.md Installs the litra-rs command-line tool on macOS or Linux using Homebrew. This involves tapping the custom repository and then installing the 'litra' package. ```Shell brew tap timrogers/tap && brew install litra ``` -------------------------------- ### Install litra-rs via Cargo Source: https://github.com/timrogers/litra-rs/blob/main/README.md Installs the litra-rs command-line tool on macOS, Linux, or Windows using Cargo, Rust's package manager. This method requires Rust to be installed on the system. ```Shell cargo install litra ``` -------------------------------- ### Litra MCP Client Tools Source: https://github.com/timrogers/litra-rs/blob/main/README.md This section details the tools exposed by the Litra Model Context Protocol (MCP) server, enabling AI applications and agents to control Logitech Litra devices. These tools cover device listing, power control, brightness adjustment, and color temperature settings. ```APIDOC litra_devices - Lists available Logitech Litra devices. - Parameters: None. - Returns: A list of available Litra devices. litra_on - Turns your Logitech Litra device on. - Parameters: Implicitly targets a specific device if multiple are available. - Returns: Status of the operation. litra_off - Turns your Logitech Litra device off. - Parameters: Implicitly targets a specific device if multiple are available. - Returns: Status of the operation. litra_toggle - Toggles your Logitech Litra device on or off. - Parameters: Implicitly targets a specific device if multiple are available. - Returns: Status of the operation. litra_brightness - Sets the brightness of your Logitech Litra device. - Description: The brightness can be set to a specific value measured in lumens (lm) or as a percentage of the device's maximum brightness. The valid range is between the minimum and maximum brightness for the specific device, as determined by the `litra_devices` tool. - Parameters: - value: The desired brightness level (lumens or percentage). - device (optional): Identifier for the specific Litra device. - Returns: Status of the brightness setting operation. litra_brightness_up - Increases the brightness of your Logitech Litra device. - Description: The increase can be specified as a specific value in lumens or as a percentage of the device's maximum brightness. - Parameters: - value: The amount to increase the brightness by (lumens or percentage). - device (optional): Identifier for the specific Litra device. - Returns: Status of the brightness adjustment operation. litra_brightness_down - Decreases the brightness of your Logitech Litra device. - Description: The decrease can be specified as a specific value in lumens or as a percentage of the device's maximum brightness. - Parameters: - value: The amount to decrease the brightness by (lumens or percentage). - device (optional): Identifier for the specific Litra device. - Returns: Status of the brightness adjustment operation. litra_temperature - Sets the color temperature of your Logitech Litra device. - Description: The temperature is set to a specific value measured in Kelvin (K). The value must be a multiple of 100, within the minimum and maximum temperature range for the device, as returned by the `litra_devices` tool. - Parameters: - value: The desired color temperature in Kelvin (K), must be a multiple of 100. - device (optional): Identifier for the specific Litra device. - Returns: Status of the temperature setting operation. litra_temperature_up - Increases the color temperature of your Logitech Litra device. - Description: The temperature increase is specified as a value in Kelvin (K) and must be a multiple of 100. - Parameters: - value: The amount to increase the temperature by in Kelvin (K), must be a multiple of 100. - device (optional): Identifier for the specific Litra device. - Returns: Status of the temperature adjustment operation. litra_temperature_down - Decreases the color temperature of your Logitech Litra device. - Description: The temperature decrease is specified as a value in Kelvin (K) and must be a multiple of 100. - Parameters: - value: The amount to decrease the temperature by in Kelvin (K), must be a multiple of 100. - device (optional): Identifier for the specific Litra device. - Returns: Status of the temperature adjustment operation. ``` -------------------------------- ### Claude Desktop MCP Server Configuration Source: https://github.com/timrogers/litra-rs/blob/main/README.md Configuration snippet to add the Litra MCP server to Claude Desktop's app configuration file. This allows control of Litra devices from within the Claude application. ```json { "mcpServers": { "litra": { "command": "litra", "args": [ "mcp" ] } } } ``` -------------------------------- ### Configure udev Permissions on Linux Source: https://github.com/timrogers/litra-rs/blob/main/README.md Configures udev rules on Linux to allow non-root users belonging to the 'video' group to access and manage Litra devices. This involves copying a rules file and reloading the udev rules. ```Shell # udevadm control --reload-rules # udevadm trigger ``` -------------------------------- ### litra CLI: Device Information Source: https://github.com/timrogers/litra-rs/blob/main/README.md Command to list all connected Logitech Litra devices. It can output information in a human-readable format or as JSON. ```APIDOC litra devices [--json] - Lists Logitech Litra devices connected to your computer. The `--json` flag outputs the device information in JSON format. ``` -------------------------------- ### litra CLI: Global Arguments Source: https://github.com/timrogers/litra-rs/blob/main/README.md Global arguments that can be applied to any litra CLI command. The `--serial-number` argument is used to target a specific device when multiple Litra devices are connected. ```APIDOC --serial-number | -s - Specifies the serial number of the device to target. Recommended when multiple Litra devices are connected. If omitted and multiple devices are present, an arbitrary device may be selected. ``` -------------------------------- ### litra CLI: Basic Light Control Source: https://github.com/timrogers/litra-rs/blob/main/README.md Commands to turn the Logitech Litra device on, off, or toggle its state. These commands interact directly with the connected Litra hardware. ```APIDOC litra on - Turn your Logitech Litra device on. litra off - Turn your Logitech Litra device off. litra toggle - Toggles your Logitech Litra device on or off. ``` -------------------------------- ### litra CLI: Brightness Control Source: https://github.com/timrogers/litra-rs/blob/main/README.md Commands to set, increase, or decrease the brightness of the Logitech Litra device. Brightness can be specified by absolute value (lumens) or relative percentage. ```APIDOC litra brightness --value | --percentage - Sets the brightness of your Logitech Litra device. The value can be specified in lumens or as a percentage of the device's maximum brightness. The valid range is determined by the 'devices' command. litra brightness-up --value | --percentage - Increases the brightness of your Logitech Litra device. The increment can be specified in lumens or as a number of percentage points to add. litra brightness-down --value | --percentage - Decreases the brightness of your Logitech Litra device. The decrement can be specified in lumens or as a number of percentage points to subtract. ``` -------------------------------- ### litra CLI: Temperature Control Source: https://github.com/timrogers/litra-rs/blob/main/README.md Commands to set, increase, or decrease the color temperature of the Logitech Litra device. Temperature is specified in Kelvin (K) and must be a multiple of 100. ```APIDOC litra temperature --value - Sets the temperature of your Logitech Litra device using a value measured in Kelvin (K). The temperature must be a multiple of 100 and within the device's supported range. litra temperature-up --value - Increases the temperature of your Logitech Litra device. The value must be a multiple of 100. litra temperature-down --value - Decreases the temperature of your Logitech Litra device. The value must be a multiple of 100. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.