Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,18 @@ GIQL includes an [MCP](https://modelcontextprotocol.io/) server that gives LLM-p
pip install giql[mcp]
```

Or spawn a server directly with `uvx`:

```sh
uvx --from "giql[mcp]" giql-mcp
```

To add the GIQL MCP server to a specific project in Claude Code:

```sh
claude mcp add --scope project giql-mcp -- uvx --from "giql[mcp]" giql-mcp
```

See [`src/giql/mcp/README.md`](src/giql/mcp/README.md) for configuration and usage details.

## Development
Expand Down
12 changes: 12 additions & 0 deletions docs/transpilation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ Each GIQL operator expands to specific SQL patterns.
ELSE 0
END

DISTANCE and NEAREST canonicalize each table's ``start``/``end`` to 0-based
half-open at SQL-emit time based on its ``coordinate_system`` and
``interval_type``, so logically-equivalent intervals stored in different
conventions yield the same numeric distance.

.. versionchanged:: 0.4
The implicit bedtools-style ``+1`` gap counting that DISTANCE and NEAREST
previously applied to tables declared with ``interval_type="closed"`` has
been removed. Closed-interval tables now produce the same canonical
distances as half-open tables. Callers that need the legacy ``+1``
semantics must add it explicitly in the consuming query.

**Intersection joins** expand to inequality joins:

.. tab-set::
Expand Down
233 changes: 160 additions & 73 deletions src/giql/generators/base.py

Large diffs are not rendered by default.

Loading
Loading