Skip to content

Docs · Reference

MCP tool reference

When Chomp is connected via MCP, your coding agent queries the exact same local map you see in your browser—replacing blind file-by-file grep loops with structural facts.

On this page

The core map-first loop: locate nodes first, inspect blast radius before editing, and verify the structural diff before committing.

  • chomp_get_nodes

    Find functions, routes, classes, components, and external calls by name, package, or file path. Always the agent's first lookup before reading files.

  • chomp_get_edges

    Trace incoming callers and outgoing calls for any node or package.

  • chomp_get_blast_radius

    Compute everything that depends on a function, class, route, or package: upstream callers, downstream calls, external calls, affected entry points, and input/output types.

  • chomp_get_diff

    Compare pending working-tree changes against the saved map (+ADDED, ~MOD, -REM) to verify the exact structural impact before committing.

Architecture health & hygiene

  • chomp_audit_health

    Surface blind spots across the map: ? N unresolved call groups, uncalled exports, and per-package health.

  • chomp_find_redundancies

    Detect pass-through wrapper middlemen and duplicated execution flows.

  • chomp_check_boundaries

    Inspect cross-package dependencies, layer direction, and circular package imports.

  • chomp_get_conventions

    List built-in framework conventions and the chomp.config.json reference. Works even before the first analysis.

Agent spotlight & map plugins

  • chomp_create_view

    Agent spotlight: highlight nodes or an ordered step-by-step path on Chomp Map and return a one-click link to that view.

  • chomp_local_shims

    Bridges plugin: connect unresolved dynamic calls, dependency injection, event buses, or OpenAPI specs onto the map.

  • chomp_enrich_nodes

    Summaries plugin: attach plain-English names and summaries to nodes, automatically flagged stale when code changes.

  • chomp_audit_design_system

    Design system plugin: audit tokens, contrast, hardcoded values, and duplicate UI components before writing UI code.

  • chomp_diff_design_system

    Design system plugin: compare current changes against the pinned design-system baseline.

Prompts that work well

Pre-edit impact check
Before editing Button, run chomp_get_blast_radius to see every caller and page affected.
Visual walkthrough in Chomp Map
Trace how our Stripe webhook reaches the database and spotlight the steps on Chomp Map.
Pre-commit verification
Run chomp_get_diff and chomp_audit_design_system to verify my changes didn't introduce hardcoded colors or duplicate components.