Skip to main content
Glama

turn_on_nanoleaf

Activate Nanoleaf smart lights to illuminate your space using the Nanoleaf MCP Server, enabling control from compatible clients like Warp terminal.

Instructions

Turn on the Nanoleaf lights

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'turn_on_nanoleaf' that calls primaryDevice.turnOn() and returns a success message.
    case 'turn_on_nanoleaf': await primaryDevice.turnOn(); return { content: [ { type: 'text', text: 'Nanoleaf lights turned on', }, ], };
  • src/index.ts:65-72 (registration)
    Registration of the 'turn_on_nanoleaf' tool including its name, description, and input schema (empty object).
    { name: 'turn_on_nanoleaf', description: 'Turn on the Nanoleaf lights', inputSchema: { type: 'object', properties: {}, }, },
  • Core implementation of the turnOn method in NanoleafClient class, which sends a PUT request to the /state endpoint to turn the lights on.
    async turnOn(): Promise<void> { await this.httpClient.put(this.getAuthUrl('/state'), { on: { value: true } }); }

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/srnetadmin/nanoleaf-mcp-server'

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