AL Object ID Ninja MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AL Object ID Ninja MCP Server allocate next available object ID for table 50000"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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=liteThat'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:
Standard Mode (Recommended)
{
"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 backendconfig- Read and write .objidconfig filesallocate_id- Allocate object IDs for AL objectsanalyze_workspace- Analyze workspace structure and apps
STANDARD Mode (8 tools - includes all LITE tools plus)
pool- Manage app pools for team collaborationconsumption- Get consumption reports and statisticssync- Synchronize object IDs with backendlog- 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 |
| Server mode: |
|
| Custom backend URL |
|
| API key for custom backend | None (not required for default backend) |
| Logging level: |
|
| Enable response caching |
|
| Cache time-to-live in milliseconds |
|
π¦ 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
Related Projects
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 testTesting
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 checkProject 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 outputContributing
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 toolsallocate_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
Scored across 4 tools
Each tool serves a completely distinct function: allocation, analysis, authorization, and configuration. There is no functional overlap or ambiguity between them.
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.
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.
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
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
MCP Server for JFrog, providing tools for development and artifact management.
A MCP server built for developers enabling Git based project management with project and personalβ¦
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn 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
- AlicenseAqualityDmaintenanceMCP server for managing Business Central Docker containers, enabling AI assistants to list, create, test, and manage BC sandboxes via natural language.151 npmMIT
- AlicenseAqualityDmaintenanceMCP server for Microsoft Dynamics 365 Business Central that enables AI assistants to query and manage Business Central data via full CRUD operations.62,547 npmMIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for Microsoft Dynamics 365 Finance & Operations development, enabling object creation, modification, deletion, and analysis through the MCP standard.MIT