Claude Code Won’t Take Your Job. An F&O Developer Using Claude Code Might

AI coding assistants are impressive in C#, Python and JavaScript, and often disappointing in X++. The reason is not the model. It is that the model has never seen your Dynamics 365 Finance & Operations metadata. Connect Claude Code to that metadata through an open-source MCP server, and the same model starts producing X++ that compiles, follows best practices and comes with unit tests.

 

Why Generic AI Struggles with X++

 

Ask a general-purpose assistant to write a Chain of Command extension on SalesTable and you will get something that reads well. Then the compiler disagrees. A typical first draft looks like this:

 

[ExtensionOf(tableStr(SalesTable))]
final class SalesTable_Extension
{
public boolean validateWrite()
{
boolean ret = next validateWrite();
CustTable cust = CustTable::findByAccount(this.CustomerId);
if (cust.CreditLimit < this.totalAmount())
ret = checkFailed(“Credit limit exceeded”);
return ret;
}
}

 

It looks right and it will not compile. CustTable::findByAccount() does not exist, SalesTable has no CustomerId field, CreditLimit is really CreditMax, and totalAmount() is invented. The error text is hard-coded instead of a label, and the class name has no model prefix.

 

Three things explain this:

 

  • Your codebase is private. Standard, ISV and customer models are not part of any model’s training data.
  • X++ is metadata, not just code. Tables, EDTs, forms, labels and security live as XML in the AOT. The code is only part of the story.
  • Plausible is not compilable. Guessed signatures and invented fields produce a compile-fix loop that eats the time you hoped to save.

The fix is context, and the Model Context Protocol (MCP) is how you deliver it. MCP is an open standard that lets an AI client such as Claude Code call external tools through one protocol.

 

Two MCP Servers, Two Jobs

 

Many people have heard that Microsoft released an MCP server for Finance & Operations and assume it is a developer tool. It is not. There are two servers worth knowing, and they solve different problems.

 

Microsoft’s Dynamics 365 ERP MCP server is a runtime agent for business processes. It lets an AI agent find and update data, navigate forms and call custom actions in a live environment, under the signed-in user’s security roles.

 

The community d365fo-mcp-server is a design-time tool for X++ developers. It never touches business data. It reads and writes metadata: classes, tables, forms, EDTs, labels and security objects, and it can build and test from the chat.

 

 

One asks the ERP to do things. The other helps you change the ERP. They work well together: build a feature with the developer server, then let an agent on the ERP server create test data and walk the form.

 

How the Server Keeps the AI Honest

 

The d365fo-mcp-server indexes your whole installation once: more than 580,000 symbols across standard, ISV and custom models, plus over 20 million label rows. It then exposes that knowledge as 20 specialised tools. Search answers in under 10 milliseconds, according to the project’s documentation.

 

Behind the tools sit three data sources:

 

  • A symbols database (SQLite with full-text search) for fast lookups of classes, tables, forms, EDTs and enums.
  • A labels database, kept separate so symbol searches never scan label rows.
  • A C# bridge that runs on the Windows dev VM. It uses Microsoft’s own IMetadataProvider API for live reads and for writes, and the cross-reference database for exact “who calls what” answers.

 

What makes it different from pointing an AI at a source folder is the chain every change has to pass before it is saved:

 

  1. Prepare. The server returns the exact method signature, any existing Chain of Command wrappers and naming rules, and issues a token bound to the object being changed.
  2. Generate. Claude writes X++ against that real metadata.
  3. Check references. Every type, field, method and label in the code is proven against the index.
  4. Check best practices. Offline rules catch deprecated APIs, Chain of Command mistakes and transaction anti-patterns.
  5. Write. The object is written through the metadata API and registered in your project.
  6. Build and test. Compile, best-practice check, database sync and SysTest unit tests all run from the chat.

 

If a check fails, the AI receives a structured error with the fix, instead of you receiving a broken file. The reference check is the heart of it: with enforcement switched on, code that names a field that does not exist is rejected before it reaches disk.

 

The server also ships a form pattern engine that clones reference forms and validates their structure, and a queryable X++ knowledge base covering select grammar, Chain of Command rules, posting, number sequences and AX 2012 migration patterns.

 

Getting Set Up

 

You need a D365 F&O development machine, Node.js 24, the .NET SDK (already on F&O dev VMs) and an AI client. From platform update 10.0.49, Visual Studio 2026 is the supported IDE for X++; earlier versions use Visual Studio 2022 17.14 or later. The project’s quick start puts installation at about 10 minutes, or roughly 25 with a full local index.

 

  1. Install on the VM. One PowerShell line installs Node.js if needed and the server from npm:
    irm https://raw.githubusercontent.com/dynamics365ninja/d365fo-mcp-server/main/install.ps1 | iex
  2. Run the setup wizard (d365fo-mcp setup). It asks for your scenario, custom models, object prefix and label languages, then builds the C# bridge and the index.
  3. Register the server in Claude Code with claude mcp add-json. The wizard prints the exact configuration for your paths.
  4. Add the instruction file. Copy the repository’s .github/copilot-instructions.md to the parent of your solution folders as CLAUDE.md. It is mandatory: it tells the agent which tool to use, to confirm before writing, and never to edit .xml or .xpp files with generic file tools.
  5. Verify. Run npx d365fo-mcp doctor, then ask Claude to find every table that carries the CustAccount field. A correct setup answers with objects from your own ISV and custom models.

 

Cloud-hosted VM or UDE

 

The tools and prompts are the same on both. Only the plumbing differs, and the wizard detects which one you are on.

 

 

Local or Azure-hosted

 

A single developer can run everything locally: Claude Code starts the server itself, with no port and no service. A team can host one shared, read-only index on Azure App Service, refreshed by a pipeline, with a small local companion on each VM for writes, builds and tests. A hosted instance must be protected with an API key; the server refuses to start on a public address without one.

 

One setting deserves attention. Grounding enforcement, which rejects any write that was not prepared and proven first, is off by default. Switch it on once your workflow reliably starts with the prepare step.

 

Three Everyday Scenarios

 

These are the three scenarios we built our internal Learn & Share session around. Each is something an F&O developer does every week. In all three you describe the goal in plain language; you never name a tool.

 

1. Analysing Existing Functionality

 

Before touching a feature, you need to understand it. A prompt such as “explain end to end how this feature works: entry points, classes, tables and the standard objects it extends” triggers a chain of lookups. Claude searches the index, reads the objects, lists every Chain of Command wrapper and event handler on the path, and traces security from role to duty to privilege to entry point.

 

The answer cites real objects and methods, including custom and ISV code no model was trained on. It is the kind of tracing that otherwise means hours in the AOT browser.

 

2. From FDD to TDD to Working Code

 

We hand Claude a functional design document in our standard template. The example requirement: sales orders must not be created for customers that credit control has not yet approved. A new Yes/No parameter on the customer controls it, and selecting a non-approved customer on a new sales order raises a warning and rejects the value.

 

The work runs in two steps:

 

  • FDD to TDD, in plan mode. Claude analyses the standard objects involved and writes a technical design: objects to create or extend with exact names, labels, security, verified method signatures, existing wrappers and a test plan mapped to the acceptance criteria. No X++ yet. This is where the developer’s judgement matters most: is the validation in the right place, and is anything missing?
  • TDD to code, test-first. Claude creates the SysTest class first and proves it fails. Then it implements the table and form extensions, the validation, the labels and the privilege, builds with the best-practice check, syncs the database and reruns the tests until they pass.

The failing test comes first on purpose. A test that passes on its first run has proven nothing about its assertion.

 

3. Root-cause Analysis and Bugfix

 

The starting point is an incident ticket: new sales orders have no payment terms. Claude traces where the payment terms field is set when a customer is selected and lists every extension on that path. It finds a custom Chain of Command wrapper that restores a value after the call to next, wiping the default the standard code had just set.

 

Then comes the part that matters for quality. Claude writes a unit test that reproduces the incident, shows it failing, applies the smallest fix that still honours the original requirement, and shows it passing. The incident becomes a permanent regression guard.

 

What Actually Changes for Developers

 

The job does not disappear. Its centre of gravity moves.

 

  • From typing to specifying. The quality of the FDD, the TDD and the prompt now drives the quality of the output.
  • From searching to reviewing. You read evidence and diffs instead of browsing the AOT.
  • From “it compiles” to “it’s proven”. Tests and checks become the default, not a luxury.
  • Accountability stays human. You sign the code. The tool does not attend the go-live.

 

The developers who benefit most are those who know the business and the platform well enough to direct the AI and catch its mistakes. Deep F&O knowledge becomes more valuable, not less.

 

Guardrails We Recommend

 

 

On cost: the server is free, but model usage is not. The project’s own measured runs show a full greenfield module consuming around 411,000 tokens of context, while a single Chain of Command change needs a fraction of that. Its guidance is to discover on a small model, build on a mid-size one and reserve the largest for architecture-heavy work.

 

On confidentiality: the server runs on your machine, but the context Claude reads is sent to the model provider under your account’s terms. For client code, that means following each client’s policy.

 

Where to Start

 

  1. Install the server on your own dev VM and add the instruction file.
  2. Run the verification prompts until a search returns your own custom objects.
  3. Spend the first week on analysis only: explain flows, trace security, investigate tickets.
  4. Then make one small change, test-first, and have a colleague review it.

 

AI is changing how software is built, and Dynamics 365 F&O is no longer an exception. If you would like to see how AI-assisted X++ development could work in your project, get in touch with us at axm365.com.

 

Sources

 

2025 Release Wave 2 Plans for Microsoft Dynamics 365 Business Central

On July 16, 2025, Microsoft announced the 2025 release wave 2 plans for Dynamics 365 Business Central, outlining the new capabilities expected to roll out between October 2025 and March 2026.

 

This upcoming wave marks a pivotal step forward in Microsoft’s mission to empower small and mid-sized businesses with intelligent, AI-powered tools that simplify operations, drive performance, and enable smarter, faster decision-making across finance, supply chain, manufacturing, sustainability, and more.

 

Whether you’re looking to automate processes, strengthen compliance, or improve agility with data-driven insights, this release wave delivers new opportunities to future-proof your operations. Read on to discover the full overview and what’s planned in this release.

 

Key Themes and Advancements

 

In the 2025 release wave 2, Microsoft is expanding the capabilities of Dynamics 365 Business Central with a strong focus on AI innovation, automation, sustainability, and manufacturing enhancements.

 

With new intelligent agents, users benefit from deeper automation and smarter workflows that reduce manual effort and increase productivity. The application continues to scale across industries and geographies, offering built-in extensibility, seamless integrations with Shopify and Dynamics 365 Field Service, and enhanced support for electronic documents and compliance.

 

This release highlights Microsoft’s continued investment in making Business Central a powerful and adaptable business platform – ready to help organizations grow, innovate, and operate more efficiently in today’s fast-moving environment.

 

Wave Highlights for Microsoft Dynamics 365 Business Central

 

Copilot and Agents

 

Business Central is Microsoft’s comprehensive, AI-powered application for small and medium-sized organizations that want to scale their business with AI automation, eliminate tedious tasks, and simplify work with powerful generative AI. Microsoft invests in customers’ AI transformation and enables its diverse partner community to bring industry expertise to accelerate this mission.

 

Even in the AI era, customers trust that their data is safe because it is protected by Microsoft’s world-class security, privacy, and compliance controls. The application is built on Microsoft’s Responsible AI principles, which put people at the center of the experience.

 

Microsoft Copilot

 

Microsoft Copilot is the AI-powered assistant that improves efficiency, boosts creativity, and eliminates repetitive tasks. With a Business Central license, every user gets Copilot at no extra cost. Copilot in Business Central has an ever-growing set of skills to guide, find, compare, analyze, suggest, and summarize.

 

Assistive features such as Chat, and task-specific features like bank account reconciliation assistance, are ready to use without complex setup or training. These features are seamlessly integrated to reduce or eliminate the need to switch between applications.

 

Autonomous Agents

 

Autonomous agents intelligently automate key business processes. For example, the Sales Order Agent handles the intake of sales orders from emails and attachments, interprets unstructured data, and generates accurate sales documents. With just a few clicks to configure and activate, these built-in agents can be run. They offer extensive oversight capabilities, allowing customers to review and approve activity – ensuring control while reducing manual effort.

 

For makers and pro developers, Business Central offers the flexibility to add custom AI solutions and connect to the broader Microsoft Cloud of AI-powered apps and services.

 

Copilot and agents are available only for Business Central online customers.

 

Country and Regional Availability

 

Business Central is available to organizations in an expanding number of countries and regions. This growth is driven largely by partner-led localizations. Microsoft partners create and maintain apps tailored for specific markets and publish them on AppSource.

 

Combined with built-in language support, Business Central now serves customers in more than 170 countries and regions. In markets where Microsoft is directly responsible for localization, all required regulatory updates are provided.

 

Development

 

This release introduces powerful new extensibility features that empower developers to create adaptable, resource-efficient solutions with greater flexibility to meet evolving business needs. With the ability to define profile extension objects, developers can customize user profiles without duplicating code – enhancing productivity while maintaining code integrity.

 

Developers can now include resources in extensions and access them from AL, streamlining data initialization and setup. Enhancements to the Explore in Visual Studio Code feature allow seamless access to GitHub repositories, even when IP protection is in place. Full-text search metadata on table fields enables faster, more accurate data search for a better user experience.

 

To save time validating solutions, resellers and publishers can now run multiple AppSource apps through a public NuGet feed that offers downloadable symbols, managed by AL-Go for GitHub. A rule-based scheduling mode for performance profiling also enables background profiling to identify and resolve performance issues more efficiently.

 

E-commerce

 

In each release, Microsoft continues to enhance Business Central’s integration with Shopify, based on direct customer feedback. This integration supports efficient planning, procurement, and product cost management. Customers also gain greater control over inventory levels across locations and item variants.

 

Connecting Business Central with Shopify simplifies pricing and discount definitions, as well as tax management and reporting for regulatory compliance. Whether using Shopify or Shopify Plus (which includes B2B features), this integration helps streamline business operations and improve overall efficiency.

 

Electronic Documents

 

Electronic Documents in Business Central streamline the sending and receiving of documents by minimizing manual data entry and reducing errors. This helps users become more efficient and focus on strategic activities.

 

The functionality enhances data accuracy and security while offering significant time and cost savings, contributing to improved operational performance.

 

Financial Management

 

Microsoft prioritizes the most requested features and market trends to shape Financial Management capabilities in each release. A core focus is on leveraging Copilot to streamline data entry, automate routine tasks, and deliver intelligent insights that improve decision-making.

 

Current efforts center on enabling agents to assist with financial tasks. For example, agents can support bookkeeping by referencing historical patterns or existing business practices. Financial tools continue to be adapted for a global customer base, with ongoing enhancements to tax management and compliance with evolving international regulations.

 

Reporting and Data Analysis

 

Data is the foundation of modern business decision-making. Recent advances in AI and analytics offer businesses transformative ways to uncover insights, detect trends, and drive innovation.

 

Microsoft’s reporting strategy emphasizes building universal BI and analytics directly within the Business Central experience. Rich, immersive content from both Microsoft and third-party providers is integrated seamlessly. Alongside flexible self-service capabilities, customers can extract maximum value from their data with minimal effort.

 

Supply Chain Management

 

Business Central provides comprehensive tools to manage procurement, production, logistics, and distribution – all in one integrated platform. Inventory management, order processing, and demand forecasting features allow businesses to maintain control and ensure on-time delivery. Support for multiple supply chain models gives customers the flexibility to align processes with business goals.

 

Deep integration with Microsoft products like Power BI and Teams allows for real-time insights and collaboration, helping teams make informed decisions based on live data. In this release, investments in quality management and subcontracting further expand supply chain capabilities.

 

Sustainability Management

 

Microsoft continues to expand Sustainability Management capabilities in Business Central to align with evolving regulations and customer feedback.

 

Collect Sustainability Data:
  • Track emissions, water usage, and waste across business units or locations.
  • Manually input data or use formulas, and import emission factors through open APIs.
  • Estimate carbon footprints with support from Copilot – even when full emission data is unavailable.

 

Track Progress:
  • Use the Sustainability Role Center to monitor KPIs and manage targets via scorecards.
  • Centralize and visualize key environmental metrics.

 

Gain Insights and Simplify Reporting:
  • Use built-in and Excel-based reports, embedded Power BI dashboards, and custom analysis views.
  • Align with CSRD and other standards via External ESG Reporting integrations.
  • Meet CBAM and EPR compliance requirements.

 

Enhance Brand Reputation:
  • Track Scope 3 emissions across the full value chain.
  • Add carbon footprint data to product invoices for transparency and accountability.

 

These tools help customers measure, report, and reduce their environmental impact confidently and efficiently.

 

For Application Administrators

 

User-impacting Features to the User Experience Enabled Automatically

 

User-impacting features should be reviewed by application administrators. This facilitates release change management and enables successful onboarding of new capabilities released to market. For the complete list, look for all features tagged “Users, automatically” in the release plan.

 

Features that Application Administrators Enable

 

Users get features in this release wave when administrators, makers, or business analysts enable or configure them. For the complete list, see all features tagged “Users by admins, makers, or analysts” in the release plan.

 

Ready for What’s Next in Business Innovation?

 

Whether you’re managing complex supply chains, driving growth across sales channels, or delivering high-value client services – the 2025 release of Dynamics 365 Business Central is built to support your next phase. With enhanced automation, stronger compliance tools, and a smoother upgrade path, it’s the right moment to modernize how your business runs.