Repository navigation
0.7.0b6 — findings say where they are
Pre-releaseFour things, and the first makes the other three worth having.
Findings say where they are
semlayer lint --json now reports line, col, start and end for every finding, and offset for every statement. Nothing searches text for them: sqlglot has been recording exact positions on every Identifier all along, and the linter simply never read them. col is normalised to where the name begins — sqlglot stores the column of a token's last character, which is not what an editor wants.
$ semlayer lint layer.yaml revenue.sql
revenue.sql:4:14: [error] fanout_aggregate ord_hdr.tot_amt: SUM(ord_hdr.tot_amt) in a block that joins ord_ln multiplies ord_hdr's values
fix: aggregate ord_ln in a subquery first…
The VS Code extension's 187 lines of position reconstruction are deleted as a result. Its README had to admit the underlines were "close, not exact", and it had a quiet bug: two identical statements in one file both underlined the first one.
A GitHub Action
- uses: semlayer-dev/semlayer@v0.7.0-beta.6
with:
mode: lint # or drift, to fail when the warehouse moved
layer: layer.yamlFindings land on the pull request diff, at the identifier, with the fix underneath. fail-on: never annotates without failing — the way into a repository that already has years of SQL in it. Lint mode installs without the warehouse drivers, because linting opens no warehouse.
semlayer client add
Writes semlayer into an MCP client's config — Claude Code, Claude Desktop, Cursor, Cline, and VS Code's own agent — so nobody hand-edits JSON. It records an absolute command (a client launched from a dock does not inherit your shell's PATH), keeps arguments as arguments, merges without touching any other server, and refuses rather than overwrites a file that is not valid JSON.
semlayer client list
semlayer client add claude-code --dry-run
A one-click bundle for Claude Desktop
semlayer-0.7.0b6.mcpb is attached to this release. Download and double-click, or Settings → Extensions → Install Extension. It is 11 kB: server.type: "uv" means Desktop's own runtime provisions Python and the dependencies on first launch, so nothing is vendored and nothing is platform-specific.
Also: llms-install.md is now linked from the README — an agent asked to "install the semlayer MCP server" could previously only find it by guessing — the MCP registry listing is mentioned, and the "with nothing installed" section no longer opens by assuming you have uv.