Understand Anything Server
БесплатноНе проверенBridges codebase structural analysis, architectural rules, and CI/CD validation with MCP clients, enabling LLMs to check blast radius and prevent breaking chang
Описание
Bridges codebase structural analysis, architectural rules, and CI/CD validation with MCP clients, enabling LLMs to check blast radius and prevent breaking changes.
README
A Model Context Protocol (MCP) server that empowers your AI agents to understand your entire project architecture, and a headless CI gateway to enforce architectural rules before code is merged.
Privacy Policy
[!IMPORTANT] Link to Privacy Policy
Data Processing Details:
- License keys and email addresses are securely stored for billing purposes.
- Purely local, no network calls:
ua_status,ua_scan,ua_graph_summary,ua_explain,ua_onboarding_doc.- Sends graph data to the backend (on both Free and Pro):
ua_precheck,ua_find_callers,ua_impact_analysis,ua_rules,ua_ci_check,ua_validate_graph. When these tools are used, the full local graph object is sent per request to our backend for processing, license, and quota validation.- No source code contents are transmitted, only graph metadata (file paths and import relationships). All backend graph processing is done purely in-memory per-request and is never persisted.
🚀 Features
- Branch Protection / CI Gate: Automatically block high-risk PRs based on the codebase graph.
- Architectural Rules: Define custom
.ua-rules.jsonto enforce boundaries. - Blast Radius Analysis: Detect exactly which downstream files will break if a module is modified.
- On-Demand Knowledge Graph: Let Claude instantly query dependencies across massive codebases without filling its context window.
[!TIP] System Instruction Recommended: For the best experience, add the following to your AI assistant's system prompt or custom instructions: "Always call
ua_precheckbefore modifying any file in this project."
How it works
- Your AI agent decides it wants to modify a critical file (e.g.,
src/auth.ts). - The agent (following its system instructions) triggers
ua_precheckbefore making the edit to run an Architectural Safety Linter. - The server analyzes the graph to determine the "blast radius" and checks it against your rules.
- If the blast radius is too large or violates a rule, a Safety Checkpoint (Elicitation Prompt) interrupts the agent, asking for your explicit confirmation before proceeding.
Configuration Rules (.ua-rules.json)
You can define specific boundaries in a .ua-rules.json file in the root of your workspace to dictate what the LLM is allowed to touch.
{
// Understand-Anything Architectural Rules
// Define constraints that agents and developers must respect.
"rules": [
{
"id": "no-ui-db-import",
"description": "UI layer must never import database layer directly",
"from_pattern": "src/ui/**",
"to_pattern": "src/db/**",
"severity": "error"
},
{
"id": "auth-required-for-payments",
"description": "Payment modules must always be reachable from auth",
"requires_path_through": "src/auth/**",
"for_pattern": "src/payments/**",
"severity": "error"
}
]
}
Quick Start (Onboarding)
ua-mcp is a lightweight reader that connects your AI assistant to your local Understand-Anything knowledge graph. It does not build the graph itself.
- Install and run the real Understand-Anything tool first:
Follow the installation instructions at Egonex-AI/Understand-Anything to install the core scanner. Run
/understandvia its native interface (in Claude Code, Cursor, Antigravity, Codex, etc.) to produce your.ua/knowledge-graph.jsonfile. Commit this file to your repository. - Install the MCP server globally:
npm install -g ua-mcp - Connect the MCP to your project:
Configure your MCP client (see below) to run
ua-mcp. The server will automatically read your.ua/knowledge-graph.jsonand instantly expose its context to your AI agent.
🔒 Usage: CI/CD Branch Protection (Enforcement)
To make governance unbypassable, run the headless CI wrapper in your GitHub Actions. This evaluates the exact same rules and blast-radius thresholds as the local agent pre-check, but automatically fails the build if the risk is HIGH.
[!IMPORTANT] The True Enforcement Backstop: While local agents rely on system instructions to run
ua_precheck, theua-cicommand is designed to be your unbypassable safety net. By runningua-ciin your GitHub Actions and requiring it as a status check in GitHub Branch Protection, you ensure that no rogue edits can ever be merged into production without explicit approval.Note on Free Tier: If a valid Pro or Team license key is not detected in the environment variables, the CI check will log a warning and silently pass (exit 0) so it does not block builds for non-paying users.
# .github/workflows/ua-ci.yml
name: Understand-Anything CI Check
on:
pull_request:
branches: [ main ]
jobs:
ua-ci-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Generate PR Diff
run: git diff origin/main...HEAD > pr.diff
- name: Run UA Branch Protection
env:
UA_LICENSE_KEY: ${{ secrets.UA_LICENSE_KEY }}
run: npx ua-ci --pr-diff=pr.diff
🛡️ Usage: Local Governance (Agents)
⚠️ Note on Claude Desktop (July 2026): Anthropic currently has an open bug where Claude Desktop silently auto-cancels
elicitInputconfirmation prompts from MCP servers. For local pre-check governance, we recommend using Cursor or Claude Code until Anthropic patches Desktop support.
When connected to Claude Desktop or an MCP client, the following tools become available to the agent:
Claude Desktop (claude_desktop_config.json)
Add the following to your Claude Desktop config file (usually ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"understand-anything": {
"command": "npx",
"args": ["-y", "ua-mcp"],
"env": {
"UA_PROJECT_PATH": "/path/to/your/project",
"UA_LICENSE_KEY": "your_license_key_here"
}
}
}
}
Cursor
- Go to Settings > Features > MCP.
- Click + Add new MCP server.
- Name:
understand-anything - Type:
command - Command:
npx -y ua-mcp
Continue
Add to your config.json under mcpServers:
"understand-anything": {
"command": "npx",
"args": ["-y", "ua-mcp"]
}
Available Tools & Tiering
The Understand-Anything MCP Server operates on a tiered licensing model.
Core Tools (Free Tier)
Available out of the box with no license required.
ua_precheck: Pre-flight architectural risk check (10 checks/day, default critical-path rules only)ua_status: Returns MCP health status.ua_scan: Forces a re-scan of the workspace.ua_graph_summary: Returns aggregated node/edge statistics.ua_architecture_report: Groups files by top-level modules.ua_dependency_report: Identifies files with the most incoming dependencies (fan-in).ua_explain: Retrieves 1-hop dependencies for a specific file.ua_onboarding_doc: Generates onboarding context.
Premium Tools (Pro / Team Tier)
ua_precheck: Unlimited pre-flight checks with configurable critical paths and .ua-rules.json enforcementua_rules: Enforces custom.ua-rules.jsonboundaries.ua_rules_check: Mid-session continuous audit. Evaluates the .ua-rules.json constraints to ensure recent changes haven't introduced violations.ua_find_callers: Retrieves reverse dependencies up to 2 hops.ua_impact_analysis: Retrieves full transitive closure of reverse dependencies.ua_validate_graph: Checks the knowledge graph schema for corruption.ua_ci_check: Analyzes Git PR diffs for architectural impact.
Pricing
| Tier | Price | Features |
|---|---|---|
| Free | $0 forever | Basic graph operations, local storage. |
| Pro | $10/month OR $50 one-time | Unlimited nodes, advanced graph analytics, rule enforcement, priority support. (Lifetime access limited availability) |
Get your license key:
Troubleshooting
- Server fails to start: Ensure you have Node.js v18 or later installed.
- License key error: Verify your key in the
.envfile or Claude config matches the one on your dashboard. - Path not found: Ensure
UA_PROJECT_PATHis absolute or resolves correctly relative to where the server runs.
License
MIT License
Установить Understand Anything Server в Claude Desktop, Claude Code, Cursor
unyly install understand-anything-mcp-serverСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add understand-anything-mcp-server -- npx -y ua-mcpFAQ
Understand Anything Server MCP бесплатный?
Да, Understand Anything Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Understand Anything Server?
Нет, Understand Anything Server работает без API-ключей и переменных окружения.
Understand Anything Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Understand Anything Server в Claude Desktop, Claude Code или Cursor?
Открой Understand Anything Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Understand Anything Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
