Sidemantic includes an LSP server for its SQL dialect (MODEL/DIMENSION/METRIC/RELATIONSHIP/SEGMENT).

## Start the Server

```bash doc-validate=lint
sidemantic lsp
```

```bash doc-test
uvx sidemantic lsp --help
```

```text doc-expected-contains
Usage: sidemantic lsp
```

The LSP server runs on stdio. Configure your editor to start the command for files you want to edit.

## Troubleshooting

- If completion doesn’t work, confirm the editor is actually launching `sidemantic lsp`.
- If diagnostics are missing, run `sidemantic validate` and compare errors.