v0.1.4
powermcp 0.1.4
Fixes the PSCAD MCP server so it can run a simulation and read results end-to-end — verified against a 5 s MMC-HVDC bipole case (PSCAD/data/MMC/MMC_HalfBridge_Bipole.pscx), producing a 42 MB .psout (364 channels) analyzed via the new reader.
PSCAD MCP fixes
- Non-blocking
run_project(Project.start()+get_run_statuspolling:building/running/idle_or_finished) — no more 30 s-watchdog timeout / single-worker executor lockup on long runs. - Working results reader rewritten to the real
mhi.psout1.3 API (the oldmhi.psout.open()/channels()API does not exist), plus newlist_output_channels/read_output_channels(listing, selective reads, summary stats, downsampling); the.psoutis auto-located viaProject.temp_folder. get/set_project_settingsuseProject.parameters()(enablesPlotType=PSOUT, run length, etc.).- Executor initializes COM once per worker thread (fixes WMI "object invoked has disconnected from its clients" on relaunch); opt-in
_timeoutoverride for long load/build calls. attach_localscrubsNoDefaultCurrentDirectoryInExePath(which made PSCAD's EMTDC run batch unable to find its own solver), uses a 120 s attach timeout, and falls back tomhi.pscad.launch()when no attachable instance is running.- New
build_project/get_build_messagescompile pre-flight tools.
PR #48.
🤖 Generated with Claude Code