dmi-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DMI_EXE | No | Path to DmiScout.exe when DMI is not installed in the default folder (%LOCALAPPDATA%\Programs\DMI). | |
| DMI_MCP_CALL_BUDGET_S | No | Call time limit in seconds; calls that take longer return a running job and a job_id (default 50 seconds). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools for DMI (Discrete Modeler), a point-cloud and oblique-photogrammetry engine installed on this Windows computer.
Call dmi_caps first. ban_code must be 0. If a result has
license, the product is not activated: ask the user for an activation code, call dmi_activate, then retry.Look before processing: dmi_probe for one file, dmi_precheck for several.
dmi_buildings is the main tool: LAS/LAZ, a 3D Tiles folder or a saved .DMI in; building outlines and LOD models out. Ask for every format you need in one call; re-running from a .DMI extracts the buildings again.
Other functions: dmi_functions lists them, dmi_run executes one. Each function needs suitable input; if the result is empty, check the data before suspecting the engine.
Long tasks return status="running" with a job_id after about 50 s. Call dmi_wait(job_id) until status="done". Never start the same task again. Judge success from
okand theresultslist, not from log text. Use absolute Windows paths, and write to a new output folder: files with the same name are overwritten.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| dmi_capsA | Engine status: version, whether the full algorithms are available (ban_code must be 0), GPU count and license state. Call this first. Explains how to install DMI if it is missing. |
| dmi_activateA | Activate DMI on this computer with a code supplied by the user. This is the only tool that uses the network: the local engine sends the code, a machine fingerprint and the product version to dmi42.com. Use it when a result reports a license problem, then retry the original task. |
| dmi_probeA | Read a LAS/LAZ/TIF file without changing anything and report point counts, layers, format and bounding box. |
| dmi_precheckA | Assess one or more point clouds before processing: size and memory fit, density, elevation gaps, time segments, classes, noise, and flight-strip alignment per file pair. The sources are not modified; a precheck.csv report is written next to the first file. Lines with status warn/bad describe the data, they are not errors. |
| dmi_noise_removeB | Remove low noise points and write a filtered LAS (path in results: out=) into an |
| dmi_powerlineC | Extract power-line vectors from a point cloud that contains conductors. |
| dmi_buildingsA | Extract buildings and model them. source: LAS/LAZ/TIF point cloud, a 3D Tiles folder (contains tileset.json) or a saved .DMI project. out_dir: output folder (created if needed; same-named files are overwritten). outline_formats: roof/waist/foot outlines, any of SHP, KML, KMZ (comma list). KML/KMZ need utm_zone. model / model_formats: 3D models, any of GLB, STL, DXF, SHP, KML, KMZ (comma list). lod: "1.3" flat-roof blocks with stepped heights, "2" roof shapes as well. per_building: one model file per building instead of one merged file. grid_step_m, min_height_m, min_size_m: grid step (0.3-0.5 m), lowest building height and smallest building size; for point clouds the defaults are 0.5, 2 and 4. save_project: optional path of a .DMI project to keep. Runtime grows with area: about half a minute for 1 million points, up to an hour for a large block. Read the bldg,
bldgout, bmall and bmexport entries of |
| dmi_functionsA | List the engine functions dmi_run can execute (terrain model, contours, bare earth, hill analysis, classification and more) with the sub or func value each needs and its prerequisites in flags. |
| dmi_runB | Load a LAS/LAZ/TIF file and run one function from dmi_functions: pass sub when dispatch is "sub", func=id when dispatch is "named". sub is case-sensitive. params are the engine's key=value settings. |
| dmi_waitB | Continue waiting for a job that returned status="running". Returns the final result, or "running" again. |
| dmi_jobsA | List running and recently finished jobs of this server process. |
| dmi_cancelB | Stop a job's engine process. Files it was writing are incomplete and must be discarded. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
Most tools target clearly distinct actions (status, activation, probe, precheck, noise removal, power lines, buildings, jobs, run, wait, cancel). The main overlaps are dmi_probe vs dmi_precheck (both non-destructive inspection) and the dedicated dmi_buildings/dmi_noise_remove wrappers vs the generic dmi_run, but the descriptions make the intended split clear enough (single-file quick read vs multi-file assessment; dedicated shortcuts vs engine functions).
All names use a uniform dmi_ prefix with snake_case, so the set reads as one family. Minor deviations: a few are noun/abbreviation forms (dmi_caps, dmi_jobs, dmi_buildings, dmi_functions) while others are imperative verbs (dmi_run, dmi_cancel), but the convention is predictable overall.
Twelve tools is well within a comfortable range for a point-cloud engine that needs license handling, inspection, domain-specific processors, a generic function runner, and async job control. Each tool appears to earn its place with no redundant filler.
The lifecycle is largely covered: status/licensing, read-only inspection, precheck, domain processing, a generic function dispatcher, and job list/wait/cancel. Minor gaps exist—there is no way to fetch a finished job's result by id after the fact (only dmi_wait continuation), and no license deactivate/cleanup operation—but agents can work around these.