Axon MCP Server 标志

Axon MCP Server

社区
ali-kamali

Transform your codebase into an intelligent knowledge base for AI-powered development with Cursor IDE, Google AntiGravity, and MCP-enabled assistants

发布者ali-kamali
代码仓库Axon.MCP.Server
语言Python
复刻数
24
星标数
166
可用工具
0
传输类型stdio
链接
  • 将工具接入 AI 工作流

    Axon MCP Server 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 166 个星标和 24 个复刻。

Axon.MCP.Server

Model Context Protocol (MCP) Server for AI IDEs - Cursor, AntiGravity & Claude

Transform your codebase into an intelligent knowledge base for AI-powered development with Cursor IDE, Google AntiGravity, and MCP-enabled assistants


Python Version License: AGPL v3 Commercial License Build Status Docker Image Coverage MCP Protocol Documentation PRs Welcome


📋 Table of Contents


🎯 The Problem

Modern codebases are complex labyrinths—thousands of files, intricate dependencies, and evolving architectures. AI assistants like ChatGPT and Claude are brilliant... but they're flying blind. Without deep understanding of your codebase's structure, relationships, and patterns, they can only see the trees, never the forest.

💡 The Solution

Axon.MCP.Server transforms your entire codebase into an intelligent, queryable knowledge base using the Model Context Protocol (MCP). Think of it as giving your AI assistant X-ray vision into your code—understanding not just syntax, but semantics, architecture, and relationships.

Why Axon Stands Out

  • 🧠 Semantic Understanding: Goes beyond grep to understand what code means, not just what it says
  • 🔗 Relationship Mapping: Automatically builds call graphs, inheritance trees, and dependency networks
  • 🤖 AI-Native Integration: Built specifically for ChatGPT, Claude, Cursor IDE, and other MCP-enabled tools
  • 📊 Multi-Language Mastery: Deep analysis for C# (Roslyn), Python, JavaScript, TypeScript
  • 🔍 Vector-Powered Search: Find code by meaning using semantic embeddings
  • 🏗️ Architecture Intelligence: Auto-detects services, APIs, Entity Framework mappings, design patterns
  • ⚡ Production-Ready Performance: <500ms p95 latency, handles 10,000+ files with ease
  • 🔐 Enterprise Security: JWT auth, RBAC, audit logging, rate limiting—not a toy project

� See It In Action

🤖 AI IDE Integration - The Main Use Case

Axon MCP Server seamlessly integrates with leading AI-powered IDEs to supercharge your development workflow

Google AntiGravity - Best AI IDE for Vibe Coders

AntiGravity Integration Axon MCP providing deep code context to Google AntiGravity for intelligent code assistance

Cursor IDE - AI-First Code Editor

Cursor Integration Real-time code intelligence powered by Axon's semantic understanding in Cursor


🏛️ Management Dashboard

Axon Dashboard Real-time monitoring of code analysis and synchronization

🛠️ Architecture Visualization

Architecture Map Auto-generated service dependency diagrams


🏗️ Architecture Overview

10-Service Microarchitecture

┌─────────────────────────────────────────────────────────────┐
│  Client Layer: AI Assistants, IDEs, React UI, REST Clients │
└─────────────────────────────────────────────────────────────┘
                            │
            ┌───────────────┼───────────────┐
            │               │               │
┌───────────▼────┐  ┌──────▼──────┐  ┌────▼──────┐
│  MCP Server    │  │  REST API   │  │  React UI │
│    :8001       │  │    :8080    │  │    :80    │
└───────┬────────┘  └──────┬──────┘  └───────────┘
        │                  │
        │         ┌────────┼────────┐
        │         │        │        │
        │    ┌────▼───┐ ┌─▼────┐ ┌─▼─────────┐
        │    │ Worker │ │ Beat │ │ Enrichment│
        │    │ (Sync) │ │ Sched│ │  Worker   │
        │    └────┬───┘ └──────┘ └─────┬─────┘
        │         │                     │
    ┌───▼─────────▼─────────────────────▼──────┐
    │  Analysis: Tree-sitter + Roslyn + EF     │
    └───────────────────┬──────────────────────┘
                        │
        ┌───────────────┼───────────────┐
        │               │               │
┌───────▼──────┐  ┌────▼────┐  ┌──────▼────────┐
│ PostgreSQL   │  │  Redis  │  │ Prometheus +  │
│ + pgvector   │  │ Cache   │  │   Grafana     │
└──────────────┘  └─────────┘  └───────────────┘

Technology Stack

Backend: FastAPI, Celery, SQLAlchemy 2.0 (async), Python 3.11+
Parsing: Tree-sitter (multi-lang), Roslyn (C# semantic analysis)
Database: PostgreSQL 15 + pgvector, Redis
AI/ML: OpenAI/OpenRouter (LLM), sentence-transformers (embeddings)
Frontend: React + TypeScript, Vite
Infrastructure: Docker Compose, Prometheus, Grafana


🔌 MCP Tools for AI Assistants

The server exposes 12 powerful tools to AI assistants via the Model Context Protocol:

ToolDescriptionUse Case
searchSemantic + full-text code search"Find all authentication controllers"
get_call_graphFunction call relationships"Who calls UserService.CreateUser?"
get_inheritance_hierarchyClass inheritance tree"Show me all BaseController implementations"
get_api_endpointsList REST API routes"What endpoints modify the User table?"
get_ef_entitiesEntity Framework mappings"Show database schema for Orders"
get_module_summaryAI-generated code summaries"Explain what PaymentService does"
explore_serviceNavigate service architecture"Show me the API service structure"
find_implementationsInterface implementations"Find all IRepository implementations"
get_system_architecture_mapGenerate architecture diagrams"Visualize system dependencies"
get_symbol_detailsDetailed symbol info"Show UserController.Login signature"
get_file_symbolsList symbols in a file"What's in AuthService.cs?"
get_repository_structureProject/solution organization"Show .NET solution structure"

✨ Key Features

🔬 1. Hybrid Python/C# Analysis Engine

  • Tree-sitter: Lightning-fast syntactic parsing for Python, JavaScript, TypeScript, and C#
  • Roslyn Subprocess: Compiler-grade semantic analysis for C# (type resolution, cross-file references, metadata)
  • EF Core Analyzer: Extracts Entity Framework entities, table mappings, and relationships automatically

🗂️ 2. Intelligent Code Indexing

  • 🔄 Automatically discovers repositories from GitLab/Azure DevOps
  • 🏷️ Extracts symbols (classes, functions, variables) with rich metadata (docstrings, parameters, return types)
  • 📞 Builds call graphs, inheritance hierarchies, and import dependency maps
  • 🏗️ Detects services, APIs, workers, and libraries with auto-classification
  • 🧮 Generates vector embeddings for semantic search powered by pgvector

🤖 3. AI-Powered Enrichment

  • 📝 LLM-generated summaries for symbols and modules (using OpenRouter/OpenAI)
  • ⚡ Parallel processing with 8-worker Celery pipeline for blazing speed
  • 💾 Smart caching to avoid re-generation and reduce API costs

📊 4. Production-Grade Observability

  • 📈 Pre-configured Prometheus metrics (API latency, sync status, search performance, cache hit rates)
  • 📉 Beautiful Grafana dashboards for real-time monitoring
  • 📄 Structured JSON logging with structlog for easy parsing
  • 📡 Real-time sync progress via Redis Pub/Sub for responsive UI updates

🔐 5. Enterprise Security

  • 🔑 JWT authentication + API keys for flexible auth strategies
  • 👥 Role-based access control (admin, readonly) for granular permissions
  • 🍪 HTTP-only cookies with CSRF protection
  • ⏱️ Rate limiting and comprehensive audit logging

📊 Data Model Highlights

The system maintains a rich relational model:

  • Repositories: Source control repos (GitLab/Azure DevOps)
  • Files: Source code files with content hashes
  • Symbols: Functions, classes, variables with AI enrichment
  • Relations: Inherits, implements, calls, references, imports
  • Services: Detected APIs, workers, libraries
  • EfEntities: Entity Framework → database table mappings
  • Embeddings: pgvector embeddings for semantic search
  • Chunks: Code chunks (function/class level) for RAG

Total Tables: 14 with optimized indexes, cascading deletes, unique constraints


🚀 Quick Start

Get up and running in 5 minutes with Docker Compose.

Prerequisites

  • 🐳 Docker & Docker Compose installed
  • 🐍 Python 3.11+ (for local development)
  • 🔑 GitLab or Azure DevOps access token

Step 1: Clone & Configure

bash
# Clone the repository
git clone https://github.com/ali-kamali/Axon.MCP.Server.git
cd axon.mcp.server

# Copy environment template
cp .env.example .env

Edit .env with your credentials:

bash
# Source control (choose one)
GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx
# OR
AZUREDEVOPS_PASSWORD=your-azure-devops-pat

# Security (generate strong keys)
ADMIN_API_KEY=$(python -c "import secrets; print(secrets.token_urlsafe(32))")
ADMIN_PASSWORD=your-secure-password

# Optional: AI enrichment (for LLM-generated code summaries)
OPENROUTER_API_KEY=sk-or-v1-xxxxxxxxxxxxxxxx

Step 2: Launch Services

bash

# Start all services (PostgreSQL, Redis, API, Workers, UI, Monitoring)
make docker-up

# Run database migrations
make migrate

# Verify health
curl http://localhost:8080/api/v1/health
# ✅ Expected: {"status":"ok"}

Step 3: Access Your Platform

🎯 Service🌐 URL🔐 Credentials
React Dashboardhttp://localhost:80Login with ADMIN_PASSWORD
REST API Docshttp://localhost:8080/api/docsX-API-Key: ADMIN_API_KEY
MCP Serverhttp://localhost:8001For AI assistants (see MCP Tools)
Grafanahttp://localhost:3000admin / admin
Prometheushttp://localhost:9090No auth

🎉 You're Ready!

Next Steps:

  1. 📊 View the React Dashboard and add your first repository
  2. 🔍 Try a semantic search: "Find all authentication controllers"
  3. 🤖 Connect an AI assistant using the MCP server
  4. 📈 Monitor performance in Grafana dashboards

💡 Pro Tip: Check out the Development Guide for local development setup and testing.


🎯 Use Cases

🚀 Primary: AI IDE Integration (Cursor, AntiGravity, VS Code)

The main purpose of Axon MCP Server is to provide deep code intelligence to AI-powered IDEs:

Cursor IDE

  1. Contextual Code Completion: AI understands your entire codebase structure
  2. Intelligent Chat: Ask questions about architecture, dependencies, and implementation details
  3. Semantic Code Search: Find code by what it does, not just what it's called
  4. Refactoring Assistance: AI knows all usages across your entire codebase

Google AntiGravity

  1. Vibe Coding Intelligence: Deep understanding of code patterns and architecture
  2. Cross-Repository Context: Work with multiple projects seamlessly
  3. Smart Code Generation: AI suggestions based on your actual codebase patterns
  4. Real-Time Documentation: Instant explanations of complex code sections

Other MCP-Enabled Tools

  • Claude Desktop: Ask natural language questions about your codebase
  • ChatGPT with MCP: Deep code analysis and architectural insights
  • Custom MCP Clients: Build your own AI-powered dev tools

📊 For Development Teams

  1. Onboarding: New developers can ask "How does authentication work?" and get comprehensive answers
  2. Code Review: AI-assisted review with full context of dependencies and impacts
  3. Documentation: Auto-generated explanations for complex modules
  4. Impact Analysis: "What breaks if I change this API?" with complete dependency traces

🔍 For Software Architects

  1. Architecture Visualization: Auto-generated service dependency diagrams
  2. Design Pattern Detection: Identify patterns and anti-patterns across the codebase
  3. Technical Debt Analysis: Find complex, tightly-coupled code sections
  4. Migration Planning: Understand all dependencies before major refactors

📚 Documentation

🏗 Architecture

📖 Guides

🔌 API & Tools

⚙️ Reference


🔧 Development

bash
# Install dependencies
make dev-install

# Run tests
make test

# Start API (dev mode with hot reload)
make api-dev

# Start MCP server
make mcp-dev

# Start UI
make ui-dev

# Lint and format
make lint
make format

🌟 What Makes This Special?

  1. Hybrid Intelligence: Syntactic (Tree-sitter) + Semantic (Roslyn) analysis
  2. AI-First Design: Built specifically to feed AI assistants with code context
  3. Production-Grade: Real auth, monitoring, distributed processing, caching
  4. Multi-Source: Supports GitLab and Azure DevOps
  5. Deep C# Support: Compiler-grade analysis via Roslyn
  6. Semantic Search: Vector embeddings enable "find similar code" queries
  7. Architectural Awareness: Detects services, APIs, entities—not just functions

🗺️ Roadmap

This project is actively maintained and continuously evolving. Here's what's on our horizon:

✅ Completed (v3.2 - Current)

  • API Authentication: JWT tokens + API keys for hybrid auth scenarios
  • Hybrid Authentication: UI login with cookies + programmatic API key access
  • Memory Optimization: Keyset pagination for efficient large dataset handling
  • Vector Search: Semantic code search powered by pgvector embeddings
  • Multi-Language Support: Python, JavaScript, TypeScript, C# (via Roslyn)

🚧 In Progress (v3.2 → v3.3)

  • Roslyn Process Manager Refactor: Improved stability and resource management
  • Pipeline Pattern Refactor: More modular and testable processing architecture

🎯 Next Release (v3.3 - Q1 2026)

  • RAG Pipeline: Ask natural language questions about your codebase ("How does auth work?")
  • Architecture Visualization: Auto-generate Mermaid/PlantUML diagrams from code structure
  • Impact Analysis Tool: See what breaks before you change it ("What depends on UserService?")
  • Conversation Memory: Multi-turn AI conversations with context retention

🚀 Future Enhancements (v4.0+)

  • AI Test Generation: Automatically generate unit tests for your code
  • Code Review Assistant: AI-powered PR reviews with security and quality checks
  • Complexity Heatmaps: Visual complexity analysis to identify refactoring candidates
  • Dependency Audit: Track and visualize package dependencies and vulnerabilities
  • Language Expansion: Java, Go, Rust, Ruby, PHP support
  • IDE Plugins: Native plugins for VS Code, JetBrains IDEs
  • Collaboration Features: Team annotations, shared searches, codebase bookmarks

💡 Have a feature idea? Open an issue on our GitLab repository!


📄 License & Commercial Use

Axon.MCP.Server is dual-licensed to ensure sustainability and rapid development.

1. Open Source (AGPLv3)

This project is free software under the GNU Affero General Public License v3.0 (AGPLv3).

  • Best for: Open-source projects, hobbyists, researchers, and educational use.
  • The Rule: If you modify this code or use it in a service accessible over a network, you must open-source your own project under the same AGPLv3 license.
  • Details: See the LICENSE file for complete terms.

2. Commercial License (Enterprise)

Want to integrate Axon into a proprietary/closed-source product?

  • Best for: Startups, Enterprises, and SaaS products who cannot open-source their code.
  • Benefits:
    • Release your product under your own proprietary license
    • No requirement to share your source code
    • Priority support and direct access to the maintainer
    • Legal indemnification options
    • Custom features and integrations

📩 Contact us to acquire a commercial license.


Why Dual Licensing?

We believe in open source and sustainability. The AGPLv3 ensures the community benefits from improvements, while commercial licenses fund continued development, comprehensive testing, and enterprise features that benefit everyone.


🤝 Contributing

We welcome contributions from the community! Whether it's bug fixes, new features, or documentation improvements, your help makes this project better.

1. The "Reality" Check: CLA

Since this project is dual-licensed, we must ensure we have the legal right to distribute contributions.

Before merging any PR, we ask contributors to reply to a comment saying:

"I hereby assign copyright of this contribution to the project maintainers and agree to the terms of the Contributor License Agreement."

2. Getting Started

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

3. Guidelines

  • 📘 Development Guide - Setup, coding standards, and best practices
  • ✅ Code Quality: We use Black, mypy, and pylint for code quality
  • 🧪 Testing: Maintain >80% test coverage for all new code
  • 🔄 Pull Requests: Follow our PR template and ensure CI passes

📞 Support & Community

Need help or want to discuss features?

  • 🐛 Bug Reports: GitHub Issues
  • 📖 Documentation: Browse the docs/ directory
  • 💬 Community: Join us on #axon-mcp-server (internal Slack)
  • ❓ Questions: Open a discussion or issue on GitHub

Built with ❤️ by the Axon DevOps Team

Empowering developers with AI-driven code intelligence

Star on GitHub

将 Axon MCP Server MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Axon MCP Server 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 Axon MCP Server 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Axon MCP Server MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "axon-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Axon MCP Server MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Axon MCP Server MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Axon MCP Server 帮我完成这项任务吗?
Axon MCP Server
当然,我看过了。
以下是我使用 Axon MCP Server 得到的结果。

常见问题

Axon MCP Server MCP 服务器有什么用途?

Axon MCP Server 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Axon MCP Server MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Axon MCP Server。

为什么在 TypingMind 中使用 Axon MCP Server MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Axon MCP Server 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Axon MCP Server MCP 连接到 TypingMind?

Axon MCP Server 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Axon MCP Server MCP 在 TypingMind 中提供哪些工具?

Axon MCP Server 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Axon MCP Server MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Axon MCP Server 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇