lacylights-mcp CLAUDE.md

lacylights-mcp CLAUDE.md is an instructions file for Claude Code from bbernstein/lacylights-mcp. It costs 1,985 tokens per session, scanned A, original, MIT.

Instructions for LacyLights MCP, a server that lets AI assistants control theatrical lighting systems using natural-language requests. It connects assistants to lighting fixtures, scenes, and cues through the LacyLights system.

In plain words
What is it for?
Running the development server, compiling and starting the production build, testing lighting-control tools, and checking code quality.
Why use it?
They explain how to develop, build, test, and maintain the bridge between an AI assistant and the lighting-control backend.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/bbernstein/lacylights-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/bbernstein/lacylights-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lacylights-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/bbernstein/lacylights-mcp/claude-md.svg)](https://agentmods.dev/instructions/bbernstein/lacylights-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/bbernstein/lacylights-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/bbernstein/lacylights-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,985 This file is loaded in full into every session.
When invoked 1,985 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01985 $0.01985
Opus 5 $0.00992 $0.00992
Sonnet 5 $0.00397 $0.00397
Haiku 4.5 $0.00198 $0.00198

Measured 6d ago against content hash 8a0c3b7f487f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

lacylights-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 226 lines

How it starts

The opening of the file, as written. The whole thing — 226 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code when working with code in this repository.

Project Overview

LacyLights MCP is a Model Context Protocol (MCP) server that enables AI-powered theatrical lighting design. It acts as a bridge between AI assistants (like Claude) and the LacyLights lighting control system, providing natural language control of DMX fixtures, scene generation, and cue management.

Role in LacyLights Ecosystem:

  • AI integration layer for the LacyLights system
  • Provides 80+ MCP tools for lighting control
  • Connects AI assistants to the lacylights-go backend
  • Enables natural language scene generation and script analysis

Development Commands

Development

npm run dev              # Start dev server with auto-reload (tsx watch)
npm run build            # Compile TypeScript to dist/
npm start                # Run production build from dist/

Testing

npm test                 # Run all tests
npm run test:watch       # Run tests in watch mode
npm run test:coverage    # Generate coverage report

Code Quality

npm run lint             # Check for linting errors
npm run lint:fix         # Fix auto-fixable linting errors

Architecture

Directory Structure

lacylights-mcp/
├── src/
│   ├── index.ts              # Main entry point, MCP protocol handler
│   ├── tools/                # MCP tool implementations
│   │   ├── project-tools.ts  # Project CRUD operations
│   │   ├── fixture-tools.ts  # Fixture management
│   │   ├── look-tools.ts     # Look generation and control
│   │   └── cue-tools.ts      # Cue sequence and playback
│   ├── services/             # Core services
│   │   ├── graphql-client-simple.ts  # Apollo client for backend
│   │   ├── ai-lighting.ts    # OpenAI integration
│   │   └── rag-service-simple.ts     # Pattern matching service
│   └── types/
│       └── lighting.ts       # TypeScript interfaces
├── tests/                    # Test files (mirrors src/)
├── run-mcp.js               # MCP client integration wrapper
└── dist/                    # Compiled output

Read the full file on GitHub · 226 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 226 lines · 1,985 tokens per session scan A 8a0c3b7f487f

Subscribe to this mod's changes

lacylights-mcp CLAUDE.md is an instructions file published in the GitHub repository bbernstein/lacylights-mcp (14 stars, last pushed 1mo ago), licensed MIT. It adds 1,985 tokens to every session, about $0.0099 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.