MCP Tools

All 18 tools are auto-approved and available to Kiro once installed. The MCP server is started by Kiro automatically when needed.

kirograph_context

Comprehensive context for a task or feature, often sufficient alone without additional tool calls. Uses vector search on every call.

ParameterTypeDefaultDescription
taskstringrequiredTask, bug, or feature description
maxNodesnumber20Max symbols to include
includeCodebooleantrueInclude code snippets
projectPathstringcwdProject root path

kirograph_callers

Find all functions/methods that call a specific symbol. BFS traversal of incoming call edges.

ParameterTypeDefaultDescription
symbolstringrequiredSymbol name
limitnumber20Max results (1–100)
projectPathstringcwdProject root path

kirograph_callees

Find all functions/methods that a specific symbol calls. BFS traversal of outgoing call edges.

ParameterTypeDefaultDescription
symbolstringrequiredSymbol name
limitnumber20Max results (1–100)
projectPathstringcwdProject root path

kirograph_impact

Analyze what code would be affected by changing a symbol. Use before making changes. BFS traversal of all incoming edges.

ParameterTypeDefaultDescription
symbolstringrequiredSymbol name
depthnumber2Traversal depth
projectPathstringcwdProject root path

kirograph_node

Get details about a specific symbol: kind, name, qualified name, file location, signature, docstring, and optionally source code.

ParameterTypeDefaultDescription
symbolstringrequiredSymbol name
includeCodebooleanfalseInclude source code
projectPathstringcwdProject root path

kirograph_type_hierarchy

Traverse the type hierarchy of a class or interface. Recursive traversal of extends/implements edges.

ParameterTypeDefaultDescription
symbolstringrequiredClass or interface name
directionstringbothup (base types), down (derived types), both
projectPathstringcwdProject root path

kirograph_path

Find the shortest path between two symbols in the dependency graph. Undirected BFS across all edge types.

ParameterTypeDefaultDescription
fromstringrequiredSource symbol name
tostringrequiredTarget symbol name
projectPathstringcwdProject root path

kirograph_dead_code

Find symbols with no incoming references (potential dead code). Only unexported symbols are considered.

ParameterTypeDefaultDescription
limitnumber50Max results (1–100)
projectPathstringcwdProject root path

kirograph_circular_deps

Find circular import dependencies using Tarjan's strongly connected components algorithm over import edges.

ParameterTypeDefaultDescription
projectPathstringcwdProject root path

kirograph_files

List the indexed file structure with filtering and format options.

ParameterTypeDefaultDescription
filterPathstringFilter by directory prefix (e.g., src/)
patternstringFilter by glob pattern (e.g., **/*.ts)
maxDepthnumberLimit tree depth
formatstringtreetree, flat, or grouped
includeMetadatabooleantrueInclude language and symbol counts
projectPathstringcwdProject root path

kirograph_status

Check index health and statistics: files indexed, symbol count, edge count, breakdown by kind and language, frameworks detected, database size, semantic search status, and sync state.

ParameterTypeDefaultDescription
projectPathstringcwdProject root path

kirograph_architecture requires enableArchitecture

Get the full architecture overview: detected packages, layers, and the dependency graph between them.

ParameterTypeDefaultDescription
projectPathstringcwdProject root path

kirograph_coupling requires enableArchitecture

Get coupling metrics for all packages or a specific one: Ca (afferent), Ce (efferent), instability (Ce / (Ca + Ce)).

ParameterTypeDefaultDescription
packageIdstringPackage ID (e.g. pkg:npm:src/auth). Omit for all packages.
projectPathstringcwdProject root path

kirograph_package requires enableArchitecture

Inspect the files and dependencies of a specific package.

ParameterTypeDefaultDescription
packageIdstringrequiredPackage ID (e.g. pkg:npm:src/auth)
projectPathstringcwdProject root path

kirograph_hotspots

Find the most-connected symbols by total edge degree (incoming + outgoing). Excludes structural contains edges.

ParameterTypeDefaultDescription
limitnumber20Max results (1–100)
projectPathstringcwdProject root path

kirograph_surprising

Find non-obvious cross-file connections scored by path distance × edge-kind weight. The most unexpected coupling in your codebase.

ParameterTypeDefaultDescription
limitnumber20Max results (1–100)
projectPathstringcwdProject root path

kirograph_diff

Compare the current graph state against a saved snapshot. Shows added/removed symbols and edges.

ParameterTypeDefaultDescription
snapshotstringlatestSnapshot label. Omit to use the most recent saved snapshot.
projectPathstringcwdProject root path