코딩 에이전트가 코드를 검색하고, 심볼 관계를 추적하며, 변경 사항의 영향을 확인할 수 있도록 로컬 저장소를 인덱싱합니다.
다른 이름 DanielBlomma/cortex, @danielblomma/cortex-mcp
- 스타
- 19
- Tools
- —
- 다운로드, 30일
- 523
- 최신 버전
- 0.4.2
- 마지막 커밋
- 2026년 9월 11일
- 라이선스
- —
Cortex MCP란?
Cortex은(는) MCP server입니다. 코딩 에이전트가 코드를 검색하고, 심볼 관계를 추적하며, 변경 사항의 영향을 확인할 수 있도록 로컬 저장소를 인덱싱합니다.
프로젝트 README에서 생성된 요약
Cortex MCP server 정보
Cortex는 코드, 심볼, 프로젝트 규칙의 로컬 맵을 구축하여 AI 코딩 에이전트에게 구조화된 저장소 컨텍스트를 제공합니다. 에이전트가 코드를 추측하거나 파일 전체를 읽는 대신, CLI를 통해 로컬 인덱스를 쿼리하여 관련 정보를 찾습니다. 이 도구는 사용자의 기기에서 완전히 작동하므로 코드의 프라이버시가 보장되며, 실행을 위해 Node.js 20.9+ 및 Git이 필요합니다.
개발자는 cortex search로 코드를 찾고, cortex impact로 변경 사항의 영향 범위를 추정하며, cortex guidance로 작업을 시작하기 전 인용된 컨텍스트를 가져오는 등의 특정 명령을 사용합니다. 시스템은 증분 업데이트를 수행하는 백그라운드 watcher와 Git hooks를 통해 정확도를 유지합니다. 기본 워크플로우는 CLI를 통해 이루어지지만, MCP 호환성이 필요한 클라이언트를 위해 cortex connect를 사용할 수 있습니다. 인덱싱을 위해 외부 네트워크 서비스를 호출할 필요 없이 에이전트가 심볼 관계를 따르고 활성화된 저장소 컨벤션을 준수할 수 있도록 설계되었습니다.
활용 사례
- 1변경 영향 분석특정 수정 사항이 코드베이스의 나머지 부분에 어떤 영향을 미칠지 에이전트에게 추정하도록 요청합니다.
- 2구현 패턴 찾기AI 에이전트가 주변 코드 패턴을 식별하여 새로운 코드가 기존 스타일을 따르도록 합니다.
- 3저장소 규칙 검색코드를 작성하기 전에 에이전트가 활성화된 프로젝트 규칙과 아키텍처 결정 사항을 읽도록 지시합니다.
- 4코드 리뷰 수행도구를 사용하여 스테이징된 변경 사항 또는 스테이징되지 않은 변경 사항을 저장소의 현재 head와 비교하여 리뷰합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
Cortex MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 Cortex MCP 설치
$ claude mcp add cortex -- npx -y @danielblomma/cortex-mcpCursor에 Cortex MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"cortex": {
"command": "npx",
"args": [
"-y",
"@danielblomma/cortex-mcp"
]
}
}
}VS Code에 Cortex MCP 설치
.vscode/mcp.json
{
"servers": {
"cortex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@danielblomma/cortex-mcp"
]
}
}
}VS Code CLI에 Cortex MCP 설치
$ code --add-mcp '{"name":"cortex","type":"stdio","command":"npx","args":["-y","@danielblomma/cortex-mcp"]}'Claude Desktop에 Cortex MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"cortex": {
"command": "npx",
"args": [
"-y",
"@danielblomma/cortex-mcp"
]
}
}
}Codex에 Cortex MCP 설치
$ codex mcp add cortex -- npx -y @danielblomma/cortex-mcpCodex config.toml에 Cortex MCP 설치
~/.codex/config.toml
[mcp_servers.cortex] command = "npx" args = ["-y", "@danielblomma/cortex-mcp"]
Gemini CLI에 Cortex MCP 설치
$ gemini mcp add -s user cortex npx -- -y @danielblomma/cortex-mcpGemini settings.json에 Cortex MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"cortex": {
"command": "npx",
"args": [
"-y",
"@danielblomma/cortex-mcp"
]
}
}
}자동 검사
2026년 11월 14일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능danielblomma/cortex is public and reachablegithub.com/danielblomma/cortex ↗통과
- 패키지가 이 저장소를 소스로 명시@danielblomma/cortex-mcp names danielblomma/cortex as sourcenpmjs.com/package/@danielblomma/cortex-mcp ↗통과
- 빌드 출처(Sigstore 증명)No build attestation published for this release검사되지 않음
- 오픈 소스 라이선스 (OSI)No license결함 발견
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-09-11github.com/danielblomma/cortex ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from @danielblomma/cortex-mcp통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음1 resolved dependencies checked; no critical advisoryosv.dev ↗통과
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기Cortex
Give AI coding agents the right context from your repository.
Cortex builds a local map of your code, symbols, relationships, and project rules. Coding agents query that map through the CLI instead of guessing or reading the whole repository.
Your code stays on your machine. MCP is not required.
Start
Requires Node.js 20.9+ and Git.
npm install --global @danielblomma/cortex-mcp
cd your-project
cortex init --bootstrap
This indexes the repository, adds Cortex instructions to AGENTS.md, installs
Git hooks, and starts the background watcher.
Check the setup:
cortex doctor
Use
# Find relevant code.
cortex search "where is authentication handled?" --json
# Follow relationships from a search result.
cortex related <entity-id> --json
# See what a change may affect.
cortex impact "authentication" --json
# Read repository rules.
cortex rules --json
# Compare a changed file with nearby patterns.
cortex pattern-evidence src/auth.ts --json
# Inspect deterministic active conventions for a file or indexed entity.
cortex conventions src/payments/retry.ts --json
# Get cited, deterministic context before implementing a code task.
cortex guidance src/payments/retry.ts --task "add bounded retry handling" --json
# Review the staged, unstaged, and non-ignored untracked candidate against HEAD.
cortex review --diff --json
# Refresh context after significant changes.
cortex update
Agents can run these commands directly. cortex init adds instructions that
tell them to search before answering and check impact before refactoring. They
do not need an MCP connection.
What Cortex adds
Without Cortex, an agent often searches by filename and reads many unrelated files. Cortex gives it structured repository context:
- semantic search across code, rules, and architecture decisions;
- symbol definitions and file relationships;
- caller and dependency traversal;
- impact analysis before refactoring;
- active rules, deprecations, and source-of-truth signals;
- deterministic, subsystem-scoped convention profiles with cited reusable symbols;
- incremental updates after Git and filesystem changes.
The pipeline is local and straightforward:
repository -> local index -> Cortex CLI -> coding agent
Commands you will use
| Command | Purpose |
|---|---|
cortex search "..." --json |
Find relevant code and context |
cortex related <entity-id> --json |
Follow relationships from a result |
cortex impact "..." --json |
Estimate the blast radius of a change |
cortex rules --json |
Show active repository rules |
cortex pattern-evidence <file> --json |
Find nearby implementation patterns |
cortex conventions <file-or-entity> --json |
Inspect bounded repository convention profiles |
cortex guidance <file-or-entity> --task <text> --json |
Get bounded cited pre-coding guidance |
cortex review --diff --json |
Review the current Git candidate with cited local evidence |
cortex update |
Refresh changed context |
cortex status |
Show index status |
cortex doctor |
Diagnose the local setup |
cortex watch status |
Check background synchronization |
cortex dashboard |
Open the local status dashboard |
Run cortex help for the complete command list.
cortex conventions uses only the local index. It returns bounded, live-backed
version-1 profiles and does not call a model, planner, provider, or network
service. See Repository convention profiles
for the exact eligibility, limit, hashing, persistence, and safety contract.
Before implementing a code task, use cortex guidance as cited additive
context—not policy authority. Continue to use normal search, related, and
impact when needed, and never skip explicit active rules or conflicts. The
command is local-only and inspection-only; see the exact versioned contract in
Pre-coding guidance.
After coding and before finalization, use cortex review --diff. It separates
exact source-of-truth violations from heuristic local-pattern warnings and is
inspection-only. See Deterministic diff review.
Keep the index fresh
Git hooks and the watcher normally update Cortex automatically.
cortex status
cortex watch status
cortex update
Run cortex update manually after a large change or when results look stale.
Large repositories
Make lexical and graph search available first while semantic indexing continues in the background:
cortex bootstrap --background --profile interactive
cortex indexing status --json
This mode supports macOS, Linux, and WSL. Native Windows should use normal foreground bootstrap.
Upgrade
npm install --global @danielblomma/cortex-mcp@latest
cortex init --force
cortex bootstrap
cortex update
Project configuration and rules are preserved. See CHANGELOG.md for version-specific notes.
Optional MCP compatibility
The normal Cortex workflow uses the CLI. If a client explicitly requires MCP,
run cortex connect.
DeepSeek Harness integration
Cortex supports DeepSeek Harness through the V1 explicit tools and skills
integration. Cortex 2.6.0 contains and validates the integration source against
the pinned Harness 0.1.1-rc.2 release. Separate npm bundle distribution is
deferred and currently unavailable.
The bundle provides four agent-scoped tools (cortex_search,
cortex_related, cortex_impact, and cortex_rules) and five Cortex behavior
skills (change-impact, context-review, pattern-review, repo-research,
and using-cortex). Retrieval is local, repository-scoped, explicit, and
user-controlled. The integration does not automatically initialize, update,
or watch a repository.
V2 proactive/assistive retrieval remains planned and experimental; it is not included in Cortex 2.6.0. See the V1-to-V2 integration plan for details.
Links
License
MIT
Cortex MCP 질문
Cortex MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add cortex -- npx -y @danielblomma/cortex-mcp를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
Cortex MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
Cortex가 제 코드를 원격 서비스로 전송하나요?
아니요. 인덱스는 로컬에서 빌드 및 쿼리되며, 코드는 사용자의 기기에 그대로 유지됩니다.
Cortex를 사용하려면 MCP 연결이 필요한가요?
아니요. 에이전트는 Cortex CLI 명령을 직접 실행합니다. MCP는 이를 명시적으로 요구하는 클라이언트의 경우에만 선택 사항입니다.
프로젝트에 Cortex를 어떻게 설정하나요?
npm 패키지를 전역으로 설치한 후, 프로젝트 디렉토리에서 cortex init --bootstrap를 실행합니다. 이 명령은 저장소를 인덱싱하고, AGENTS.md에 지침을 추가하며, Git hooks를 설치하고, watcher를 시작합니다.
인덱스를 최신 상태로 유지하려면 어떻게 하나요?
Git hooks와 백그라운드 watcher가 일반적으로 Cortex를 자동으로 업데이트하지만, 대규모 변경 후에는 cortex update를 수동으로 실행할 수 있습니다.
변경 사항이 무엇에 영향을 미칠지 어떻게 분석하나요?
리팩터링 전에 cortex impact [topic]을 실행하여 영향 범위를 추정할 수 있습니다.