cortex_recall
Sémantické vyhledání v dlouhodobé paměti Cortexu. Podporuje volitelný kompaktní režim pro CLI agenty.
query必填compactuser_idagent_idmax_facts
io.github.novotapeter-bs由 GitHub 帳號 novotapeter-bs 發布v1.0.0更新於 Oct 27, 2026
Long-term, drift-free cognitive memory engine for AI Agents and Cursor IDE.
託管式認知記憶引擎,讓 AI 助理跨工作階段持久保存並檢索使用者偏好與專案規格。
Web executable,透過 SSE。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.novotapeter-bs%2Fcortex/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"blue-synergy-cortex": {
"type": "sse",
"url": "https://cortex.bluesynergy.io/v1/mcp/sse"
}
}
}Long-term, drift-free cognitive memory engine for AI Agents, Cursor IDE, and Claude Desktop via Model Context Protocol (MCP).
[MCP Compatible] [Latency] [Architecture] [M8ven Score]
Deep Dive: Want to understand our tri-stream model, autonomous rest cycles, and dynamic invariant guards?
Read the full Engineering Whitepaper & Architecture Model (ARCHITECTURE.md).
Blue Synergy Cortex implements an enterprise-grade Tri-Stream Architecture backed by transactional PostgreSQL and enterprise knowledge graph architecture:
API Key Required: Blue Synergy Cortex is a fully hosted, zero-maintenance cognitive cloud engine. You need an active API key to connect your client.
🔑 Get your 21-Day Free Trial Key here
(Instant activation, no credit card required, includes 500 graph nodes & up to 3 agents).
ctx_live_xxxxxxxxxxxxxxxxxxxxxx.Ctrl+Shift+J or Cmd+Shift+J).cortex-memoryssehttps://cortex.bluesynergy.io/v1/mcp/sse?api_key=YOUR_API_KEYEdit your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonAdd the Cortex remote configuration (Claude Desktop):
Restart Claude Desktop
💡 Crucial: Preventing Collapsed/Empty Messages in Claude Desktop
In Claude Desktop, if the assistant writes text before calling an MCP tool in the same turn, the desktop UI automatically collapses that text into the tool accordion, making the response appear empty or truncated to the user.To guarantee 100% clean UI display and continuous memory ingestion, add this exact rule to your Claude Desktop settings (Settings ➡️ Profile / Custom Instructions):
Use the SSE endpoint directly in your tool's MCP configuration:
Example: Querying Context (cURL)
Cortex is not a passive key-value store; it is an active cognitive operating system with strict governance boundaries. Understanding when and why to call each tool ensures high-fidelity memory consolidation.
For every user turn, your agent should inherently follow this golden loop:
cortex_recall to fetch ground-truth context (User Bio + Active Project Specs + Graph Relations).cortex_ingest_turn to send the turn to the asynchronous ingestion buffer.To prevent memory fragmentation and unauthorized project sprawl, Cortex treats memory with strict governance boundaries:
Cortex enforces a Human-in-the-Loop policy. If a project_id has not yet been explicitly authorized by the user, incoming facts are safely staged in the general memory pool to prevent polluting active workspaces. Once the project is approved (via cortex_manage_draft or explicit creation), the nocturnal consolidation engine automatically synthesizes these staged notes into the official Living Specification (cortex_get_project_spec).
If your project specs work but User Biography or Agent Persona remains empty, your AI agent is skipping the required post-response "exhale" step (cortex_ingest_turn).
Why this happens:
LLMs (Claude, GPT, etc.) treat remote MCP prompt instructions with lower priority once they finish drafting a response to the user. When an agent skips cortex_ingest_turn, dialogue turns never hit the ingestion buffer, starving the Cognitive Router and Memory Firewall of data needed to distill user habits.
The Fix:
Enforce the rule at the client/system prompt level (e.g. in your system prompt, Cursor Rules .cursorrules, or Claude Desktop Custom Instructions). An instruction anchored in the client's native prompt has 10× higher adherence than MCP tool headers alone.
Encountered an issue or have a feature suggestion?
來源:README.md,提交 c893ebd
Sémantické vyhledání v dlouhodobé paměti Cortexu. Podporuje volitelný kompaktní režim pro CLI agenty.
query必填compactuser_idagent_idmax_factsDeterministické přečtení živé kanonické specifikace projektu (Living Spec).
user_idagent_idproject_idTrvalé uložení projektové specifikace, faktu nebo architektury pod konkrétní project_id a téma.
topiccontent必填user_idagent_idproject_idAsistovaný úklid a přesun střípků z obecného inkubátoru (general) do schválených projektů.
actionuser_idagent_idapproved_projectsSpráva draftu projektu v karanténě: schválení do ostrého provozu ('approve') nebo kompletní smazání omylu ('reject').
actionuser_idagent_iddraft_id必填final_project_idExplicitní založení a autorizace nového projektu uživatelem. Umožní ukládat data pod daný project_id a adoptuje případné související poznámky z general.
user_idagent_idproject_id必填descriptionproject_nameDvoufázová asynchronní konsolidace projektu: bezpečně zařadí projekt do fronty pro stažení střípků (I. řád) a syntézu II. řádu s Anti-Drift Guardem.
user_idagent_idproject_id必填MANDATORNÍ PO KAŽDÉ ODPOVĚDI: Zaznamená aktuální tah konverzace do kognitivního bufferu Cortexu s volitelným směrováním k projektu.
user_idagent_idproject_iduser_message必填assistant_message必填已滿足適用檢查項的 90%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在儲存庫或註冊中心條目中宣告授權條款。
{ "mcpServers": { "cortex": { "command": "npx", "args": [ "-y", "mcp-remote", "https://cortex.bluesynergy.io/v1/mcp/sse", "--header", "Authorization: Bearer YOUR_API_KEY" ] } }}[CORTEX MEMORY PROTOCOL]1. Inhale: Call `cortex_recall` before answering whenever historical or project context is needed.2. Exhale (UI-Safe): Do NOT write conversational text before calling `cortex_ingest_turn`. Always execute the `cortex_ingest_turn` tool call first (passing both the user's prompt and your planned answer).3. Response: Generate your full substantive answer to the user immediately after the tool completes. This ensures your response displays cleanly in the UI without being collapsed into tool artifacts.{ "mcpServers": { "cortex": { "url": "https://cortex.bluesynergy.io/v1/mcp/sse?api_key=ctx_live_..." } }}curl -X POST https://cortex.bluesynergy.io/v1/recall \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "query": "System database requirements", "user_id": "developer", "agent_id": "backend_agent" }'[Incoming Note / Message] │ ▼ Is Project Authorized? ├── NO ──► Staged in General Pool ('general') │ │ │ ▼ │ Awaits Triage via `cortex_triage_general` │ (or explicitly authorized via `cortex_create_project`) │ │ └── YES ◄─────────┘ │ ▼[Asynchronous Consolidation Cycle] │ ▼[Active Living Specification & Knowledge Topology]