Hex Graph

v0.21.1
io.github.levnikolaevich/hex-graph-mcp Checked 2 hours ago Published 5 months ago

Deterministic 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.

ParameterTypeDescription
path *stringProject root directory
languagesarrayFilter 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.

ParameterTypeDescription
path *stringProject root used for language detection and provider planning
include_optional_scipbooleanInclude optional SCIP exporter checks alongside precise providers.
modestring`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.

ParameterTypeDescription
output_path *stringDestination `.scip` path. Relative paths resolve from the project root.
path *stringIndexed project root
environment_pathstringPython only: optional path to a scip-python environment JSON file.
include_external_symbolsbooleanInclude lightweight metadata for declaration-file symbols when available.
languagestringSCIP export backend. `typescript` uses the native compiler lane; `python`, `php`, and `csharp` orchestrate official SCIP indexers.
project_namestringPython only: explicit SCIP project name. Defaults to pyproject/setup metadata or the project folder name.
project_namespacestringPython only: optional namespace prefix for generated symbols.
target_onlystringPython only: optional subdirectory to index instead of the full project.
working_directorystringC# 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.

ParameterTypeDescription
artifact_path *stringPath to a `.scip` artifact. Relative paths resolve from the project root.
path *stringIndexed project root
replace_existingbooleanClear 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.

ParameterTypeDescription
path *stringIndexed project root or a file/directory inside the indexed project
query *stringSymbol name or partial name
kindstringOptional kind filter
limitnumberMax 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.

ParameterTypeDescription
path *stringIndexed project root or a file/directory inside the indexed project
expandarrayOptional bounded expansion sections to materialize. Heavy tools return counts/previews by default and expand only the requested sections.
expand_limitnumberMax rows to materialize for expanded sections (default: 10, capped at 25)
filestringFile path used with name to disambiguate symbol
include_evidencebooleanInclude supporting evidence in expanded rows. Defaults to false to keep payloads compact.
min_confidencestringFilter out facts below this confidence tier
namestringSymbol name (must be paired with file)
qualified_namestringCanonical qualified symbol name
symbol_idnumberCanonical symbol id
verbositystringResponse budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail.
workspace_qualified_namestringCanonical 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.

ParameterTypeDescription
path *stringIndexed project root or a file/directory inside the indexed project
depthnumberMax traversal depth (default: 3)
directionstring
expandarrayOptional bounded expansion sections to materialize. Heavy tools return counts/previews by default and expand only the requested sections.
expand_limitnumberMax rows to materialize for expanded sections (default: 10, capped at 25)
filestringFile path used with name to disambiguate symbol
include_evidencebooleanInclude supporting evidence in expanded rows. Defaults to false to keep payloads compact.
limitnumberMax paths (default: 10)
min_confidencestringFilter out facts below this confidence tier
namestringSymbol name (must be paired with file)
path_kindstringTraversal edge set. `mixed` includes framework overlay hops when present.
qualified_namestringCanonical qualified symbol name
symbol_idnumberCanonical symbol id
to_filestringOptional target file used with to_name
to_namestringOptional target symbol name (must be paired with to_file)
to_qualified_namestringOptional target qualified symbol name
to_symbol_idnumberOptional target symbol id
to_workspace_qualified_namestringOptional target workspace-qualified symbol name
verbositystringResponse budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail.
workspace_qualified_namestringCanonical workspace-qualified symbol name

find_references Find References

Find semantic usages of a canonical symbol identity, including framework overlay wiring when present.

ParameterTypeDescription
path *stringIndexed project root or a file/directory inside the indexed project
expandarrayOptional bounded expansion sections to materialize. Heavy tools return counts/previews by default and expand only the requested sections.
expand_limitnumberMax rows to materialize for expanded sections (default: 10, capped at 25)
filestringFile path used with name to disambiguate symbol
include_evidencebooleanInclude supporting evidence in expanded rows. Defaults to false to keep payloads compact.
kindstringOptional edge-kind filter. Includes semantic and framework kinds such as `route_to_handler`, `injects`, `registers`, `renders`, and `middleware_for`.
limitnumberMax references (default: 10)
min_confidencestringFilter out facts below this confidence tier
namestringSymbol name (must be paired with file)
qualified_namestringCanonical qualified symbol name
symbol_idnumberCanonical symbol id
verbositystringResponse budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail.
workspace_qualified_namestringCanonical workspace-qualified symbol name

find_implementations Find Implementations

Find implementations and overrides for a canonical symbol identity.

ParameterTypeDescription
path *stringIndexed project root or a file/directory inside the indexed project
expandarrayOptional bounded expansion sections to materialize. Heavy tools return counts/previews by default and expand only the requested sections.
expand_limitnumberMax rows to materialize for expanded sections (default: 10, capped at 25)
filestringFile path used with name to disambiguate symbol
include_evidencebooleanInclude supporting evidence in expanded rows. Defaults to false to keep payloads compact.
limitnumberMax implementation rows to return (default: 10)
namestringSymbol name (must be paired with file)
qualified_namestringCanonical qualified symbol name
symbol_idnumberCanonical symbol id
verbositystringResponse budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail.
workspace_qualified_namestringCanonical workspace-qualified symbol name

trace_dataflow Trace Dataflow

Find deterministic source-to-sink dataflow paths between anchored flow points.

ParameterTypeDescription
path *stringIndexed project root or a file/directory inside the indexed project
source *object
expandarrayOptional bounded expansion sections to materialize. Heavy tools return counts/previews by default and expand only the requested sections.
expand_limitnumberMax rows to materialize for expanded sections (default: 10, capped at 25)
flow_kindstring
include_evidencebooleanInclude supporting evidence in expanded rows. Defaults to false to keep payloads compact.
limitnumberMax flow paths (default: 10)
max_hopsnumberMax flow propagation hops (default: 4)
min_confidencestringFilter out facts below this confidence tier
sinkobject
verbositystringResponse 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.

ParameterTypeDescription
base_ref *stringGit baseline ref used to compute the changed-symbol set
path *stringIndexed project root
head_refstringOptional git head ref. If omitted, the current checkout/worktree is compared to `base_ref`.
include_pathsbooleanInclude reverse mixed graph paths for the returned symbols. Default is false to keep the snapshot compact.
max_pathsnumberMaximum supporting paths per symbol when `include_paths` is true (default: 3)
max_symbolsnumberMaximum 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.

ParameterTypeDescription
file *stringFile path inside the indexed project. Absolute paths are accepted when they stay inside the project root.
path *stringIndexed project root
line_endnumber1-based ending line of the edited region
line_startnumber1-based starting line of the edited region
verbositystringResponse 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.

ParameterTypeDescription
path *stringIndexed project root
filestringOptional route or handler file path inside the indexed project.
limitnumberMax routes and process rows to surface (default: 10, capped at 25)
namestringOptional handler symbol name, paired with symbol_file
qualified_namestringOptional handler qualified symbol name
routestringOptional route path or method+path filter, for example `/api/users` or `GET /api/users`.
symbol_filestringFile path used with name to disambiguate the handler symbol
symbol_idnumberOptional handler symbol id
verbositystringResponse budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail.
workspace_qualified_namestringOptional handler workspace-qualified symbol name

diagnose_graph Diagnose Graph

Check indexed graph health: files, symbols, providers, framework routes, API-shape facts, and process facts.

ParameterTypeDescription
path *stringIndexed project root

analyze_architecture Analyze Architecture

Return a high-level architecture view with modules, dependency boundaries, cycles, coupling, framework surfaces, and top risks.

ParameterTypeDescription
path *stringIndexed project root
limitnumberMax module, cycle, coupling, and hotspot rows to surface (default: 5)
scopestringOptional file path prefix filter
verbositystringResponse 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.

ParameterTypeDescription
path *stringIndexed project root
clone_member_limitnumberMax clone members per group to surface (default: 3, or 10 with verbosity=full, capped at 25)
limitnumberMax unused, hotspot, and clone group rows to surface (default: 5, capped at 25)
scopestringOptional file path prefix filter
show_suppressedbooleanInclude suppressed unused exports in the visible result
verbositystringResponse budget. `minimal` returns the shortest actionable answer, `compact` keeps key reasoning visible, and `full` includes supporting detail.