Skip to main content
Glama
AL Object ID Ninja MCP Server

AL Object ID Ninja MCP Server

by SShadowS

AL Object ID Ninja MCP Server

MCP (Model Context Protocol) server for AL Object ID management in Microsoft Dynamics 365 Business Central development.

πŸš€ Quick Start

Add to Claude Code with one command:

# Standard mode (8 tools) - Recommended for teams
claude mcp add objid @sshadows/objid-mcp --env MCP_MODE=standard

# Lite mode (4 tools) - For individual developers
claude mcp add objid @sshadows/objid-mcp --env MCP_MODE=lite

That's it! The server will be available in Claude Code immediately.

Related MCP server: bcdocker

πŸ“ Manual MCP Configuration

If you prefer to configure manually, add to your MCP settings JSON:

{
  "mcpServers": {
    "objid": {
      "command": "npx",
      "args": ["-y", "@sshadows/objid-mcp"],
      "env": {
        "MCP_MODE": "standard"
      }
    }
  }
}

Lite Mode

{
  "mcpServers": {
    "objid": {
      "command": "npx",
      "args": ["-y", "@sshadows/objid-mcp"],
      "env": {
        "MCP_MODE": "lite"
      }
    }
  }
}

Custom Backend

{
  "mcpServers": {
    "objid": {
      "command": "npx",
      "args": ["-y", "@sshadows/objid-mcp"],
      "env": {
        "MCP_MODE": "standard",
        "BACKEND_URL": "https://your-backend.azurewebsites.net",
        "BACKEND_API_KEY": "your-api-key",
        "LOG_LEVEL": "info"
      }
    }
  }
}

πŸ› οΈ Available Tools

LITE Mode (4 tools)

  • authorization - Manage app authorization with backend

  • config - Read and write .objidconfig files

  • allocate_id - Allocate object IDs for AL objects

  • analyze_workspace - Analyze workspace structure and apps

STANDARD Mode (8 tools - includes all LITE tools plus)

  • pool - Manage app pools for team collaboration

  • consumption - Get consumption reports and statistics

  • sync - Synchronize object IDs with backend

  • log - Retrieve activity logs and audit trail

πŸ“‹ Tool Details

Core Tools (LITE Mode)

authorization

Manage app authorization with the AL Object ID Ninja backend:

  • Check authorization status

  • Authorize apps with backend

  • Manage authorization keys

config

Configuration file management:

  • Read .objidconfig files

  • Write configuration changes

  • Manage AL object ID ranges

allocate_id

Object ID allocation:

  • Get next available object ID

  • Support for all AL object types

  • Range-aware allocation

analyze_workspace

Workspace analysis:

  • Scan for AL apps

  • Detect configurations

  • Analyze project structure

Team Collaboration Tools (STANDARD Mode)

pool

App pool management for teams:

  • Create app pools

  • Join existing pools

  • Leave pools

  • Get pool information

consumption

Usage tracking and reporting:

  • Get detailed consumption statistics

  • Track ID usage over time

  • Generate usage reports

sync

Backend synchronization:

  • Sync object IDs with backend

  • Check synchronization status

  • Force synchronization

log

Activity logging and audit:

  • Retrieve activity logs

  • Filter by event type, user, or date

  • Audit trail for compliance

πŸ”§ Configuration Options

Environment Variables

Variable

Description

Default

MCP_MODE

Server mode: lite or standard

lite

BACKEND_URL

Custom backend URL

https://vjekocom-alext-weu.azurewebsites.net

BACKEND_API_KEY

API key for custom backend

None (not required for default backend)

LOG_LEVEL

Logging level: error, warn, info, debug

info

CACHE_ENABLED

Enable response caching

true

CACHE_TTL

Cache time-to-live in milliseconds

300000 (5 minutes)

πŸ“¦ About

The AL Object ID Ninja MCP Server provides intelligent object ID management for Business Central AL development. It integrates with the AL Object ID Ninja backend to prevent ID collisions, track usage, and enable team collaboration.

Features

  • Collision Prevention - Automatic ID conflict detection

  • Team Collaboration - Shared ID pools for teams

  • Usage Tracking - Comprehensive consumption reports

  • Git Integration - Automatic app identification via Git

  • Zero Configuration - Works out-of-the-box with default backend


Development

Building from Source

# Clone repository
git clone https://github.com/SShadowS/objid-mcp.git
cd objid-mcp/mcp-server

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

Testing

npm test                    # Run test suite
npm run test:e2e           # Run E2E tests
npm run typecheck          # TypeScript type checking
npm run lint               # ESLint
npm run prerelease         # Full release check

Project Structure

mcp-server/
β”œβ”€β”€ src/v2/
β”‚   β”œβ”€β”€ server.ts          # Main entry point
β”‚   β”œβ”€β”€ tools/             # Tool implementations
β”‚   β”‚   β”œβ”€β”€ lite/          # LITE mode tools
β”‚   β”‚   └── standard/      # STANDARD mode tools
β”‚   └── lib/               # Core libraries
β”œβ”€β”€ tests/v2/              # Test suites
└── dist/v2/               # Compiled output

Contributing

Contributions are welcome! Please open issues or pull requests for bugs, features, or improvements.

License

MIT

Author

Based on the original AL Object ID Ninja by Vjekoslav Babić

Available Tools

4 tools
allocate_idA

Preview, reserve, or reclaim object IDs for AL development. REQUIRES mode ("preview"|"reserve"|"reclaim"), appPath: absolute path to the workspace directory containing app.json and .objidconfig - NOT a file path. Example (OK): "C:\Projects\MyALApp" or "/home/user/MyALApp". Example (NOT OK): "path/to/app.json". REQUIRES object_type (AL object type string). Optional: count (number, default: 1), pool_id (string), preferred_range ({from:number, to:number}), object_metadata ({name?:string, file?:string, tag?:string}), ids (number[], reclaim mode only), dry_run (boolean, default: false), auto_track (boolean, reserve mode only, default: true - automatically stores assignments after reservation).

Inputs: no named parameters.

analyze_workspaceA

Analyze AL workspace for object ID consumption, collisions, and pool mapping. REQUIRES appPath: absolute path to the workspace directory containing app.json and .objidconfig - NOT a file path. Example (OK): "C:\Projects\MyALApp" or "/home/user/MyALApp". Example (NOT OK): "path/to/app.json" or "path/to/file.app". Optional: include (string[], default: ["/*.al"]), exclude (string[], default: ["/.alpackages/", "/.snapshots/**"]), object_types (string[]), return_level ("summary"|"detailed", default: "summary"), detect_collisions (boolean, default: true), map_to_pools (boolean, default: false).

Inputs: no named parameters.

authorizationC

Manage app authorization for Object ID synchronization. REQUIRES action ("status"|"start"|"deauthorize"), appPath: absolute path to the workspace directory containing app.json and .objidconfig - NOT a file path. Example (OK): "C:\Projects\MyALApp" or "/home/user/MyALApp". Example (NOT OK): "path/to/app.json". Optional: interactive (boolean, default: true).

Inputs: no named parameters.

configA

Read, write, and validate .objidconfig configuration files. REQUIRES action ("read"|"write"|"validate"), appPath: absolute path to the workspace directory containing app.json and .objidconfig - NOT a file path. Example (OK): "C:\Projects\MyALApp" or "/home/user/MyALApp". Example (NOT OK): "path/to/.objidconfig". Optional: keys (string[], read only), patch (object, write only), merge (boolean, write only, default: true), schema_version (string).

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool serves a completely distinct function: allocation, analysis, authorization, and configuration. There is no functional overlap or ambiguity between them.

    Naming Consistency3/5

    Two tools follow a verb_noun pattern (allocate_id, analyze_workspace), while authorization and config are single nouns, creating inconsistency. All use snake_case, but the grammatical pattern is mixed.

    Tool Count5/5

    With 4 tools covering the core operations for AL object ID management, the number is well-scoped and appropriate for the server's narrow domain.

    Completeness4/5

    The tool set covers the essential workflows: allocation, workspace analysis, authorization, and configuration. A minor gap is the lack of a dedicated status or pool listing tool, but the analysis tool partially fills this.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for Microsoft Dynamics 365 Finance & Operations that enables the creation, modification, and analysis of D365 objects like classes, tables, and forms. It integrates with Visual Studio 2022 to provide tools for X++ code extraction, codebase search, and safe object deletion with dependency validation.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for managing Business Central Docker containers, enabling AI assistants to list, create, test, and manage BC sandboxes via natural language.
      15
      1 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for Microsoft Dynamics 365 Business Central that enables AI assistants to query and manage Business Central data via full CRUD operations.
      6
      2,547 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for Microsoft Dynamics 365 Finance & Operations development, enabling object creation, modification, deletion, and analysis through the MCP standard.
      MIT