Blue Synergy Cortex

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.

已驗證SSE可網頁執行效率與工作流知識與記憶

概覽

AI 產生的概覽

託管式認知記憶引擎,讓 AI 助理跨工作階段持久保存並檢索使用者偏好與專案規格。

可以做什麼
  • 從長期記憶中以語意檢索已驗證的使用者偏好、使用中專案規格與相關事實,可選精簡模式
  • 依專案 ID 與主題持久保存專案規格、事實與架構說明
  • 讀取專案已整合的活規格,並建立或授權新的專案工作區
  • 將未歸屬的筆記分流到專案、核准或駁回專案草稿,並排入非同步專案整合作業
  • 把每一輪對話寫入記憶緩衝區,供後續提煉
適用情境
適合需要助理在重新啟動後仍記得使用者偏好與嚴格技術要求,或在 Cursor、Claude Desktop 等用戶端進行長期專案、擔心規格漂移與上下文遺忘的情境。
執行需求
需要遠端 SSE 端點,不必在本機安裝套件。必須持有服務商核發的 API 金鑰,可透過端點網址的 api_key 查詢參數或 Authorization Bearer 標頭傳入(Claude Desktop 需藉由 npx 的 mcp-remote 橋接)。需要能連線至該託管服務的網路。
安裝前請注意
API 金鑰屬機密,會出現在端點網址或 Authorization 標頭中,設定檔須妥善保管。寫入記憶、建立專案、核准或駁回草稿、分流與整合都會變更已存資料,部分刪除無法復原。對話內容與專案資料會傳送至第三方託管服務。試用期有時限,並受節點與代理數量限制。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Blue Synergy Cortex,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 SSE。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.novotapeter-bs%2Fcortex/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "blue-synergy-cortex": {
      "type": "sse",
      "url": "https://cortex.bluesynergy.io/v1/mcp/sse"
    }
  }
}

README

Blue Synergy Cortex (v3.0)

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).


Stop AI Amnesia & Specification Drift

Most memory systems treat everything as fluid vector soup—causing agents to hallucinate, forget strict technical requirements, or confuse user preferences with code specs.

Blue Synergy Cortex implements an enterprise-grade Tri-Stream Architecture backed by transactional PostgreSQL and enterprise knowledge graph architecture:

  1. User Stream: Generalizes conversational habits and user preferences over time.
  2. Identity Stream: Deterministic guardrails and behavioral axioms that prevent sycophancy.
  3. Knowledge Stream (Living Specs): Exact architecture specifications, hardware limits, and system parameters organized into an authoritative Universal Domain Ontology. This stream is protected against lossy compression, semantic decay, and accidental drift.

Quickstart (1 Minute Setup)

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).


Step 1: Get your API Key

  1. Go to cortex.bluesynergy.io and generate your trial key.
  2. Your key will look like: ctx_live_xxxxxxxxxxxxxxxxxxxxxx.

Step 2: Connect your AI agent

A. Cursor IDE Integration

  1. Open Cursor Settings (Ctrl+Shift+J or Cmd+Shift+J).
  2. Navigate to Features -> MCP Servers -> Add new MCP server.
  3. Configure as follows:
    • Name: cortex-memory
    • Type: sse
    • URL: https://cortex.bluesynergy.io/v1/mcp/sse?api_key=YOUR_API_KEY
  4. Save. Your Cursor Composer and Agent now have permanent recall across restarts!

B. Claude Desktop Integration

Edit your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the Cortex remote configuration (Claude Desktop):

json
{  "mcpServers": {    "cortex": {      "command": "npx",      "args": [        "-y",        "mcp-remote",        "https://cortex.bluesynergy.io/v1/mcp/sse",        "--header",        "Authorization: Bearer YOUR_API_KEY"      ]    }  }}

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):

text
[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.

C. Other MCP Clients (Windsurf, VS Code Cline, Roo Code, Zed, Cursor)

Use the SSE endpoint directly in your tool's MCP configuration:

json
{  "mcpServers": {    "cortex": {      "url": "https://cortex.bluesynergy.io/v1/mcp/sse?api_key=ctx_live_..."    }  }}

D. Custom Agents & REST API (LangChain, CrewAI, AutoGen, OpenAI Custom GPTs, LlamaIndex, n8n)

Example: Querying Context (cURL)

bash
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"  }'

Available MCP Tools & Lifecycle Architecture

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.


The Standard Agent Turn Cycle

For every user turn, your agent should inherently follow this golden loop:

  1. At turn start: Call cortex_recall to fetch ground-truth context (User Bio + Active Project Specs + Graph Relations).
  2. Generate response: Formulate the answer grounded in the retrieved memory.
  3. At turn end: Call cortex_ingest_turn to send the turn to the asynchronous ingestion buffer.

Detailed Tool Reference
Tool NameTypeWhen to CallSystem Behavior
cortex_recallquery (string)
compact (bool, optional)
Before answering the user (mandatory for full context awareness).Fast context retrieval. Injects verified user preferences, active project specifications, and related domain facts. Set compact: true to strip preambles and return only high-relevance context (recommended for CLI / agent workflows).
cortex_ingest_turnIngestionImmediately after answering every conversational turn.Asynchronously ingests the conversational turn. Automatically filters dialogue noise, learns communication preferences, and stages key technical facts for memory consolidation.
cortex_list_projectsDiscoveryBefore creating projects or when the target slug is uncertain.Returns all authorized active project workspaces with their canonical IDs, human-readable names, and descriptions. Prevents duplicate workspaces.
cortex_create_projectProvisioningWhen the user declares, initializes, or approves a new project scope.Registers and authorizes a new canonical project_id. Establishes the project baseline and associates relevant staged notes with this workspace.
cortex_store_memoryWriteFor explicit constraints, business rules, and technical decisions that must be guaranteed.Curated persistent write. Ensures facts are strictly validated and staged in workspace memory without risking cross-project contamination.
cortex_get_project_specInspectionWhen you need the complete Living Specification of a project.Deterministically retrieves the unified, consolidated specification of the project (Living Document). Returns only verified specifications.
cortex_consolidate_projectExecutionWhen the user requests an immediate update/reconciliation of project specifications.Triggers a background reconciliation task to merge recent notes and updates into the canonical project specification.
cortex_get_task_statusMonitoringWhen checking if an asynchronous consolidation has finished.Queries task status by task_id or project_id. Returns execution state (PENDING, RUNNING, COMPLETED, FAILED) and diagnostic messages if reconciliation fails.
cortex_manage_draftGovernanceWhen a new product or domain is proposed and awaits explicit authorization.Promotes proposed project drafts into active production specifications, or permanently purges rejected concepts.
cortex_triage_generalMaintenanceWhen the unassigned memory pool accumulates multi-project notes.Automatically clusters unstructured notes, assigns them to appropriate projects, and compacts the workspace.
cortex_clean_generalMaintenanceWhen the user instructs to reset or prune unassigned memory.Selectively deletes unassigned notes by topic or keyword, or completely resets active staging buffers.

Project Governance & Lifecycle

To prevent memory fragmentation and unauthorized project sprawl, Cortex treats memory with strict governance boundaries:

text
[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]

Why is my project_spec empty after storing notes?

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).


Why is my User Biography empty? (Fixing "Disobedient" Agents)

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.


Core Architecture Highlights

  • Sub-120ms Zero-LLM Recall: Direct high-performance vector and topological graph matching—completely bypassing slow, non-deterministic runtime LLM keyword extractors.
  • Dual-Zone Fast-Append: Instant raw fact capture (< 20ms) into an inbox staging zone, followed by scheduled asynchronous consolidation into an immutable, unified Living Specification.
  • Semantic Invariant Guard: Algorithmic verification gate that enforces factual density and continuity, mathematically preventing the truncation or loss of critical parameters during re-indexing.
  • Immunity Shield: Operational errors, tool crashes, transient hallucinations, and conversational apologies are filtered out by design and never committed to long-term memory.

Support & Feedback

Encountered an issue or have a feature suggestion?

來源:README.md,提交 c893ebd

工具

8

cortex_recall

Sémantické vyhledání v dlouhodobé paměti Cortexu. Podporuje volitelný kompaktní režim pro CLI agenty.

輸入參數query必填compactuser_idagent_idmax_facts

cortex_get_project_spec

Deterministické přečtení živé kanonické specifikace projektu (Living Spec).

輸入參數user_idagent_idproject_id

cortex_store_memory

Trvalé uložení projektové specifikace, faktu nebo architektury pod konkrétní project_id a téma.

輸入參數topiccontent必填user_idagent_idproject_id

cortex_triage_general

Asistovaný úklid a přesun střípků z obecného inkubátoru (general) do schválených projektů.

輸入參數actionuser_idagent_idapproved_projects

cortex_manage_draft

Sprá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_id

cortex_create_project

Explicitní 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_name

cortex_consolidate_project

Dvoufá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必填

cortex_ingest_turn

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必填

版本歷史

1
  1. v1.0.0最新Sep 23, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。