Skip to content

MCP tools ​

The hub's MCP server (apps/hub-mcp) exposes 32 tools, all named cortex_*. An agent reaches them through the cortex-hub entry the installer writes. Each call carries the API key; what a key can see depends on its project and organization scope.

This page lists each tool and its parameters. The guides explain when to use them.

Session ​

ToolParametersWhat it does
cortex_session_startrepo, mode, agentId, hostname, os, ide, branch, capabilities, role, clientSessionIdOpens a session and returns the project, a mission brief, relevant knowledge and recent sessions. A clientSessionId that matches an active session reuses it
cortex_session_endsessionId, summary, autoCloses the session; the summary is saved as memory. auto: true is what the exit hook sends: the session is recorded as abandoned
cortex_changesagentId, projectIdCommits and files other agents pushed that this agent has not seen
cortex_healthnoneHealth of the hub's backend services

See Sessions.

Code intelligence ​

ToolParametersWhat it does
cortex_code_searchquery, repo, projectId, org, branch, limitRanked hybrid search (vector and BM25) over the index. Without repo, every repo in your organization
cortex_code_contextname, repo, projectId, org, fileA symbol's callers, callees, imports and the flows it is part of
cortex_code_impacttarget, repo, projectId, org, branch, directionWhat a change to a symbol reaches. direction is downstream (default) or upstream
cortex_cypherquery, repo, projectId, orgA Cypher query against the code graph
cortex_detect_changesdiff, repo, projectId, org, scope, baseRefThe symbols and flows a diff touches, with a risk level. unknown means a lookup failed
cortex_list_reposorgThe indexed repos of your organization and their project ids
cortex_code_reindexrepo, branchStarts a re-index of a branch. Run it after a push

See Code intelligence.

Knowledge and memory ​

ToolParametersWhat it does
cortex_knowledge_storetitle, content, tags, projectId, agentId, hallType, validFrom, files, categoryStores a document for the team. With files, it becomes a file note for those paths
cortex_knowledge_searchquery, tags, projectId, limit, hallType, asOfSemantic search over the knowledge base
cortex_file_notesrepo, projectId, filesRisks, lessons and fixes linked to files, as JSON. Without files, every linked path of the project
cortex_memory_storecontent, agentId, projectId, branch, metadataStores a memory for this agent. branch needs projectId
cortex_memory_searchquery, agentId, projectId, branch, limitSearches memories: the branch first, then the project, then the agent
cortex_memory_deleteidDeletes a memory that is wrong or out of date

See Knowledge and memory.

Quality ​

ToolParametersWhat it does
cortex_plan_qualityplan, request, iteration, threshold, plan_typeScores a plan on eight criteria, 0 to 10; it passes at 8.0
cortex_quality_reportgate_name, passed, score, detailsRecords the result of a quality gate for the dashboard
cortex_tool_statsdays, agentId, projectIdTool usage: success rates, latency, token estimates, trends

See Quality gates.

Tasks ​

ToolParametersWhat it does
cortex_task_createtitle, description, assignTo, requiredCapabilities, dependsOn, notifyOnComplete, context, parentTaskId, model, effort, fallback, files, branch, reviewRequired, projectIdCreates one task, optionally for another agent
cortex_task_pickupagentId, projectIdTasks assigned to this agent or its API key
cortex_task_accepttaskIdAccepts an assigned task
cortex_task_updatetaskId, status, message, result, parentTaskIdMoves a task to in_progress, review, completed or failed
cortex_task_listprojectId, status, assignedTo, limitLists tasks
cortex_task_statustaskIdA task with its logs and history
cortex_task_submit_strategytaskId, summary, roles, subtasks, estimatedEffortProposes roles and subtasks for the dashboard to show for approval

Conductor ​

Tools for the lead agent that plans and reviews. See Conductor.

ToolParametersWhat it does
cortex_task_tree_createparentId, projectId, tasks, uploadCreates a whole plan as a tree of tasks; tasks refer to each other by key. upload: true returns a one-time curl command for a JSON file instead, valid for 15 minutes
cortex_agentsnoneConnected workers (engines, models, busy or idle, exhausted quota) and live MCP sessions
cortex_task_reviewtaskId, verdict, feedbackApproves or rejects a task in review, or decides a lead gate. User gates are refused (403)
cortex_task_routetaskId, executor, model, effort, fallback, pinnedAgent, priority, files, dependsOn, clearEscalationChanges how a task is routed. Only the fields you pass change; null clears one. dependsOn takes stored task ids
cortex_task_canceltaskId, reasonCancels a task; its dependents stay blocked. Cancelling a group cancels everything under it

The task fields of a plan are listed under Write the plan.

Notices in tool results ​

Two kinds of text can be added to the result of any hub tool call:

  • Conductor notices for the lead, under 📋 Conductor:. See Review.
  • File notes for the files a code tool's result points at. See File notes.

MIT License