Skip to main content
Glama
bc-code-intelligence-mcp
by JeremyVyska

BC Code Intelligence MCP Server

Install with NPX in VS Code Installation Guide

Get instant help from AI Business Central experts right in your favorite AI tool. No more searching docs - just ask and get expert guidance tailored to your specific BC development challenges.


πŸš€ Quick Start

  1. Click the blue "Install with NPX" button above (VS Code users)

  2. Switch to Agent Mode in VS Code's Copilot Chat

  3. Just ask! - Start with any prompt below

Other platforms? See the Installation Guide for Claude Desktop, Cursor, and more.


Related MCP server: AL CodeGen MCP Server

🀝 New to AI-Assisted Development? Start with Parker

If you're not sure how to work with AI tools, or you're skeptical about letting AI touch your codeβ€”that's exactly why Parker exists.

Parker is a grizzled veteran who helps you work WITH AI safely:

  • Creates reviewable proposals instead of making direct changes

  • Explains AI reasoning so you understand what's happening and why

  • Coordinates other specialists to validate suggestions before you commit

  • Builds trust gradually through transparency and verification

Just say:

  • "Parker, I'm new to AI development tools. Help me understand how this works."

  • "Parker, I don't trust AI to write my code. What's a safe way to start?"

  • "Parker, review what the AI just suggested before I accept it."

Once you're comfortable, you can work directly with any specialistβ€”but Parker's always there when you want that extra layer of verification and explanation.


πŸ’¬ Just Ask - Example Prompts

The BC Code Intelligence specialists are ready to help. Just type naturally - here are some examples:

πŸ” Debugging & Performance (Dean)

  • "Dean, help me debug this error: 'The record in table Customer already exists'"

  • "I'm seeing slow performance when posting sales orders. Can Dean take a look?"

  • "Ask Dean why my FlowField is always showing zero"

πŸ›οΈ Legacy Code & Upgrades (Logan)

  • "Logan, I need to upgrade my extension from BC v24 to v27"

  • "I inherited this old extension - can Logan help me understand what it does?"

  • "Help me modernize this C/AL-style code to proper AL patterns"

πŸ”„ Version Migration & Breaking Changes (Victor)

  • "Victor, help me upgrade from BC25 to BC26"

  • "I'm seeing obsolete warnings after upgrading - what do I need to change?"

  • "What breaking changes should I know about in BC27?"

  • "Help me resolve this compile error after a runtime upgrade"

πŸ”§ DevOps & CI/CD (Lena)

  • "Lena, help me set up AL-Go for my BC extension"

  • "I need to configure an Azure DevOps pipeline with ALOps"

  • "How do I use BCContainerHelper for local BC development?"

  • "Help me integrate Cosmo Alpaca for automated testing"

πŸ—οΈ Architecture & Design (Alex)

  • "Alex, review my extension's architecture before I submit to AppSource"

  • "I need to design an integration with an external warehouse system"

  • "What's the best way to structure a multi-company solution?"

πŸ’» Coding & Implementation (Sam)

  • "Sam, help me write a function to calculate weighted average cost"

  • "I need to create a FactBox that shows related sales history"

  • "Show me the best way to implement a posting routine"

πŸ§ͺ Testing & Quality (Quinn)

  • "Quinn, help me create test coverage for my posting codeunit"

  • "What test scenarios should I include for this validation?"

  • "Review my test codeunit for completeness"

πŸ“ Code Review (Roger)

  • "Roger, review this codeunit for best practices"

  • "Check if my code follows BC naming conventions"

  • "Are there any code smells in my Customer Card extension?"

πŸ”’ Security (Seth)

  • "Seth, review my permission sets for security issues"

  • "How should I handle user permissions for this sensitive data?"

  • "Check if my API is exposing too much information"

πŸŒ‰ Integration & Events (Jordan)

  • "Jordan, help me design an event-driven integration"

  • "What's the best way to subscribe to posting events?"

  • "How do I create a clean API for external systems?"

⚠️ Error Handling (Eva)

  • "Eva, help me implement proper error handling for this process"

  • "What's the best way to validate user input before posting?"

  • "Review my Try/Catch implementation"

🎨 User Experience (Uma)

  • "Uma, help me improve my page layout for better usability"

  • "Can we switch from simple Error calls in this app to ErrorInfo with suggested actions?"

  • "Review my action menu structure"

πŸͺ AppSource & ISV (Morgan)

  • "Morgan, help me prepare my app for AppSource submission"

  • "What are the common AppSource validation failures?"

  • "Review my app's technical baseline for AppSource"

πŸ‘©β€πŸ« Learning & Mentoring (Maya)

  • "Maya, explain how dimensions work in BC"

  • "I'm new to AL - help me understand events and subscribers"

  • "Walk me through how posting routines work"

πŸ“š Documentation (Taylor)

  • "Taylor, help me document this complex codeunit"

  • "Generate XML documentation for my public procedures"

  • "Review my app's README for completeness"


πŸ‘₯ Meet Your BC Specialist Team

Specialist

Expertise

Best For

🀝 Parker

AI Trust & Transparency

New to AI tools, safe collaboration, verification-first

πŸ—οΈ Alex

Architecture & Design

Solution design, extension structure, integration patterns

πŸ’» Sam

Expert Coder

Writing AL code, implementation patterns, coding questions

πŸ” Dean

Debugging & Performance

Errors, slow queries, troubleshooting

⚠️ Eva

Error Handling

Validation, Try/Catch, error messages

πŸ§ͺ Quinn

Testing

Test codeunits, test scenarios, code coverage

πŸ“ Roger

Code Review

Best practices, naming conventions, code quality

πŸ”’ Seth

Security

Permissions, data protection, API security

πŸŒ‰ Jordan

Integration

APIs, events, external connections

πŸ›οΈ Logan

Legacy & Upgrades

Version migrations, old code, modernization

πŸ”„ Victor

Version Migration

BC upgrades, breaking changes, deprecations

πŸ”§ Lena

DevOps & CI/CD

AL-Go, ALOps, BCContainerHelper, pipelines

🎨 Uma

User Experience

Page design, usability, UI patterns

πŸͺ Morgan

AppSource & ISV

Publishing, validation, business concerns

πŸ‘©β€πŸ« Maya

Mentoring

Learning concepts, explanations, training

πŸ“š Taylor

Documentation

Code docs, READMEs, knowledge sharing

βš™οΈ Chris

MCP Configuration

Company/Project MCP knowledge layer help


πŸ“š Learn More

Topic

Link

Full Installation Options

Installation Guide

Common Scenarios

Usage Patterns

All MCP Tools

Tools Reference

Company Standards

Enterprise Configuration

Structured Workflows

Methodology Framework

Troubleshooting

Common Issues


πŸ’‘ Tips

  • Just use first names - "Ask Dean" works just as well as "Ask Dean Debug"

  • Be specific - Include error messages, code snippets, or version numbers when relevant

  • Specialists collaborate - They'll hand off to each other when needed

  • Context carries over - Continue conversations naturally


🀝 Contributing

See the Contributing Guide for how to contribute to this project.

πŸ“„ License

MIT License - see LICENSE for details.

Available Tools

21 tools
analyze_al_codeB

Analyze AL code files in a workspace or specific files. IMPORTANT: Use workspace_path or file_path parameters - the MCP reads files directly. Do NOT pass code content unless you have inline code that is not in a file.

Inputs: code, file_path, operation, bc_version, +4 more.

ask_bc_expertA

Consult a BC specialist for direct expert guidance. Returns specialist instructions and relevant BC knowledge. Auto-selects best specialist or use preferred_specialist parameter. Set autonomous_mode=true for structured action plans instead of conversational responses.

Inputs: question (required), context, autonomous_mode, preferred_specialist.

create_layer_contentB

Create a new topic, specialist, or prompt in a BC Code Intelligence layer with proper frontmatter formatting.

Inputs: name (required), title (required), layer_path (required), content_type (required), +2 more.

extract_bc_snapshotA

Extract a Business Central snapshot (.snap) file to analyze debug traces, AL source code, and execution flow. Snapshots are ZIP archives containing .mdc debug trace files and .al source files. Returns temp directory path where files can be read using standard file tools.

Inputs: snapshot_path (required).

find_bc_knowledgeB

Search BC knowledge topics, find specialists, or discover workflows. Use this when users want to find information about BC development.

Inputs: query (required), limit, bc_version, search_type.

get_bc_topicC

Get detailed content for a specific BC knowledge topic with examples and best practices.

Inputs: topic_id (required), include_samples, specialist_context.

get_codelens_mappingsA

Get merged CodeLens pattern-to-specialist mappings from all active layers. Used by VSCode extension to show inline specialist suggestions in AL code.

Inputs: no named parameters.

get_workspace_infoA

Get the currently configured workspace root directory and available MCP servers, if any.

Inputs: no named parameters.

list_promptsA

List all available prompts from all active layers. Returns prompt metadata for UI display.

Inputs: type, include_content.

list_specialistsA

Browse available BC specialists and their expertise areas. Useful for discovering the specialist team and understanding who helps with what. After browsing, use ask_bc_expert with preferred_specialist parameter to connect with a specific specialist.

Inputs: domain, expertise.

scaffold_layer_repoA

Create BC Code Intelligence layer folder structure with templates. Use this to bootstrap a new company, team, or project layer.

Inputs: path (required), layer_name (required), layer_type (required), include_examples.

set_workspace_infoA

Set workspace root directory and available MCP server IDs. Enables project-specific knowledge layers and ecosystem-aware specialist recommendations. Call before other BC tools to activate workspace context.

Inputs: available_mcps (required), workspace_root (required).

validate_layer_repoA

Check if a directory has valid BC Code Intelligence layer structure. Returns validation status, missing items, and suggestions for fixing.

Inputs: path (required).

workflow_batchA

Apply batch operations to multiple pattern instances in a Workflow Engine v2 session.

For pattern-based workflows (like error-to-errorinfo-migration), this allows efficient bulk operations:

  • apply_fixes: Apply auto-fixes to matching instances

  • skip_instances: Mark instances as skipped

  • flag_for_review: Mark instances for manual review

  • group_by_type: Get instances grouped by type

Use dry_run=true (default) to preview changes before applying. Use confirmation_token from dry_run to execute the operation.

Inputs: operation (required), session_id (required), filter, dry_run, +1 more.

workflow_cancelA

Cancel a workflow session or clear all workflow sessions.

Use cases:

  • Cancel a stale/orphaned workflow from a previous session

  • Reset workflow state when restarting work

  • Clear all workflows to start fresh

Options:

  • session_id: Cancel a specific workflow session

  • cancel_all: true to cancel ALL active workflow sessions

Inputs: cancel_all, session_id.

workflow_completeA

Complete a Workflow Engine v2 session and generate the final report.

Call this when all files have been processed (next_action.type === "complete_workflow").

Options:

  • generate_report: Create a summary report (default: true)

  • apply_changes: Apply all auto-applicable proposed changes (default: false)

  • report_format: markdown, json, or html (default: markdown)

Returns the final summary and report content.

Inputs: session_id (required), apply_changes, report_format, generate_report.

workflow_listA

List all available BC Code Intelligence workflows.

Use this tool to discover structured workflows that can guide the user through complex processes like code reviews, debugging, or app development.

Returns a list of available workflows with:

  • workflow_type: The ID to pass to workflow_start

  • name: Human-readable workflow name

  • description: What the workflow helps with

  • specialist: The recommended specialist for this workflow

  • phases: The phases/steps in the workflow

Call this early in conversations to see if a workflow matches the user's intent.

Inputs: no named parameters.

workflow_nextA

Get the next action to perform in a workflow session.

Call this when you're ready for the next task. The engine returns:

  • Current progress (phase, files completed, percent)

  • Current file's checklist status

  • Next action with explicit instructions

  • Tool call suggestions for the action

The agent MUST follow the next_action instructions exactly.

Inputs: session_id (required).

workflow_progressA

Report progress on current workflow action and get the next action.

Call this after completing each action (analyzing a file, applying a topic, converting an instance). Include any findings, proposed changes, and topics to add to the checklist.

The engine updates session state and returns the next action to perform.

Inputs: session_id (required), completed_action (required), findings, expand_checklist, +1 more.

workflow_startA

Start a workflow session - a stateful checklist management system that drives agents through systematic, file-by-file processing.

Workflows provide:

  • File inventory with per-file checklists

  • Dynamic checklist expansion based on analysis

  • Pattern scanning for migrations (e.g., Errorβ†’ErrorInfo)

  • Batch operations for large-scale changes

  • Progress tracking and session persistence

The workflow drives the agent with explicit next-action instructions.

Example usage:

  • Start a code review: workflow_type="code-review"

  • Start an error migration: workflow_type="error-to-errorinfo-migration"

  • Start a BC upgrade: workflow_type="bc-version-upgrade" with source_version and target_version

Inputs: workflow_type (required), path, scope, options, +1 more.

workflow_statusA

Get current workflow v2 session status without advancing.

Returns:

  • Overall progress (phase, percent complete)

  • Summary of findings by severity

  • Summary of proposed changes

  • Optionally: status of all files

Use this to check on workflow progress or recover context after interruption.

Inputs: session_id (required), include_all_files.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 21 tools

    Disambiguation5/5

    Each tool targets a distinct action or resource: workspace management, knowledge browsing, workflow control, etc. Overlaps are minimal and clarified by descriptions.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case, with workflow_ prefix for workflow tools. No mixing of conventions.

    Tool Count5/5

    21 tools are well-scoped across multiple subsystems (workspace, knowledge, workflows, analysis) with no redundancy. Each tool serves a clear purpose.

    Completeness5/5

    The tool surface covers the full lifecycle: workspace setup, knowledge retrieval, layer management, workflow orchestration, and code analysis. No obvious missing operations.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to perform Business Central AL development tasks including language server operations, container management, Git version control, and file system operations for professional BC development workflows.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Generates AL code for Business Central directly from your IDE, enhancing developer efficiency by providing tools, prompts, and resources for code generation.
      1
      -