Skip to main content
Glama
Lightscale AI Run MCP Server

Lightscale AI Run MCP Server

Official
README.md
# Lightscale AI Run — Official MCP Server

Connect [Lightscale AI Run](https://lightscale.run/) to **Claude Code**, **Codex**, **OpenCode**, **Cursor**, or any Model Context Protocol (MCP) client over Streamable HTTP with OAuth 2.1.

Lightscale AI Run takes AI-built ("vibe-coded") apps—created with Lovable, Bolt, Cursor, Claude Code, Codex, Replit, or written by hand—from working prototype to production software:

1. **Whole-app security and architecture review** (~750 curated rules across 8 areas + deterministic secret and dependency checks, failing instead of silently skipping unreadable files).
2. **Verified sandbox hardening** (automated fixing in an isolated, no-internet sandbox with build, test, browser, and re-review checks; rollback on failure).
3. **Swiss production hosting** (suited for Swiss FADP/revDSG and GDPR data residency) or **compiler-enforced rebuild** on [Lightscale AI Builder](https://lightscale.ai/).

Every step works independently with no lock-in: stop after the review report, fix findings locally with your coding agent and ask Run to verify them, export hardened code as a zip, patch, or GitHub pull request, or publish to Swiss hosting.

---

## Remote MCP Endpoint

- **URL:** `https://studio.lightscale.run/agent`
- **Transport:** Streamable HTTP
- **Authentication:** OAuth 2.1 (browser consent flow via [Run Studio](https://studio.lightscale.run/agents))

No local binary installation or API key file is required.

---

## Quick Setup

### Claude Code

```bash
claude mcp add --transport http lightscale-ai https://studio.lightscale.run/agent
```

Then run `/mcp` inside Claude Code and approve the connection in your browser.

### OpenAI Codex

```bash
codex mcp add lightscale-ai --url https://studio.lightscale.run/agent
codex mcp login lightscale-ai
```

### OpenCode

Add to your `opencode.json`:

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "lightscale-ai": {
      "type": "remote",
      "url": "https://studio.lightscale.run/agent"
    }
  }
}
```

Then authenticate:

```bash
opencode mcp auth lightscale-ai
```

### Cursor

Add to `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global):

```json
{
  "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

Once connected, ask your coding agent:

- *"Review this app for security and production readiness with Lightscale AI Run."*
- *"Check the findings from Lightscale AI Run, fix the blocking issues locally, and recheck with Run."*
- *"Start sandbox hardening on Lightscale AI Run and wait for it to finish."*
- *"Build a new internal CRM app on Lightscale AI Builder."*

---

## Available Tools

### Review, Hardening, and Port (Lightscale AI Run)

| 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 |
| `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 answers to ambiguous intent questions to refine the 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 |
| `start_port` | Port the reviewed application to Lightscale AI Builder (AIL) |

### App Building (Lightscale AI Builder)

| Tool | Purpose |
|---|---|
| `list_apps` | List your Lightscale AI Builder apps |
| `create_app` | Create a new compiler-checked 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.
- **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 hardening:** Optional fixing 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).

---

## 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). An instant no-account verdict powered by the same engine is also available at [hostortoast.com](https://hostortoast.com).
- **Paid reports and hardening:** Fixed prices shown upfront (USD, EUR, or CHF). Critical domains (health, finance, payments) require a paid review.
- **Swiss hosting:** From 50/month (USD, EUR, or CHF), with the first month of your first hosted app free.
- **Stack support:** Static review covers any web application. Automated sandbox hardening and Swiss hosting currently support Node.js web applications on PostgreSQL (adapting hosted backends like Supabase during hardening).
- **No absolute guarantee:** Like any AI-assisted review, Run cannot guarantee that it detects every vulnerability.

---

## Links

- Website: [lightscale.run](https://lightscale.run/)
- Run Studio & MCP management: [studio.lightscale.run/agents](https://studio.lightscale.run/agents)
- Free no-account verdict: [hostortoast.com](https://hostortoast.com)
- Technical deep dive (~750 rules & methodology): [lightscale.ai/articles/lightscale-ai-run/](https://lightscale.ai/articles/lightscale-ai-run/)
- Lightscale AI Builder: [lightscale.ai](https://lightscale.ai/)
- Contact: `contact@lightscale.ai`