
run-mcp
io.github.Lightscale-AI/run-mcp
Security check (~750 rules) for AI-built apps, optional fixes/rebuild, plus secure app building.
Documentation
Lightscale AI — Official MCP Server
Connect Lightscale AI and Lightscale AI Run to Claude Code, Codex, OpenCode, Cursor, or any Model Context Protocol (MCP) client over Streamable HTTP with OAuth 2.1.
One remote connection covers two workflows—with no lock-in:
- Security Check for existing apps (Lightscale AI Run): Check apps built with Lovable, Bolt, Cursor, Claude Code, Codex, Replit, or written by hand across every source file (~750 curated rules across 8 areas + deterministic secret and dependency checks, failing instead of silently skipping unreadable files).
- Stop after the review and fix findings locally with your coding agent (then ask Run to recheck them), or—if you want:
- Rebuild on Lightscale AI: Run a free fit check first, then rebuild the app with the same pages, data, and roles in compiler-checked AI Language (free with the full report, subject to fair use).
- Keep your code and fix in a private sandbox: Automated fixing in an isolated, no-internet sandbox with build, test, browser, and re-review checks (rollback on failure). Export the fixed code as a GitHub pull request, patch, or zip—or optionally host it in Switzerland.
- Create and change new secure apps (Lightscale AI): Ask your coding agent to build or evolve a Lightscale AI app in plain language (for example, "Create a Lightscale AI app where our team tracks its working hours"). The compiler checks access control, authentication, and data protection before any application code exists, and creating apps is free subject to fair use.
Read the full technical walkthrough: Lightscale AI MCP: Your Coding Agent Talks, AIL Writes the App.
Remote MCP Endpoint
- URL:
https://studio.lightscale.run/agent - Transport: Streamable HTTP
- Authentication: OAuth 2.1 (browser consent flow via Run Studio)
No local binary installation or API key file is required.
Quick Setup
Claude Code
claude mcp add --transport http lightscale-ai https://studio.lightscale.run/agent
Then run /mcp inside Claude Code, select lightscale-ai, and approve the connection in your browser.
OpenAI Codex
codex mcp add lightscale-ai --url https://studio.lightscale.run/agent
codex mcp login lightscale-ai
OpenCode
Add to your opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"lightscale-ai": {
"type": "remote",
"url": "https://studio.lightscale.run/agent"
}
}
}
Then authenticate:
opencode mcp auth lightscale-ai
Cursor
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"lightscale-ai": {
"url": "https://studio.lightscale.run/agent"
}
}
}
Other MCP Clients
Configure a remote Streamable HTTP MCP server pointing to https://studio.lightscale.run/agent with OAuth enabled.
Example Prompts
Name Lightscale AI in your prompt so your agent hands the task to the MCP server instead of writing local code on its own:
- "Review this app for security holes with Lightscale AI."
- "Read the open Lightscale AI findings, fix the launch blockers locally, and recheck."
- "Run a free fit check to see how this app would move to Lightscale AI."
- "Start sandbox hardening on Lightscale AI Run and wait for it to finish."
- "Create a Lightscale AI app where our team tracks its working hours."
Available Tools
Security Check, Hardening, and Move to Lightscale AI
| Tool | Purpose |
|---|---|
list_projects | List your Lightscale AI Run projects and their latest review status |
upload_source | Generate a 15-minute one-time upload URL and Git archive command to submit the working tree (respects .gitignore) |
review_status | Poll a running review until quoted or finished |
get_report | Fetch the verdict, prioritized findings (with stable IDs, severity, harm, locations, and fixes), open intent questions, and uncovered technologies |
accept_quote | Accept a fixed review price after explicit user confirmation |
get_balance | Check prepaid balance, reserved amounts, and studio top-up link |
answer_questions | Submit the user's own answers to ambiguous intent questions to refine the review |
check_port_fit | Run a free fit check showing which features of the latest reviewed version carry over to Lightscale AI |
port_status | Poll fit check or rebuild progress |
start_port | Rebuild a fitted application on Lightscale AI (free up to three times a day after a paid review) |
start_hardening | Quote or start isolated sandbox hardening until no launch blocker remains |
hardening_status | Poll sandbox hardening progress |
open_sandbox | Start or retrieve the private sandbox preview for the latest reviewed version |
Creating and Changing Lightscale AI Apps
| Tool | Purpose |
|---|---|
list_apps | List your Lightscale AI apps |
create_app | Create a new compiler-checked Lightscale AI app from a plain-language description |
change_app | Request changes to an existing Lightscale AI app |
build_status | Poll build status, open questions, or consent requests |
answer_build_question | Send the user's answers to build questions |
answer_build_consent | Send the user's consent decision during a build |
cancel_build | Cancel a running build while keeping the previous version |
Security & Trust Boundaries
- Static, read-only review: Uploaded source code is never executed during review; the engine inspects files strictly through read-only tools. Make sure
.gitignoreexcludes local secrets and.envfiles before uploading. - No arbitrary local execution: This remote MCP server does not execute commands on your machine; your local coding agent stays under your own permission controls.
- Isolated sandbox for optional fixing: Optional hardening runs inside an isolated, no-internet sandbox with its own local PostgreSQL instance (adapting hosted databases such as Supabase) so production data is never touched.
- Explicit user approval for spend: Fixed prices are shown upfront before paying; tools never accept quotes or start paid jobs without explicit user confirmation.
- Swiss operation: Built and operated by Lightscale AI Inc., Zug, Switzerland (founded by ETH Zürich computer scientists). Legal terms & DPA: studio.lightscale.run/legal.
Pricing & Honest Limits
- Free daily review: Standard and sensitive apps up to 600,000 characters receive one free security review daily (no credit card required). A free verdict without an account is also available at hostortoast.com.
- Paid reports and optional sandbox fixing: Fixed prices shown upfront (USD, EUR, or CHF). Critical domains (health, finance, payments) require a paid review.
- Move to Lightscale AI: Free fit check first; rebuilding on Lightscale AI is free with the full report (subject to fair use).
- Creating new Lightscale AI apps: Free subject to fair use; first hosted app on Lightscale AI is free, further apps from CHF 50/month.
- Optional Swiss hosting for existing code: Prices shown in the studio before publishing (from 50/month in USD, EUR, or CHF; first month of first hosted app free).
- Stack support: Static review covers any web application. Automated sandbox hardening and hosting of existing code currently support Node.js web apps on PostgreSQL (adapting hosted backends like Supabase during hardening).
- No absolute guarantee for existing code: Like any AI-assisted review, Run cannot guarantee that it detects every vulnerability.
Links
- Security Check: lightscale.run
- MCP Server Guide: lightscale.ai/articles/lightscale-ai-mcp/
- Run Studio & MCP management: studio.lightscale.run/agents
- Free no-account verdict: hostortoast.com
- Technical deep dive (~750 rules & methodology): lightscale.ai/articles/lightscale-ai-run/
- Lightscale AI: lightscale.ai
- Legal, Privacy & DPA: studio.lightscale.run/legal
- Contact:
contact@lightscale.ai
No installation packages available.