
Cortex
io.github.VBlackJack由 GitHub 帳號 VBlackJack 發布v2026.1021.3更新於 Oct 27, 2026
Local multi-client RAG server over the Model Context Protocol.
概覽
Cortex 是本地 RAG MCP 伺服器,為 Markdown 與 PDF 文件資料夾建立索引,讓助理以法文和英文進行語意檢索。
- 可以做什麼
- 對本機知識庫做語意檢索,可選向量、混合或重排模式,並依分區、來源、作者或日期範圍篩選
- 觸發所選文件資料夾的增量同步,完整同步時也會處理目前發佈的文件版本
- 列出納入索引的分區以及不符合索引政策的資料夾
- 讀取知識庫與擷取內容的新鮮度摘要,可選擇包含逐筆明細
- 適用情境
- 適合希望助理依據自己的文件作答、又不想把文件塞滿上下文視窗的情境,也適合需要法文與英文雙語檢索的使用者。若你把筆記、PDF 或專案資料放在本機資料夾,並想透過 Claude、Codex、Gemini、Cursor 等用戶端檢索,會相當合適。
- 執行需求
- 以本機程序在桌面執行;清單列出 PyPI 套件 cortex-local-rag,以 uvx 啟動,README 另提供 Windows 安裝程式、獨立壓縮檔與原始碼安裝(Python 3.11 至 3.13)。必須以環境變數 CORTEX_KB_PATH 指定知識庫資料夾的絕對路徑。模型與索引約需 500 MB 磁碟空間;多語言 ONNX 嵌入模型若未隨套件提供,會在首次使用時下載。需要支援 MCP 的用戶端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Cortex,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Cortex - RAG MCP for a knowledge base
English | Français
Cortex is an MCP (Model Context Protocol) server that exposes semantic search over a local knowledge base. It lets Claude, Codex and Gemini find the right passage in your documents without wasting their context window. Search is semantic (by meaning, not keyword), in French and in English. Cortex processes and indexes the knowledge base locally without sending its content; the MCP client may still pass requested chunks to its model under its own policy. The optional Confluence writer only downloads explicitly allowlisted spaces; the generated Markdown, vector index, and lexical index remain local.
Starting with 2026.0906.01, Companion offers a guided home screen, operation history and Confluence setup from one page or space link. Connection and measured scope confirmation stay in the flow; successful collection is followed by indexing. Use the combined installer to keep Cortex and Companion compatible.
Since 2026.0909.02, Confluence updates preserve the served generation when subtree enumeration fails and apply changed target/classification settings on retry. Search uses multilingual vector retrieval by default; CLI and MCP callers can explicitly select hybrid or reranked search. The first successful collection after upgrading regenerates older publication revisions, and the following sync removes obsolete index entries.
Guided document updates (2026.0909.00)
Companion brings local documents and Confluence together in My sources, with one Update my documents action. Search previews are resizable, large page trees render visible rows, and cancelling review preparation keeps the draft. Readiness now follows the saved document folder and configuration, including after restart. Run one document update after upgrading to establish this evidence for older indexes. See the release notes.
Measured scope without enumerating the space (2026.0907.00)
Adding a Confluence source measures its page, subtree and whole-space scopes with one indexed count each instead of reading the space page by page. On a 5916-page space that measurement took 3 min 19 s, past the timeout of every graphical caller, so Companion showed nothing at all. It now answers in about a second, and the emitted contract is unchanged.
Two whole-space numbers shift by one as a result: the resolved page is no longer folded into the space total, and a space with no visible page reports zero rather than one. A deployment whose search endpoint returns no total cannot measure a scope and reports that as a permanent failure instead of a retryable one. See the contracts.
Paired Companion 2026.0907.00 restores the contrast of the scope window, whose options were drawn in the system text colour, and stops reporting a timeout as a connection failure or advising a delay increase that silently reverts.
Source management in Companion (2026.0906.02)
The workflow includes search, remote page trees, impact review, evidence-based readiness, save-and-update, last-removal undo and recovery actions. See the contracts.
Paired version 2026.0906.02 provides visible My sources cards, a prefilled selection editor, confirmed page/space removal and browser links to originals. Removal only changes Cortex tracking; search reflects it after successful collection and indexing.
Removing the final source explicitly writes spaces = [] in a schema v2 or v3
configuration. This intentional empty allowlist permits an empty publication
with tombstones for prior documents. An absent spaces key remains incomplete
configuration and collection is refused. Connection and credential validation
and publication safeguards still apply. Both updated components are required;
this capability is absent from the installed 2026.0906.01 release.
Installation
Windows, no Python (recommended)
The simplest path: one installer for Cortex, Cortex Companion, the windowless Confluence converter, and the offline models. No separate Python or .NET runtime is required.
- Download
Cortex-Setup.exeandSHA256SUMSfrom the latest release. - Before running the unsigned installer, calculate its digest with
Get-FileHash .\Cortex-Setup.exe -Algorithm SHA256in PowerShell and verify that it exactly matches theCortex-Setup.exeline inSHA256SUMS. - Double-click only after that check. If SmartScreen still warns, select
More info, thenRun anyway. - Choose the folder that holds your documents, keep
Index everything in this folder, and finish. Cortex Companion opens when installation completes. Indexing only starts when you request synchronization in Companion. - In Companion, open
Settingsand verify the knowledge-base folder. The Cortex executable installed with Companion is detected automatically. - Drop your documents in that folder, open
Local database, then selectSynchronize local documents. - Restart your AI application: Cortex shows up there as an MCP server.
Companion then lets you synchronize, schedule, diagnose, and configure Cortex without a terminal. Details, silent mode and reinstall: Windows install.
Standalone archives (Windows x64, macOS Apple Silicon, Linux x64)
Every release also ships one ZIP archive per platform. It unpacks to a cortex/
folder holding the cortex or cortex.exe executable (MCP server + CLI, no
Python), its runtime, and the licenses for every embedded dependency; keep the
folder whole. See Standalone distribution.
From PyPI (Python, advanced)
This path installs the CLI and MCP server, but not Cortex Companion. The model is downloaded on first use if its cache is empty.
From source (development)
install.bat and sync.bat are the development path for a source checkout,
not a supported end-user installation: install.bat installs the unlocked
dependencies from requirements.txt, and sync.bat indexes the folder section
by section without the Confluence documents. To use Cortex, install
Cortex-Setup.exe or a standalone archive instead. Details:
Setup.
How it works
The embedding model is the multilingual ONNX
paraphrase-multilingual-MiniLM-L12-v2. The Windows installer bundles it; a
source installation or standalone binary downloads it when the local cache is
empty.
Two indexing modes
- Whole folder (default): anything you place in the chosen folder, at the root or in any subfolder, becomes searchable. Nothing to configure.
- Sections (advanced): limits indexing to named subfolders you can search
separately (defaults
knowledge,projects,notes).
These modes govern the user-selected document folder. Generated ingestion
documents are indexed separately from the current published generation with
source_kind=doc and section sources.
Details: Configuration.
The cortex command
The installed package exposes a single command:
cortex --help describes every subcommand and cortex <command> --help describes
its options. A prompt-free installation scripts as:
Exposed MCP tools
Documentation
- Table of contents
- Windows install: unified Cortex + Companion + Confluence converter + models installer, corpus choice, silent mode, reinstall.
- Standalone distribution: per-platform archives and reproducible builds.
- Install from source: prerequisites, MCP clients.
- User guide: sync, search, tools, doctor, logs.
- FAQ: installation, local data, sync, and diagnostics.
- Release notes: user-visible changes by version and the published-history notice.
- Technical changelog: complete changes by version.
- Configuration:
config.toml, indexing modes, sections, data home, migration. - Ingestion scheduling: source health, catch-up, retries, and Task Scheduler.
- Metadata v2 migration: structured search metadata, backup, migration, and restore.
- Confluence writer: allowlisted REST ingestion, Windows Credential Manager, conversion, and atomic generations.
- Reproducible install:
requirements.lock,--require-hashes, regenerating the lock. - Public specification: MCP surface, index contracts, data, distribution, and limits.
- Architecture: end-to-end and technical choices.
- Security: local runtime, telemetry off, single-writer.
Prerequisites
License
Apache 2.0. See LICENSE.
Retrieval validation
See the validation guide for the desktop JSON search contract, the isolated FR/EN relevance corpus, performance measurements and exact paired-commit checks.
來源:README.md,提交 a74d2f5
工具
0版本歷史
3- v2026.1021.3最新Oct 21, 2026
- v2026.1021.2Oct 21, 2026
- v2026.909.4Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分