Ragex. CLI. EditorConfig
(Ragex v0.17.3)
View Source
Editor configuration generator for AI code editors.
Generates the correct MCP configuration file for each supported editor,
pointing to the ragex-mcp binary. Respects existing config files by
merging rather than overwriting.
Supported Editors
| Editor | Config Path | Format |
|---|---|---|
| Claude Code | .mcp.json | JSON |
| Cursor | .cursor/mcp.json | JSON |
| VS Code | .vscode/settings.json | JSON merge |
| Zed | .zed/settings.json | JSON merge |
| Gemini | .gemini/settings.json | JSON |
| NeoVim/LunarVim | .nvim-mcp.json | JSON |
| OpenCode | .opencode.json | JSON |
| Warp | (uses Warp's native MCP) | -- |
Summary
Functions
Returns info for all supported editors.
Detect which editors have config files present in the project directory.
Returns a list of editor keys (atoms) for selection menus.
Generate and write the MCP config for a specific editor.
Generate configs for all detected editors in the project.
Functions
@spec all_editors() :: map()
Returns info for all supported editors.
Detect which editors have config files present in the project directory.
Returns a list of {editor_key, editor_info} tuples.
Returns a list of editor keys (atoms) for selection menus.
Generate and write the MCP config for a specific editor.
Options
:force-- overwrite existing config (defaultfalse):ragex_bin-- path to ragex-mcp binary (auto-detected):project_dir-- project root (default: cwd)
Returns
{:ok, path} with the written config path, or {:error, reason}.
Generate configs for all detected editors in the project.
Returns a map of %{editor => {:ok, path} | {:error, reason}}.