Recommended: universal installer
Use the universal installer first. It can configure this target for hosted cloud or local Docker Convex and creates config backups before writing.Agent Instructions
Copy and paste this directly into Codex:Codex Desktop shares
~/.codex/config.toml with the Codex CLI, so this install also configures the desktop app. You can equivalently run --targets codex-desktop. Restart Codex Desktop (or open Settings → MCP → Reload) to pick up the server.--backend local in Bash or -Backend local in PowerShell. See Local-First Setup.
Codex can connect to Memory Crystal so it remembers project facts, rules, and past work instead of acting like every run is the first run.
What this means in practice
Codex CLI uses the current MCP path. The repo supports both:- a Codex-specific installer
- direct MCP registration
How it actually works
Important repo surfaces:apps/web/public/install-codex-mcp.shpackages/mcp-server/README.md.env.example
- detecting the Codex CLI
- obtaining or validating the API key
- wiring Codex config for the Memory Crystal MCP endpoint
Universal installer path
The recommended first install path is the universal installer:Commands / examples
Installer:Tool-use guidance
For repo work, call recall-style tools withrepoSlug or projectId when possible. Use crystal_preflight before config writes, deletes, external sends, and deploys. Use crystal_query_knowledge_base for named manuals, voice guides, transcripts, runbooks, or imported repo docs, and use crystal_search_messages only for exact prior wording.
Uninstall
Common mistakes
- mixing the older deprecated package instructions into the current Codex flow
- assuming Codex config and Claude config are identical
- documenting hosted and local MCP URLs as if they were interchangeable without context
- omitting repo scope and letting unrelated project memories consume context
Source of truth
Primary files behind this page:apps/web/public/install-codex-mcp.shpackages/mcp-server/README.md.env.example