Axon · Configuration & integration
Connect a coding agent with MCP
Launch axon --corpus <repository> mcp from a trusted MCP client. The stdio JSON-RPC 2.0 server supports initialization, ping, tool listing and tool calls, not an HTTP listener.
Run it with least-privilege filesystem access. get_file accepts absolute paths and does not enforce corpus containment; the corpus option is not a security sandbox. Queries may create a missing default index, and rebuild_index writes it. Do not expose the process as an unauthenticated network service.
Each of these 15 tool suffixes has both an axon_ and legacy lux_ name:
- status
- overlay_status
- search
- anchor_search
- anchors
- trace
- delta
- deps
- deps_impact
- feature_path
- siblings
- operational
- spec_derivation_evidence
- rebuild_index
- get_file
For trace, advertised direction values are outgoing/incoming/both/downstream/upstream and confidence values are proven/artifact-backed/framework-inferred/heuristic. Anchor granularity advertises node/file; evidence kind advertises route/handler/job/listener/command. Schemas describe numeric budgets as numbers; supply nonnegative integers because dispatch reads unsigned integer values. Search and anchor limits clamp to 1–200 (unlike the CLI search limit).
The dispatcher also accepts unprefixed names and compatibility suffixes index_status, doctor and spec_evidence, each unprefixed or with axon_/lux_. That is 18 suffixes × three forms = 54 accepted names, of which only 30 are advertised. These are not extra CLI commands. Dispatcher-only argument compatibility (leftmost present key takes precedence):
| Tool | Accepted keys beyond the advertised schema |
|---|---|
anchor_search, anchors |
include_tests / includeTests. Provider/endpoint/model CLI flags are not tool arguments; server defaults and environment govern provider selection. |
trace |
symbol / node; depth / max_depth. |
delta |
depth / max_depth. |
deps_impact |
file_path / module. |
feature_path |
surface / target / question. |
siblings |
target / symbol / file_path. Omission means sibling-repository status. |
spec_derivation_evidence, spec_evidence |
target / question; optional base is dispatched even though it is not advertised. Same target-versus-summary behavior as CLI evidence. |
Ask tools/list for advertised schemas rather than assuming CLI flags map directly to tools. The dispatcher does not enforce every required field/type/enum from that schema: absent/mistyped values often use defaults or empty strings. Send schema-conforming arguments; a successful response does not certify validation. MCP has no tools for anchor embedding preparation, dependency clusters, overlay ownership/refresh, pack management, or CLI full/incremental/LSP flags. rebuild_index follows the ordinary warm-index build policy despite its name.
Tool results contain one text block (serialized JSON for structured results, raw text for get_file); failures set isError: true. Trace not-found/ambiguity and anchor refusal set it. Unresolved deps_impact sets it even though CLI deps-impact exits 0; unresolved feature_path and evidence packets can return without it, unlike CLI feature-path's exit 1. Inspect payload resolution independently. Database-open failures include database path and message. Unknown tools are tool errors (database opening may fail first); unknown methods are JSON-RPC error -32601.
Transport accepts newline-delimited JSON or Content-Length framed messages and replies in the corresponding format. Notifications produce no response; malformed JSON is ignored rather than guaranteed a parse-error response. initialize echoes the client's protocol version (default 2024-11-05) and advertises tools only; this is not support for arbitrary protocol-version features. No resources/prompts, remote daemon, authentication or corpus-containment control is provided. Relative get_file paths are joined to the corpus without containment checks, so parent traversal as well as absolute paths requires trusted filesystem access.