Lexa

Lexa can run as an MCP server over stdio. Agents call the same project graph through tool requests, and Lexa returns one structured text content block by default to avoid duplicated machine-readable envelopes.

lexa mcp /path/to/project
{
  "mcpServers": {
    "lexa": {
      "command": "lexa",
      "args": ["mcp", "/path/to/project"]
    }
  }
}

Use the default text content as the agent-facing contract. Do not ask Lexa for alternate output modes or duplicated structured content.

ToolUse
filesStart with an indexed project overview.
listList one directory.
globMatch exact path globs.
path_searchFind approximate paths.
outlineRead imports and symbols before reading a file.
symbol_defsFind exact symbol definitions.
symbol_searchFind approximate symbol names.
word_refsFind exact identifier references.
text_searchSearch indexed text by literal or regex.
callersFind non-definition call sites.
briefCompose task-focused context.
trace_depsTrace import relationships.
readRead content with optional ranges and hashes.
patchApply line edits with hash checks.
createCreate a file safely.
changesShow session-local file changes.
recentShow recently modified files.
statusShow index statistics.
reindexRefresh the in-memory index.
clear_indexDrop the index and graph file.
auditRun a static architecture audit.
pipelineChain Lexa operations into one query.