Hex Graph
v0.21.1Deterministic layered code graph MCP server with framework overlays and SCIP interop.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
index_project Index Project
Scan and index a project into the graph kernel, honoring Git excludes by default and including precise/framework overlays when available.
| Parameter | Type | Description |
|---|---|---|
path * | string | Project root directory |
languages | array | Filter indexed languages |
install_graph_providers Install Graph Providers
Detect graph-specific providers and optional SCIP exporters for the current project, then return exact remediation steps or install them on demand. This never installs runtimes or project dependencies.
| Parameter | Type | Description |
|---|---|---|
path * | string | Project root used for language detection and provider planning |
include_optional_scip | boolean | Include optional SCIP exporter checks alongside precise providers. |
mode | string | `check` reports the plan and remediation steps only. `install` runs the provider install commands when they are available for the current platform. |
export_scip Export SCIP
Export indexed symbol facts to a binary SCIP artifact. TypeScript/JavaScript uses the native compiler lane; Python, PHP, and C# use their upstream SCIP indexers.
| Parameter | Type | Description |
|---|---|---|
output_path * | string | Destination `.scip` path. Relative paths resolve from the project root. |
path * | string | Indexed project root |
environment_path | string | Python only: optional path to a scip-python environment JSON file. |
include_external_symbols | boolean | Include lightweight metadata for declaration-file symbols when available. |
language | string | SCIP export backend. `typescript` uses the native compiler lane; `python`, `php`, and `csharp` orchestrate official SCIP indexers. |
project_name | string | Python only: explicit SCIP project name. Defaults to pyproject/setup metadata or the project folder name. |
project_namespace | string | Python only: optional namespace prefix for generated symbols. |
target_only | string | Python only: optional subdirectory to index instead of the full project. |
working_directory | string | C# only: optional working directory passed through to scip-dotnet. |
import_scip_overlay Import SCIP Overlay
Import a binary SCIP artifact into provenance-tagged overlay facts without replacing the native graph. The import lane is derived from the artifact documents.
| Parameter | Type | Description |
|---|---|---|
artifact_path * | string | Path to a `.scip` artifact. Relative paths resolve from the project root. |
path * | string | Indexed project root |
replace_existing | boolean | Clear prior `scip_import` overlay edges before importing this artifact. |
find_symbols Find Symbols
Find candidate symbols by name or partial name before selecting a canonical identity for deeper graph analysis.
| Parameter | Type | Description |
|---|---|---|
path * | string | Indexed project root or a file/directory inside the indexed project |
query * | string | Symbol name or partial name |
kind | string | Optional kind filter |
limit | number | Max detailed candidate symbols to return (default: 8) |
inspect_symbol Inspect Symbol
Return a symbol-centric briefing: canonical resolution, local context, incoming and outgoing relations, reference summary, and implementation summary.
| Parameter | Type | Description |
|---|---|---|
path * | string | Indexed project root or a file/directory inside the indexed project |
expand | array | Optional bounded expansion sections to materialize. Heavy tools return counts/previews by default and expand only the requested sections. |
expand_limit | number | Max rows to materialize for expanded sections (default: 10, capped at 25) |
file | string | File path used with name to disambiguate symbol |
include_evidence | boolean | Include supporting evidence in expanded rows. Defaults to false to keep payloads compact. |
min_confidence | string | Filter out facts below this confidence tier |
name | string | Symbol name (must be paired with file) |
qualified_name | string | Canonical qualified symbol name |
symbol_id | number | Canonical symbol id |
verbosity | string | Response budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail. |
workspace_qualified_name | string | Canonical workspace-qualified symbol name |
trace_paths Trace Paths
Trace graph paths from a canonical symbol through calls, references, imports, type, flow, or mixed edges. Mixed traces can include framework overlay hops.
| Parameter | Type | Description |
|---|---|---|
path * | string | Indexed project root or a file/directory inside the indexed project |
depth | number | Max traversal depth (default: 3) |
direction | string | |
expand | array | Optional bounded expansion sections to materialize. Heavy tools return counts/previews by default and expand only the requested sections. |
expand_limit | number | Max rows to materialize for expanded sections (default: 10, capped at 25) |
file | string | File path used with name to disambiguate symbol |
include_evidence | boolean | Include supporting evidence in expanded rows. Defaults to false to keep payloads compact. |
limit | number | Max paths (default: 10) |
min_confidence | string | Filter out facts below this confidence tier |
name | string | Symbol name (must be paired with file) |
path_kind | string | Traversal edge set. `mixed` includes framework overlay hops when present. |
qualified_name | string | Canonical qualified symbol name |
symbol_id | number | Canonical symbol id |
to_file | string | Optional target file used with to_name |
to_name | string | Optional target symbol name (must be paired with to_file) |
to_qualified_name | string | Optional target qualified symbol name |
to_symbol_id | number | Optional target symbol id |
to_workspace_qualified_name | string | Optional target workspace-qualified symbol name |
verbosity | string | Response budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail. |
workspace_qualified_name | string | Canonical workspace-qualified symbol name |
find_references Find References
Find semantic usages of a canonical symbol identity, including framework overlay wiring when present.
| Parameter | Type | Description |
|---|---|---|
path * | string | Indexed project root or a file/directory inside the indexed project |
expand | array | Optional bounded expansion sections to materialize. Heavy tools return counts/previews by default and expand only the requested sections. |
expand_limit | number | Max rows to materialize for expanded sections (default: 10, capped at 25) |
file | string | File path used with name to disambiguate symbol |
include_evidence | boolean | Include supporting evidence in expanded rows. Defaults to false to keep payloads compact. |
kind | string | Optional edge-kind filter. Includes semantic and framework kinds such as `route_to_handler`, `injects`, `registers`, `renders`, and `middleware_for`. |
limit | number | Max references (default: 10) |
min_confidence | string | Filter out facts below this confidence tier |
name | string | Symbol name (must be paired with file) |
qualified_name | string | Canonical qualified symbol name |
symbol_id | number | Canonical symbol id |
verbosity | string | Response budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail. |
workspace_qualified_name | string | Canonical workspace-qualified symbol name |
find_implementations Find Implementations
Find implementations and overrides for a canonical symbol identity.
| Parameter | Type | Description |
|---|---|---|
path * | string | Indexed project root or a file/directory inside the indexed project |
expand | array | Optional bounded expansion sections to materialize. Heavy tools return counts/previews by default and expand only the requested sections. |
expand_limit | number | Max rows to materialize for expanded sections (default: 10, capped at 25) |
file | string | File path used with name to disambiguate symbol |
include_evidence | boolean | Include supporting evidence in expanded rows. Defaults to false to keep payloads compact. |
limit | number | Max implementation rows to return (default: 10) |
name | string | Symbol name (must be paired with file) |
qualified_name | string | Canonical qualified symbol name |
symbol_id | number | Canonical symbol id |
verbosity | string | Response budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail. |
workspace_qualified_name | string | Canonical workspace-qualified symbol name |
trace_dataflow Trace Dataflow
Find deterministic source-to-sink dataflow paths between anchored flow points.
| Parameter | Type | Description |
|---|---|---|
path * | string | Indexed project root or a file/directory inside the indexed project |
source * | object | |
expand | array | Optional bounded expansion sections to materialize. Heavy tools return counts/previews by default and expand only the requested sections. |
expand_limit | number | Max rows to materialize for expanded sections (default: 10, capped at 25) |
flow_kind | string | |
include_evidence | boolean | Include supporting evidence in expanded rows. Defaults to false to keep payloads compact. |
limit | number | Max flow paths (default: 10) |
max_hops | number | Max flow propagation hops (default: 4) |
min_confidence | string | Filter out facts below this confidence tier |
sink | object | |
verbosity | string | Response budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail. |
analyze_changes Analyze Changes
Review a git diff, commit range, or worktree change set and return a compact semantic risk snapshot with changed symbols, deleted API warnings, and optional supporting paths.
| Parameter | Type | Description |
|---|---|---|
base_ref * | string | Git baseline ref used to compute the changed-symbol set |
path * | string | Indexed project root |
head_ref | string | Optional git head ref. If omitted, the current checkout/worktree is compared to `base_ref`. |
include_paths | boolean | Include reverse mixed graph paths for the returned symbols. Default is false to keep the snapshot compact. |
max_paths | number | Maximum supporting paths per symbol when `include_paths` is true (default: 3) |
max_symbols | number | Maximum changed symbols to return after risk ranking (default: 10) |
analyze_edit_region Analyze Edit Region
Inspect the semantic impact of editing a concrete file range: edited symbols, external callers, downstream flow, framework wiring, and duplicate/code-clone risk.
| Parameter | Type | Description |
|---|---|---|
file * | string | File path inside the indexed project. Absolute paths are accepted when they stay inside the project root. |
path * | string | Indexed project root |
line_end | number | 1-based ending line of the edited region |
line_start | number | 1-based starting line of the edited region |
verbosity | string | Response budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail. |
api_impact API Impact
Inspect indexed API routes, inferred response-shape keys, client consumers, middleware, and route-level process facts before changing a handler or contract.
| Parameter | Type | Description |
|---|---|---|
path * | string | Indexed project root |
file | string | Optional route or handler file path inside the indexed project. |
limit | number | Max routes and process rows to surface (default: 10, capped at 25) |
name | string | Optional handler symbol name, paired with symbol_file |
qualified_name | string | Optional handler qualified symbol name |
route | string | Optional route path or method+path filter, for example `/api/users` or `GET /api/users`. |
symbol_file | string | File path used with name to disambiguate the handler symbol |
symbol_id | number | Optional handler symbol id |
verbosity | string | Response budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail. |
workspace_qualified_name | string | Optional handler workspace-qualified symbol name |
diagnose_graph Diagnose Graph
Check indexed graph health: files, symbols, providers, framework routes, API-shape facts, and process facts.
| Parameter | Type | Description |
|---|---|---|
path * | string | Indexed project root |
analyze_architecture Analyze Architecture
Return a high-level architecture view with modules, dependency boundaries, cycles, coupling, framework surfaces, and top risks.
| Parameter | Type | Description |
|---|---|---|
path * | string | Indexed project root |
limit | number | Max module, cycle, coupling, and hotspot rows to surface (default: 5) |
scope | string | Optional file path prefix filter |
verbosity | string | Response budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail. |
audit_workspace Audit Workspace
Audit the indexed workspace for cleanup and maintainability issues: unused exports, hotspots, and clone groups with a single review-oriented result.
| Parameter | Type | Description |
|---|---|---|
path * | string | Indexed project root |
clone_member_limit | number | Max clone members per group to surface (default: 3, or 10 with verbosity=full, capped at 25) |
limit | number | Max unused, hotspot, and clone group rows to surface (default: 5, capped at 25) |
scope | string | Optional file path prefix filter |
show_suppressed | boolean | Include suppressed unused exports in the visible result |
verbosity | string | Response budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail. |