About Cortex Hub
Cortex Hub is an MCP server published by lktiep in the RAG category: self-hosted AI Agent Memory + Code Intelligence Platform — one MCP endpoint for persistent memory, AST-aware code search, shared knowledge, and quality enforcement across all your AI coding agents. Conduid read 34 tools from its source: cortex_agents, cortex_changes, cortex_code_context, cortex_code_grep, cortex_code_impact, cortex_code_read and 28 more. No package is published for it, so it installs from a source checkout.
The repository has 105 stars and 46 forks, and its last commit was on 25 Nov 2026. Conduid has no tagged release on record for it. Its topics include code-intelligence, devtools, docker, knowledge-base, memory and self-hosted.
Install
git clone https://github.com/lktiep/cortex-hubTools (34)
cortex_agentsList connected workers and live MCP sessions before choosing routescortex_changesCheck unseen changes from other agents| Parameter | Type | Description |
|---|---|---|
| acknowledge | boolean | Mark these changes as seen to avoid repeat noise (default: true) |
| agentId * | string | Your agent identifier |
| projectId * | string | Project ID to check changes for |
cortex_code_contextCallers, callees, execution flows for any function/class| Parameter | Type | Description |
|---|---|---|
| file | string | Its file, when several symbols share the name |
| name * | string | Function, class or other symbol name |
| org | string | Organization ID. Omit it for your session's organization. |
| projectId | string | Use repo instead if you can |
| repo | string | Repository name or git URL |
cortex_code_grepgit grep over the hub's checkout of every repo of your organization (default branch), for an exact string the ranked search does not find: a constant, an opcode, an error text, a symbol. Searches the repos that are not on disk here; grep your own checkout locally. With files: true it names each matching file with a count, as grep -l does: the way to sweep for a concept (encrypt|decrypt|cipher) before reading.| Parameter | Type | Description |
|---|---|---|
| files | boolean | List matching files with a count each instead of lines |
| fixed | boolean | Match the pattern as a plain string |
| ignoreCase | boolean | |
| limit | number | Lines to list across all repos (default 60, max 200); files: default 150, max 400 |
| org | string | Organization ID. Omit it for your session's organization. |
| path | string | Git pathspec to narrow to, e.g. "*.cs" or "src/net/" |
| pattern * | string | Perl-style regex, or a plain string with fixed: true |
| repo | string | One repo (name or git URL); omit for every repo of the organization |
cortex_code_impactSee downstream impact before editing| Parameter | Type | Description |
|---|---|---|
| branch | string | Git branch to analyze |
| direction | string | Direction to analyze (default: downstream) |
| org | string | Organization ID. Omit it for your session's organization. |
| projectId | string | Project ID. Use repo name instead if possible. |
| repo | string | Repository name (e.g. "cortex-hub") or git URL |
| target * | string | The name of the function, class, or file to analyze |
cortex_code_readRead lines of a file from the hub's checkout of a repo of your organization (default branch): the repos cortex_code_search and cortex_code_grep point into that are not on disk here.| Parameter | Type | Description |
|---|---|---|
| endLine | number | Default: startLine + ${READ_LINES - 1} |
| file * | string | Path inside the repo, as search or grep printed it |
| org | string | Organization ID. Omit it for your session's organization. |
| repo * | string | Repository name or git URL |
| startLine | number |
cortex_code_reindexTrigger after pushes| Parameter | Type | Description |
|---|---|---|
| branch | string | Branch to index (default: the repository's own default branch) |
| repo * | string | Project name or git repository URL (e.g. "cortex-hub" or https://github.com/org/repo) |
cortex_code_searchOmit `repo` to scan ALL indexed projects in parallel — ranked hints| Parameter | Type | Description |
|---|---|---|
| branch | string | Git branch to search |
| here | string | Filled in by the client. Leave it out. |
| limit | number | |
| org | string | Organization ID. Omit it for your session's organization. |
| projectId | string | Use repo instead if you can |
| query * | string | Natural language or code query to search for |
| repo | string | Repository name or git URL, or "*" |
cortex_cypherCypher against the AST knowledge graph| Parameter | Type | Description |
|---|---|---|
| org | string | Organization ID. Omit it for your session's organization. |
| projectId | string | Project ID. Use repo name instead if possible. |
| query * | string | Cypher query to run (e.g., MATCH (n:Function) RETURN n.name LIMIT 10) |
| repo | string | Repository name (e.g. "cortex-hub") or git URL |
cortex_detect_changesAnalyze uncommitted changes, find affected flows| Parameter | Type | Description |
|---|---|---|
| baseRef | string | Branch, tag or commit to compare with when scope is "compare". |
| diff | string | Unified diff text, as `git diff --staged` or `git diff HEAD` prints it. Any context size; hunk bodies may be left out. |
| org | string | Organization ID. Omit it for your session's organization. |
| projectId | string | Project ID. Use repo name instead if possible. |
| repo | string | Repository the diff belongs to (e.g. "cortex-hub") or its git URL. Omit to use the repo of your active session. |
| scope | string | Only "compare" works without a diff: it compares the indexed code with baseRef. |
cortex_file_notesRisks, lessons and fixes linked to files| Parameter | Type | Description |
|---|---|---|
| files | array | Repo-relative files to get notes for; omit for all linked paths |
| projectId | string | Project ID, when repo is not given |
| repo | string | Git remote URL or repo name; defaults to your session project |
cortex_healthBackend service health checkcortex_knowledge_searchSearch knowledge base (with hall_type + asOf filters)| Parameter | Type | Description |
|---|---|---|
| asOf | string | ISO date — return only facts that were valid at this point in time |
| hallType | string | Filter by MemPalace hall type |
| id | string | Document ID from an earlier result: returns that document in full instead of searching |
| limit | number | Maximum results (default: 5) |
| maxChars | number | Size of the answer in characters (default: ${DEFAULT_MAX_CHARS}); hits past it are listed by heading only |
| projectId | string | Filter by project ID |
| query | string | Text query to search for (auto-embedded). Required unless id is given |
| tags | array | Filter by tags |
cortex_knowledge_storeStore knowledge with hall type + validity| Parameter | Type | Description |
|---|---|---|
| agentId | string | Contributing agent identifier |
| category | string | What kind of note: risk | lesson | error_fix | pattern | decision | general |
| content * | string | Full document content to store |
| files | array | Repo-relative files (or "dir/") this is about. Linked notes are shown to the next agent that reads or edits those files, and appended to code tool results that name them — pass them for any risk, pitfall or fix tied to specific code. |
| hallType | string | MemPalace-inspired hall type: fact | event | discovery | preference | advice | general (default) |
| projectId | string | Project ID to scope this knowledge to |
| tags | array | Tags for categorization (e.g., ["typescript", "patterns", "deployment"]) |
| title * | string | Document title (concise, descriptive) |
| validFrom | string | ISO date when this fact became valid (temporal validity) |
cortex_list_reposAll indexed repos discoverable by name or slugcortex_memory_deleteDelete a stored memory by id| Parameter | Type | Description |
|---|---|---|
| id * | string | The unique memory ID to delete |
cortex_memory_searchRecall agent memories| Parameter | Type | Description |
|---|---|---|
| agentId | string | Filter by agent (default: all agents) |
| branch | string | Git branch to search (with fallback to project-level) |
| limit | number | Max results (default: 5) |
| projectId | string | Project ID to search within |
| query * | string | Search query for memory recall |
cortex_memory_storeStore findings| Parameter | Type | Description |
|---|---|---|
| agentId | string | Agent identifier (default: "default") |
| branch | string | Git branch to scope this memory to (requires projectId) |
| content * | string | The memory content to store |
| metadata | object | Optional metadata tags |
| projectId | string | Project ID to scope this memory to |
cortex_plan_quality8-criterion plan assessment| Parameter | Type | Description |
|---|---|---|
| iteration | number | Which attempt this is (1-3, default 1) |
| plan * | string | The plan: numbered steps, the files each touches, how it will be verified |
| plan_type | string | What kind of change the plan is for |
| request | string | The original request the plan answers; used to judge completeness and scope |
| threshold | number | Passing score out of 10 (default 8.0) |
cortex_quality_reportReport build/test/lint results| Parameter | Type | Description |
|---|---|---|
| details | string | Markdown or technical log of the evaluation criteria |
| gate_name * | string | The name of the gate evaluated (e.g. "Gate 4") |
| passed * | boolean | Whether the gate passed or failed |
| score | number | Optional numerical score out of 100 |
cortex_session_endClose session with compliance grade| Parameter | Type | Description |
|---|---|---|
| auto | boolean | Set only by the client exit hook: closes an active session as abandoned and keeps its summary out of memory. Agents leave this unset. |
| sessionId * | string | The session ID from cortex_session_start |
| summary * | string | Brief summary of work done in this session |
cortex_session_startStart session, get project context + relevant knowledge| Parameter | Type | Description |
|---|---|---|
| agentId | string | |
| branch | string | |
| capabilities | array | |
| clientSessionId | string | This conversation's id; the IDE's SessionStart hook prints it |
| hostname | string | |
| ide | string | |
| mode | string | development, onboarding or review |
| os | string | |
| repo * | string | The repository URL |
| role | string | |
| task | string | What you are about to do, in a few words (the feature, the error) |
cortex_task_acceptAccept an assigned task| Parameter | Type | Description |
|---|---|---|
| taskId * | string | The ID of the task to accept |
cortex_task_cancelCancel a task; its dependents stay blocked until rerouted| Parameter | Type | Description |
|---|---|---|
| reason | string | |
| taskId * | string | Task ID |
cortex_task_createCreate a single task, optionally pinned to an agent| Parameter | Type | Description |
|---|---|---|
| assignTo | string | Agent ID to pin the task to; the dispatcher hands it to that agent when it is connected and idle |
| branch | string | Branch the task works on |
| context | object | Arbitrary context object to pass to the assigned agent |
| dependsOn | array | Task IDs that must complete before this task can start |
| description | string | Detailed description of what needs to be done |
| effort | string | Reasoning effort for the executor |
| fallback | array | Fallback routes tried in order when the first is unavailable |
| files | array | Files the task will touch (used for locks) |
| model | string | Model for the executor |
| notifyOnComplete | array | Agent IDs to notify when this task completes |
| parentTaskId | string | Parent task ID if this is a sub-task |
| projectId | string | Project ID from cortex_session_start — workers and pickup in other projects will not see it |
| requiredCapabilities | array | Capabilities required to complete this task |
| reviewRequired | boolean | Whether the result needs review before completing |
| title * | string | Short title describing the task |
cortex_task_listList tasks by project, status or assignee| Parameter | Type | Description |
|---|---|---|
| assignedTo | string | Filter by assigned agent ID |
| limit | number | Maximum number of tasks to return (default: 20) |
| projectId | string | Filter by project ID |
| status | string | Filter by status (e.g. assigned, in_progress, completed) |
cortex_task_pickupRetrieve tasks assigned to the calling agent| Parameter | Type | Description |
|---|---|---|
| agentId | string | Agent ID (auto-detected if not provided) |
| projectId | string | Project ID from cortex_session_start — limits unpinned tasks to that project |
cortex_task_reviewApprove or reject a task in review, or decide a lead gate| Parameter | Type | Description |
|---|---|---|
| feedback | string | Why; sent back to the worker on reject |
| taskId * | string | Task ID |
| verdict * | string |
cortex_task_routeChange how a task is routed, pick a fallback, clear an escalation| Parameter | Type | Description |
|---|---|---|
| clearEscalation | boolean | |
| dependsOn | array | Stored task IDs (not plan keys); unknown IDs are rejected |
| effort | string | |
| fallback | array | |
| files | array | |
| model | string | |
| pinnedAgent | string | |
| taskId * | string | Task ID |
cortex_task_statusFull state of one task: subtasks, logs, history| Parameter | Type | Description |
|---|---|---|
| taskId * | string | The ID of the task to inspect |
cortex_task_submit_strategyPropose roles, subtasks and an execution plan for user review| Parameter | Type | Description |
|---|---|---|
| estimatedEffort | string | Estimated effort (e.g. "Small (~1 session)") |
| roles * | array | Role identifier (e.g. ui, backend, review) |
| subtasks | array | Subtask title |
| summary * | string | Brief summary of the analysis and proposed approach |
| taskId * | string | The task ID to submit strategy for |
cortex_task_tree_createCreate a whole plan (tasks, dependencies, review and user gates) in one call| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | Check the plan's shape (chains, missing files, thin descriptions, files shared by parallel tasks) without creating it |
| guide | boolean | Return the planning guide instead of creating anything. Read it before your first plan |
| upload | boolean | Import the plan from a JSON file instead: returns a one-time curl command for the file |
cortex_task_updateMove a task through its lifecycle| Parameter | Type | Description |
|---|---|---|
| message | string | Progress message or note about the status change |
| parentTaskId | string | Set or change the parent task ID (for re-parenting orphan tasks) |
| result | object | Result data when completing or failing a task: { summary, prUrl?, branch?, commit?, artifactUrl?, risks? }. risks: what the next agent touching these files should know — each a string, or { text, files } to tie it to some files. They are kept as knowledge on the task's files and shown to agents that later read or edit them. |
| status * | string | The new status for the task |
| taskId * | string | The ID of the task to update |
cortex_tool_statsToken savings + tool usage analytics| Parameter | Type | Description |
|---|---|---|
| agentId | string | Filter by agent ID |
| days | number | Time window in days (default: 7) |
| projectId | string | Filter by project ID |
Security checks
6 checks have not been run yet.