discover_contam_installation
Confirm CONTAM installation location and accessible executables for airflow and contaminant transport modeling simulations.
Instructions
Use this when you need to confirm where CONTAM is installed and which executables this MCP server can access.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- contam-mcp/src/server.js:2031-2071 (handler)Implementation of the discover_contam_installation tool which resolves CONTAM installation path and checks for the existence of required executables.
server.tool( "discover_contam_installation", "Use this when you need to confirm where CONTAM is installed and which executables this MCP server can access.", {}, async () => { const contamHome = await resolveContamHome(); const executables = {}; for (const [programKey, definition] of Object.entries(programDefinitions)) { const executablePath = await resolveExecutable(programKey).catch(() => null); if (!executablePath) { executables[programKey] = { exe: definition.exe, found: false }; continue; } const versionResult = definition.versionArgs.length > 0 ? await runProcess(executablePath, definition.versionArgs, { cwd: path.dirname(executablePath), timeoutSeconds: 15 }) : null; executables[programKey] = { exe: definition.exe, found: true, path: executablePath, version: versionResult?.stdout || versionResult?.stderr || null }; } return toolResponse("Resolved CONTAM installation details.", { contamHome, workspaceRoot, executables }); } );