Library for writing LSP?

Is there a library that allows me to implement the Language Server Protocol for my own language written in OCaml, not for OCaml itself. I saw ocaml-lsp, but I don’t really understand the difference between the sub projects and don’t think its what I’m looking for.


If you look into ocaml-lsp, you see two folders: lsp and ocaml-lsp-server. The former is a library for writing LSPs, which you can use to write a language server for your language. If you are on an opam workflow, you can pin the library, I think, by

opam pin add lsp