ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

CodeCortex Context Engine

โดย BehnamJalaliCoรุ่น 0.1.0a10i★ –iรันบนเครื่อง
ชื่อใน registryio.github.BehnamJalaliCo/codecortex-context-engine

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Context intelligence for AI coding agents: navigation, impact, memory, guarded edits.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: ค้นข้อมูลและความจำของ AI

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "codecortex-context-engine": {
      "command": "uvx",
      "args": [
        "codecortex-context-engine",
        "mcp",
        "--path",
        "."
      ]
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add codecortex-context-engine -- uvx codecortex-context-engine mcp --path .

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "codecortex-context-engine": {
      "command": "uvx",
      "args": [
        "codecortex-context-engine",
        "mcp",
        "--path",
        "."
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "codecortex-context-engine": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "codecortex-context-engine",
        "mcp",
        "--path",
        "."
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub BehnamJalaliCo ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด ค้นข้อมูลและความจำของ AIi

  • ดาวมากกว่า 0% ของอีก 7235 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 50% ของอีก 7235 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 7235 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

CodeCortex Context Engine ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.0a10) เข้า registry 38 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Context7, Codebase Memory, Exa

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Context7

โดย upstash

ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว

บนเครื่องหรือคลาวด์★ 64,224MITอัปเดต 3 วันที่ผ่านมา
ติดตั้ง

Codebase Memory

โดย DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

รันบนเครื่อง★ 48,148MITอัปเดต 20 วันที่ผ่านมา
ติดตั้ง

Exa

โดย exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

รันบนคลาวด์★ 5,213MITอัปเดต 44 วันที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

🧠 CodeCortex Context Engine

Open-source context intelligence infrastructure for AI coding agents

Map the repository · resolve symbols · retrieve task-specific evidence · estimate impact · edit with guardrails

⭐ Star CodeCortex · ❤️ Support Project · Documentation · Latest Release · Contribute

🇬🇧 English · 🇮🇷 فارسی


Why CodeCortex?

A coding agent can read code. The harder problem is deciding what matters, what is connected, what can break, and how much context is actually worth sending to the model.

CodeCortex turns a repository into a query-specific evidence system for coding agents:

  • Repository + symbol intelligence — structure, definitions, references, dependencies, and call relationships.
  • Evidence-aware retrieval — lexical, semantic, structural, graph, Git, architecture, and memory signals are ranked together.
  • Impact before edits — reverse dependencies, affected tests, ownership, and change risk are inspectable before mutation.
  • Guarded changes — semantic edits and structural rewrite previews keep source boundaries and review steps explicit.
  • Persistent project context — architecture, history, project/team memory, traces, and multi-repo workspaces survive beyond one chat.

Core rule: retrieve evidence before generating confidence.

60-second start

Requires Python 3.11–3.13.

python -m pip install --upgrade codecortex-context-engine

cortex init . cortex index cortex doctor

Then ask the repository useful questions:

cortex architecture

cortex semantic "authentication and session lifecycle" cortex impact AuthService

Or expose the repository to an MCP-capable coding agent:

cortex mcp --path .

Works with coding agents

CodeCortex includes merge-safe project configuration for Claude Code, Codex, Cursor, Gemini CLI, and OpenCode.

cortex agents detect

cortex agents configure --dry-run

or configure every supported target explicitly:

cortex agents configure --all

The configurator only manages CodeCortex-owned MCP entries and keeps user-owned configuration intact.

See it work locally

The repository ships a deterministic demo project and demo runner:

python scripts/demo.py

The demo indexes the fixture repository, analyzes the blast radius of AuthService, routes an evidence request, and reports measured context/trace data. It does not fabricate benchmark values.

Reproducible evidence snapshot

These are committed hardening measurements, not generalized performance promises:

EvidenceRecorded result
Hardening test suite711 passed, 28 skipped, 0 failed
Coverage in hardening report91.74%
Warm exact definition lookup0.19–0.23 ms median
Freshness scan across 600 documents4.25 ms median

See HARDENING_REPORT.md and benchmarks/ for scope, methodology, limitations, and reproducibility notes.

❤️ Support CodeCortex — If CodeCortex saves you time, consider supporting its continued open-source development. Crypto support →


🇬🇧 English

Give the coding agent a map before asking it to navigate the codebase.

CodeCortex in one sentence

CodeCortex turns a software repository into a query-specific evidence system for AI coding agents.

It sits between an agent and a codebase. It builds durable intelligence about repository structure, symbols, relationships, Git history, ownership, architecture, team decisions, impact, and validation. For each task, it tries to return the smallest useful evidence package instead of forcing the model to reopen broad parts of the repository and reconstruct the same facts again.

CodeCortex is not another general chat UI. It is not a model provider. It does not claim that an agent becomes infallible. It is context infrastructure: a layer that improves what the agent gets to reason with.

Core rule: retrieve evidence before generating confidence.


Why this exists

A strong coding model can read code. The harder engineering problem is deciding what deserves attention, what is connected to it, what changed, what is ambiguous, who owns the area, and what can break after a change.

Without a context engine, the work often looks like this:

search filenames → open broad files → rediscover architecture → guess symbol ownership → infer references → inspect Git manually → guess blast radius → consume a large context window → edit → discover a hidden dependency later

CodeCortex changes the stream:

task → classify intent → gather repository evidence → rank evidence for this task → preserve provenance and uncertainty → fit evidence into a context budget → expose one agent-facing surface → validate the proposed change

The goal is not more context.

The goal is higher-value evidence per token.


Architecture

Live evidence stream

flowchart LR

A[AI Coding Agent] --> G[CodeCortex Gateway] G --> R[Adaptive Router]

R --> REP[Repository Intelligence] R --> SYM[Symbol Intelligence] R --> RET[Hybrid Retrieval] R --> GIT[Git + PR Intelligence] R --> MEM[Project + Team Memory] R --> ARC[Architecture + Drift] R --> IMP[Impact + Validation]

REP --> E[Evidence Surface] SYM --> E RET --> E GIT --> E MEM --> E ARC --> E IMP --> E

E --> C[Context Pipeline] C --> B[Rank + Dedup + Slice + Budget] B --> G G --> A

The repository remains the source of executable truth. Graphs, memory, semantic retrieval, architecture inference, and summaries help interpretation. They do not replace current source, configuration, and tests.


Current capability map

LayerWhat it doesWhy it matters
Repository mapindexes structure and filesgives the agent a bounded map
Multi-language symbolsextracts language-aware unitsmoves beyond filename search
Tree-aware parsingpreserves structural code unitsimproves code-level context
Dependency + call graphrecords relationshipssupports navigation and impact
Cross-file resolutionranks ambiguous targetskeeps uncertainty visible
Incremental graphreparses changed stateavoids blind rebuilds
Hybrid retrievalcombines lexical, semantic, structural signalsimproves task-specific recall
Context pipelineranks, deduplicates, slices, budgets, compactsspends tokens on useful evidence
Git intelligencehistory, blame, churn, ownershipmakes change history queryable
PR intelligencemaps diffs to symbols, tests, impact, riskreviews behavior, not only lines
Impact analysiswalks reverse relationshipsestimates blast radius
Architecture inferenceinfers observable structure with confidencemakes architecture inspectable
Architecture driftcompares structure with a baselineexposes architectural movement
Project memorystores durable decisions and factspreserves rationale
Shared team memoryrevisions + conflict-aware shared statemakes team knowledge durable
Multi-repo workspacefederates search and graph evidencesupports systems split across repos
Task tracesrecords bounded execution evidencemakes routing behavior inspectable
Guarded semantic editingperforms preflight-aware editsreduces broad unsafe replacements
Native MCPexposes one stable agent surfaceintegrates with coding agents
Remote MCPauthenticated remote operationenables controlled shared use
Persistent vector providersseparates storage from retrieval contractsupports larger deployments
Distributed workerscapabilities + leases + retriesmakes node failure explicit
Observatoryhealth, traces, drift, graph, benchmark, PR signalsmakes the engine observable
Precision code intelligenceresolves definitions and references by symbol identitydistinguishes packages that export the same name
Dependency intelligenceseparates declared constraints from resolved versionsanswers which API the repository actually runs
Structural search and rewritematches syntax, previews guarded migrationsfinds calls, not comments that mention them
Platform API and consoleHTTP surface, jobs, persistence, realtime eventsdrives CodeCortex from outside the CLI
Python and TypeScript SDKstyped clients for the platform APIembeds CodeCortex in other tooling
Release evidencescans, SBOM, signatures, provenanceties release claims to artifacts

The CodeCortex Doctrine

These are engineering rules, not marketing slogans.

Doctrine 01 — Evidence before confidence

A resolved symbol, a semantic match, an inferred edge, a memory entry, and a Git observation are different evidence classes. CodeCortex should not flatten them into one certainty level.

exact evidence → present as exact strong inference → preserve provenance ambiguous inference → keep alternatives visible missing evidence → report missing stale evidence → report stale

Doctrine 02 — Smallest useful context

The best context package is not the largest package that fits. It is the smallest package that contains enough source, relationships, history, and validation evidence to reason about the current task.

Doctrine 03 — Source remains source

Memory can explain intent. Git can explain history. Graphs can explain relationships. Retrieval can suggest relevance. Current source, configuration, tests, and reproducible artifacts remain authoritative for executable behavior.

Doctrine 04 — Uncertainty is information

If two symbols are plausible targets, that ambiguity matters. If architecture is inferred, missing signals matter. If an optional integration cannot run, “unavailable” is more useful than a fabricated success.

Doctrine 05 — Eve

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx