This guide walks you from zero to a liveDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/davide-desio-eleva/kirograph/llms.txt
Use this file to discover all available pages before exploring further.
kirograph_context call inside Kiro IDE. You will install the CLI, run the interactive installer to wire up Kiro, index your project, and verify that the MCP tool is available. The whole flow takes about five minutes for a medium-sized codebase.
Install KiroGraph
KiroGraph is not yet published to the npm registry. Install it from source with the four-command flow below.After the global install, both
kirograph and the short alias kg are available on your PATH. Run kirograph --version to confirm.Run the Installer
cd into the project you want to index, then run the installer. It auto-detects Kiro and any other MCP-capable tools that are present and walks you through an interactive configuration menu.- Which Kiro IDE version you are running (
0.xbeta or1.xstable) - Whether to enable embeddings and which semantic engine to use
- Which opt-in modules to activate (Memory, Docs, Architecture, Security, etc.)
- Any folders to exclude from indexing (e.g.
src/generated,vendor)
| File | Purpose |
|---|---|
.kiro/settings/mcp.json | Registers the KiroGraph MCP server with Kiro IDE and CLI |
.kiro/hooks/*.json (v1.x) or .kiro/hooks/*.kiro.hook (v0.x beta) | Auto-sync hooks — keeps the index fresh after each agent session |
.kiro/steering/kirograph.md | Teaches Kiro how and when to use the graph tools |
.kiro/agents/kirograph.json | Custom agent config for Kiro CLI |
.kirograph/config.json | Your KiroGraph configuration (edit any time) |
Index Your Project
If you skipped the optional index step inside the installer, run it now:KiroGraph scans every file that matches your configuration’s For incremental updates after your first full index, use
include/exclude patterns, parses each one with tree-sitter into an AST, extracts symbols and relationships, and writes the result to a local SQLite database. You will see a live progress indicator as files are processed.sync instead — it re-processes only files whose content has changed:Make Your First Query
You can query the graph directly from the CLI before opening Kiro. Two commands are useful for a first look:
kirograph context returns the symbols most relevant to the task description, their callers and callees, and the estimated impact radius. kirograph query performs a direct symbol search — useful for looking up a specific function, class, or route.Open Kiro and Test
Restart Kiro IDE so it picks up the new MCP server entry in Kiro will call
.kiro/settings/mcp.json. Once restarted, open the agent panel and try a prompt that would normally require many file reads:kirograph_context or kirograph_impact instead of reading files one by one. You can watch the MCP tool calls in Kiro’s tool-call log to confirm the graph is being used.What Happens on Index
Thekirograph index command creates a .kirograph/ directory at the root of your project. Here is what lives inside it:
| Path | Contents |
|---|---|
.kirograph/config.json | Your KiroGraph configuration |
.kirograph/kirograph.db | The main SQLite knowledge graph (nodes, edges, FTS index) |
.kirograph/vec.db | Vector store — only present when semanticEngine: "sqlite-vec" |
.kirograph/orama.json | Orama hybrid index — only when semanticEngine: "orama" |
.kirograph/pglite/ | PGlite vector store — only when semanticEngine: "pglite" |
.kirograph/lancedb/ | LanceDB store — only when semanticEngine: "lancedb" |
.kirograph/snapshots/ | Architecture snapshots saved with kirograph snapshot |
.kirograph/export/ | Browser dashboard output from kirograph export |
kirograph.db) contains everything needed for structural graph traversal — symbol nodes, call/import/type edges, and full-text search indexes — with no external service required.
