شعار 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 محليًا على جهازك أو الاتصال بعنوان URL لخادم MCP بعيد.

الخيار 1: استخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات 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»، ثم اختر «إضافة رابط».

  1. افتح TypingMind في متصفحك.
  2. انتقل إلى الإضافات.
  3. افتح موصلات MCP.
  4. انقر على «إضافة عنوان URL».
نموذج إضافة عنوان URL لخادم MCP مخصص في TypingMind
2

لصق عنوان URL للخادم

أدخل عنوان URL لخادم MCP الذي يقدّمه مزوّد الخدمة في حقل «رابط الخادم». أضف اسمًا للاتصال أو وصفًا أو أيقونة أو ترويسات HTTP مخصصة أو إعدادات عميل OAuth إذا كان الخادم يتطلب ذلك.

  1. ألصق عنوان URL لخادم MCP الذي يقدّمه مزوّد الخدمة في حقل «رابط الخادم».
  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 ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇