Expose a Docs API for Model Context Protocol servers #3024
dangdennis
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Hi @dangdennis Packages are queried with requests looking like this: https://docs-data.ocaml.org/live/p/fmt/0.10.0/status.json Let us know if you can use that and what you achieve. We'd love to provide support from MCP inside ocaml.org. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What’s the best way today to query for all the docs that ocaml.org generates? Is there an HTTP API available for this yet?
I’d like to build an MCP server for ocaml.org to facilitate more LLM use cases with OCaml. The model context protocol defines APIs for LLMs to query data that it may not yet have.
My use case is that I’d like an easy way to have Claude add all the generated odoc artifacts of any particular opam library (that has docs). This guarantees Claude will have an updated and deeper understanding of what’s available in the library.
Today I have to either hope that an LLM corpus cutoff date included the version of an opam library I need or have to manually copy/paste texts into the LLM input myself.
Beta Was this translation helpful? Give feedback.
All reactions