1. Conduid
  2. Cloud
  3. D365fo
MCP server · Cloud

D365fo

Exposes MCP tools that prove every method, field, label and form pattern against your real metadata before the AI writes code.

79Good

Scored 22 hours ago · breakdown

About D365fo

D365fo is an MCP server published by dynamics365ninja in the Cloud category: exposes MCP tools that prove every method, field, label and form pattern against your real metadata before the AI writes code. Conduid read 22 tools from its source: analyze_code, axdb_sql, build_d365fo_project, d365fo_file, extension_info, find_references and 16 more. It is published to npm as d365fo-mcp and starts with npx.

The repository has 178 stars and 70 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v1.24.0 (12 Nov 2026): Changes since v1.23.0: chore(release): 1.24.0 (495ee966) fix(form): Workspace and field-less DetailsTransaction scaffolds pass their pattern (651bbacf) fix(write): resol… It follows v1.23.0 (5 Nov 2026), and the 5 most recent releases go back to v1.20.0 (2 Oct 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include azure, code-completion, d365fo, dynamics-365, dynamics-365-finance-operations and erp.

Install

Claude Code
claude mcp add d365fo -- npx -y d365fo-mcp
npx
npx -y d365fo-mcp
From source
git clone https://github.com/dynamics365ninja/d365fo-mcp-server

Tools (22)

analyze_codeLearn from the existing codebase. Choose a `mode`: • patterns → common classes/methods/dependencies for a scenario (call BEFORE generate_object(mode="pattern")). • implementations → real implementation examples of a similar method (actual code). • completeness → missing standard methods on a class (find/exist/validate gaps). • api-usage → how an API/class is initialized and called in practice.
ParameterTypeDescription
apiNamestring[api-usage] REQUIRED. Name of the API/class to get usage patterns for.
classNamestring[implementations|completeness] REQUIRED. Class to analyze / containing the method.
classPatternstring[patterns] Optional class name pattern to filter results (e.g., "Helper", "Service").
contextstring[api-usage] Optional context to filter patterns (e.g., "initialization", "validation").
limitnumber[patterns] Maximum number of pattern examples to return
methodNamestring[implementations] REQUIRED. Name of the method to implement.
mode *stringWhich analysis to run.
parametersarray[implementations] Method parameters.
returnTypestring[implementations] Method return type.
scenariostring[patterns] REQUIRED. Scenario/functionality to analyze (e.g., "financial dimensions", "inventory transactions").
axdb_sqlRead-only live AxDB SQL on the dev VM. Fetch contract first.
ParameterTypeDescription
action *string
build_d365fo_projectBuild a D365FO model with xppc.exe (compiles the ENTIRE model, not one project). Blocks until done — call ONCE per build, do NOT poll (wait:false = legacy polling mode). fullBuild:true fixes "not been successfully compiled since it was last changed" stale-symbol errors.
ParameterTypeDescription
aosUrlstringrestartAos root. Default: Infrastructure.HostUrl in AosService web.config; required on UDE.
bpCheckbooleanOn a SUCCESSFUL build, also run the best-practice checker and append its findings. Prefer this to a follow-up run_bp_check call: one build call instead of two round trips.
dbSyncanyOn a SUCCESSFUL build, also run the database sync (SyncEngine.exe) — REQUIRED after any table/view/data-entity change. true = partial sync of the syncable objects in the project, full-model when it has none; an ARRAY syncs exactly those tables/views (much faster). With deploy: full sync in the environment.
deploybooleanUDE: on a SUCCESSFUL build, deploy the model's package to the cloud runtime that run_systest_class tests run in. dbSync unset: syncs only if schema changed (~20 min, else ~3).
forcebooleanKill any running build processes for this model and restart.
fullBuildbooleanFull recompile of TARGET model (not deps). Fixes stale symbols; auto when a table, EDT, enum or OData entity changes.
modelNamestringD365FO model name to build (e.g. MyCustomModel). Auto-detected from workspace if omitted.
restartAosbooleanAfter a successful build (+dbSync), restart the local IIS/IIS Express AOS serving aosUrl.
waitbooleanDefault true: one call returns the final result. false = legacy fire-and-forget.
waitTimeoutMsnumberMax ms to block (default 30 min) before a "still running" snapshot; the build continues.
d365fo_fileD365FO AOT object files and VS projects. Choose an `action`: • create → write a NEW object file into PackagesLocalDirectory (auto-added to .rnrproj). THE WRITE STEP — incomplete until isError=false; ⚠️/❌ = failure. Extensions: objectName="Base.PrefixExtension". • project → VS project + .sln ops via params.operation: create|delete (confirm first)|add-object|remove-object. • modify → edit an EXISTING object. APPLIES IMMEDIATELY, no dry-run — confirm with the user first; revert with action="undo". Needs `operation`. • delete → remove an object's XML from disk AND un-register it from every .rnrproj listing it. IRREVERSIBLE — confirm with the user first. • undo → roll back `filePath`: git-tracked → git checkout HEAD, which discards ALL uncommitted changes to that file, not just the last edit; untracked/outside git → deleted only if created this session. • generate → XML as TEXT only, no write (Azure/Linux fallback). Try create first. The rest need Windows. 📖 Parameters are NOT inlined here: get_knowledge(kind="op-spec", topic="<operation>"|"<objectType>") returns its contract — pass its values nested in `params` (modify) / `properties` (create), along with any packageName/packagePath/solutionPath/workspacePath override. Model + prefix auto-applied.
ParameterTypeDescription
action *string
addToProjectbooleanAdd to the ACTIVE .rnrproj — keep the default.
createBackupboolean[modify] Back up before modifying.
filePathstring[modify|delete] Absolute XML path — bypasses symbol-DB lookup. Use for objects just created. [undo] REQUIRED: the file to roll back.
groundingTokenstringFrom prepare(change/create). Required for *-extension when GROUNDING_ENFORCE=true; object-bound.
modelNamestringTarget model — auto-detected. NEVER take it from search results (those are source models).
objectNamestringBase name WITHOUT model prefix — the tool prepends it. Extension classes: "{Base}_Extension". NEVER hand-build the prefix.
objectTypestringEach security/menu-item type is its own AOT folder — NEVER use security-privilege for duty or role. [modify]/[generate] cover the core families + their *-extension variants.
operationstring[modify] REQUIRED unless using operations[]. add-method also UPDATES in place; replace-code: surgical oldCode→newCode.
operationsarray[modify|create] PREFERRED for 2+ edits to the SAME object — ONE call. On create they run against the just-created object, under the name it actually got. Entries are {operation, …op-spec params}; objectType/objectName/modelName stay top-level. Applied in order, stopped at the first failure, per-operation results back.
overwritebooleanAllow overwriting — never rewrite via PowerShell.
paramsobject[modify|project] Operation-specific parameters as ONE nested object, per the op-spec lookup above. A missing/wrong one returns that COMPLETE spec — follow it, do not guess.
projectPathstringPath to .rnrproj. Set if known, else auto-detected.
propertiesobject[create] Per-objectType properties, per the op-spec lookup above.
sourceCodestringX++ source. FOR CLASSES auto-split: <Declaration> = class line + member vars; <Methods> = each method after the closing }.
xmlContentstringComplete XML written verbatim (+overwrite=true rewrites an object).
extension_infoD365FO extensibility analyzer. Choose a `mode`: • coc → Chain of Command extensions + event subscriptions for a class/table. Use before writing a CoC extension to check for conflicts. • events → event handler subscriptions (SubscribesTo, delegate +=) for a class/table. Use before adding handlers to check for duplicates. • table-merge → all extensions of a table across models + effective merged schema (base + extension fields/indexes/methods). • points → available extension points (CoC-eligible/replaceable methods, delegates, blocked methods) and which are already extended. • strategy → recommends the best extensibility mechanism for a goal (CoC, event handler, business event, data entity, …) with reasoning, risks, alternatives, next steps.
ParameterTypeDescription
goalstring[strategy] REQUIRED. What you want to achieve — e.g. "validate that SalesLine quantity is positive".
handlerTypestring[events] Filter by handler type (default: all).
includeEffectiveSchemaboolean[table-merge] Merge base + extension counts (default: true).
includeEventHandlersboolean[coc] Also find static event subscriptions (SubscribesTo) (default: true).
methodstring[coc] filter to a specific method name; [events] filter to a specific event name (e.g. onInserted).
mode *stringcoc/events/table-merge/points need `target`; strategy needs `goal`.
objectTypestring[events] set "table" when target is a table (else class is assumed); [points] object type (default: auto-detect).
scenariostring[strategy] Scenario category (auto-detected from goal if omitted). field-defaulting = set defaults on NEW records (initValue); field-change-reaction = react when a user/code CHANGES a field (modifiedField).
showExistingExtensionsboolean[points] Also list who already wraps/subscribes each point — opt-in, roughly doubles the response.
targetstringThe base object: [coc] class/table being extended; [events] class/table whose handlers to find; [table-merge] base table; [points] class/table/form; [strategy] optional target object.
find_referencesFind all references (where-used) to a class, method, field, table, enum, EDT, or LABEL. For a method, SCOPE it to its declaring type — pass "Owner.method" (e.g. "SalesTable.initFromSalesQuotationTable"), set ownerName alongside a bare method name, or pass an AOT path ("/Tables/SalesTable/Methods/initFromSalesQuotationTable"). A bare method name (no owner) matches that name on every type and over-reports. For a label, pass the label id as targetName (e.g. "@WAX2194" or "@MyLabelFile:MyLabel"); results span every referencing object type (tables, forms, EDTs, enums, reports, menu items, …), not just code, and require the xref database (DYNAMICSXREFDB, full server mode).
ParameterTypeDescription
limitnumberMaximum number of references to return
ownerNamestringDeclaring table/class/form that owns the method, when targetName is the bare method name. Scopes the where-used to that single type.
targetName *stringTarget name. Methods: see the scoping rule in the description above. Labels: the id exactly as written — "@WAX2194" or "@LabelFile:LabelId".
targetTypestringScopes a bare name to that type. An enum value: "Enum::Value" with "enum"; an index or field group: "Table.Name".
generate_objectGenerate X++/AOT code. Choose a `mode`: • pattern → a named X++ skeleton from the pattern enum (text only, no write). Call analyze_code(mode="patterns") first, then generate_object(mode="pattern"), then d365fo_file(action="create"). • scaffold → pattern-aware whole-object generation (table/form/report) with intelligent field/index/relation or form-pattern suggestions; set objectType. • find-methods → find()/findRecId()/exists() for a table (text), keyed on its primary/unique index. • relation-xpp → a table's relation(s) → X++ select + QueryBuildRange (text). • fields → field names → AxTableField XML with auto-resolved EDTs + optional field group. • table-relation → EDT-referencing fields → AxTableRelation XML (inverse of relation-xpp). 📖 Mode parameters are NOT inlined here: get_knowledge(kind="op-spec", topic="<mode>") — "scaffold:table"/"scaffold:form"/"scaffold:report" for the scaffolds — returns the contract; pass its values nested in `params`. For a single existing object definition's XML use d365fo_file(action="generate") instead.
ParameterTypeDescription
mode *string
modelNamestringModel name (auto-detected). NEVER use placeholders like "MyModel".
namestringREQUIRED. [pattern] element name (extensions: base element; form-datasource/control-extension: the FORM name). [scaffold] object name WITHOUT model prefix. [other modes] the existing table.
objectTypestring[scaffold] REQUIRED. Kind of object to generate.
paramsobjectMode-specific parameters as ONE nested object (label, fields[], fieldsHint, cloneFrom, tableMapping, formPattern, contractParams[], keyFields[], style, fieldGroup, …). A missing required one is answered with that mode's COMPLETE spec.
patternstring[pattern] REQUIRED. ssrs-report-full = Contract+DP+Controller; service-class-ais = CRUD service + contract; systest = failing SysTestCase (TDD red); report-* extend a STANDARD report (recipes: object_patterns(domain="report")).
get_knowledgeX++ knowledge lookup. Choose a `kind`: • knowledge → queryable X++ rulebook: verified patterns, BP rules, AX2012→D365FO migration. Use BEFORE generating code. Topics incl.: select-statement, coc-authoring, bp-rules, sysoperation, event-handlers, workflow, number-sequences, security, sysda, form patterns. • error → diagnose a D365FO/X++ compiler or runtime error: structured root cause + step-by-step fix + corrected X++ example (TTS mismatch, UpdateConflict, CSUV1, SYS10028 missing next, overlayering, BP errors, …). Call this instead of guessing — X++ error semantics differ from C#/.NET. • op-spec → the parameter contract for ONE d365fo_file operation/objectType or ONE generate_object mode (topic = "add-index", "table", "scaffold:form", …). Those two tools deliberately do not ship their parameters inline; call this after picking the operation, before the call. Omit topic for the index of available topics. • bp-moniker → validate an exact BP-check moniker, search by scenario when you have no moniker yet, or render a _BPSuppressions.xml <Diagnostic> block. Backed by names/text extracted from a real D365FO install — never invents a moniker.
ParameterTypeDescription
actionstring[bp-moniker] REQUIRED. validate = confirm an exact moniker is real; search = free-text scenario query; suppress = render a <Diagnostic> block.
errorCodestring[error] Optional error code (e.g. SYS10028, CSUV1, BPUpgradeCodeToday)
errorTextstring[error] REQUIRED. Full error message text as displayed in the X++ compiler or event log
formatstring[knowledge] concise = quick reference (default), detailed = full explanation with code examples
justificationstring[bp-moniker suppress] REQUIRED. Why the warning is ignored; 95% of real entries carry one.
kindstring
monikerstring[bp-moniker validate/suppress] REQUIRED. Exact moniker, e.g. "BPErrorPrivilegeNotCoveredByDuty".
pathstring[bp-moniker suppress] REQUIRED. dynamics:// path, verbatim from the finding.
topicstring[knowledge] REQUIRED. Topic to query — e.g. "ttsbegin", "RunBase vs SysOperation". [op-spec] The operation / objectType / mode to look up.
topicsarray[knowledge|op-spec] Look up SEVERAL topics in one call instead of one call each. Replaces topic.
get_object_infoRead D365FO object metadata. For 2+ objects pass objects:[{objectType,objectName},…] (max 10) — ONE call, run in parallel, per-object sections back; never loop single calls. One object: {objectType, name}. Pick the kind via objectType: class, table, form, query, view, enum, edt, report, data-entity, menu-item, menu, service, map, config-key, security-policy, macro, model. The *-extension types list all extensions of a base object — pass the base object name or a full extension name (the dot suffix is stripped automatically). Type-specific flags go in options. For CLASSES, {"members":"names"} (optional {"prefix":...}) returns a fast IntelliSense-style member-name list instead of full metadata.
ParameterTypeDescription
namestringExact object name (use search first if unsure). REQUIRED unless using objects[].
objectTypestringKind of object to read. REQUIRED unless using objects[].
objectsarrayPREFERRED for 2+ objects: read them all in one round trip. Each entry takes the same objectType/options as the single form, with the name in objectName.
optionsobjectType-specific reader flags: includeRdl (report), searchControl/maxControls/methodOffset (form), compact/methodOffset (class+table), fieldsOffset/fieldFilter/relations (table), filter (macro), mode (edt), includeFields, includeOperations, modelName. On class/table/view/data-entity, {"method":"validateWrite","include":"signature"} returns ONE method (include: signature | source | both) — required before writing a CoC extension. {"include":"xml"} returns raw AOT XML + its path (page: startLine/endLine) — never shell out to find or read a file. Applies to every objects[] entry.
get_workspace_infoALWAYS call FIRST at session start. Returns model name, package path, framework directory, project path, environment type, and EXTENSION_PREFIX. Flags placeholder model names and missing prefix. Pass projectName/projectPath when you have the project's name or path. Authoritative source for target model — not search results.
ParameterTypeDescription
changesbooleanReturn the uncommitted X++ changes (`git diff HEAD`) plus per-file rollback hints INSTEAD of the configuration. Review-only — not a way to verify a write.
diagnosticsbooleanInclude verbose sections (config sources, suffix, project paths, index scan, stdio handshake). Use when debugging config or connectivity.
projectNamestringThe PROJECT file name, e.g. "Contoso - FeatureManagement" — pass it whenever you have one: the USER named it, or an earlier call listed it. NOT a model name, and not a guess from a ticket: one model has many projects, so naming it selects none. Steers WRITES only; reads span every model already.
projectPathstringAbsolute path to a .rnrproj file. Use when projectName is ambiguous, none was auto-selected, or D365FO_SOLUTIONS_PATH is unset. Example: "K:\\repos\\Contoso\\MyProject\\MyProject.rnrproj"
labelsUnified label operations — read and write. Writing an object? d365fo_file create/modify already turn a raw-text label/fieldLabel into a real @Ref by themselves; no call here is needed. Choose an `action`: • search → full-text query across indexed label files. Never needed before a create. • info → all translations for a labelId; without labelId lists label files (with labelFileId: physical .label.txt path per language). • list → page one label file's labels; idPrefix/comment/missingLanguage/offset go in params. • create → add a label to an AxLabelFile across every language .label.txt (write). ALWAYS pass createIfMissing=true: it creates when absent and reuses when present, so this ONE call replaces search-then-create. Bulk: labels:[{labelId, translations}, …] with shared labelFileId/model at top level does a whole object in one call. Label IDs describe MEANING — never a model prefix; target the model's ORIGINAL label file, never an …_Extension… one. • update → overwrite the text of an EXISTING label; same args as create with corrected translations[] (write). • rename → rename a label ID across .label.txt + X++ + XML + index. Use dryRun=true first (write). Write plumbing (paths, languages, sortLabels…) is auto-resolved; overrides and list filters: get_knowledge(kind="op-spec", topic="labels").
ParameterTypeDescription
action *string
dryRunboolean[rename] Preview changes without writing anything.
labelFileIdstring[search|info|list|create|update|rename] AxLabelFile ID (e.g. ContosoExt, SYS). New file: ID = MODEL name, never EXTENSION_PREFIX.
labelIdstring[info|delete] Label ID, any spelling: SYS67433, @SYS67433, @ContosoExt:MyLabel (paste search output). labelFileId/model optional. Omit to list label files.
labelsarray[create|update] Bulk mode — shared fields stay at the top level (top-level labelId/translations are then ignored); a failed entry does not abort the batch.
languagestring[search|list] Language/locale (default en-US), e.g. cs, de, sk, fi.
maxResultsnumber[search|list] Page size (search 10, list 50); reports how many more matched.
modelstring[search|info|list|create|update|rename] Model owning the label file.
newLabelIdstring[rename] REQUIRED. New label ID.
oldLabelIdstring[rename] REQUIRED. Current label ID (e.g. MyOldField).
paramsobjectOptional overrides / list filters (see op-spec).
queryany[search] REQUIRED. Search text — matches label ID, text and developer comment. ARRAY = try several phrasings in ONE call.
translationsarray[create] REQUIRED for single-label create (omit with labels[]). Translations for each language. Provide at least en-US.
verboseboolean[search|list] true = full block (list: all languages).
object_patternsPattern toolkit. Choose a `domain`: • table → field/index/relation patterns for D365FO tables. Filter by tableGroup or similarTo a given table. • form → form-pattern toolkit; pick an `action`: - analyze → pattern advisor + usage analysis. For a NEW form pass `recommend` (preferred): the Microsoft decision tree picks the pattern and names reference forms to clone. Or filter by formPattern / dataSource / similarTo. - spec → structure spec of a pattern/sub-pattern: hierarchy, ordering, allowed children, reference forms, lifecycle. - validate → AxForm XML validator (hierarchy/order, sub-patterns, PatternVersion) → FP001-FP011. Call before d365fo_file action=create. • report → SSRS implementation recipes: object roster, scaffold call, checks. Optional pattern=<id>. • mobile-app → warehouse-app screen recipes, led by the choice between the two frameworks that build them (ProcessGuide vs WHSWorkExecuteDisplay): create a flow, add or replace one screen, step icon/title, GS1 scan input. Optional pattern=<id>.
ParameterTypeDescription
actionstring[form] Which form-pattern operation to run. repair = auto-fill missing required controls.
dataSourcestring[form/analyze] Table name - find forms using this table
domainstringOptional — inferred from the other params (action/pattern/xml/formName → form; tableGroup → table). A concept like "number-sequence" is not a domain: that is get_knowledge.
filePathstring[form/validate] Path to an AxForm XML file not yet indexed.
formNamestring[validate] Name of an indexed form — XML is loaded from the metadata store.
formPatternstring[analyze] D365FO form pattern to analyze
limitnumber[analyze] Max pattern examples.
patternstring[spec|report|mobile-app] Pattern name (id, xmlName or alias) — e.g. "SimpleList", "FieldsFieldGroups", "PrintMgmtFormLetter", "processguide-flow".
recommendobject[analyze] Pattern advisor: describe requirements, get a recommended pattern + reference forms to clone.
similarTostring[table] table / [form-analyze] form name to find similar patterns.
tableGroupstring[table] Table group type to analyze (choose one).
xmlstring[validate] Complete AxForm XML to validate. Provide this OR formName/filePath.
prepareONE-call context aggregator + groundingToken (30-min TTL, required for extension/new-object writes when GROUNDING_ENFORCE=true). Choose a `mode`: • change → extending/modifying an EXISTING object: exact signature, existing CoC wrappers, eligibility, recommended strategy, naming, patterns. Replaces the analyze→search→info→generate loop. • create → a NEW object: collision check, naming with auto-prefix, similar objects, EDT suggestions, reusable labels, mined property defaults. • test → writing a SysTest for an existing class: methods worth covering, tests that already exist, whether the model references TestEssentials, and the red-first cycle.
ParameterTypeDescription
fieldsHintarray[create] For tables/views: planned field names — each gets EDT suggestions from the index.
goal *stringOne-sentence description of the intent. Example (change): "Add CoC on CustTable.validateWrite". Example (create): "Parameter table for the Contoso import feature."
methodNamestring[change] Target method name when the change involves a specific method (CoC or event handlers). Example: "validateWrite".
mode *string
objectName *string[change] Name of the object to extend/modify (e.g. "CustTable"). [create] Proposed BASE name WITHOUT model prefix.
objectTypestring[change] type — auto-detected when omitted. [create] REQUIRED; an extension is Base.Suffix.
operationstring[change] The modify operation(s) you intend to run — comma-separated for several ("add-field,add-index"). Their full parameter contracts come back in THIS response. Defaults to add-method when methodName is given.
proposedNamestring[change] Proposed name for the new extension class/object. When provided, naming validation runs.
run_bp_checkRun Microsoft Best Practices checker (xppbp.exe) on a D365FO project. Returns BP warnings and errors with rule codes. Runs AFTER a build, not after a write; build_d365fo_project(bpCheck:true) already folds it in, so a separate call is rarely needed.
ParameterTypeDescription
modelNamestringModel name to check. Auto-detected if omitted.
objectsarraySeveral objects in ONE call, findings grouped per object. An entry "git:<ref>" (e.g. "git:origin/main") checks only objects changed since that ref. Later runs list only findings new since the last run.
packagePathstringPackagesLocalDirectory root path. Auto-detected if omitted.
projectPathstringAbsolute path to the .rnrproj file to analyze. Auto-detected if omitted.
run_systest_classRun D365FO unit test classes (SysTestConsole; UDE: cloud runtime), with per-method results.
ParameterTypeDescription
className *stringSysTest class, e.g. "MyModuleTest". UDE: several of one model, comma-separated, in one run
modelNamestringThe model containing the test class. Auto-detected if omitted.
packagePathstringPackagesLocalDirectory root path. Auto-detected if omitted.
testMethodstringOptional: run only this specific test method within the class (e.g. "testValidation").
searchSearch pre-indexed D365FO objects by name or keyword. Three modes in ONE tool: • single (default) → pass `query`; returns name, type, model. • batch → pass `queries[]` (max 10) to run searches in parallel (3× faster, with dedup + cross-reference). • extensions → set `scope:"extensions"` to restrict to custom/ISV models only (filters out Microsoft standard code). Model names in those results are SOURCE models — never use them as create/modify targets. Use get_object_info(objectType, name) when you already know the exact name and need full details.
ParameterTypeDescription
limitnumber[single|extensions] Maximum results to return
prefixstring[extensions] Object name prefix (e.g., ISV_, Contoso).
queriesarray[batch] Array of search queries to execute in parallel (max 10). When provided, runs in batch mode and `scope`/`query` are ignored.
querystring[single|extensions] Search query (class name, method name, table name, etc.). REQUIRED unless using batch `queries[]`.
scopestring[single] Whole index, or only custom/ISV models. Ignored when `queries[]` is provided.
typestring[single] Filter by object type ("all" = no filter).
verboseboolean[single] Include related-searches/patterns/tips sections.
security_infoD365FO security lookup. Choose a `mode`: • artifact → details + full hierarchy of a named privilege/duty/role (Role → Duties → Privileges → Entry Points). • coverage → reverse chain for an object: which privileges/duties/roles grant access (object → menu items → privileges → duties → roles).
ParameterTypeDescription
artifactTypestring[artifact] REQUIRED. Type of security artifact to look up
includeChainboolean[artifact] Walk the full hierarchy (default: true)
mode *string
namestring[artifact] REQUIRED. Name of the security privilege, duty, or role
objectNamestring[coverage] REQUIRED. Name of the form, table, class, or menu item
objectTypestring[coverage] Type of the object (default: auto-detect)
tfvcTFVC on the dev VM: pending changes, check-in with work items, file history and old versions. Fetch contract first.
ParameterTypeDescription
action *string
trace_d365foETW trace of X++ and SQL time on the dev VM, instead of timer code. Fetch contract first.
ParameterTypeDescription
action *string
validate_codeStatic validator for generated X++/XML (paste the text). Choose a `mode`: • syntax → offline best-practice/BP validator (no xppbp.exe). Structured violations {rule, severity, line, excerpt, fix}. Covers select, CoC, BP and table-XML rules mined from standard models. • references → semantic reference resolver (index-only): verifies every type, field, method (incl. arity), enum, label and intrinsic (tableStr/fieldStr/…) EXISTS in the indexed codebase. codeType="xml-table" checks XML refs instead: EDT/enum/relation/extends/label. Call mode="both" AFTER generating, BEFORE writes; fix errors in the same turn. Write tools run references internally when GROUNDING_ENFORCE=true.
ParameterTypeDescription
code *stringX++ source code or XML metadata to validate. Paste the full generated text.
codeTypestring[syntax] "xpp" X++ (default), "xml-table" AxTable, "xml-form" AxForm(+Extension), "xml-report" AxReport, "xml-any" other.
contextstringOptional: owning class/table name, used in diagnostic messages.
mode *stringboth = run the two checks in ONE call (preferred).
validate_object_namingValidate a proposed D365FO object name: extension naming/formats, ISV prefix, type suffixes, conflicts in the symbol index.
ParameterTypeDescription
baseObjectNamestringExtension types: the object being extended
baseObjectTypestringclass-extension: its type (class|table|form|…); picks the name format
modelPrefixstringISV/model prefix (e.g. "WHS"); auto-detected if omitted.
objectType *string
proposedName *stringThe proposed object name to validate
verify_d365fo_projectVerify that D365FO objects exist on disk at the correct AOT path and are referenced in the .rnrproj project file. Use instead of PowerShell. Runs AFTER a build, not after a write: d365fo_file already verifies its own write inline (on disk + .rnrproj reference) and says so in its response. Omit `objects` to verify the ENTIRE project: every object referenced in the .rnrproj is checked on disk (requires projectPath, or an auto-detected/configured project).
ParameterTypeDescription
modelNamestringModel name. Auto-detected if omitted.
objectsarrayList of objects to verify. OPTIONAL — omit to verify every object referenced in the project (.rnrproj).
projectPathstringAbsolute path to the .rnrproj file. Required for project-reference check.

Security checks

  • ✓README presentThe repository's README runs to about 1.1K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !No dynamic code executionScanned 493 source files and found 15 calls to eval or shell execution, in src/eval/oracle/cli.ts, src/tools/sdlc/aosRuntime.ts and src/tools/sdlc/buildProject.ts among others. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

Releases

v1.24.0v1.24.0 · 12 Nov 2026What's Changed Changes since v1.23.0: chore(release): 1.24.0 (495ee966) fix(form): Workspace and field-less DetailsTransaction scaffolds pass their pattern (651bbacf) fix(write): resolve a package-name modelName before the cross-model…
v1.23.0v1.23.0 · 5 Nov 2026What's Changed Changes since v1.22.0: chore(release): 1.23.0 (3a7a9d4f) fix(menu): element names are unique in the whole menu, items included (9054dc8d) fix(search): drop the extension owner in the workspace-aware listing too (4b6859d3)…
v1.22.0v1.22.0 · 1 Nov 2026What's Changed Changes since v1.21.0: chore(release): 1.22.0 (e5625125) fix: release 1.22 audit — COC004 multi-line headers, atomic rollback of a created extension (04f0469f) fix(edt): accept kernel EDTs (RecId, UserId, ValidFromDateTime…)…
v1.21.0v1.21.0 · 15 Oct 2026What's Changed Changes since v1.20.0: chore(release): 1.21.0 (b8fac55d) fix: release 1.21 audit — trace SQL grouping, BP summary order, config booleans, add-control moves (95c550ce) chore(bridge): attest the build with the source stamp…
v1.20.0v1.20.0 · 2 Oct 2026What's Changed Changes since v1.19.1: chore(release): 1.20.0 (8bac60c5) fix: three defects the 1.20.0 release review found in the unreleased field/entity writers (920bbd18) fix: close the four open code scanning alerts (40ea194e)…

README

The repository's README runs to about 1.1K words, fetched 12 days ago. The original in the repository is authoritative.

Read full README
Questions

About D365fo

How do I install D365fo?

In Claude Code, run claude mcp add d365fo -- npx -y d365fo-mcp. Other MCP clients take the command after "--" in their server configuration.

Is D365fo safe to use with an AI agent?

Its trust score is 79 out of 100 (good). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. It has no ConduID identity yet, so agent calls to it are not receipted.

Is D365fo still maintained?

Yes — the latest release is v1.24.0 (12 Nov 2026), and the last commit was 9 hours ago. The repository has 178 stars and 3 open issues.

What tools does D365fo provide?

Conduid read 22 tools from the source: analyze_code, axdb_sql, build_d365fo_project, d365fo_file, extension_info, find_references, generate_object, get_knowledge and 14 more. 22 of them publish their parameters, listed under Tools above.

What license is D365fo released under?

The repository declares the MIT license. That applies to the latest release, v1.24.0, as well.