Metadata-Version: 2.4
Name: simple-code-indexer
Version: 0.1.1
Summary: Local-first MCP server for hybrid lexical + semantic code search, re-indexed on every save (SQLite/FTS5 + sqlite-vec)
Keywords: mcp,model-context-protocol,code-search,semantic-search,sqlite,fts5,tree-sitter
Author: k-joel
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: faiss-cpu>=1.15
Requires-Dist: filelock>=3.30
Requires-Dist: httpx>=0.28.1
Requires-Dist: mcp>=2.3.0
Requires-Dist: numpy>=1.25
Requires-Dist: pathspec>=1.1.1
Requires-Dist: psutil>=7.2.2
Requires-Dist: pyyaml>=6.0
Requires-Dist: qdrant-client>=1.19.1
Requires-Dist: questionary>=2.1
Requires-Dist: sqlite-vec>=0.1.9,<0.2
Requires-Dist: tree-sitter>=0.26.0
Requires-Dist: tree-sitter-language-pack>=1.22.1
Requires-Dist: watchdog>=6.0.0
Requires-Python: >=3.12
Project-URL: Homepage, https://github.com/k-joel/simple-code-indexer
Project-URL: Repository, https://github.com/k-joel/simple-code-indexer
Project-URL: Issues, https://github.com/k-joel/simple-code-indexer/issues
Project-URL: Changelog, https://github.com/k-joel/simple-code-indexer/blob/master/docs/CHANGELOG.md
Description-Content-Type: text/markdown

# simple-code-indexer

Local-first MCP server that gives your AI coding agent hybrid lexical + semantic code search, re-indexed on every save.

simple-code-indexer runs alongside your coding agent — Claude Code, VS Code, Cursor, Zed, OpenCode, Codex CLI, and others — as a standard [MCP](https://modelcontextprotocol.io) server. A file watcher re-indexes every saved file into **SQLite/FTS5** (keyword search) and **sqlite-vec** (semantic search; [FAISS](https://github.com/facebookresearch/faiss) and [Qdrant](https://qdrant.tech) selectable), so results stay current without manual reindexing. Everything stays on your machine: each project keeps its index in `<project>/.simple-ci/`, and the single global config lives in `~/.simple-ci/config.yaml`.

## Why this one

- **Hybrid search in one tool.** `search_code` runs keyword queries through FTS5 and, with `semantic=true`, vector search — overlapping hits are de-duplicated automatically.
- **Fresh on every save.** A file watcher indexes each save as it happens; a startup reconcile and an optional periodic sweep are the backstop. No manual reindex step.
- **322 indexable languages.** All tree-sitter grammars from `tree-sitter-language-pack` are catalogued; documentation and serialization formats (`.md`, `.txt`, `.json`, `.yaml`, …) are deliberately never indexed.
- **Symbols, not just text.** `symbol_lookup` resolves definitions via tree-sitter, with a `coverage` signal when a language cannot produce symbols.
- **One-command setup.** An interactive wizard writes the MCP entry into 17 supported harnesses — you never edit a client config by hand.
- **Local-first and multi-session safe.** Vectors live in the same `index.db` as the chunks by default; one writer daemon per workspace keeps the index fresh while any harness session is attached.

## Quick start

Prerequisites: [uv](https://docs.astral.sh/uv/) (installed automatically when missing) and Python 3.12+. Docker Desktop is optional — only needed to download an embedding model or run Qdrant; an embedding endpoint you already run works too. Lexical search needs no external services; semantic search needs an OpenAI-compatible embedding endpoint, which the wizard can start for you.

```bash
uvx simple-code-indexer setup
```

That installs a version-pinned environment with `uv tool install` and launches the interactive wizard: it picks an embedding source (your own OpenAI-compatible endpoint, or a downloadable model such as EmbeddingGemma 2 served locally), a vector store (**sqlite-vec** recommended, FAISS or Qdrant also supported), and the harnesses to configure. Restart your harness afterwards, open a project, and ask in plain language: *"where is the writer lease acquired?"*

## Tools

| Tool | What it does |
|---|---|
| `search_code` | Keyword (FTS5) search; `semantic=true` switches to vector search |
| `symbol_lookup` | Find definitions by symbol name, with a `coverage` signal |
| `get_status` | Workspace, role, index/vector-store health, sessions, services |

Every hit is a chunk: file path, line range, snippet, score.

## Supported harnesses

Claude Code · Claude Desktop · Codex CLI · Gemini CLI · OpenCode · Cursor · Windsurf (Devin Local) · VS Code · Zed · Goose · Pi · Command Code · MiMoCode · Hermes Agent · OpenClaw · Kilo Code · Cline

To support a client that is not on the list, drop a plugin module into the [harnesses folder](https://github.com/k-joel/simple-code-indexer/tree/master/harnesses).

## Links

- Homepage: https://github.com/k-joel/simple-code-indexer
- Documentation: https://github.com/k-joel/simple-code-indexer/tree/master/docs
- Changelog: https://github.com/k-joel/simple-code-indexer/blob/master/docs/CHANGELOG.md
- Issues: https://github.com/k-joel/simple-code-indexer/issues

## Licence

Apache-2.0.
