Semantic Odin tools for Codex, backed by ols, odin, and odinfmt.
This plugin exposes a local MCP server that gives Codex token-efficient Odin code intelligence without relying on text search alone. It starts ols per project root for semantic LSP queries and shells out to Odin command-line tools for checks, tests, builds, vet diagnostics, and formatting previews.
olshover, definitions, references, document symbols, workspace symbols, diagnostics, and code actions.odin checkwith JSON errors.- Vet-style Odin checks.
odin testandodin build.- Non-mutating
odinfmtpreview. - Lightweight
--selftestfixture for smoke testing the MCP server.
- Python 3.11 or newer.
odinonPATH.olsonPATH.odinfmtonPATH.
Place this directory at:
%USERPROFILE%\.codex\plugins\odin-native
The plugin metadata is in .codex-plugin/plugin.json, and the MCP server command is in .mcp.json.
Run from the plugin root:
python scripts\odin_native_mcp.py --selftestExpected result: JSON output with "ok": true.
- LSP positions use 1-based
lineand 1-basedcharacterinputs. - Call
odin_lsp_diagnosticsbeforeodin_lsp_code_actionswhen asking for quick fixes on a problematic range. - Use
odin_format_previewfor formatting checks; it does not rewrite files.
MIT.