Skip to content

MCP Tools

Lucerna exposes two tools over the Model Context Protocol that AI coding assistants can call directly.

ToolDescription
search_codebaseHybrid semantic + BM25 search with optional graph context expansion. Returns { results, warning? }.
get_neighborsGet the knowledge-graph neighborhood for a chunk ID from search results.
ParameterTypeDefaultDescription
querystringSearch query
includeGraphContextbooleantrueExpand results with related symbols from the knowledge graph
graphDepthnumber1Hops to follow when expanding graph context (0–3)
limitnumber10Maximum results to return
offsetnumber0Results to skip for pagination. Use with hasMore: true to fetch the next page.
includeContentbooleantrueInclude chunk source code in results. Set false for a lightweight metadata-only response.
languagestringRestrict to a language (e.g. "typescript")
typestringRestrict to a chunk type ("function", "class", etc.)
filePathstringFilter by file path (supports glob patterns)
ParameterTypeDefaultDescription
chunkIdstringThe chunk ID from a search_codebase result
depthnumber1How many hops to traverse (1–3)