Understand any codebase instantly. System intelligence for codebases, built for humans and AI.
TypeScript aiai-memoryclaude-codeclicode-analysiscode-mappingcode-memorycodebase-understandingcodexdeveloper-toolsllmopenclawpersistent-memoryprogram-analysissoftware-architecturesystem-intelligencesystem-mapping
docs(skill): describe the MCP tools and when to use them
KageBinaryd88e88f284e1
diff --git a/docs-site/src/content/docs/integrations/mcp.md b/docs-site/src/content/docs/integrations/mcp.mdindex bd04867c..eef83525 100644--- a/docs-site/src/content/docs/integrations/mcp.md+++ b/docs-site/src/content/docs/integrations/mcp.md@@ -43,22 +43,23 @@ codex mcp add ix-memory -- ix mcp## Tools-`ix mcp` advertises ten tools by default:+`ix mcp` advertises five tools by default, one per question the graph answers better than Grep and Read:| Tool | Answers ||---|---|-| `ix_health` | Is the backend reachable? |-| `ix_locate` | Where is this symbol defined? |-| `ix_search` | Which entities match this name? |-| `ix_text` | Where does this text appear? |-| `ix_explain` | What is this, and what does it touch? |-| `ix_overview` | A structural summary of a target |-| `ix_context` | A bounded context bundle for a target |-| `ix_impact` | What breaks if this changes? |+| `ix_context` | Where do I start on this target or issue (`issue=<text>`)? Ranked evidence with `path:lines` |+| `ix_search` | Which definition does this name mean? || `ix_neighbors` | Callers, callees, imports or importers, picked by `relation` |-| `ix_read` | The source of a symbol or line range |+| `ix_impact` | What does a change to this reach? |+| `ix_read` | The source of a symbol by name, or a line range |-`ix mcp --tools=all` advertises every tool instead.+The server also sends `instructions` when a client connects, saying when to use Ix instead of Grep and which tool to+reach for first. Clients that load tool schemas only on demand still show these to the model. Over MCP, hints and+`next` records are written as tool calls with arguments, such as `ix_neighbors symbol=X relation=callers`, not as CLI+flags.++`ix mcp --tools=all` advertises every tool instead, including `ix_health`, `ix_text`, `ix_locate`, `ix_overview`+and `ix_explain`, which were in the default set before.## Repair a moved launcherdiff --git a/skills/ix/SKILL.md b/skills/ix/SKILL.mdindex f92434cc..98f119b1 100644--- a/skills/ix/SKILL.md+++ b/skills/ix/SKILL.md@@ -35,7 +35,26 @@ the backend, and maps the repo. Re-run it per repo.| Understand a component | `ix explain` | `ix explain IngestionService` || Trace a flow | `ix trace` | `ix trace user_login_flow` || Blast radius of a change | `ix impact` | `ix impact verify_token` |-| Build / refresh the graph | `ix map` | `ix map .` |++## Over MCP++When the `ix-memory` MCP server is connected (`ix mcp`; register it with+`ix mcp install`), the same graph is five tools. Reach for them where Grep,+Glob and Read need several steps or cannot answer at all:++| Question | Tool |+|---|---|+| Where to start on an issue or task; what a file or symbol touches | `ix_context target=<name or path>` or `ix_context issue=<issue text>` |+| Who calls / is called by / imports / is imported by X, across files | `ix_neighbors symbol=X relation=callers\|callees\|imports\|imported_by` |+| What a change to X reaches, before editing it | `ix_impact target=X` |+| Which definition a name means when several share it | `ix_search term=X` |+| A definition's source by name, without knowing its file | `ix_read symbol=X` |++Not for a literal string or a line in a file you already have open: that is+Grep and Read. `ix_context` and `ix_impact` end in `next` records phrased as+tool calls; an ambiguous name answers with candidates and `pick=`/`path=` to+choose one. No health check is needed first. `ix mcp --tools=all` serves+every command as a tool.## How to spend calls@@ -44,9 +63,10 @@ the backend, and maps the repo. Re-run it per repo.2. **Read the ranges, not the files.** `ix read <symbol>`, or `path:120-180`, isone to three thousand tokens; the file around it is commonly thirty to sixtythousand — and every one of those is re-sent on every later step of the turn.-3. Drill down with primitives, reusing the exact entity IDs from earlier output:- `ix search`, `ix callers`, `ix callees`, `ix contains`, `ix imports`,- `ix imported-by`, `ix depends`.+3. Ask the graph what grep cannot: `ix callers`, `ix imported-by` and+ `ix impact` answer "who uses this" and "what does a change reach" across+ files. Drill further with `ix search`, `ix callees`, `ix contains`,+ `ix imports`, `ix depends`, reusing the exact entity IDs from earlier output.4. **Do not poll `ix status`.** A command that needs the backend says so itself,with a hint; a health check in front of every call is a wasted round trip.5. Format: `llm` is the one to read, and `IX_FORMAT=llm` (or@@ -58,12 +78,11 @@ the backend, and maps the repo. Re-run it per repo.1. Answer codebase questions from targeted `ix` commands, not from training data.2. Never guess a codebase fact that Ix holds.-3. On contradictory information, run `ix conflicts` and present the results.-4. Refresh with `ix map --silent` when the graph has gone stale — after a branch- switch, a pull, or a batch of edits. Editor plugins re-ingest edited files on- a debounce; this is not a per-edit step.-5. When Ix reports low confidence, say so, suggest re-running `ix map`, and never- present it as established fact.+3. The graph is kept current for you: bootstrap maps the repo and editor+ plugins re-ingest edited files. Run `ix map --silent` only when results are+ visibly stale, such as after a branch switch or a pull.+4. When Ix reports low confidence, say so, and never present it as established+ fact.## References — load on demanddiff --git a/skills/ix/references/flags.md b/skills/ix/references/flags.mdindex 970f83e1..e5016aea 100644--- a/skills/ix/references/flags.md+++ b/skills/ix/references/flags.md@@ -55,12 +55,17 @@ surfaces (#575).them at 3,000, for about 320 more tokens. `--max-chars` is still there fora caller who needs exact bytes and overrides it; passing both is refusedrather than silently ranked, because the output does not say which one won.-- **`ix mcp` advertises ten tools by default**, not twenty-six: `ix_health`,- `ix_locate`, `ix_search`, `ix_text`, `ix_impact`, `ix_overview`, `ix_read`,- `ix_neighbors`, `ix_explain` and `ix_context`. `ix_neighbors{relation}`+- **`ix mcp` advertises five tools by default**, not twenty-six:+ `ix_context`, `ix_search`, `ix_neighbors`, `ix_impact` and `ix_read`, one+ per question the graph answers better than Grep/Read. `ix_neighbors{relation}`replaces `ix_callers` / `ix_callees` / `ix_imports` / `ix_imported_by`, whose- schemas differed by one word. `--tools=all` advertises every tool, and the Pro- tools are offered under both whenever Pro is installed.+ schemas differed by one word; `ix_health`, `ix_text`, `ix_locate`,+ `ix_overview` and `ix_explain` moved to `--tools=all`, which advertises every+ tool. The Pro tools are offered under both whenever Pro is installed. The+ server also sends `instructions` in `initialize` (when to use Ix over Grep,+ and which tool first), which hosts that defer tool schemas still show the+ model. Over MCP, hints and `next` records are phrased as tool calls+ (`ix_neighbors symbol=X relation=callers`), never as CLI flags.- **`ix read <file>` stops at 400 lines.** The header then carries`truncated=true total_lines=<n> next=<path>:401-800`, so the next page is onecommand away. A line range you typed (`ix read a.ts:1-900`) is never capped,@@ -493,7 +498,7 @@ Subcommands: `install`, `doctor`.| Flag | Value | Default | Effect ||---|---|---|---|-| `--tools` | `core\|all` | `core` | Which catalog to advertise — ten tools, or every one |+| `--tools` | `core\|all` | `core` | Which catalog to advertise — five tools, or every one |#### `ix mcp install`