basemind-doctor

Solid

Diagnose and recover basemind when it isn't working — MCP tools missing or erroring, "no index" / "no indexed files", empty results that shouldn't be empty, or the MCP server seems dead. Runs CLI checks (no MCP server required) and gives the client-specific way to reconnect the server.

AI & Automation 69 stars 13 forks Updated today MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
61
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# basemind-doctor — diagnose and recover basemind Use this when basemind isn't behaving: MCP tools aren't available or return errors, the statusline says **no index**, queries come back empty when they shouldn't, or the `basemind serve` MCP server appears dead. Every step here uses the **CLI**, so it works even when the MCP server is down. Important: a stdio MCP server (what `basemind serve` is) **cannot be restarted by an agent or by basemind itself** — a fresh process can't resume the client's MCP `initialize` handshake. Reconnecting the server is the **MCP client's** job (see step 4). What you _can_ do from here is make sure the index is healthy and clear anything blocking a restart. ## 1. Is there an index? ```sh basemind query status ``` - Errors / "no index" / `file_count: 0` with blobs present → the index is missing or lost. Build it: `basemind scan` (see the `basemind-scan` skill / `/bm-scan`). - Healthy `file_count` → the index is fine; the problem is the server connection (step 4). ## 2. Is a server already running (holding the lock)? If `basemind scan` fails with a lock error, a `basemind serve` (or `watch`) already owns the index for this repo. The lock-contention error itself names the live holder (command + pid) — it reads that from the `.lock.meta` sidecar next to the workspace `.lock`. Both live in this workspace's directory under the machine-global cache (Linux `~/.local/share/basemind/`, macOS `~/Library/Application Support/basemind/`; override `BAS...

Details

Author
Goldziher
Repository
Goldziher/basemind
Created
2 years ago
Last Updated
today
Language
Rust
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category