Skip to content

MCP guide

aictx-mcp is an MCP stdio server. The MCP client must launch it and connect to its stdin/stdout. An agent generally cannot start aictx-mcp in a shell and then use it as MCP tools in an already-running session.

The simplest setup is a global install:

Terminal window
npm install -g @aictx/memory

Configure your MCP client to launch:

Terminal window
aictx-mcp

If aictx-mcp is not on PATH, configure the client to launch it through the project package manager or local binary path:

Terminal window
pnpm exec aictx-mcp
npm exec aictx-mcp
./node_modules/.bin/aictx-mcp
npx --package @aictx/memory -- aictx-mcp

MCP exposes exactly these tools in v1:

  • load_memory
  • search_memory
  • save_memory_patch
  • diff_memory

Use MCP equivalents only when the client already exposes Aictx MCP tools:

load_memory({ task: "<task summary>", mode: "coding" })
search_memory({ query: "auth route conventions" })
save_memory_patch({ patch: { source, changes } })
diff_memory({})

If the MCP server was launched globally rather than from the project root, pass the target root explicitly:

load_memory({
project_root: "/path/to/project",
task: "<task summary>",
mode: "coding"
})

The CLI remains the supported path for setup, maintenance, recovery, export, inspection, registry management, local viewing, suggestion, and audit operations.

CLI-only capabilities are not MCP parity gaps. Do not add or ask for MCP tools solely to mirror these CLI commands. In particular, do not add aictx view to MCP. Local viewing is a browser inspection surface, not a routine MCP memory operation.