Sunstone Weave: Local Semantic Code Search logo

Sunstone Weave: Local Semantic Code Search

Indexes local code and documentation for CPU-based semantic search through MCP, returning matching passages with file paths and line ranges.

Install Sunstone Weave: Local Semantic Code Search

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "sunstone-weave-local-semantic-code-search": {
      "command": "npx",
      "args": [
        "-y",
        "blackwindow-weave-mcp@0.1.2"
      ],
      "env": {
        "BLACKWINDOW_WEAVE_CACHE": "YOUR_VALUE_HERE",
        "ONNXRUNTIME_NODE_INSTALL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y blackwindow-weave-mcp@0.1.2

ntimes/linux-x64/native/libonnxruntime_providers_cuda.so to /tmp/allmcps-pre/node_modules/onnxruntime-node/bin/napi-v6/linux/x64/libonnxruntime_providers_cuda.so npm error Killed npm notice npm notice New major version of npm available! 10.9.9 -> 12.2.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.1 npm notice To update run: npm install -g npm@12.2.1 npm notice npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-10-30T13_08_49_777Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Sunstone Weave: Local Semantic Code Search indexes code and documentation in local folders, then exposes semantic retrieval through MCP. It splits files into passages, embeds them with the Motherlode code-search encoder through ONNX Runtime on the CPU, and returns matching passages with paths, line ranges, and scores. Use it when an agent needs to locate relevant code or prose by meaning rather than exact text. The first run downloads the encoder from Hugging Face; cached runs make no network requests.

Use cases

  • Index a local repository for agent-assisted code discovery
  • Search documentation with natural-language questions
  • Refresh an existing folder index after source changes
  • Inspect indexed folders and active background work
  • Remove stale indexes without touching source files

Key features

  • CPU-based semantic embeddings with the Motherlode encoder
  • Incremental folder indexing by file size and modification time
  • Exact passage search with paths, line ranges, and scores
  • Separate persistent indexes for local folders
  • Background continuation for long indexing runs
  • MCP stdio support for desktop and coding clients

Tools4

What Sunstone Weave: Local Semantic Code Search lets your agent do. Expand a tool for its parameters.

Self-reported~141 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 45d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · blackwindow-weave-mcp@0.1.2 (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads348Package downloads in the last 30 days.
Last commit17d agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Tools exposed4Callable tools this server registers over MCP.

How Sunstone Weave: Local Semantic Code Search works

What Sunstone Weave does

Sunstone Weave: Local Semantic Code Search gives MCP clients semantic search over folders on the local machine. It is intended for source code and documentation, allowing an agent to ask questions in natural language or with code-oriented wording and receive nearby passages. Results include the source file, line range, passage text, and a similarity score.

The server keeps a separate index for each woven folder. A folder can be supplied when the process starts, or the model can request indexing through the MCP tools. Re-indexing checks file size and modification time, so unchanged files are not read again. Removing an index does not alter the underlying folder.

How it works

The server uses the Motherlode code-search encoder, a 33-million-parameter model, through transformers.js and ONNX Runtime. Embeddings run on the CPU. Code is divided around definitions into passages of roughly 700 characters, while prose is divided around paragraphs and sentences into passages of roughly 420 characters. Vectors are centred using the model’s shipped mean and normalized before exact passage scoring.

Git work trees are enumerated through Git, which respects .gitignore. Other folders are walked directly. The indexer skips common dependency and build directories, virtual environments, lock files, minified files, files larger than 1 MB, and files detected as binary. JSON and XML are also excluded.

Search scores every passage in the selected indexes. A folder that has not been checked recently may be refreshed automatically when fewer than 200 files changed. If more changes are detected, the response reports that the index is stale rather than performing that update during the search.

Setup and configuration

Sunstone Weave: Local Semantic Code Search runs on macOS, Linux, and Windows with Node 20 or newer. Install the pinned npm package from a terminal before configuring a client:

Terminal
npx -y blackwindow-weave-mcp@0.1.2 --version

The server uses stdio. Configure the client to start that command and pass one or more --folder arguments, or let the model call weave_folder after startup. On Windows, clients must start npx through cmd /c.

The encoder and folder indexes are stored under ~/.cache/blackwindow-weave by default, or under the equivalent Windows user cache directory. Set BLACKWINDOW_WEAVE_CACHE to change that location. On Linux x64, ONNXRUNTIME_NODE_INSTALL=skip avoids downloading unused CUDA libraries because this server runs on the CPU.

The first install downloads the runtime and encoder assets. The README reports six requests to Hugging Face and about 134 MB of cached files on the first run; subsequent runs do not make those requests when the files remain cached. A client timeout during installation can leave an incomplete npm cache entry, which should be removed before reinstalling.

Tools and capabilities

  • weave_folder creates or updates a folder index. Runs exceeding 25 seconds return while indexing continues in the background.
  • weave_search finds passages closest to a plain-language or code query. It searches folders woven in the current session, all woven folders when no scope is given, or a requested folder.
  • weave_list reports woven folders, file and passage totals, and active indexing work.
  • weave_forget deletes a folder’s index without deleting or modifying its files.

Limitations and notes

Indexing and search performance depends on repository size and hardware. The README measures about 68 passages per second on an Apple M2 Ultra, but those figures are from one machine and are not retrieval-quality benchmarks. The project points to the encoder’s model card for retrieval evaluation.

Other than the initial Hugging Face download, the documented operation is local. Platforms tested by CI include Linux x64 and arm64, Windows x64, and Apple silicon macOS. Windows on Arm, Intel Macs, and Alpine Linux are not tested.

The software is licensed under Business Source License 1.1 with an internal-use grant. It permits internal use, including commercial development on an organization’s code, but prohibits offering the software as a hosted search service or shipping it inside a supplied product. The license changes to Apache-2.0 on 15 September 2030; the encoder has its own license with similar terms.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Sunstone Weave: Local Semantic Code Search

Sunstone Weave: Local Semantic Code Search is an MCP server that connects AI clients to local code and documentation folders. Its main tools are weave_folder for indexing, weave_search for semantic retrieval, weave_list for index status, and weave_forget for removing indexes without changing source files.

Install it with `npx -y blackwindow-weave-mcp@0.1.2 --version` from a terminal before adding it to an MCP client. The package requires Node 20 or later and installs ONNX Runtime. Pinning the version avoids an update check on every client start.

Yes, Cursor is named as a supported client in the setup instructions. Configure it as a stdio MCP server using `npx -y blackwindow-weave-mcp@0.1.2` and pass a local repository path with `--folder`; Windows configurations start the command through `cmd /c`.

It compares file size and modification time and reads only files that changed. `weave_folder` starts an update, while searches may refresh a folder automatically when fewer than 200 files changed and the index has not been checked in the last 30 seconds.

It stores the encoder and indexes in `~/.cache/blackwindow-weave` by default on macOS and Linux, with the corresponding user cache directory on Windows. Set `BLACKWINDOW_WEAVE_CACHE` to use another location.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSunstone Weave: Local Semantic Code Search AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sunstone-weave-local-semantic-code-search?style=directory)](https://allmcps.com/mcp/sunstone-weave-local-semantic-code-search)
HTML Embed
<a href="https://allmcps.com/mcp/sunstone-weave-local-semantic-code-search"><img src="https://allmcps.com/api/badge/sunstone-weave-local-semantic-code-search?style=directory" alt="Sunstone Weave: Local Semantic Code Search on AllMCPs" /></a>