Connect Antigravity, Claude Code, Codex or ChatGPT
The Lumen connector lets the AI you already use — Google Antigravity, Claude Code, the Codex CLI, or ChatGPT on the web — read the drawing sheets saved in your projects and send a reading back. The reading arrives in Step 0.5 as suggestions; nothing counts until you accept it. Your AI runs on your own subscription, so it does not use your Lumen AI allowance. The same connection makes it A.J. the Sparky, your assistant on every step. Included with every plan (Basic while its trial runs).
Your AI's own terms apply to the drawings it reads. Personal (consumer) accounts are not covered by the API terms in our privacy policy: ChatGPT, Claude, Gemini/Antigravity, and Grok personal accounts may use what you give them to train their models unless you turn that off in the account's data or privacy settings. Check that setting before giving a client's drawings to one.
1. Make a token
For Antigravity (token method), Claude Code, and Codex. ChatGPT — and Antigravity OAuth sign-in — need no pasted token: skip to 2a or 2d. On your dashboard, under Lumen connector, choose Make a token. Copy it straight away: it is shown once. Leave “Can change projects and submit readings” ticked if you want A.J. to edit projects directly (for example, adding Step 3 circuits, arranging Step 2 rooms, or applying a stored blueprint reading, cut sheets, or GC schedule across Steps 1–10); untick it for read-only access. A token lasts 30, 90 or 365 days, and you can revoke it at any time. Treat it like a password and never commit it to a repository.
2a. Google Antigravity (App, IDE & CLI)
Google Antigravity connects directly to Lumen's remote Streamable HTTP MCP endpoint. You can connect with either a personal access token (works in all versions) or OAuth sign-in (no token to copy).
- Open your global Antigravity MCP config file at
~/.gemini/config/mcp_config.json(on Windows:%USERPROFILE%\.gemini\config\mcp_config.json). You can also view and manage MCP servers in the UI under Skills & Customizations in the left sidebar (Antigravity App) or Additional Options (...) → MCP Servers (Antigravity IDE). - Option A — Personal access token (fastest): add the
lumenentry insidemcpServerswith your token in place ofYOUR_TOKEN:{ "mcpServers": { "lumen": { "url": "https://api.lumenchristielectricaldesign.com/api/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } } - Option B — OAuth sign-in (no pasted token): add
lumenwith just the URL:{ "mcpServers": { "lumen": { "url": "https://api.lumenchristielectricaldesign.com/api/mcp" } } }Then open Skills & Customizations (Antigravity App) or Additional Options (...) → MCP Servers (Antigravity IDE), click Authenticate next tolumen, sign in to Lumen in the browser, and click Allow. If your browser lands onantigravity.google/oauth-callbackshowing an authorization code, copy that code, paste it back into Antigravity's prompt field, and click Submit. Once connected, it appears on your Lumen dashboard as a signed-in app that you can revoke anytime. - Refresh MCP servers (or start a new conversation in Antigravity) and ask it “list my Lumen projects”.
- Already have other servers in
mcp_config.json? Merge only the"lumen": { ... }block inside your existingmcpServersobject. - 401 Unauthorized or tools not loading with Option A: some Antigravity builds prefer OAuth over static headers. Switch to Option B above (remove
headers) and click Authenticate. Also check the URL ends in/api/mcpwith no trailing slash. - Plugin-scoped config: if you package Lumen inside an Antigravity plugin, put Option B (no token) in
plugins/<plugin_name>/mcp_config.json, and never commit a personalYOUR_TOKENto a repository.
2b. Claude Code
- Install the Claude Code command-line tool, if you have not. The Claude desktop app does not add the
claudecommand to your terminal. In PowerShell on Windows:irm https://claude.ai/install.ps1 | iex
On macOS or Linux:curl -fsSL https://claude.ai/install.sh | bash
- Close the terminal, open a new one, and check it is found:
claude --version
- Add the connector, with your token in place of YOUR_TOKEN.
--scope usermakes it work in every folder and every Claude Code session, including the desktop app:claude mcp add --scope user --transport http lumen https://api.lumenchristielectricaldesign.com/api/mcp --header "Authorization: Bearer YOUR_TOKEN"
- Check it connected. You should see
lumenwith a tick and “Connected”:claude mcp list
- Start a new Claude Code session (connectors load when a session starts) and ask it “list my Lumen projects”.
Claude Code troubleshooting
- “The term 'claude' is not recognized” after installing: the installer put
claude.exein%USERPROFILE%\.local\binbut did not add that folder to your PATH. Run this in PowerShell, then open a new terminal:[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path","User") + ";$env:USERPROFILE\.local\bin", "User")Or run it by its full path straight away:& "$env:USERPROFILE\.local\bin\claude.exe" --version. - “Added HTTP MCP server lumen … to local config”: the
--scope userwas left off, so it works only in the folder you ran it from. Remove it and add it again with--scope user:claude mcp remove lumen
- lumen shows “Failed to connect” or asks to sign in: the token was mistyped, has expired or was revoked. Make a new token, then remove and add the connector again with it.
- Connected, but the session has no Lumen tools: the session was already open when you added it. Start a new session.
- You pasted the token into a chat, an email or a repository: revoke it on the dashboard and make a new one. Anyone holding it can work your projects until it is revoked.
2c. Codex CLI
Put the token in an environment variable, then add the server to ~/.codex/config.toml:
# Windows (PowerShell), then open a new terminal: setx LUMEN_CONNECTOR_TOKEN "YOUR_TOKEN" # macOS / Linux (add it to your shell profile): export LUMEN_CONNECTOR_TOKEN="YOUR_TOKEN"
[mcp_servers.lumen] url = "https://api.lumenchristielectricaldesign.com/api/mcp" bearer_token_env_var = "LUMEN_CONNECTOR_TOKEN" tool_timeout_sec = 300
The longer tool timeout gives a large reading time to be checked; Codex otherwise stops waiting after 60 seconds.
2d. ChatGPT
ChatGPT cannot take a pasted token, so it signs in to Lumen instead, the way you sign in to an app with Google. It works in ChatGPT on the web, with developer mode on. Developer mode and custom connectors are an OpenAI feature, and OpenAI decides which ChatGPT plans have them (and whether a plan gets the tools that change things or only the ones that read). On a Business, Enterprise or Edu workspace an admin may have to allow developer mode and custom apps first.
- In ChatGPT on the web, open Settings → Apps (or Apps & Connectors) → Advanced settings and turn on Developer mode.
- Add a custom MCP server: in Settings → Apps choose Create (on newer versions, Plugins → + → Add custom MCP server). Fill it in:
- Name:
Lumen - Server URL (exactly, no slash at the end):
https://api.lumenchristielectricaldesign.com/api/mcp - Authentication: OAuth. Leave the client ID and secret empty: ChatGPT registers itself with Lumen.
- Name:
- ChatGPT opens Lumen's sign-in. Sign in if asked, check that the page says it sends you back to chatgpt.com, and choose Allow. Untick “Can change projects” if ChatGPT should only look.
- In a new chat, turn Lumen on from the + menu (Developer mode, or the app list) and ask “list my Lumen projects”. ChatGPT asks you to confirm each tool that changes something.
It shows on your dashboard as “ChatGPT (signed in)”. Revoke it there to disconnect; ChatGPT then asks you to sign in again. A sign-in lasts 90 days from the last time ChatGPT used it.
- “Error fetching OAuth configuration” or “does not support OAuth”: check the URL ends in
/api/mcpwith no slash after it, and that Authentication is OAuth. - “This AI app is not registered with Lumen”: delete the Lumen connector in ChatGPT and create it again.
- No Create button, or no Developer mode: your ChatGPT plan or workspace does not have custom connectors. That is set by OpenAI or your workspace admin, not by Lumen.
- Only some tools appear, or tools that change things are missing: your ChatGPT plan allows read-only custom connectors. Antigravity, Claude Code, or Codex can do everything.
3. Ask it to read your drawings
For example:
Use the lumen tools: find my project "Smith Residence", read every electrical sheet following get_reading_format, and submit the reading.
Your AI will:
list_projectsandlist_sheetsto find the drawing and its pages;get_reading_formatfor the same instructions the “Read it with your own AI” import uses;get_sheet_preread,get_sheet_text,find_symbolandcount_legend_symbolsfor what Lumen already read from the drawing file with no AI: its printed text, its legend, and every place each symbol is drawn, exactly;get_sheet_imageto look at each sheet, zooming into busy areas with a region;submit_readingto send the reading, which is checked exactly like an imported file.
Then open the project's Step 0.5 and, under “From your connector”, choose Put up for review. On a vector drawing, devices your AI reports as a group are placed by Lumen on the drawing's own symbols. On a scan, chat AIs place devices only roughly, so expect to move some.
4. A.J. the Sparky
With a project open in Lumen, your connected AI is A.J.: it knows which project and step you have on screen. Ask it things like:
A.J., what's on this step? Why is the kitchen circuit flagged in Step 9? Add a 20 A dishwasher circuit to the kitchen.
get_current_context: the project and step you have open, and what your plan includes;get_step: what a step of any of your projects holds (circuits with their ids for Step 3);check_compliance: Lumen's own code checks, with section numbers, to explain;create_project,get_upload_link,edit_fields,generate_baseline_circuits,change_circuit,hardware_options,set_service,set_service_equipment,set_main_panel,run_step,run_estimateandexport_documents: work your projects the way you do, from a new project and its drawing to the saved bid and the Step 11 PDFs.get_room_layout,edit_room_layout,edit_room_openings,edit_site_plan,edit_plan_layout_detailsandedit_sheet_notes: change the Step 2 room layout and site plan and the Step 11 shop drawings when you ask. Lumen checks every edit, and a job with stamped drawings stays locked.
Start a new 2023 project for the Smith house at 123 Main St, Elizabethtown, KY, read plans.pdf into it, and put the bid documents in my Bids folder.
A.J. changes your projects directly, through the same steps and limits as the app, and asks you what it cannot read (your utility, company and license, whether flagged items will be field verified). A page you have open shows a reload banner when A.J. changes it. A.J. reads prices only while you have Step 10 open: when it runs the estimate or makes the documents it never sees a number, and the PDFs (which end with a confidentiality notice) are for you to open. It never reads a step your plan does not include, and it explains the NEC by section number in its own words; the AHJ has the final say.
What a token can and cannot do
- It sees only your own projects, never anyone else's, and never gets administrator rights.
- It can read sheets and steps, send readings for review, and work your projects like you do. It cannot accept drawing marks, change prices or Step 10 settings, read prices outside Step 10, or delete a project.
- It stops working when you revoke it, when it expires, or if your plan lapses.
- Calls are rate-limited and logged by token, without the token itself.