ワンクリックで
setup
First-time setup wizard for Gnosis MCP. Install, init the database, ingest a docs folder, wire your editor — in that order.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
First-time setup wizard for Gnosis MCP. Install, init the database, ingest a docs folder, wire your editor — in that order.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Measure retrieval quality on your corpus — Hit@5, MRR, nDCG@10, Precision@5. Thin wrapper around `gnosis-mcp eval` with regression tracking against a saved baseline, plain-English interpretation, and tuning pointers when numbers look off. Use after every ingest or config change.
Populate the gnosis-mcp knowledge base — from local files, git history, or a crawled website. Handles the full matrix of flags (--force, --prune, --wipe, --embed, --include-crawled) in one place.
CRUD operations on the knowledge base — add, delete, update metadata. For bulk ingest / re-ingest / prune, use /gnosis:ingest instead. Requires GNOSIS_MCP_WRITABLE=true.
Search the gnosis-mcp knowledge base. Keyword (default), hybrid semantic+keyword (--semantic), or git commit history (--git). Includes sanity checks and a reranker warning.
Verify gnosis-mcp server connectivity, schema integrity, and corpus health. Use when MCP calls fail, return empty, or return unexpected data.
Find the chunk-size and retrieval config that maximizes quality on YOUR corpus. Sweeps chunk sizes, runs a golden-query set, reports nDCG / MRR / Hit@5. Use after first ingest or whenever your corpus changes shape significantly.
| name | setup |
| description | First-time setup wizard for Gnosis MCP. Install, init the database, ingest a docs folder, wire your editor — in that order. |
Gets you from nothing to "agent searching my docs" in 60 seconds.
/gnosis:setup # Interactive — asks where your docs live
/gnosis:setup /path/to/docs # Same, but ingest that folder right away
/gnosis:setup --postgres # Print PostgreSQL setup instructions too
Pick the extras you need. They're additive.
pip install gnosis-mcp # core (SQLite, keyword search)
pip install 'gnosis-mcp[embeddings]' # + local ONNX embeddings (hybrid search)
pip install 'gnosis-mcp[web]' # + web crawler (sitemap / BFS)
pip install 'gnosis-mcp[postgres]' # + PostgreSQL backend
pip install 'gnosis-mcp[rst,pdf]' # + .rst and .pdf file ingestion
pip install 'gnosis-mcp[reranking]' # + cross-encoder reranker
# (OFF by default; tune before turning on —
# the bundled MS-MARCO model can HURT
# dev-doc retrieval by ~27 nDCG@10)
Full stack in one shot:
pip install 'gnosis-mcp[embeddings,web,postgres,rst,pdf]'
Verify:
gnosis-mcp --version # should print the semver (≥ 0.10.13)
SQLite (default): zero config. Database auto-creates at
~/.local/share/gnosis-mcp/docs.db. Great up to ~100 k chunks.
PostgreSQL: use when you have multiple concurrent writers, need a shared index across machines, or corpus > 100 k chunks.
# Postgres (only if you need it)
export GNOSIS_MCP_DATABASE_URL="postgresql://user:pass@localhost:5432/mydb"
Check that pgvector is available on the server:
psql "$GNOSIS_MCP_DATABASE_URL" -c "CREATE EXTENSION IF NOT EXISTS vector;"
Idempotent. Safe to run any time.
gnosis-mcp init-db
If $ARGUMENTS includes a path, use it. Otherwise ask the user where
their docs live.
# Preview (dry-run): lists files that would be ingested
gnosis-mcp ingest /path/to/docs --dry-run
# Real ingest, with embeddings for hybrid search
gnosis-mcp ingest /path/to/docs --embed
Default chunk size is 2000 characters (peak of the v0.11 sweep on
real dev-docs). Tune it for your corpus with /gnosis:tune after
you've got some real queries to score against.
Watch mode — auto re-ingests on file changes, no cron needed:
gnosis-mcp serve --watch /path/to/docs --transport streamable-http --rest
gnosis-mcp check # DB connectivity + schema sanity
gnosis-mcp stats # doc / chunk / embedding counts
Expect something like:
Backend: sqlite
Version: SQLite 3.46.0
chunks_table: ✓ (1,742 rows)
fts_table: ✓
sqlite_vec: ✓ (1,742 vectors)
links_table: ✓ (812 rows)
If anything says ✗, run /gnosis:status for diagnosis.
Pick one. Each config goes in the project root (or global config — see each editor's docs).
.claude/mcp.json or ~/.claude/mcp.json{
"mcpServers": {
"gnosis": {
"command": "gnosis-mcp",
"args": ["serve"]
}
}
}
For shared-state setups (agent teams, parallel tabs) — use HTTP:
{
"mcpServers": {
"gnosis": {
"type": "url",
"url": "http://127.0.0.1:8000/mcp"
}
}
}
Start the server separately:
gnosis-mcp serve --transport streamable-http --rest --watch ./docs
.cursor/mcp.jsonSame shape as Claude Code. Drop the JSON above.
~/.codeium/windsurf/mcp_config.jsonSame shape.
.vscode/mcp.jsonKey is "servers", not "mcpServers":
{
"servers": {
"gnosis": {
"command": "gnosis-mcp",
"args": ["serve"]
}
}
}
Command: gnosis-mcp, args: serve.
Command: gnosis-mcp, args: ["serve"].
Full per-editor guidance (including auth, env vars for write mode, and team / remote setups) lives in llms-install.md.
Print a compact summary to the user:
## Setup complete
| Setting | Value |
|-------------------|-------|
| Backend | sqlite |
| Database | ~/.local/share/gnosis-mcp/docs.db |
| Documents | 42 |
| Chunks | 170 |
| Embeddings | 170 / 170 (100 %) |
| Chunk size | 2000 chars (default) |
| Writable | false (set GNOSIS_MCP_WRITABLE=true to enable upsert/delete) |
Next:
/gnosis:search "your first query" — sanity check retrieval works
/gnosis:tune — find your chunk-size optimum (optional)
/gnosis:ingest git <repo> — index commit history too (optional)
gnosis-mcp ingest-git . --since 6m --embed
gnosis-mcp crawl https://docs.stripe.com --sitemap --embed
Off by default for safety. Enable only if you want your agent to call
upsert_doc / delete_doc:
export GNOSIS_MCP_WRITABLE=true
gnosis-mcp serve --transport streamable-http --rest
Then: curl http://127.0.0.1:8000/api/search?q=auth&limit=5.
Add Bearer auth for any non-localhost exposure:
export GNOSIS_MCP_API_KEY="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
/gnosis:tune full to find out which applies to your
corpus before enablingGNOSIS_MCP_DATABASE_URL and
re-run init-db + ingest. Same tool API.