Project RAG Wiki
БесплатноНе проверенMCP server for searching, reading, listing, writing, and appending Markdown wiki content using RAG with ChromaDB.
Описание
MCP server for searching, reading, listing, writing, and appending Markdown wiki content using RAG with ChromaDB.
README
Repository-scoped MCP knowledge service for Markdown wiki content.
It indexes Markdown files from a mounted wiki folder, stores vectors in ChromaDB, and serves:
- MCP endpoint (streamable HTTP)
- health endpoint
The MCP surface is intentionally small:
- Active tools:
wiki_search,wiki_read,wiki_list,wiki_schema_report,wiki_write
Retrieval Model
Markdown files remain the saved and editable source of truth. During indexing, the service derives additional context packet records from well-structured wiki notes and stores those packet records alongside raw chunks in ChromaDB.
A note can compile into a decision-ready packet when it uses frontmatter such as:
---
id: stable-note-id
kind: rule
scope: project-specific
last_verified: YYYY-MM-DD
status: active
applies_to:
- domain-or-component
---
Supported kind values are:
rule- mandatory behavior agents should follow.decision- architecture or product choices with rationale and consequences.reference- durable facts, concepts, API shapes, or domain context that are not rules.runbook- repeatable operational or maintenance procedures.glossary- names, terms, aliases, and vocabulary.
Each kind has a compact section shape:
| kind | required sections |
|---|---|
rule |
Use this when, Rule, Do, Do not, Evidence, Retrieval hints |
decision |
Use this when, Decision, Rationale, Consequences, Evidence, Retrieval hints |
reference |
Use this when, Summary, Key facts, Evidence, Retrieval hints |
runbook |
Use this when, Steps, Do not, Evidence, Retrieval hints |
glossary |
Terms, Aliases, Retrieval hints |
The indexer is backward compatible with older notes that omit kind or use the
old Decision / Do / Do not shape. Those notes still produce packets, but
their gaps field reports missing typed-note structure so agents can modernize
them during wiki maintenance.
wiki_search prefers matching packet records before raw chunks. Packet results
include normalized fields such as rule, confidence, source,
last_verified, needs_verification, applies_to, do, do_not, evidence,
kind, decision, rationale, consequences, summary, key_facts,
steps, terms, aliases, and gaps.
Packet embeddings are built from the decision-ready sections and applies_to.
The full source prose is kept as metadata/fallback, not as the primary packet
embedding text.
Schema Report
wiki_schema_report audits Markdown notes without writing or reindexing. It
returns aggregate counts and per-note entries for:
- inferred and explicit
kind - packet compile status and packet
gaps - missing required sections by kind
- missing, invalid, or stale
last_verified - missing or duplicate
id - missing or invalid
status - oversized notes above
KB_NOTE_MAX_LINESlines - broken wiki links detected from
[[wikilinks]]
Use it before broad wiki migrations or after schema changes to decide which notes need typed-note cleanup.
Write Model
Use wiki_write to create or replace complete Markdown notes. The service
reindexes after each write and regenerates derived packet records automatically.
There is no append tool by design. Agents should read the current note, merge changes locally, and write a complete coherent document so frontmatter, semantic sections, links, and retrieval hints stay consistent.
Agent Harness
For an agent consumer of this service, see @ihorleleka/harness.
What This Image Expects
- A wiki folder mounted at
/workspace/wiki - A writable KB state folder mounted at
/workspace/.kb - A shared models cache KB state folder mounted at
/root/.cache/huggingface/hub
Do not bake runtime .kb state into images.
Runtime Defaults
KB_WIKI_ROOT=/workspace/wikiKB_ROOT=/workspace/.kbKB_PORT=1111KB_MCP_PATH=/mcp/KB_HEALTH_PATH=/healthKB_EMBEDDING_MODEL=all-MiniLM-L6-v2KB_CHUNK_SIZE=500KB_CHUNK_OVERLAP=150KB_TOP_K=8KB_MERGE_ADJACENT_WINDOW=1KB_STALENESS_DAYS=90KB_NOTE_MAX_LINES=200KB_WATCH_INTERVAL_SECONDS=15
Run
docker run --rm \
-p 1111:1111 \
-v "$(pwd)/wiki:/workspace/wiki" \
-v "$(reponame)-kb-data:/workspace/.kb" \
-v "kb-models:/root/.cache/huggingface/hub" \
ihorleleka/project-rag-wiki:latest
Release Automation
Image versioning is driven from the Git tag.
- Tag releases as
X.Y.Z. - The GitHub Actions workflow at [
.github/workflows/docker-release.yml] builds and pushes the Docker image on tag pushes. - The workflow passes the tag name directly into the Docker build as
VERSION. - That same
VERSIONvalue is used for the OCI image label and the installed Python package version inside the image.
Set these repository settings before using the workflow:
- Secret
DOCKERHUB_USERNAME - Secret
DOCKERHUB_TOKEN
Endpoints
- Health:
GET /health - MCP:
POST /mcp/(also mounted at/mcp)
The health response is 200 only when the service startup reindex has completed successfully and the MCP session manager is running.
License
MIT. See LICENSE.
Установка Project RAG Wiki
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/ihorleleka/Project-Rag-WikiFAQ
Project RAG Wiki MCP бесплатный?
Да, Project RAG Wiki MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Project RAG Wiki?
Нет, Project RAG Wiki работает без API-ключей и переменных окружения.
Project RAG Wiki — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Project RAG Wiki в Claude Desktop, Claude Code или Cursor?
Открой Project RAG Wiki на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Project RAG Wiki with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
