This document covers the main Memorix MCP tools and the most important behavior to know when integrating from an IDE or agent.
Memorix exposes:
- core memory tools
- reasoning and session tools
- maintenance and retention tools
- workspace and rules sync tools
- autonomous Agent Team tools
- dashboard and optional graph compatibility tools
It also exposes a human/operator CLI surface for terminal workflows. The CLI is not a raw mirror of MCP tool names; it is the primary product surface for human operators, while MCP remains the integration protocol for IDEs and agents.
Use MCP when:
- an IDE or agent needs tool calls
- you want the full fine-grained API surface
- you are integrating Memorix into an MCP-capable client
Use the CLI when:
- a human operator wants to inspect or change project state from a terminal
- you are on SSH / Docker / CI / NAS and want direct commands
- you want readable, namespaced actions instead of raw MCP tool payloads
- you want full access to Memorix-native capabilities without depending on an MCP host
The current operator CLI namespaces are:
memorix sessionmemorix memorymemorix reasoningmemorix retentionmemorix formationmemorix auditmemorix transfermemorix skillsmemorix teammemorix taskmemorix messagememorix lockmemorix handoffmemorix pollmemorix syncmemorix ingest
Typical examples:
memorix session start --agent codex-main --agentType codex
memorix memory search --query "release blocker"
memorix reasoning search --query "why sqlite"
memorix retention status
memorix task list
memorix task claim --taskId <id> --agentId <agent-id>
memorix message inbox --agentId <agent-id>
memorix lock status --file src/cli/index.ts
memorix audit project
memorix transfer export --format markdown
memorix skills show --name auth-pattern
memorix sync workspace --action scan
memorix ingest image --path ./diagram.png
memorix poll --agentId <agent-id>The CLI is designed as an operator control surface, not as a 1:1 rename of MCP tools. All Memorix-native operator capabilities have a CLI path in 1.0.8. The only intentional MCP-only area is the optional graph-compatibility surface (create_entities, read_graph, and related tools) for workflows that expect the official memory-server style graph API.
Before looking at individual tools, there are three important defaults:
memorix_searchdefaults to the current project- use
scope="global"when you intentionally want cross-project recall
If you search globally, open results with project-aware refs:
{
"refs": [
{ "id": 84, "projectId": "AVIDS2/test-memorix-demo" }
]
}This is supported by memorix_detail.
Memorix ranks memory differently depending on intent:
- "what changed" style queries tend to favor Git Memory
- "why" style queries tend to favor reasoning and decision memory
- "problem" style queries can favor both fixes and Git Memory
Store a new observation.
Typical uses:
- store a decision
- store a gotcha
- store a problem-solution note
- record a milestone or a shipped change
Important inputs:
entityNametypetitlenarrative- optional
facts - optional
filesModified - optional
concepts - optional
topicKey - optional
progress - optional
source - optional
relatedCommits - optional
relatedEntities
Example:
{
"entityName": "auth-module",
"type": "decision",
"title": "JWT over cookie sessions",
"narrative": "Chose JWT because multiple agents and tools need stateless auth.",
"facts": [
"Goal: support cross-agent local integrations",
"Constraint: avoid server-side session state"
],
"filesModified": ["src/auth/index.ts"],
"concepts": ["jwt", "auth", "stateless"]
}Search project memory or global memory.
Important inputs:
querylimitscopestatustypesourcesinceuntilmaxTokens
Typical uses:
- search the current project
- search only Git memories with
source="git" - search resolved or archived memories with
status="all"
Example:
{
"query": "why did we switch to HTTP transport",
"limit": 10
}Global example:
{
"query": "release status",
"scope": "global"
}Fetch full observation detail.
Supports two modes:
idsfor current-project observationsrefsfor project-aware cross-project lookup
Examples:
{
"ids": [42, 43]
}{
"refs": [
{ "id": 84, "projectId": "AVIDS2/test-memorix-demo" }
]
}Get the chronological context around one observation.
Important inputs:
anchorIddepthBeforedepthAfter
Use it when you want:
- what happened before this memory
- what happened after this memory
Mark observations as resolved or archived.
Important inputs:
ids- optional
status
Typical use:
- hide completed or outdated memories from default search without deleting them
Store a reasoning trace for a non-trivial decision.
Important inputs:
entityNamedecisionrationale- optional
alternatives - optional
constraints - optional
expectedOutcome - optional
risks - optional
concepts - optional
filesModified - optional
relatedCommits - optional
relatedEntities
Use it when the key value is:
- why a choice was made
- what alternatives were rejected
- what risks are accepted
Search only reasoning traces.
Important inputs:
querylimitscope
Use it when you want:
- decision rationale
- design trade-offs
- previous thinking on a similar problem
Start a new coding session and load recent context.
Important inputs:
- optional
agent— display name (e.g."cursor-frontend") - optional
agentType— agent type for optional Agent Team identity mapping (e.g."windsurf","cursor","claude-code","codex","gemini-cli") - optional
projectRoot - optional
sessionId - optional
instanceId - optional
joinTeam - optional
role
Behavior:
- opens a session for the current project
- can auto-close any previous active session for that project
- returns recent session context and project binding state
- does not join the team by default
- if you only need memory/search/reasoning/session recovery, stop here; no team identity is required
- when
joinTeam=true, it also registers an Agent Team identity using the default role derived fromagentTypeviaAGENT_TYPE_ROLE_MAP team_manage(join)remains the formal explicit join entrypoint if you want to separate session start from Agent Team identity- team-specific outputs such as agent ID, watermark, and available tasks appear only when the session explicitly joins the Agent Team
In HTTP control-plane mode, pass projectRoot as the absolute workspace or repo root whenever the client knows it. projectRoot is the detection anchor; Git remains the source of truth for the final project identity.
End the active session with a summary.
Important inputs:
sessionId- optional
summary
Use it to write a handoff note for the next session or next agent.
Fetch recent session summaries and context.
Important inputs:
- optional
limit
Inspect retention state or archive expired memories.
Important inputs:
action
Typical actions:
reportarchive
Merge similar memories to reduce noise.
Important inputs:
action- optional
threshold
Typical actions:
previewexecute
Scan for duplicates and contradictions.
Important inputs:
- optional
dryRun - optional
query
Export or import project memory.
Important inputs:
action- optional
format - optional
data
Typical actions:
exportimport
Generate a stable topicKey for upsert-style memory writes.
Important inputs:
titletype
Show aggregated metrics for the formation pipeline.
Use it to inspect:
- processed observation counts
- value score averages
- stage timing
- recent pipeline behavior
Work with memory-driven project skills.
Important inputs:
action- optional
name - optional
target - optional
write
Typical actions:
listgenerateinject
Promote observations into durable mini-skills.
Important inputs:
action- optional
observationIds - optional
skillId - optional
instruction - optional
trigger - optional
tags
Typical actions:
listpromotedelete
Scan, preview, or apply cross-agent workspace migration.
Important inputs:
action- optional
target - optional
items
Typical actions:
scanmigrateapply
Scan or generate cross-agent rule files.
Important inputs:
action- optional
target
Typical actions:
statusgenerate
These tools are the explicit autonomous-agent coordination surface. They are available through MCP profiles that expose team tools and through the CLI operator surface. HTTP is optional: use it when you want a shared MCP control plane or live dashboard endpoint, not because Agent Team state requires HTTP.
memorix team status
memorix orchestrate --goal "..."Use memorix background start or memorix serve-http --port 3211 only when you want the HTTP control plane in the background or foreground.
Agent Team is opt-in project coordination for tasks, messages, locks, and autonomous agent workflows. It is not required for normal memory use, and it should not be treated as an automatic chat room between separate IDE conversations. For production multi-agent execution, use memorix orchestrate; the team tools provide the coordination substrate.
Runtime environment:
MEMORIX_SESSION_TIMEOUT_MS— HTTP MCP session idle timeout in milliseconds. Default:1800000(30 minutes). Increase this for clients that do not transparently reinitialize after stale HTTP session IDs, for example86400000for 24 hours.
Register, unregister, or inspect agents.
Important inputs:
action- optional
name - optional
role - optional
capabilities - optional
agentId
Send, broadcast, or read messages between agents.
Important inputs:
action- optional
agentId - optional
from - optional
to - optional
content - optional
type - optional
markRead
Create, claim, complete, or list tasks.
Important inputs:
action- optional
taskId - optional
agentId - optional
description - optional
deps - optional
status - optional
available
Acquire, release, or inspect advisory file locks.
Important inputs:
action- optional
agentId - optional
file
Return a compact situational-awareness snapshot for an explicitly joined autonomous agent.
Important inputs:
- optional
agentId
Use it for:
- active autonomous agent overview
- available tasks
- unread messages
- active file locks
- project-level team activity
If agentId is omitted, it returns a project-level overview only.
Create, claim, complete, or inspect handoff artifacts between autonomous agents.
Important inputs:
action- optional
handoffId - optional
fromAgentId - optional
toAgentId - optional
summary - optional
context
Use it when work should survive agent/session boundaries without relying on an IDE chat window staying alive.
Ingest an image as memory context when visual artifacts are relevant to the project.
Important inputs:
path- optional
title - optional
entityName - optional
type
CLI equivalent:
memorix ingest image --path ./diagram.pngLaunch the local dashboard in the browser.
Important inputs:
- optional
port
When using HTTP mode, the main dashboard is usually served from the same port as serve-http.
Memorix can expose MCP-compatible graph tools for workflows that expect the official memory-server style graph API.
Typical graph tool families include:
- create entities
- create relations
- add observations
- delete entities
- delete observations
- delete relations
- search nodes
- open nodes
- read graph
These are optional compatibility tools rather than the main recommended Memorix workflow.
Common observation types include:
session-requestgotchaproblem-solutionhow-it-workswhat-changeddiscoverywhy-it-existsdecisiontrade-offreasoning
Each type helps retrieval and formatting behave differently, especially when combined with source-aware ranking.
For most agents, the best working pattern is:
memorix_searchto find relevant memoriesmemorix_detailfor full recordsmemorix_timelinefor chronological contextmemorix_storeormemorix_store_reasoningto write back important new context
Git Memory, retention, skills, and team tools sit on top of that core loop.