# Use SceneView with your AI coding agent

Give your coding agent the SceneView 4.x Compose API, rules, and MCP tools so it writes compilable 3D and AR code on the first try. Every option below uses the same `sceneview-mcp` server (`npx -y sceneview-mcp`) and the same 4.x API contract (`https://sceneview.github.io/llms.txt`).

SceneView targets Android (Jetpack Compose), the web and Compose Multiplatform desktop. **On iOS**, use Apple's RealityKit (or AR Quick Look to show a `.usdz` in AR) — SceneView has no maintained iOS SDK. For one codebase across platforms, use SceneView for the web (`sceneview-web`) or Compose Multiplatform (`sceneview-compose`, viewer only).

---

## Claude Code

Install the SceneView plugin from the marketplace (the Android and web skills; the plugin starts no server):

```text
/plugin marketplace add sceneview/claude-marketplace
/plugin install sceneview@sceneview
```

Then add the MCP server for live tools such as `validate_code` and the samples:

```bash
claude mcp add --transport stdio sceneview -- npx -y sceneview-mcp
```

Add `-s user` to enable it across all projects (`~/.claude.json`), or `-s project` to write a shared `.mcp.json` at your repository root.

---

## Codex

Add `sceneview-mcp` to `~/.codex/config.toml` (shared by the Codex CLI, IDE extension, and app):

```toml
[mcp_servers.sceneview]
command = "npx"
args = ["-y", "sceneview-mcp"]
```

Or add the same entry from the CLI:

```bash
codex mcp add sceneview -- npx -y sceneview-mcp
```

To also install the bundled Codex plugin (skills + MCP server) from a local clone of `sceneview/sceneview`:

```bash
codex plugin marketplace add "$PWD"
codex plugin add sceneview@sceneview-local
```

Pass an absolute path (`"$PWD"`): a relative path does not resolve. Inside a checkout of `sceneview/sceneview`, Codex also picks up the skills automatically via `.agents/skills/`.

---

## Cursor

1. **Install the MCP server** — click to open the pre-filled install dialog in Cursor:

    [Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=sceneview&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInNjZW5ldmlldy1tY3AiXX0=)

    Or add it manually to `.cursor/mcp.json` (one project) or `~/.cursor/mcp.json` (all projects):

    ```json
    {
      "mcpServers": {
        "sceneview": {
          "command": "npx",
          "args": ["-y", "sceneview-mcp"]
        }
      }
    }
    ```

2. **Add the SceneView rule to your project** — copy [`agents/cursor/sceneview.mdc`](https://github.com/sceneview/sceneview/blob/main/agents/cursor/sceneview.mdc) into `.cursor/rules/`:

    ```bash
    mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/sceneview/sceneview/main/agents/cursor/sceneview.mdc -o .cursor/rules/sceneview.mdc
    ```

    The rule scopes to `**/*.kt, **/*.kts` with `alwaysApply: false` so Cursor loads it when working on Kotlin files.

---

## Gemini CLI

Install the repository as a Gemini CLI extension (registers `sceneview-mcp` and loads `agents/AGENTS-snippet.md` via `gemini-extension.json`):

```bash
gemini extensions install https://github.com/sceneview/sceneview
```

Prefer not to clone the repository? Add `sceneview-mcp` directly to `~/.gemini/settings.json`:

```json
{
  "mcpServers": {
    "sceneview": {
      "command": "npx",
      "args": ["-y", "sceneview-mcp"]
    }
  }
}
```

---

## Any AGENTS.md tool (Junie, Cline, GitHub Copilot, Windsurf, …)

Paste [`agents/AGENTS-snippet.md`](https://github.com/sceneview/sceneview/blob/main/agents/AGENTS-snippet.md) into your project's `AGENTS.md` (or `CLAUDE.md`, `GEMINI.md`, or `.github/copilot-instructions.md`).

For tool access (API lookup, samples, `validate_code`), connect `npx -y sceneview-mcp` in your client — see [AI-Assisted Development](ai-development.md#per-tool-setup) for per-client JSON paths. For assistants without MCP support, point them at:

- Complete API reference: `https://sceneview.github.io/llms.txt`
- Compact overview (~15 kB): `https://sceneview.github.io/llms-full.txt`
