1. Conduid
  2. RAG
  3. Cortex Hub
MCP server · RAG

Cortex Hub

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.

66Good

Scored 20 hours ago · breakdown

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

From source
git clone https://github.com/lktiep/cortex-hub

Tools (34)

cortex_agentsList connected workers and live MCP sessions before choosing routes
cortex_changesCheck unseen changes from other agents
ParameterTypeDescription
acknowledgebooleanMark these changes as seen to avoid repeat noise (default: true)
agentId *stringYour agent identifier
projectId *stringProject ID to check changes for
cortex_code_contextCallers, callees, execution flows for any function/class
ParameterTypeDescription
filestringIts file, when several symbols share the name
name *stringFunction, class or other symbol name
orgstringOrganization ID. Omit it for your session's organization.
projectIdstringUse repo instead if you can
repostringRepository 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.
ParameterTypeDescription
filesbooleanList matching files with a count each instead of lines
fixedbooleanMatch the pattern as a plain string
ignoreCaseboolean
limitnumberLines to list across all repos (default 60, max 200); files: default 150, max 400
orgstringOrganization ID. Omit it for your session's organization.
pathstringGit pathspec to narrow to, e.g. "*.cs" or "src/net/"
pattern *stringPerl-style regex, or a plain string with fixed: true
repostringOne repo (name or git URL); omit for every repo of the organization
cortex_code_impactSee downstream impact before editing
ParameterTypeDescription
branchstringGit branch to analyze
directionstringDirection to analyze (default: downstream)
orgstringOrganization ID. Omit it for your session's organization.
projectIdstringProject ID. Use repo name instead if possible.
repostringRepository name (e.g. "cortex-hub") or git URL
target *stringThe 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.
ParameterTypeDescription
endLinenumberDefault: startLine + ${READ_LINES - 1}
file *stringPath inside the repo, as search or grep printed it
orgstringOrganization ID. Omit it for your session's organization.
repo *stringRepository name or git URL
startLinenumber
cortex_code_reindexTrigger after pushes
ParameterTypeDescription
branchstringBranch to index (default: the repository's own default branch)
repo *stringProject 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
ParameterTypeDescription
branchstringGit branch to search
herestringFilled in by the client. Leave it out.
limitnumber
orgstringOrganization ID. Omit it for your session's organization.
projectIdstringUse repo instead if you can
query *stringNatural language or code query to search for
repostringRepository name or git URL, or "*"
cortex_cypherCypher against the AST knowledge graph
ParameterTypeDescription
orgstringOrganization ID. Omit it for your session's organization.
projectIdstringProject ID. Use repo name instead if possible.
query *stringCypher query to run (e.g., MATCH (n:Function) RETURN n.name LIMIT 10)
repostringRepository name (e.g. "cortex-hub") or git URL
cortex_detect_changesAnalyze uncommitted changes, find affected flows
ParameterTypeDescription
baseRefstringBranch, tag or commit to compare with when scope is "compare".
diffstringUnified diff text, as `git diff --staged` or `git diff HEAD` prints it. Any context size; hunk bodies may be left out.
orgstringOrganization ID. Omit it for your session's organization.
projectIdstringProject ID. Use repo name instead if possible.
repostringRepository the diff belongs to (e.g. "cortex-hub") or its git URL. Omit to use the repo of your active session.
scopestringOnly "compare" works without a diff: it compares the indexed code with baseRef.
cortex_file_notesRisks, lessons and fixes linked to files
ParameterTypeDescription
filesarrayRepo-relative files to get notes for; omit for all linked paths
projectIdstringProject ID, when repo is not given
repostringGit remote URL or repo name; defaults to your session project
cortex_healthBackend service health check
cortex_knowledge_searchSearch knowledge base (with hall_type + asOf filters)
ParameterTypeDescription
asOfstringISO date — return only facts that were valid at this point in time
hallTypestringFilter by MemPalace hall type
idstringDocument ID from an earlier result: returns that document in full instead of searching
limitnumberMaximum results (default: 5)
maxCharsnumberSize of the answer in characters (default: ${DEFAULT_MAX_CHARS}); hits past it are listed by heading only
projectIdstringFilter by project ID
querystringText query to search for (auto-embedded). Required unless id is given
tagsarrayFilter by tags
cortex_knowledge_storeStore knowledge with hall type + validity
ParameterTypeDescription
agentIdstringContributing agent identifier
categorystringWhat kind of note: risk | lesson | error_fix | pattern | decision | general
content *stringFull document content to store
filesarrayRepo-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.
hallTypestringMemPalace-inspired hall type: fact | event | discovery | preference | advice | general (default)
projectIdstringProject ID to scope this knowledge to
tagsarrayTags for categorization (e.g., ["typescript", "patterns", "deployment"])
title *stringDocument title (concise, descriptive)
validFromstringISO date when this fact became valid (temporal validity)
cortex_list_reposAll indexed repos discoverable by name or slug
cortex_memory_deleteDelete a stored memory by id
ParameterTypeDescription
id *stringThe unique memory ID to delete
cortex_memory_searchRecall agent memories
ParameterTypeDescription
agentIdstringFilter by agent (default: all agents)
branchstringGit branch to search (with fallback to project-level)
limitnumberMax results (default: 5)
projectIdstringProject ID to search within
query *stringSearch query for memory recall
cortex_memory_storeStore findings
ParameterTypeDescription
agentIdstringAgent identifier (default: "default")
branchstringGit branch to scope this memory to (requires projectId)
content *stringThe memory content to store
metadataobjectOptional metadata tags
projectIdstringProject ID to scope this memory to
cortex_plan_quality8-criterion plan assessment
ParameterTypeDescription
iterationnumberWhich attempt this is (1-3, default 1)
plan *stringThe plan: numbered steps, the files each touches, how it will be verified
plan_typestringWhat kind of change the plan is for
requeststringThe original request the plan answers; used to judge completeness and scope
thresholdnumberPassing score out of 10 (default 8.0)
cortex_quality_reportReport build/test/lint results
ParameterTypeDescription
detailsstringMarkdown or technical log of the evaluation criteria
gate_name *stringThe name of the gate evaluated (e.g. "Gate 4")
passed *booleanWhether the gate passed or failed
scorenumberOptional numerical score out of 100
cortex_session_endClose session with compliance grade
ParameterTypeDescription
autobooleanSet only by the client exit hook: closes an active session as abandoned and keeps its summary out of memory. Agents leave this unset.
sessionId *stringThe session ID from cortex_session_start
summary *stringBrief summary of work done in this session
cortex_session_startStart session, get project context + relevant knowledge
ParameterTypeDescription
agentIdstring
branchstring
capabilitiesarray
clientSessionIdstringThis conversation's id; the IDE's SessionStart hook prints it
hostnamestring
idestring
modestringdevelopment, onboarding or review
osstring
repo *stringThe repository URL
rolestring
taskstringWhat you are about to do, in a few words (the feature, the error)
cortex_task_acceptAccept an assigned task
ParameterTypeDescription
taskId *stringThe ID of the task to accept
cortex_task_cancelCancel a task; its dependents stay blocked until rerouted
ParameterTypeDescription
reasonstring
taskId *stringTask ID
cortex_task_createCreate a single task, optionally pinned to an agent
ParameterTypeDescription
assignTostringAgent ID to pin the task to; the dispatcher hands it to that agent when it is connected and idle
branchstringBranch the task works on
contextobjectArbitrary context object to pass to the assigned agent
dependsOnarrayTask IDs that must complete before this task can start
descriptionstringDetailed description of what needs to be done
effortstringReasoning effort for the executor
fallbackarrayFallback routes tried in order when the first is unavailable
filesarrayFiles the task will touch (used for locks)
modelstringModel for the executor
notifyOnCompletearrayAgent IDs to notify when this task completes
parentTaskIdstringParent task ID if this is a sub-task
projectIdstringProject ID from cortex_session_start — workers and pickup in other projects will not see it
requiredCapabilitiesarrayCapabilities required to complete this task
reviewRequiredbooleanWhether the result needs review before completing
title *stringShort title describing the task
cortex_task_listList tasks by project, status or assignee
ParameterTypeDescription
assignedTostringFilter by assigned agent ID
limitnumberMaximum number of tasks to return (default: 20)
projectIdstringFilter by project ID
statusstringFilter by status (e.g. assigned, in_progress, completed)
cortex_task_pickupRetrieve tasks assigned to the calling agent
ParameterTypeDescription
agentIdstringAgent ID (auto-detected if not provided)
projectIdstringProject 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
ParameterTypeDescription
feedbackstringWhy; sent back to the worker on reject
taskId *stringTask ID
verdict *string
cortex_task_routeChange how a task is routed, pick a fallback, clear an escalation
ParameterTypeDescription
clearEscalationboolean
dependsOnarrayStored task IDs (not plan keys); unknown IDs are rejected
effortstring
fallbackarray
filesarray
modelstring
pinnedAgentstring
taskId *stringTask ID
cortex_task_statusFull state of one task: subtasks, logs, history
ParameterTypeDescription
taskId *stringThe ID of the task to inspect
cortex_task_submit_strategyPropose roles, subtasks and an execution plan for user review
ParameterTypeDescription
estimatedEffortstringEstimated effort (e.g. "Small (~1 session)")
roles *arrayRole identifier (e.g. ui, backend, review)
subtasksarraySubtask title
summary *stringBrief summary of the analysis and proposed approach
taskId *stringThe task ID to submit strategy for
cortex_task_tree_createCreate a whole plan (tasks, dependencies, review and user gates) in one call
ParameterTypeDescription
dryRunbooleanCheck the plan's shape (chains, missing files, thin descriptions, files shared by parallel tasks) without creating it
guidebooleanReturn the planning guide instead of creating anything. Read it before your first plan
uploadbooleanImport the plan from a JSON file instead: returns a one-time curl command for the file
cortex_task_updateMove a task through its lifecycle
ParameterTypeDescription
messagestringProgress message or note about the status change
parentTaskIdstringSet or change the parent task ID (for re-parenting orphan tasks)
resultobjectResult 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 *stringThe new status for the task
taskId *stringThe ID of the task to update
cortex_tool_statsToken savings + tool usage analytics
ParameterTypeDescription
agentIdstringFilter by agent ID
daysnumberTime window in days (default: 7)
projectIdstringFilter by project ID

Security checks

6 checks have not been run yet.

Questions

About Cortex Hub

How do I install Cortex Hub?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Cortex Hub safe to use with an AI agent?

Its trust score is 66 out of 100 (good). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Cortex Hub still maintained?

Yes — the last commit was 7 days ago. The repository has 105 stars and 46 forks.

What tools does Cortex Hub provide?

Conduid read 34 tools from the source: cortex_agents, cortex_changes, cortex_code_context, cortex_code_grep, cortex_code_impact, cortex_code_read, cortex_code_reindex, cortex_code_search and 26 more. 31 of them publish their parameters, listed under Tools above.