# Flit Physics MCP server

> Lets an AI client simulate sphere-based physics, raycasting, and terrain collisions for three.js games.

- Repository: https://github.com/brashler/Flit
- Page: https://hostedmcp.org/servers/brashler/flit
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.2.2

## Install

### Claude Code

```sh
claude mcp add flit -- npx -y flit-physics
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "flit": {
      "command": "npx",
      "args": [
        "-y",
        "flit-physics"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "flit": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "flit-physics"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"flit","type":"stdio","command":"npx","args":["-y","flit-physics"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "flit": {
      "command": "npx",
      "args": [
        "-y",
        "flit-physics"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add flit -- npx -y flit-physics
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.flit]
command = "npx"
args = ["-y", "flit-physics"]
```

### Gemini CLI

```sh
gemini mcp add -s user flit npx -- -y flit-physics
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "flit": {
      "command": "npx",
      "args": [
        "-y",
        "flit-physics"
      ]
    }
  }
}
```

## FAQ

### Does the engine support terrain?

Yes, it includes a Heightfield feature for 2.5D terrain using a grid of height posts with bilinear height and central-difference normals.
