From ocaml-dev
OCaml LSP server provides code intelligence for OCaml and Reason — diagnostics, go-to-definition, find references, and type information for .ml, .re, .mli, and related files.
Ships in ocaml-dev. Installing the plugin adds it to Claude Code.
This LSP server requires ocamllsp to be installed on your system. Make sure it's available in your PATH before enabling.
Copy this JSON into your .lsp.json to enable this server
Add to your .lsp.json or plugin.json:
{
"lspServers": {
"ocamllsp": {
"command": "ocamllsp",
"extensionToLanguage": {
".ml": "ocaml",
".re": "reason",
".mli": "ocaml.interface",
".mll": "ocaml.ocamllex",
".mlx": "ocaml.mlx",
".mly": "ocaml.menhir",
".rei": "reason",
".eliom": "ocaml",
".eliomi": "ocaml.interface"
}
}
}
}File extensions mapped to language identifiers
Server configuration and transport parameters
ocamllspstdioInitialization options and workspace settings
7-day visitors to each server page
npx claudepluginhub avsm/ocaml-claude-marketplace --plugin ocaml-dev