Логотип NEAT

NEAT

Організація
neat-technologies

Live code graph that fuses static analysis (tree-sitter) with OpenTelemetry runtime traces, queried over MCP so AI coding agents get real full-stack context.

Видавецьneat-technologies
Репозиторійneat
МоваTypeScript
Форки
1
Зірки
20
Доступні інструменти
0
Тип транспортуstdio, streamable-http
Категорії
ЛіцензіяApache-2.0
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    NEAT надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 20, форки: 1 — у пов’язаному репозиторії.

NEAT

CI License Release Website

NEAT solves the AI coding context problem. It constructs a live deterministic model of your codebase — static code and live runtime behavior fused into one graph — and hands your AI agents the grounded, full-stack context they need to query, code, debug, and write rules against it. This achieves the following:

  • Coding LLMs hallucinate less & are more accurate.
  • Rather than endlessly grepping files and guessing problems, NEAT provides time-travelling error logs along the model's nodes and edges so the LLM can infer exactly what's wrong.
  • Rules & Policies allow agents to write new features while adhering to rules set by previous features, other LLMs, or engineers. For example, only use postgres for services x and y, and mongoDB for services p and q (the possibilities are endless).

TL;DR The deterministic grounded truth of code for your agents.

NEAT is in active development. Capability ships as patch releases on the npx neat.is surface; see open issues for what's on deck.

One command

bash
npx neat.is

Run it from inside your project (or npx neat.is <path>). It discovers your services, extracts the static graph, wires in OpenTelemetry, starts the daemon, and opens the dashboard — no config. Then run your app and watch the live edges populate.

On Windows, use the neat command, not npx neat.is. npm generates a shim literally named neat.is, and Windows won't execute a .is file — it hands it to a file association instead. Install once and run the dotless binary: npm i -g neat.is, then neat (or neat <path>). Without a global install: npx -p neat.is neat. Every npx neat.is <verb> below becomes neat <verb> this way.

A more in-depth explanation:

At the center of NEAT is one live graph of your system, fused from two streams into a single model you can query many ways:

  • Static analysis — tree-sitter over your source (JavaScript, TypeScript, Python), package.json, and yaml / env config. Every source file becomes a node; imports between them become edges; the calls each file makes to databases, queues, and external hosts are extracted from the code.
  • Runtime telemetry — OpenTelemetry spans, attributed back to the exact file and line that made the call. NEAT wires the instrumentation for you, so the runtime edge lands on the same file node the static edge does.

Both streams land on the same nodes, so the graph holds what your code declares and what your system does side by side. From there, the useful questions fall out of one model: what would break if this node dies (blast radius), what broke first (root cause), which architectural rules a change would violate (policies), and where declared intent and observed reality part ways (divergence). Same graph, different traversals.

The file is the primary unit. A relationship in the graph runs from a file — src/services/billing.ts ──CALLS──▶ api.stripe.com — not from a vague service blob. Anchoring relationships to files and lines is what keeps every one of those answers sharp: a finding names this file, calling this target, rather than a service-shaped shrug.

Every edge carries a provenance tag so a consumer knows exactly how much weight a claim deserves:

  • EXTRACTED from source. No clock decay.
  • OBSERVED from a span. Carries lastObserved and callCount.
  • INFERRED by the trace stitcher where OTel coverage has gaps. Confidence is capped.
  • STALE because runtime stopped speaking. Preserves the original lastObserved.

The graph is exposed to AI agents through sixteen MCP tools. Ten read the graph — get_root_cause, get_blast_radius, get_dependencies, get_observed_dependencies, get_incident_history, get_divergences, get_graph_diff, get_recent_stale_edges, check_policies, semantic_search — and six (neat extend) let an agent close instrumentation gaps for libraries the bundled OTel set doesn't cover, driven by a versioned instrumentation registry.

CLI

The same neat binary handles every verb. After a global install (npm i -g neat.is) or via npx neat.is:

neat <path>              orchestrator: extract, instrument, spawn daemon, open dashboard
neat init <path>         extract only; patch-by-default, --apply to write
neat watch <path>        keep the graph live as files change
neat deploy              emit deployment artifacts for a hosted target
neat sync --to <url>     push the local EXTRACTED snapshot to a remote daemon (v0.3.9)
neat divergences         where your code and your production traffic disagree
neat root-cause <id>     walk inbound edges to find what broke first
neat blast-radius <id>   BFS outbound; what would break if this node dies
neat dependencies <id>   transitive outbound dependencies
neat incidents           recent error events
neat policies            current policy violations
neat search <query>      semantic match on node names and ids

Every query verb honors --json and --project <name>. Exit codes branch on success (0), server error (1), misuse (2), and daemon unreachable (3).

One example: what a divergence looks like

A divergence is one of the questions the graph answers, and the one that's hardest to get any other way — it needs both streams at once. Once your app has run, neat divergences reports where declared intent and observed behavior part ways:

[missing-extracted] src/services/prices.ts ──CALLS──▶ folio-api.example.com   confidence 0.87
  Production observed this call, but static analysis never surfaced the edge.
  → dynamic dispatch or a coverage gap. The code reaches a host it doesn't visibly name.

[missing-observed]  src/db/client.ts ──CONNECTS_TO──▶ postgres:primary        confidence 0.85
  Code declares this connection, but no production traffic has exercised it.
  → dead path, feature flag, or an unshipped branch. The declared dependency is idle.

Two findings, two different bugs. The first is a call your code makes without saying so — worth knowing before it surprises you. The second is a dependency your code carries but never uses — dead weight, or a path you thought was live and isn't. Both come from comparing the same file against itself: what it says, versus what it did.

Policies: rules over the graph

Divergence reports what is. Policies let you assert what should be. A policy.json in your project declares architectural rules as assertions over the same graph — for example, "only service:billing and service:orders may connect to postgres:primary," or "no file may call legacy-api.internal." Because the rules run against the live graph, they evaluate against both what your code declares and what production actually does.

NEAT evaluates every policy continuously as the graph changes. When an edge violates a rule, the violation is surfaced — not buried in a one-off lint run. Two surfaces expose it:

  • neat policies lists what's currently violating, scoped to a node with --node, or dry-run a change with --hypothetical-action.
  • check_policies hands the same answer to an AI agent over MCP, so an agent writing a new feature can see which rules it would cross and the assertions it's working within — the rules previous features, other agents, or your engineers already set.

A block action gates promotion of a FrontierNode (an external host the graph has newly seen) so unsanctioned external dependencies don't quietly settle into the model. The throughline: the graph already knows your architecture, so the rules you care about become assertions over it that stay true as the system moves.

Run NEAT on a server

The container image at ghcr.io/neat-technologies/neat:latest boots neatd start and exposes REST on :8080, OTLP on :4318, and the web UI on :6328. Generate a token, run the image, point your OTel SDKs at it:

bash
NEAT_AUTH_TOKEN=$(openssl rand -hex 32)
docker run -d --name neat \
  -e NEAT_AUTH_TOKEN="$NEAT_AUTH_TOKEN" \
  -p 8080:8080 -p 4318:4318 -p 6328:6328 \
  -v /var/lib/neat:/neat-out \
  ghcr.io/neat-technologies/neat:latest

NEAT_AUTH_TOKEN is required on every public interface. The daemon refuses to bind on non-loopback addresses without one. REST and SSE callers send the token in Authorization: Bearer <token>; OTel exporters send the same header. Rotate the OTLP token independently with NEAT_OTEL_TOKEN.

Easier path: neat deploy generates the token, writes a docker-compose.neat.yml, and prints the env block your application's deploy platform needs:

OTEL_EXPORTER_OTLP_ENDPOINT=https://<your-host>:4318
OTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer <generated-token>

Behind a reverse proxy

When TLS termination and authentication already live in a proxy upstream, set NEAT_AUTH_PROXY=true so the daemon skips the request-side bearer check. The bind-authority gate still refuses public binds without NEAT_AUTH_TOKEN, so set both:

caddyfile
neat.example.com {
  reverse_proxy localhost:8080 {
    header_up Authorization "Bearer {env.NEAT_AUTH_TOKEN}"
  }
  reverse_proxy /events localhost:8080
  @otlp path /v1/traces
  reverse_proxy @otlp localhost:4318 {
    header_up Authorization "Bearer {env.NEAT_AUTH_TOKEN}"
  }
}

Then docker run … -e NEAT_AUTH_TOKEN=… -e NEAT_AUTH_PROXY=true … and let Caddy gate the public surface.

Wire NEAT into your agent

NEAT's MCP server is listed in the official MCP Registry as io.github.neat-technologies/neat, so registry-aware editors can install it in one click:

Add to Cursor Install in VS Code Install in VS Code Insiders

Each button wires the @neat.is/mcp server via npx -y @neat.is/mcp and points it at your local daemon; set NEAT_CORE_URL to target a non-default one. For Claude Code:

bash
claude mcp add neat -- neat-mcp

Or edit ~/.claude/settings.json by hand:

json
{
  "mcpServers": {
    "neat": {
      "command": "neat-mcp",
      "env": { "NEAT_CORE_URL": "http://localhost:8080" }
    }
  }
}

The neat-mcp binary above assumes a global install. Without one, run neat skill --apply instead — it writes the same mcpServers.neat entry using npx -y @neat.is/mcp so the server resolves without a global binary. Either form reads NEAT_CORE_URL for the daemon URL; set it to point the agent at a non-default daemon.

In any Claude Code session, ask: "Why is checkout-svc failing?" NEAT walks the graph and answers with a traversal path, edge provenances, a confidence score, and a recommended fix.

Reach for the graph before grepping

bash
neat hooks --apply

This installs two nudges so your agent queries the graph before it falls back to raw text search:

  • A Claude Code search-nudge hook — a PreToolUse hook that, when the agent reaches for Grep/Glob or a Bash grep/rg/find, injects a note pointing it at semantic_search, get_dependencies, and get_divergences first. It is a gentle, non-blocking nudge: the search still runs. It merges into ~/.claude/settings.json without touching your other hooks, and re-running is idempotent.
  • Agent-agnostic graph-first guidance — a markdown block (GRAPH_FIRST.md, also written to ~/.neat/neat-graph-first.md) to paste into CLAUDE.md / AGENTS.md / .cursorrules, so agents on any harness get the same steer.

The hook is specific to Claude Code; other harnesses (Codex, Gemini, Cursor) rely on the guidance block instead. neat hooks --print-hook, --print-guide, and --print-settings show each piece without installing.

The Claude Code plugin — the one-install path

The neat skill and neat hooks commands above are the à-la-carte way to wire NEAT in. On Claude Code you can get all of it — the MCP graph tools, the graph-first search-nudge hook, and the skill — in one install, as a plugin:

bash
claude plugin marketplace add NEAT-Technologies/Neat
claude plugin install neat@neat

The plugin lives in this repo under plugin/ and is installed straight from GitHub — nothing extra to publish. It bundles exactly the same MCP server config and search-nudge hook the à-la-carte commands write, so both paths behave identically; pick whichever you prefer. Set NEAT_CORE_URL (default http://localhost:8080) to point the bundled MCP server at a non-default daemon.

Repository layout

packages/
  types/          shared Zod schemas: node, edge, event, result types
  core/           graph engine, tree-sitter extraction, OTel ingest, REST API, neat CLI
  mcp/            stdio MCP server exposing the sixteen tools to AI agents
  web/            Next.js dashboard
  claude-skill/   Claude Code skill metadata
  neat.is/        umbrella package
plugin/           Claude Code plugin — bundles the MCP server, hook, and skill (repo-hosted)

Documentation

Contributing

PRs welcome. Read CONTRIBUTING.md first for the branch convention, PR shape, and the contracts framework that gates every change.

License

Apache 2.0. See LICENSE.

Встановлення

TypingMind
{
  "mcpServers": {
    "neat": {
      "command": "npx",
      "args": [
        "neat.is",
        "{{config.PATH}}"
      ]
    }
  }
}

Використовуйте MCP NEAT з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення NEAT ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ви можете запустити MCP локально на своєму пристрої або підключитися до віддаленого сервера MCP за URL.

Варіант 1: використовуйте локальний конектор

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте NEAT як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP NEAT.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "neat": {
      "command": "npx",
      "args": [
        "-y",
        "neat"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для NEAT, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для NEAT.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через NEAT?
NEAT
Звісно. Я це прочитав.
Ось що я знайшов за допомогою NEAT.

Варіант 2: додайте URL сервера MCP

Виберіть цей варіант, якщо NEAT уже розміщено віддалено або вашій команді потрібен один спільний конектор для кількох користувачів.

1

Відкрийте конектори MCP

У TypingMind перейдіть до розділу «Плагіни», відкрийте «Конектори MCP» і виберіть «Додати URL».

  1. Відкрийте TypingMind у браузері.
  2. Перейдіть до розділу «Плагіни».
  3. Відкрийте конектори MCP.
  4. Натисніть «Додати URL».
Форма «Додати URL власного сервера MCP» у TypingMind
2

Вставте URL сервера

Введіть URL сервера MCP від постачальника у поле «URL сервера». Додайте назву підключення, опис, значок, власні HTTP-заголовки або налаштування клієнта OAuth, якщо сервер їх потребує.

  1. Вставте URL сервера MCP від постачальника у поле «URL сервера».
  2. Введіть назву підключення для NEAT.
  3. Додайте опис і значок, щоб було легше впізнати підключення.
  4. Додайте власні HTTP-заголовки або дані клієнта OAuth, якщо сервер потребує автентифікації.
3

Створіть підключення

Натисніть «Створити підключення», потім поверніться до списку плагінів і переконайтеся, що нове підключення MCP активне.

  1. Натисніть «Створити підключення».
  2. Поверніться до списку конекторів MCP.
  3. Переконайтеся, що підключення NEAT відображається як активне.
  4. Оновіть список плагінів, якщо підключення не з’явилося одразу.
4

Перемикайте моделі без повторного підключення

Почніть чат із бажаною моделлю, увімкніть інструменти NEAT у розділі «Плагіни» й за потреби перемикайтеся на іншу модель. Підключення MCP залишається доступним у робочому просторі TypingMind.

  1. Почніть новий чат у TypingMind.
  2. Виберіть модель ШІ, яку хочете використовувати.
  3. Увімкніть інструменти NEAT у розділі «Плагіни».
  4. За потреби попросіть модель скористатися інструментом.
  5. Перемкніться на іншу модель ШІ й використовуйте те саме підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через NEAT?
NEAT
Звісно. Я це прочитав.
Ось що я знайшов за допомогою NEAT.

Поширені запитання

Для чого використовується сервер MCP NEAT?

NEAT — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP NEAT з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати NEAT з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP NEAT із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши NEAT, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP NEAT до TypingMind?

NEAT можна підключити в TypingMind через локальний конектор MCP або додавши URL віддаленого сервера MCP. Використовуйте локальний конектор, коли серверу потрібен доступ до файлів, застосунків або приватних ресурсів на вашому пристрої, а URL сервера — коли сервер MCP розміщено віддалено.

Які інструменти надає MCP NEAT у TypingMind?

NEAT надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP NEAT?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо NEAT потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇