Logo AL Dependency MCP Server

AL Dependency MCP Server

Cộng đồng
StefanMaron

Give AI assistants complete visibility into your AL dependencies and symbols.

Nhà phát hànhStefanMaron
Kho mãAL-Dependency-MCP-Server
Ngôn ngữTypeScript
Bản fork
17
Sao
80
Công cụ có sẵn
0
Phương thức truyền tảistdio
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    AL Dependency MCP Server cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    80 sao và 17 bản fork từ kho mã được liên kết.

AL MCP Server

npm version CI MIT License Node.js .NET MCP Compatible

Give AI assistants complete visibility into your AL dependencies and symbols.

What This Solves

AI coding assistants can't see compiled AL packages or understand Business Central object relationships. This creates a blind spot when helping with AL development.

The AL MCP Server bridges this gap by exposing your AL workspace's compiled symbols (.app files) directly to AI assistants through the Model Context Protocol.

Quick Start

Prerequisites

  • Node.js 18+ (download)
  • .NET SDK 8.0+ (download)
  • Compiled AL packages (.app files in .alpackages directory)

Verify your setup:

bash
dotnet --version  # Should show 8.0 or higher

The AL MCP Server installs automatically via npx - no manual installation needed.

Configure Your AI Assistant

Claude Code (Recommended)

bash
claude mcp add al-mcp-server -- npx al-mcp-server

Or via VS Code settings:

json
{
  "claude.mcpServers": {
    "al-symbols-mcp": {
      "command": "npx",
      "args": ["al-mcp-server"]
    }
  }
}

GitHub Copilot

Create .vscode/mcp.json in your workspace:

json
{
  "servers": {
    "al-symbols-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["al-mcp-server"]
    }
  }
}

Cursor IDE

Add to Cursor settings (Settings → Features → Model Context Protocol):

json
{
  "al-symbols-mcp": {
    "command": "npx",
    "args": ["al-mcp-server"]
  }
}

Continue (VS Code Extension)

Add to ~/.continue/config.json:

json
{
  "mcpServers": {
    "al-symbols-mcp": {
      "command": "npx",
      "args": ["al-mcp-server"]
    }
  }
}

Cody (Sourcegraph)

Add to VS Code settings:

json
{
  "cody.mcpServers": {
    "al-symbols-mcp": {
      "command": "npx",
      "args": ["al-mcp-server"]
    }
  }
}

Other MCP-Compatible Tools

Use these connection details:

  • Command: npx
  • Args: ["al-mcp-server"]
  • Type: stdio

Test It Works

Ask your AI assistant:

Search for Customer table in my AL project

The server will auto-start and provide intelligent AL assistance!

Available Tools

The AL MCP Server provides 6 token-optimized tools for AL code analysis:

Core Query Tools

al_search_objects

  • Search for AL objects by name, type, or wildcard pattern
  • Filter by business domain (Sales, Finance, Inventory, etc.)
  • Support for all AL object types (Table, Page, Codeunit, Report, etc.)
  • Token-efficient summary mode enabled by default

al_get_object_definition

  • Get detailed object information by ID or name
  • Includes fields, procedures, properties, and keys
  • Configurable detail level with field/procedure limits
  • Summary mode for token efficiency

al_find_references

  • Find all references to an object or field
  • Track extensions, variables, parameters, return types
  • Field-level reference tracking across all object types
  • Optional context for detailed reference information

al_search_object_members

  • Unified search for object child elements
  • Search procedures, fields, controls, or dataitems
  • Wildcard pattern matching support
  • Pagination and detail level control

al_get_object_summary

  • Get intelligent categorized overview of objects
  • Organizes procedures by purpose (validation, posting, utilities, etc.)
  • Identifies key entry points automatically
  • Highly token-efficient categorized output

Package Management

al_packages

  • Unified package management with action parameter
  • Load: Auto-discover and load packages from project root
  • List: Show all currently loaded packages
  • Stats: Database statistics and object counts

Capabilities

Smart Object Discovery

  • Search across all loaded AL packages simultaneously
  • Wildcard pattern matching for flexible queries
  • Filter by object type, package, or business domain
  • Auto-discovery of .alpackages directories

Deep Code Analysis

  • Complete object definitions with all metadata
  • Procedure and field information with properties
  • Page control structure analysis
  • Report/query dataitem traversal

Reference Tracking

  • Find all object references and dependencies
  • Track object extensions and customizations
  • Field-level usage analysis across pages, tables, reports
  • Variable and parameter tracking in codeunits

Business Domain Intelligence

  • Search by business area (Sales, Purchasing, Finance, Inventory, Manufacturing, Service)
  • Pattern-based domain detection
  • Cross-package domain analysis

Architecture

AL MCP Server
├── Symbol Extraction Layer
│   └── AL CLI integration for .app file parsing
├── Streaming Parser
│   └── Efficient handling of large symbol files (50MB+)
├── In-Memory Database
│   └── Optimized indices for sub-100ms queries
├── MCP Protocol Handler
│   └── JSON-RPC communication with AI assistants
└── Auto-Discovery Engine
    └── Smart .alpackages directory detection

Performance Features:

  • Lazy initialization - packages load on first request
  • Streaming JSON parsing prevents memory issues
  • Multiple optimized indices for O(1) lookups
  • Version filtering uses latest package only
  • Token-optimized responses reduce AI context usage

Requirements

Runtime:

  • Node.js 18 or higher
  • .NET SDK 8.0 or higher
  • NuGet package source (nuget.org)

Project Structure:

  • AL workspace with app.json
  • Compiled .app packages in .alpackages directory

Supported AL Packages:

  • Modern namespace-based packages
  • Legacy non-namespace packages (PTEs)
  • Business Central base application
  • AppSource extensions

The server analyzes compiled AL symbols, not raw .al source files.

Troubleshooting

AL CLI not found

  • The server auto-installs AL tools
  • Requires .NET SDK 8.0 or higher
  • Verify: dotnet --version

NU1100 error

  • Update to .NET SDK 8.0+
  • Configure NuGet: dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org

No sources found

  • Check NuGet sources: dotnet nuget list source
  • Should include nuget.org

No packages found

  • Ensure .app files exist in .alpackages directory
  • Use al_auto_discover tool to search for packages
  • Check that packages were compiled successfully

Server not responding

  • Verify Node.js 18+ is installed
  • Check AI assistant MCP configuration
  • Review server logs in AI assistant output

Need Help?

Example Usage

Once configured, ask your AI assistant:

"Show me all Sales-related codeunits"
"Find all references to the Customer table"
"What procedures are in the Sales-Post codeunit?"
"Search for all pages that use the Item table"
"Give me a summary of the Gen. Journal-Post Batch codeunit"

The AI assistant will use the MCP tools to provide accurate, context-aware responses based on your actual AL packages.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Write tests for changes
  4. Ensure all tests pass
  5. Submit a pull request

License

MIT License - see LICENSE file for details.


Transform AL development with AI assistants that truly understand your codebase.

Dùng MCP AL Dependency MCP Server với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối AL Dependency MCP Server, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm AL Dependency MCP Server làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của AL Dependency MCP Server.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "al-dependency-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của AL Dependency MCP Server, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của AL Dependency MCP Server.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng AL Dependency MCP Server giúp tôi làm việc này không?
AL Dependency MCP Server
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng AL Dependency MCP Server.

Câu hỏi thường gặp

Máy chủ MCP AL Dependency MCP Server dùng để làm gì?

AL Dependency MCP Server là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP AL Dependency MCP Server với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng AL Dependency MCP Server với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP AL Dependency MCP Server với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối AL Dependency MCP Server, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP AL Dependency MCP Server với TypingMind?

AL Dependency MCP Server hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP AL Dependency MCP Server cung cấp những công cụ nào trong TypingMind?

AL Dependency MCP Server cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP AL Dependency MCP Server không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu AL Dependency MCP Server yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇