SolidOC (solidoc-solidjs-mcp)
High-performance, local FastEmbed ONNX vector + SQLite FTS5 Model Context Protocol (MCP) server for SolidJS documentation and @solid-primitives.
- Hybrid search: 384-dim BAAI/bge-small-en-v1.5 embeddings + SQLite FTS5 BM25, fixed candidate pools, deterministic rankings.
- Clean chunks: heading-aware splitting, version-badge stripping, tiny-section merging, cross-doc dedupe; every chunk fully inside the model's 512-token window (zero silent truncation).
- Native stdio: local execution, zero network ports.
- Additive-only installer: never rewrites your existing MCPs or settings.
Install (Windows and WSL — same package, simultaneously)
One wheel (py3-none-any) serves both OSes. Install it as an application
so the solidoc command lands on PATH: pipx install or uv tool install.
Plain pip install / uv pip install only drops the library into a Python
environment (no command on PATH) — if you went that way by habit and get
solidoc: command not found, reinstall with one of the two below.
What solidoc install does — all three, every time:
- Registers the server in the global OpenCode config (one additive entry; sibling MCPs, comments, and formatting are preserved).
- Copies the prebuilt docs database (~18.6 MB) into the per-OS user path (see table below). An existing database is left byte-identical.
- Downloads the embedding model (~70 MB, once per OS) into the per-OS model cache (see table below).
Total first-install download is ~90 MB. Offline? The config entry still applies; the data steps print a skip line and happen on the first search instead — so the first answer is the slow one, never the install.
Windows (PowerShell):
pipx install solidoc-solidjs-mcp
# or: uv tool install solidoc-solidjs-mcp
solidoc install
solidoc search "createSignal" --limit 1 # verify: expect "Type signature" at 0.5948
WSL / Linux (bash). The export line is one-time setup — persist it so
every new shell finds the command:
uv tool install solidoc-solidjs-mcp
# or: pipx install solidoc-solidjs-mcp
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
export PATH="$HOME/.local/bin:$PATH" # this shell only; new shells use .bashrc
solidoc install
solidoc search "createSignal" --limit 1 # verify: expect "Type signature" at 0.5948
Close OpenCode first. It holds locks on the server executable and the database; installing, uninstalling, or reinstalling while it runs will fail or half-finish.
Each OS keeps its own database, model cache, and config (see paths
below). Never point the DB across the Windows/WSL boundary (/mnt/...):
SQLite locking is unreliable there and both sides will corrupt or stall.
No step above builds anything from source: the wheel already contains the database and the code, so install is copy + download + one config entry.
Per-OS paths
| What | Windows | WSL / Linux |
|---|---|---|
| Server executable | pipx venv Scripts\solidoc.EXE (on PATH) |
pipx venv bin/solidoc (on PATH) |
| Vector database | %USERPROFILE%\.solidoc\solidoc.db |
~/.solidoc/solidoc.db |
| Embedding model cache | %TEMP%\fastembed_cache |
$TMPDIR/fastembed_cache or ~/.cache/fastembed |
| Global MCP config | %USERPROFILE%\.config\opencode\opencode.jsonc |
~/.config/opencode/opencode.jsonc |
| Repo-local MCP config | <repo>\opencode.jsonc |
<repo>/opencode.jsonc |
Usage (commands run standalone — no uv/pip prefix needed)
solidoc serve # boot the MCP stdio server (what OpenCode launches)
solidoc search "createSignal" # test hybrid search in the terminal
solidoc search "query" --category primitives --limit 3
solidoc install # global config, from anywhere (the simple default)
solidoc install <path> # repo-local install into that directory
solidoc install --global # explicit global (same as bare)
solidoc uninstall # global entry + wipe DB + model cache (asks first)
solidoc uninstall <path> # same, for that directory
solidoc uninstall --global --yes # same, global scope, no prompt
solidoc build --docs ./assets # rebuild the vector DB from markdown (rare)
install is additive-only: sibling MCPs, comments, and formatting in your
config are preserved (verified by test_installer.py). If your main config
file is unparseable, it is backed up, left untouched, and the entry goes
into a sibling opencode.json that OpenCode merges automatically.
uninstall is a full wipe of solidoc artifacts only: our config entry, the
SQLite database, and our model-cache subtree. Everything else is left
byte-identical. Removing the package itself is a second, separate step —
and order matters: solidoc uninstall first (it needs the CLI
present), pip uninstall solidoc-solidjs-mcp second. Reversed order strands
the database with no tool to remove it.
Rebuilding the database
Only needed when the documentation sources change. From the source tree
(assets/ lives in this repo, so clones can rebuild anywhere):
uv run solidoc build --docs ./assets --db solidoc/solidoc.db # ~40 min, single process
Expect per-batch log lines (batch 12/57 ... rate=1.5/s); a flat 0% for the
first minutes is normal (model load), but any batch stalled >5 min is not —
stop it with Ctrl+C (workers exit with the terminal) and report it.
WSL validation (no Windows crossover)
The wheel bundles one OS-portable database (relative paths, float32 blobs,
cross-platform SQLite). Install copies it into ~/.solidoc/ and downloads
the model (~70 MB) automatically; after installing the tool (see Install
above, including the one-time PATH line):
solidoc install
solidoc search "createSignal" --limit 1 # instant after provisioning
No build, no manual copy. What stays forbidden is running two servers
against one shared file across /mnt (locking) — each OS keeps its own
copy. If the bundled DB ever misbehaves, fall back to a native WSL rebuild
from the cloned assets/ instead.
Troubleshooting
- First search is slow: install provisions the DB + model (~70 MB), so this only happens when install ran offline — the first search then fetches what is missing, and everything is local after that.
solidoc: command not foundafter install: you usedpip install/uv pip install(library into an environment, no command on PATH). Reinstall withpipx install solidoc-solidjs-mcporuv tool install solidoc-solidjs-mcp. On WSL/Linux, also check the one-time~/.bashrcPATH line from Install above (new shells need it).- Install/uninstall errors about locked files: quit OpenCode first.
- Unparseable config: the installer backs it up, leaves it alone, and prints the exact block to paste manually.
Release checklist (maintainers)
- Bump
versionin pyproject.toml (+ uv.lock) and commit + push code. - Only when the docs changed: rebuild the DB (
solidoc build --docs ./assets --db solidoc/solidoc.db, ~40 min, filepaths stored relative, no machine paths leak), commit the DB +assets/(yes, the binary lives in git — it is the release artifact) and push. Code-only releases reuse the committed DB blob untouched. - Run both suites with the venv python directly (
uv runcan hit locked-EXE sync in dev):test_determinism.py,test_installer.py. uv build, then audit: wheel must containsolidoc/solidoc.db(sha256 matches the committed blob), must not contain__pycache__(tests/shipping inside is accepted house practice).- Clean-venv trial with an isolated HOME: install the wheel, bare
installfrom a repo dir must land global and provision data,solidoc serve --helpexits 0, firstsearchanswers. - Publish, then validate with a real pipx/uv-tool install on each OS.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file solidoc_solidjs_mcp-0.2.1.tar.gz.
File metadata
- Download URL: solidoc_solidjs_mcp-0.2.1.tar.gz
- Upload date:
- Size: 7.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b0774983f9c9580141346008e86cc77f8740a86886726a5674e13aa23db50cb
|
|
| MD5 |
889a917b96941d6ef0a519bc6e011a6a
|
|
| BLAKE2b-256 |
e15b3cd729b93038bc9803e9627e6e789e60cd98e26f774c8c8b59b32e3777dd
|
File details
Details for the file solidoc_solidjs_mcp-0.2.1-py3-none-any.whl.
File metadata
- Download URL: solidoc_solidjs_mcp-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2632435a721b5eb75c325e4a7a768b5d642ac189117bb44209fd0173f848cf87
|
|
| MD5 |
1468fb77de64f917812aefac6f2bd10c
|
|
| BLAKE2b-256 |
bf0be300c82aed98951fd4af5276c662130454bd2273be93ed1081118f2d9559
|