MCP tool definitions for AI agent access to documentation.
Three tools expose theDocsCollectionto agents:
search_docs(query)— keyword search across all pages
get_doc(slug)— retrieve a specific page by slug
list_docs(category?)— list pages, optionally filtered by category
All tools return raw markdown (not HTML) in thecontentfield —
more useful for LLM consumption.
These functions are factories that close over a_CollectionHolder
so they see the live collection (including autodoc pages merged at
startup).