Cortex Suite 标志

Cortex Suite

社区
Artistsyn

Local MCP servers that give coding agents a reliable project memory. quartz-ctx serves live code structure in 10 languages, cross-language calls included; cortex keeps learned patterns and traps, pushes them into the agent's context at edits and failing builds, and measures outcomes and token cost from real sessions. No network, no API keys.

发布者Artistsyn
代码仓库cortex_suite
语言Rust
复刻数
19
星标数
84
可用工具
0
传输类型stdio
链接
  • 将工具接入 AI 工作流

    Cortex Suite 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 84 个 Star 和 19 个 Fork。

Cortex Suite

Gives your AI coding assistant a memory and a map of your code.

  • Remembers what worked and what broke, so mistakes aren't repeated.
  • Looks up your real code instead of guessing names and types.
  • Stays current: change a file and it already knows.

Works with Claude Code, VS Code Copilot and Codex, in 10 languages. Everything stays on your computer.

Install

Easiest: let your AI install it

Don't have an AI coding assistant yet? Install Claude Code.

Then copy the prompt for your assistant and paste it in. It installs Cortex Suite for all your projects.

text
Install Cortex Suite for all of my projects.

1. If `cargo` isn't installed, install Rust from https://rustup.rs first.
2. Clone https://github.com/Artistsyn/cortex_suite into ~/cortex_suite
   (if it's already there, run `git pull` in it instead).
3. From inside ~/cortex_suite, run ./scripts/install-global.sh
   If I have more than one Claude Code account (look in my shell profile for
   aliases that set CLAUDE_CONFIG_DIR), add `--claude-config <folder>` for each
   folder that isn't already a ~/.claude-* folder.
4. Show me the cortex and quartz-ctx lines from `claude mcp list`, then tell me
   to restart Claude Code.
text
Install Cortex Suite so you can use it in all of my projects. Run each step in
the terminal and check it worked before moving on.

1. Check the tools it needs: `git --version`, `cargo --version`, and a C
   compiler (on a Mac: `xcode-select -p`; on Linux: `cc --version`).
   - If cargo is missing, install Rust from https://rustup.rs, then open a new
     terminal so cargo is on the PATH.
   - If the C compiler is missing: on a Mac run `xcode-select --install`; on
     Linux install build-essential.
2. Clone https://github.com/Artistsyn/cortex_suite into ~/cortex_suite
   (if it's already there, run `git pull` in it instead).
3. From inside ~/cortex_suite, run ./scripts/install-global.sh
   It builds two MCP servers (cortex and quartz-ctx) and adds them to my VS Code
   user MCP config (mcp.json in VS Code's User folder), so they work in every
   workspace. The build takes a few minutes.
4. Open that user mcp.json (Command Palette: "MCP: Open User Configuration")
   and confirm it has "cortex" and "quartz-ctx" entries.
5. Tell me to reload the window, then run "MCP: List Servers" and start both,
   and to turn their tools on in the agent's tool picker.
6. If this workspace is a git repo, also run
   ~/cortex_suite/cortex/target/debug/cortex hooks-init --vscode
   so cortex can warn you about known mistakes as you work.

I'm on Windows? The install script needs macOS or Linux. Instead, run
.\scripts\setup.ps1 -Workspace <project folder> from ~/cortex_suite for each
project.
text
I want to install Cortex Suite (https://github.com/Artistsyn/cortex_suite).
It's a pair of local MCP servers, "cortex" (memory) and "quartz-ctx" (code
map), that give AI coding assistants like Claude Code, VS Code Copilot and the
Codex CLI a memory and a map of my code. You can't run commands on my computer,
so walk me through it: give me ONE step at a time, tell me exactly what to type
and what I should see, and wait for me to paste the result before the next step.
If something fails, help me fix it before moving on.

First ask me which operating system I use (macOS, Linux or Windows) and which
assistants I use (Claude Code, VS Code Copilot, Codex CLI).

The steps, for macOS and Linux:

1. Open a terminal.
2. Check git: `git --version`. If it's missing: on a Mac, `xcode-select
   --install`; on Linux, install git with the package manager.
3. Check a C compiler: on a Mac `xcode-select -p` (if it errors, run
   `xcode-select --install` and wait for it to finish); on Linux
   `cc --version` (if missing, `sudo apt install build-essential` or the
   distro's equivalent).
4. Check Rust: `cargo --version`. If it's missing, run
   `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`, accept the
   defaults, then close the terminal and open a new one, and check again.
5. Download it: `git clone https://github.com/Artistsyn/cortex_suite ~/cortex_suite`
   (if the folder already exists: `cd ~/cortex_suite && git pull`).
6. Install it for every project: `cd ~/cortex_suite && ./scripts/install-global.sh`
   The build takes a few minutes. It then registers both servers with every
   assistant it finds: each Claude Code account, VS Code's user MCP config, and
   ~/.codex/config.toml. Its output says which ones it set up. If I use more
   than one Claude Code account through CLAUDE_CONFIG_DIR, add
   `--claude-config <that folder>` for each.
7. Check it worked, for each assistant I use:
   - Claude Code: `claude mcp list` should show cortex and quartz-ctx as
     Connected. Then restart Claude Code.
   - VS Code Copilot: reload the window, run "MCP: List Servers" from the
     Command Palette, start both, and turn their tools on in agent mode.
   - Codex CLI: start a new codex session; the servers load from config.toml.
For Windows, the install script doesn't run. Instead, after steps 2-5 (Git for
Windows, Visual Studio Build Tools with the C++ workload, Rust from
https://rustup.rs, and the clone), run in PowerShell from the cortex_suite
folder, once per project:
`.\scripts\setup.ps1 -Workspace C:\path\to\project`

Common problems: "cargo: command not found" means the terminal needs
reopening after installing Rust. A build error about "cc" or "linker" means the
C compiler from step 3 is missing. A warning about mcp.json means VS Code's
config has comments in it; then add the two servers by hand, with commands
~/.cortex-suite/bin/cortex-mcp and ~/.cortex-suite/bin/quartz-ctx-mcp.

Or by hand

You need Rust.

bash
git clone https://github.com/Artistsyn/cortex_suite ~/cortex_suite
~/cortex_suite/scripts/install-global.sh

Then restart your editor. Or, to set up just one project: ~/cortex_suite/scripts/setup.sh ~/code/my-project (on Windows: .\scripts\setup.ps1 -Workspace C:\code\my-project).

Is it working?

In any project you've worked in:

bash
~/cortex_suite/cortex/target/debug/cortex scoreboard

Update

git pull in cortex_suite, then run the install again.


Details: TECHNICAL.md · Help: SETUP_HANDOFF.md

将 Cortex Suite MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Cortex Suite 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Cortex Suite 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Cortex Suite MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "cortex-suite": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Cortex Suite MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Cortex Suite MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Cortex Suite 帮我完成这项任务吗?
Cortex Suite
当然。我已阅读。
以下是我使用 Cortex Suite 得到的结果。

常见问题

Cortex Suite MCP 服务器有什么用途?

Cortex Suite 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Cortex Suite MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Cortex Suite,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Cortex Suite MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Cortex Suite 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Cortex Suite MCP 连接到 TypingMind?

Cortex Suite 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Cortex Suite MCP 在 TypingMind 中提供哪些工具?

Cortex Suite 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Cortex Suite MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Cortex Suite 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇