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.
| Tool | Use |
|---|---|
files | Start with an indexed project overview. |
list | List one directory. |
glob | Match exact path globs. |
path_search | Find approximate paths. |
outline | Read imports and symbols before reading a file. |
symbol_defs | Find exact symbol definitions. |
symbol_search | Find approximate symbol names. |
word_refs | Find exact identifier references. |
text_search | Search indexed text by literal or regex. |
callers | Find non-definition call sites. |
brief | Compose task-focused context. |
trace_deps | Trace import relationships. |
read | Read content with optional ranges and hashes. |
patch | Apply line edits with hash checks. |
create | Create a file safely. |
changes | Show session-local file changes. |
recent | Show recently modified files. |
status | Show index statistics. |
reindex | Refresh the in-memory index. |
clear_index | Drop the index and graph file. |
audit | Run a static architecture audit. |
pipeline | Chain Lexa operations into one query. |
