loading…
Search for a command to run...
loading…
A Windows-based MCP server that exposes NIST's CONTAM simulation tools and ContamX bridge-mode controls to AI agents. It enables automated airflow and contamina
A Windows-based MCP server that exposes NIST's CONTAM simulation tools and ContamX bridge-mode controls to AI agents. It enables automated airflow and contaminant transport modeling, including project inspection, simulation execution, and real-time bridge session management.
CONTAM Plugin is a Windows-first public toolkit for using CONTAM from AI coding agents and MCP-capable desktop tools.
It combines three layers in one repository:
stdio MCP server for CONTAM command-line tools and ContamX bridge sessionscontam_chinese linkageThe project is designed for public use. It helps an agent inspect .prj models, diagnose missing references, run simulations, compare outputs, generate simple ContamW SketchPad layouts, and separate solver failures from ContamW GUI result-display problems.
For most users, the easiest setup is an npx-launched local MCP server:
command: npx
args: -y --package github:summer521521/CONTAM_plugin contam-mcp
The binary name remains contam-mcp because it launches the MCP server component. The repository and Codex plugin are named CONTAM_plugin.
Host-specific setup examples are in:
This repository can also be used as a Codex plugin source because the repository root contains:
.codex-plugin/plugin.json.mcp.jsonskills/contam-mcp/SKILL.mdscripts/start-contam-plugin-mcp.ps1scripts/Invoke-ContamProjectGuard.ps1The plugin adds a CONTAM workflow skill that tells Codex to:
.prj, .sim, .wth, .ctm, and related files.prj file referencescontamx3.exe and collect outputscontamxpy bindings for paper-style ContamX API co-simulation.prj files with prjup.exe.sim files with simcomp.exesimread text outputBefore handing a generated PRJ to another user or asking someone to run it in ContamW, run:
.\scripts\Invoke-ContamProjectGuard.ps1 `
-ProjectPath "<case>\model.prj" `
-Mode InputCheck `
-ResultProfile GuiSafeResults `
-CleanOutputs `
-RequireSingleProject
For a command-line full run:
.\scripts\Invoke-ContamProjectGuard.ps1 `
-ProjectPath "<case>\model.prj" `
-Mode Run `
-ResultProfile GuiSafeResults
The guard does not prove a hand-drawn SketchPad layout is perfect, but it catches common project-sharing and simulation issues before the GUI step.
CONTAM_plugin can use the localized executables distributed by contam_chinese.
After extracting a contam_chinese release package, link it for the current PowerShell session:
.\scripts\link-contam-chinese.ps1 -Path "<extracted-contam-chinese-release>"
Or persist it for your Windows user:
.\scripts\link-contam-chinese.ps1 -Path "<extracted-contam-chinese-release>" -User
The launcher honors these variables in order:
CONTAMX_PATHCONTAM_HOMECONTAM_CHINESE_HOMEUse contam_chinese for localized ContamW and Chinese help. Use CONTAM_plugin for MCP automation, project checks, simulation workflows, and report-oriented result extraction.
.codex-plugin/: Codex plugin manifest.mcp.json: MCP server launch definition for plugin hostsskills/: Codex workflow skill for CONTAM workscripts/: launch, guard, localization-link, setup, and maintenance scriptscontam-mcp/: MCP server source, developer guide, and regression scriptsdocs/: public quickstart and host setup guides.github/workflows/: GitHub Actions workflowsThis repository includes a privacy check that scans tracked files for personal filesystem paths before public sharing:
npm run privacy:check
Run the basic plugin launcher check with:
npm run plugin:check
Run official regression cases with:
npm run regression:official
Call discover_contam_installation and confirm CONTAM is available.List CONTAM case files in this folder.Inspect this PRJ file and summarize its references and date range.Run a test input only check for this PRJ.Make this PRJ safe for ContamW Building Check and result review.Run this PRJ and list the generated outputs.Apply a rectangular SketchPad layout to this PRJ so ContamW opens with visible rooms and icons.Run a small case matrix from this baseline model.Analyze this CONTAM xlog or simread text export.Discover whether contamxpy and ANT are available.Start a CONTAM bridge session for this project.Advance the active bridge session by 300 seconds and return path flow updates.Выполни в терминале:
claude mcp add contam-mcp -- npx CSA PROJECT - FZCO © 2026 IFZA Business Park, DDP, Premises Number 31174 - 001
Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.