DataMigrate Pro·AI and MCP
DataMigrate Pro MCP Server – Operations Guide
The MCP Server of DataMigrate Pro gives AI agents such as GitHub Copilot, Claude or ChatGPT access to its functions. The guide covers build and start.
DMP.McpServer exposes DataMigrate Pro (DMP) to AI agents such as GitHub Copilot, Claude or ChatGPT through the
Model Context Protocol. It is a stand-alone console host built on the official
MCP C# SDK (ModelContextProtocol 2.x) that reuses the DMP business logic in DataMigratePro.Core; it does not depend
on the Mapping Editor GUI. The repository analysis and the tool-to-service mapping are documented in
MCP-Server-Analysis.md.
1. Build and start
dotnet build DMP.McpServer\DMP.McpServer.csproj -c Release -p:EnableThemidaProtection=false
# or publish next to the DMP installation (recommended: same folder as DataMigratePro.exe so features.json/plugins are found)
dotnet publish DMP.McpServer\DMP.McpServer.csproj -c Release -r win-x64 --self-contained false -p:EnableThemidaProtection=false -o C:\Migration\DataMigrateProStart manually to check the configuration (stdout is the protocol channel; all diagnostics go to stderr):
C:\Migration\DataMigratePro\DMP.McpServer.exe `
--settings contoso-test=C:\Migration\Customers\Contoso\test\settings.json `
--settings contoso-prod=C:\Migration\Customers\Contoso\prod\settings.json `
--logs-dir C:\Migration\DataMigratePro\logs --data-dir C:\Migration\DataMigratePro\mcp| Switch | Meaning |
|---|---|
--settings <name>=<path> / --settings <path> |
Registers a DMP settings.json as connection profile (repeatable). Without a name the file/folder name is used. |
--profiles-dir <dir> |
Registers every *.json in the directory. |
--profile <name> |
Profile activated at start-up (default: first). |
--allow-write |
Enables write tools such as dmp_apply_mapping, dmp_import_value_mapping_classification and dmp_import_fob_metadata (apply mode). |
--allow-migration |
Enables dmp_start_migration, dmp_stop_migration, dmp_start_reconcile. |
--allow-source-profiling / DMP_MCP_ALLOW_PROFILING |
Enables source table/column profiling. Defaults off; sensitive columns are masked. |
--allow-source-query / DMP_MCP_ALLOW_QUERY |
Enables the guarded, row-limited dmp_query_source SELECT tool. Defaults off; use a read-only SQL login. |
--profiling-max-rows <n> / --profiling-timeout <s> |
Profile scan threshold and SQL command timeout. |
--mask-columns <pattern;pattern> |
Sensitive column name patterns (default includes password, secret, IBAN, SSN and tax number). |
--synonyms <file> / DMP_MCP_SYNONYMS |
Source abbreviation and synonym lexicon used by discovery and candidate scoring. |
--knowledge <file> / DMP_MCP_KNOWLEDGE |
Optional anonymized mapping precedents. |
--metadata-cache-minutes <n> |
Target BC metadata cache TTL (default 10 minutes). |
--new-table-no-start <n> |
Number range start for new non-NAV source tables (default 50000). |
--approval-mode elicitation|file|both|chat |
Human approval channel (default both, see §3). chat is opt-in for clients without an elicitation UI (ChatGPT). |
--approval-ttl-minutes <n> |
Lifetime of approval tokens (default 30). |
--data-dir <dir> |
Jobs, approvals, audit log, output files (default %LOCALAPPDATA%\DataMigratePro\mcp). |
--logs-dir <dir> |
DMP log directory for dmp_get_logs / dmp_get_transfer_statistics. |
--allowed-path <dir> |
Additional directories tools may read from / write to (repeatable). |
--max-inline-rows <n> |
Rows returned inline before paging / file output (default 500). |
--transport stdio |
Transport. http is reserved (§7). |
Environment variables DMP_MCP_SETTINGS (name=path;name=path), DMP_MCP_ALLOW_WRITE, DMP_MCP_ALLOW_MIGRATION,
DMP_MCP_APPROVAL_MODE, DMP_MCP_DATA_DIR, DMP_MCP_LOGS_DIR are alternatives to the switches.
Each profile is a normal DMP settings.json (SQL connection string, source/mapping/migration database, company, BC
tenant/environment, authentication). Secrets stay DPAPI-protected in those files and are never returned by any tool.
FOB source metadata
dmp_import_fob_metadata reads NAV 2009 R2 table and field definitions directly from a FOB, validates them against
the configured source SQL schema, and previews idempotent updates to BC Migration Tables and BC Migration Mapping.
The FOB can be supplied as a server-local inputFile inside an allowed directory, or as Base64 fobBase64 content
when the file is attached in the AI client but is not present on the server. Base64 and local files are limited to
32 MiB. For local paths outside the MCP data/output directories, configure --allowed-path.
Always call with mode=preview first and review the plan/report. Applying requires --allow-write, the unchanged
FOB and source schema (bound to previewHash), and human approval. The operation does not update BC Migration Dimension. Target tools automatically request missing BC table/field metadata from the configured Business Central
system before returning target structures or mapping suggestions; they fail explicitly if BC metadata is still
missing after refresh. Thus the safe sequence is: inspect the physical source, preview/apply the FOB metadata import
if needed, then discover/confirm BC target metadata, and only then ask for mapping suggestions.
2. VS Code / GitHub Copilot configuration
Copy DMP.McpServer/examples/mcp.json to .vscode/mcp.json in your workspace
(or add the server under MCP: Add Server in VS Code) and adjust the paths:
{
"servers": {
"dmp": {
"type": "stdio",
"command": "C:\\Migration\\DataMigratePro\\DMP.McpServer.exe",
"args": [
"--settings", "contoso-test=C:\\Migration\\Customers\\Contoso\\test\\settings.json",
"--logs-dir", "C:\\Migration\\DataMigratePro\\logs",
"--allow-write"
]
}
}
}In Copilot Chat (agent mode) the tools appear as dmp_*. Typical prompts:
- "List the DMP connections and show the migration tables of category Masterdata for contoso-test."
- "Compare source table 18 with its BC destination and propose mappings for the unmapped fields."
- "Preview setting field 18/2 to destination field 2 and skipping 18/3; then apply it." (Copilot shows the preview, then VS Code asks you to approve the change – see §3.)
- "Export the value mapping candidates, I will fill in the classifications." →
dmp_export_value_mapping_candidates - "Dry-run import
C:\Migration\Exchange\classification.csv, show errors with line numbers." - "Start a delta migration for categories 1,2 and tell me when table 27 is done."
- "Run the G/L and customer balance reconciliation as of 2025-12-31 and summarize the differences."
Debugging: run the project from VS Code/Visual Studio with the same arguments (the launchSettings.json profile
DMP.McpServer can hold them) and attach; use --data-dir pointing to a scratch folder. Protocol traffic can be
inspected with the MCP Inspector (npx @modelcontextprotocol/inspector dotnet DMP.McpServer.dll --settings ...).
All server logs are written to stderr and to the DMP log (logs\DataMigratePro.log) of the server's folder.
3. Security and approval model
| Layer | Mechanism |
|---|---|
| Capability flags | Write, execution, profiling and free-text query tools are disabled unless explicitly enabled (--allow-write, --allow-migration, --allow-source-profiling, --allow-source-query). Other read tools remain available. Flags are visible through dmp_list_connections. |
| Separation read/write | Every tool carries MCP annotations (readOnlyHint, destructiveHint, idempotentHint). dmp_apply_mapping, dmp_import_value_mapping_classification, dmp_import_fob_metadata, dmp_start_migration and dmp_stop_migration are non-read-only. |
| Preview binding | Write/execute tools first produce a preview (mode='preview', dryRun=true, or the migration plan) with a preview hash. The apply call must present the same hash; the server recomputes the plan and rejects it if the underlying data changed (MappingChangeService compares plan hashes; classification import compares the CSV SHA-256; FOB import compares the file SHA-256 and source-metadata plan hash). |
| Human approval | A statement of the AI agent is never sufficient. Depending on --approval-mode: elicitation – the server sends an MCP elicitation request; the MCP client (VS Code) shows the summary and a checkbox to the user; file – the server writes <data-dir>\approvals\<token>.request.json with the summary and returns the token; a person creates <token>.approved containing APPROVED; the agent retries with approvalToken. Tokens are bound to operation + hash, expire (--approval-ttl-minutes) and are deleted on use (no replay, no double execution). both (default) uses elicitation when the client supports it and the file fallback otherwise. chat (opt-in) – for clients that advertise elicitation but cannot render it (ChatGPT auto-declines): the server issues the token with an instruction to show the summary and obtain the user's explicit confirmation in the chat; the agent then retries with approvalToken and the token alone grants once. Operation/hash binding, expiry and single use still apply, but the confirmation is asserted by the agent (audit approval-chat, assertedBy=agent), so the server logs a start-up warning; use it only with trusted clients and read-only-by-default policies. |
| Server-side enforcement | All checks run inside the server (ApprovalService), not in the agent. |
| Audit trail | <data-dir>\audit.jsonl records every approval request/decision and every write/execute call (user, machine, tool, redacted parameters, result). Mapping changes are additionally logged to the DMP log (MappingChange topic, old → new values) and job start/stop to the MigrationRun topic. |
| Secrets | Connection information is exposed only as ConnectionSummary (server, databases, company, auth mode, "has secret" flags). Log excerpts and error messages are passed through a redaction filter (Password=…, Secret=…, tokens, SAS signatures). Parameters in jobs/audit are redacted (AuditLog.Redact). |
| File paths | PathPolicy: relative paths resolve inside <data-dir>\output; absolute paths must be inside the output/data directory, the DMP export/reconcile directories or an --allowed-path. Traversal (..) outside is refused. |
| Input validation | Table numbers, categories (1–7), ranges, filter combinations, value mapping codes (length), remarks/joins (length), report formats and migration switches (whitelist) are validated before any SQL runs. |
| Result sizes | List results are paged (offset/limit); when a result exceeds --max-inline-rows without explicit paging, the complete set is written to a JSON file and the first page plus the file path are returned. Exports always go to files. |
| Double execution | One migration per process (MigrationRunService), one active connection, single-use approval tokens, job ids for all long-running work. |
| Later HTTP operation | See §7 – remote access runs through DMP.McpGateway (Entra ID) and the listener relay; the --allow-* policies are then the McpRelay flags of the listener's settings.json. |
Recommendation for production: run the server without --allow-write/--allow-migration for analysis work and
start a second, deliberately configured instance (own .vscode/mcp.json entry, --approval-mode elicitation) when
changes or migrations are intended.
4. Tools
Parameters marked * are required. All tools accept connection (profile name; default = active profile) unless noted.
Connections and metadata
| Tool | Purpose | Key parameters |
|---|---|---|
dmp_list_connections |
Configured profiles (secret-free), active profile, capability flags, output directory. | – |
dmp_get_source_schema / dmp_get_source_columns |
Discover physical source tables across schemas and read columns without migration mappings. | schema/name filters, physical table |
dmp_profile_source_table / dmp_profile_source_column |
Sample null/distinct/value distributions and patterns (requires profiling flag). | table, columns, topN |
dmp_query_source |
Execute one guarded, limited SELECT against the source database (requires query flag). | SQL, maxRows, timeout |
dmp_import_fob_metadata |
Preview/apply FOB table and field metadata to BC Migration Tables and BC Migration Mapping; accepts a server path or Base64 file content. |
inputFile or fobBase64, mode, previewHash, approvalToken |
dmp_search_target_fields / dmp_get_target_table |
Search BC fields by name/caption/synonyms and inspect table metadata. | query, tableNo, filters |
dmp_get_value_mappings / dmp_propose_table_mapping |
Inspect value maps inline and rank target tables for a physical source table. | codes/tableNos or table |
dmp_get_tables |
side=source: migration tables (category, counts, sync settings), optionally physical NAV tables; side=target: BC tables. |
side, nameFilter, categories[], tableNos[], includePhysicalTables, paging |
dmp_get_fields |
Field definitions incl. types/properties; source side with current destination and optional SQL column types. | tableNo*, side, includePhysicalColumns, paging |
dmp_get_mapping |
Table/field mappings with classification. | sourceTableNos[], fromTableNo, toTableNo, categories[], sourceFieldNos[], skipped, includeUnmapped, valueMappingCodes[], includeTables, paging |
dmp_compare_structures |
Source vs. target structure: unmapped/unused fields, missing/obsolete/disabled destinations, type mismatches, physical schema deltas (works across NAV/BC versions). Physical tables can be compared before registration when destinationTableNo is supplied. |
sourceTableNo or sourceTable, destinationTableNo, includePhysicalColumns |
dmp_analyze_mapping |
Issue list (UNMAPPED, DESTINATION_MISSING, DESTINATION_OBSOLETE, DESTINATION_DISABLED, DESTINATION_NAME_CHANGED, TYPE_MISMATCH, DESTINATION_DUPLICATE, VALUE_MAPPING_MISSING, VALUE_MAPPING_EMPTY, CLASSIFICATION_CONFLICT, NO_PRIMARY_KEY, MULTIPLE_DESTINATION_TABLES, SKIPPED_WITH_DESTINATION). |
scope filters, minSeverity, paging |
dmp_propose_mapping |
Ranked field candidates with component scores and reasons; physical sourceTable is supported when destinationTableNo is supplied. useProfile requires profiling capability. |
sourceTableNo or sourceTable, destinationTableNo, candidatesPerField, useProfile, usePrecedents |
dmp_propose_table_mapping |
Ranks BC destination tables by source-name similarity, matching field coverage and key shape. | table, topK, categoriesHint[] |
dmp_find_mapping_precedents / dmp_export_mapping_knowledge |
Finds anonymized active-profile/template/knowledge precedents and exports normalized, privacy-minimized knowledge through PathPolicy. Other profiles are read only when explicitly selected. | field names and optional profile names / output file |
dmp_validate_mapping_sql |
Uses the production migration export-query compiler in read-only mode, bounds the sample, and reports SQL errors as structured results. Sensitive columns are masked. Does not start a migration or require --allow-migration. |
tableNo, maxRows (1–200), onlyMappedFields, timeoutSeconds |
dmp_preview_transfer |
Samples production-query rows; applies value mappings/dispatchers and local Boolean, DateFormula, and RecordID table-number transformations per record. BC-dependent ledger offsets are explicitly reported as SkippedNeedsBc; no writes, propagation, or Business Central calls occur. Sensitive source/target values are masked. |
tableNo, maxRows (1–50), optional whereClause, includeUnchangedFields |
Mapping changes
Resources at dmp://docs/*, dmp://lexicon/synonyms, dmp://templates/{name}, and dmp://profiles/{connection}/summary, plus prompts onboard_source_database, map_unknown_table, review_table_mapping, and build_value_mapping, provide workflow guidance. Candidate scores are deterministic heuristics; the agent/human remains responsible for the decision.
| Tool | Purpose | Flow |
|---|---|---|
dmp_apply_mapping |
Change/create mapping rows (destination table/field, skip, primary key, value mapping code, remarks, join/where/calculation, joined table). Destination names/types are completed from BC Field; validation: table/field exist, enabled, not obsolete (unless EnableObsoletMapping), value mapping code exists, lengths, duplicate destinations (warning), type compatibility (warning). |
1. mode=preview → per-row deltas, errors, warnings, previewHash. 2. mode=apply with changes + previewHash (+ approvalToken for file approval). Writes with the Mapping Editor statement, logs each row, optionally queues BC propagation (queueBcPropagation, default true). Requires --allow-write. |
dmp_apply_migration_table |
Registers a physical table and optionally creates unmapped field rows from physical columns. Preview proposes a table number; apply must explicitly repeat it. | Preview → review proposed number/hash → apply with matching hash and human approval; requires --allow-write. |
dmp_apply_value_mapping |
Creates/updates headers and values, supports replacement/deletion previews, and prevents deletion of referenced codes. | Preview → review deltas/hash → apply with matching hash and human approval; requires --allow-write. |
Migration
| Tool | Purpose |
|---|---|
dmp_start_migration |
kind = fullload (putalldata, --changesonly 0), delta (--changesonly 1), feature (--feature), deleteall, featuredelete; tableGroup (categories), tableRange (-r), batchSize, testRun. Returns the plan (tables, estimated records, exact DMP switches) and requests approval; after approval the job starts and the job id is returned. Requires --allow-migration. |
dmp_stop_migration |
Cooperative stop through DMP's cancellation (no process kill). Waits up to waitSeconds, returns actual state, transferred tables/records and the resume hint (delta run). |
dmp_get_migration_status |
Job id, kind, state (Queued/Running/Cancelling/Completed/Failed/Cancelled), start/end, current table, processed/total records, percent, ETA, errors, warnings, per-table statistics. Without jobId lists recent jobs. |
dmp_get_transfer_statistics |
Per-table records/durations and error/warning counts of MCP jobs plus Finished transfer for table … statistics parsed from the DMP logs for a period. |
Reconcile
| Tool | Purpose |
|---|---|
dmp_start_reconcile |
reports[]* (glbalance, custbalance, vendbalance, opencustomer, openvendor, vatbalance, glpostinggroup, inventoryqty, inventoryvalue, all), asOfDate, from, to, cutoffDate, openingBalanceDate, tolerance, includeClosingEntries, showFcy, includeDetails, sideMode (both/source/target), targetMode (auto/api/odata), outputFolder, setFile. Runs asynchronously (job id). Read-only against NAV/BC; requires --allow-migration (long-running), no human approval. |
dmp_get_reconcile |
Structured results per report: type, period/as-of, totals (total, matching, differing, source-only, target-only, unmapped, Σ difference), control checks, largest deviations, technical errors, notes, file list (CSV, HTML, result.json). Also works for existing result folders (outputFolder). |
Exports (§6 for the format)
| Tool | Selection |
|---|---|
dmp_export_mapping |
tables, ranges, categories, fields, skipped/active, unmapped |
dmp_export_value_mapping |
codes and/or codes referenced by tables; includeDependencies follows dispatcher rules |
dmp_export_classification |
tables/ranges/categories, classifications[] (DIRECT/CONDITIONAL/NONE/OPEN), origins[] (AUTO/IMPORT/MANUAL), includeSkipped; rows without a stored decision are exported as OPEN with empty origin – NONE is never implied |
dmp_export_mapping_package |
everything above in one file; mode=explicit (selection only) or mode=dependencies (plus referenced headers, dispatcher rules, type switches) |
Value mapping classification (mapping database only, no BC connection)
| Tool | CLI equivalent |
|---|---|
dmp_export_value_mapping_candidates (table, includeSkipped, outputFile) |
-t exportvaluemappingcandidates |
dmp_import_value_mapping_classification (inputFile*, dryRun default true, partial, reportFile, syncToBc, approvalToken) |
-t importvaluemappingclassification – validation with record numbers, all-or-nothing unless partial, idempotent, persists classification + origin, creates/updates dispatchers and headers; apply requires approval + --allow-write |
dmp_value_mapping_coverage (table, includeSkipped, reportFormat, reportFile) |
-t valuemappingcoverage – counts per table (DIRECT/CONDITIONAL/NONE/OPEN), open rows, plausibility warnings, CSV/HTML report |
Logs and files
| Tool | Purpose |
|---|---|
dmp_get_logs |
Serilog entries filtered by jobId, period, levels[], tableNo, errorType (topic keyword), contains; newest first, paged, secrets masked. |
dmp_read_file |
Chunked reading of result files (exports, reports, result.json) inside the allowed directories. |
5. Jobs
Long-running operations never block the client. dmp_start_migration and dmp_start_reconcile return a job id;
JobManager runs the work in the background, records progress (stage, table, counts, ETA), result, errors/warnings
and the produced files, and persists every job to <data-dir>\jobs\<id>.json. Jobs survive a server restart as
read-only history; a job that was active when the server process ended is marked Failed with a note (the DMP log
holds the real outcome). Each job id is also written to the DMP log (Migration run <id> started/finished), so
dmp_get_logs jobId=<id> correlates both.
6. Mapping package format (formatVersion 1)
Exports are UTF-8 JSON (camelCase, enums as strings, null omitted) written by MappingPackageSerializer:
{
"formatVersion": 1,
"generator": "DataMigratePro 1.1.295.0",
"exportedAtUtc": "2026-10-28T13:05:12Z",
"source": { "mappingDatabase": "…", "sourceDatabase": "…", "sourceCompany": "…", "destinationCompany": "…", "environment": "…" },
"selection": { "mode": "explicit|with-dependencies", "includeMappings": true, "includeValueMappings": true, "includeClassifications": true,
"includeDependencies": false, "sourceTableNos": [18], "fromTableNo": null, "toTableNo": null, "categories": null,
"sourceFieldNos": null, "skipped": null, "includeUnmapped": true, "valueMappingCodes": null },
"migrationTables": [ { "tableNo": 18, "tableName": "Customer", "realDbTableName": "CRONUS AG$Customer", "category": 1, "categoryName": "Masterdata", "sequenceInCategory": 1, "records": 1200, "fields": 90, "recordsInBc": 0, "deleteBeforeTransfer": false, "dataPerCompany": true, "typeOfSynchronization": 1, "remarks": "", "synchTableNo": 0, "synchTableName": "", "synchronizeToDatabase": 0, "useAzureSqlForPutData": false, "dimensionSetIdFieldNo": 0, "idNotInBc": false } ],
"mappingRows": [ { "sourceTableNo": 18, "sourceTableName": "Customer", "realDbTableName": "…", "sourceFieldNo": 21, "sourceFieldName": "Gen. Bus. Posting Group", "sourceFieldType": "Code", "realDbFieldName": "Gen_ Bus_ Posting Group", "destinationTableNo": 18, "destinationTableName": "Customer", "destinationFieldNo": 21, "destinationFieldName": "Gen. Bus. Posting Group", "destinationFieldType": "Code", "skip": false, "primaryKey": false, "isPostedDocumentNo": false, "sourceOptionValue": "", "remarks": "", "joinClause": "", "whereClause": "", "calculation": "", "joinedTable": 0, "valueMappingCode": "DISP_GENBUS", "offsetCode": "", "lastModifiedDateTime": "…", "classification": "CONDITIONAL", "classificationOrigin": "IMPORT", "category": 1, "isMapped": true } ],
"valueMappings": [ { "header": { "code": "DISP_GENBUS", "dimensionCode": "", "description": "…", "tableNo": 18, "conditionFieldNo": 35, "conditionFieldName": "Country/Region Code", "isDispatcher": true },
"values": [ { "valueMappingCode": "DISP_GENBUS", "sourceValue": "DE", "destinationValue": "GENBUS_DE" } ], "addedAsDependency": false } ],
"classifications": [ { "sourceTableNo": 18, "sourceFieldNo": 21, "classification": "CONDITIONAL", "origin": "IMPORT", "lastModifiedDateTime": "…" } ],
"typeSwitches": [ { "typeCode": "GENBUS", "dispatcherCode": "DISP_GENBUS", "autoCreatedHeader": true } ],
"counts": { "migrationTables": 1, "mappingRows": 1, "valueMappingHeaders": 3, "dispatcherHeaders": 1, "valueMappingValues": 2, "dispatcherRules": 2, "classifications": 1, "typeSwitches": 1 }
}- Element names mirror the mapping database columns (
BC Migration Tables,BC Migration Mapping,BC Value Mapping,BC Value Mapping Value,BC Value Mapping Classification,BC Value Mapping Type Switch) so the export is loss-free and can be written back without transformation. - Dispatcher headers are value mappings with
conditionFieldNo != 0; theirvaluesare the dispatcher rules (destination = value mapping code). WithincludeDependenciesreferenced codes are followed transitively and markedaddedAsDependency. - Classification semantics:
DIRECT(fixed code),CONDITIONAL(dispatcher),NONE(explicit "no value mapping"),OPEN(no decision yet, exported with empty origin). OriginsAUTO,IMPORT,MANUALare preserved verbatim. - Round trip. Reading a package (
MappingPackageSerializer.ReadAsync) validates the format version. Applying a package is not yet implemented (see the analysis document, §4); the classification part can be re-imported today through the CSV import by mappingclassificationsto the import columns, and mapping rows throughdmp_apply_mapping.
7. Remote access (gateway in Azure)
The composition root (DmpMcpHost.CreateBuilder) separates tools and services from the transport: the stdio entry
point passes WithStreamServerTransport(stdin, stdout), the tests pass in-memory pipes, and the listener relay
bridge (DMP.McpRelay) hosts the same composition in-process inside DataMigratePro.exe -t listen. AI clients that
cannot run the stdio server on the customer's machine reach the identical tool surface through the
DMP.McpGateway Container App (Entra ID, MCP Streamable HTTP), which forwards every call over the existing Azure
Service Bus relay to the listener. Policies are the McpRelay flags in the listener's settings.json; approvals are
relayed as elicitation to the AI client. Architecture, wire contract, configuration and deployment:
MCP-Remote-Access.md. --transport http of the stdio host itself remains reserved.
ChatGPT cannot complete the Entra OAuth flow against the gateway today (its discovery requirements are not met by Entra ID); the supported paths – Secure MCP Tunnel to the local stdio server, Responses API with a bearer token, and the required gateway extension – are described in MCP-ChatGPT-Integration.md.
8. Tests
DMP.McpServer.Tests (xUnit, no SQL Server/BC):
dotnet test DMP.McpServer.Tests\DMP.McpServer.Tests.csproj -c Release -p:EnableThemidaProtection=false- Core services: filter semantics, structure analysis/proposals/type rules, mapping change validation and deltas,
export selection (dependencies,
OPENvsNONE), package serialization round trip, log parsing/filters/redaction, CLI switch mapping for migration and reconciliation requests, classification outcome summaries, connection redaction. - Server: settings parsing (switches/env), path policy, approval flow (gating, file token lifecycle, expiry, replay), audit redaction, job manager (progress, cancel, failure, restart recovery).
- Integration: the real server composition hosted in-process with the official MCP client – tool discovery and annotations, gating messages, error forwarding, logs/statistics/file tools.
On non-Windows developer machines build with -p:EnableWindowsTargeting=true -p:PlatformTarget=AnyCPU and run with
DOTNET_ROLL_FORWARD=Major if only a newer runtime is installed.