open-index/open-npm huggingface dataset:
npm package: @sensegrep/cli
Description: Command-line interface for sensegrep semantic + structural code search.
Latest version: 0.1.22

# @sensegrep/cli

Command-line interface for sensegrep semantic + structural code search.

## Install

```bash
npm install -g @sensegrep/cli
```

## Quickstart

```bash
sensegrep index --root .
sensegrep search "error handling and retry logic"
sensegrep detect-duplicates --cross-file-only
```

## Documentation

- CLI reference: https://github.com/Stahldavid/sensegrep/blob/main/docs/cli-reference.md
- Getting started: https://github.com/Stahldavid/sensegrep/blob/main/docs/getting-started.md
- Issues: https://github.com/Stahldavid/sensegrep/issues
npm package: @sensegrep/core
Description: Semantic + structural code search engine used by the sensegrep CLI, MCP server, and VS Code extension.
Latest version: 0.1.22

# @sensegrep/core

Semantic + structural code search engine used by the sensegrep CLI, MCP server, and VS Code extension.

## Install

```bash
npm install @sensegrep/core
```

## Usage

```ts
import { index, search } from "@sensegrep/core"

await index({ rootDir: process.cwd(), mode: "incremental" })
const results = await search({ query: "authentication and token validation" })
console.log(results)
```

## Documentation

- Repository: https://github.com/Stahldavid/sensegrep
- Docs: https://github.com/Stahldavid/sensegrep/tree/main/docs
- Issues: https://github.com/Stahldavid/sensegrep/issues
npm package: @sensegrep/mcp
Description: MCP server exposing sensegrep capabilities to AI coding assistants.
Latest version: 0.1.22

# @sensegrep/mcp

MCP server exposing sensegrep capabilities to AI coding assistants.

## Install

```bash
npm install -g @sensegrep/mcp
```

## MCP Configuration

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

Or with global install first:

```bash
npm install -g @sensegrep/mcp
```

```json
{
  "mcpServers": {
    "sensegrep": {
      "command": "sensegrep-mcp"
    }
  }
}
```

## Tools

Canonical tool names:

- `sensegrep_search`
- `sensegrep_index`
- `sensegrep_detect_duplicates`

Legacy aliases are still accepted for compatibility:

- `sensegrep.search`
- `sensegrep.index`
- `sensegrep.detect_duplicates`

## Environment Variables

Common MCP/runtime variables:

- `SENSEGREP_ROOT` - root directory to index/search
- `SENSEGREP_WATCH` - watcher toggle (`0`, `false`, `off`, `no` disables)
- `SENSEGREP_PROVIDER` - `local`, `gemini`, or `openai`
- `SENSEGREP_EMBED_MODEL`, `SENSEGREP_EMBED_DIM`, `SENSEGREP_EMBED_DEVICE`
- `GEMINI_API_KEY` / `GOOGLE_API_KEY`
- `SENSEGREP_OPENAI_API_KEY` / `FIREWORKS_API_KEY` / `OPENAI_API_KEY`

For the complete and official list, see `docs/mcp-setup.md` in the repository.

## Documentation

- MCP setup: https://github.com/Stahldavid/sensegrep/blob/main/docs/mcp-setup.md
- Repository: https://github.com/Stahldavid/sensegrep