Skip to content

v0.1.4

Choose a tag to compare

@qian-harvard qian-harvard released this 23 Jun 23:06
· 17 commits to main since this release
0a3919d

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_status polling: 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.psout 1.3 API (the old mhi.psout.open()/channels() API does not exist), plus new list_output_channels / read_output_channels (listing, selective reads, summary stats, downsampling); the .psout is auto-located via Project.temp_folder.
  • get/set_project_settings use Project.parameters() (enables PlotType=PSOUT, run length, etc.).
  • Executor initializes COM once per worker thread (fixes WMI "object invoked has disconnected from its clients" on relaunch); opt-in _timeout override for long load/build calls.
  • attach_local scrubs NoDefaultCurrentDirectoryInExePath (which made PSCAD's EMTDC run batch unable to find its own solver), uses a 120 s attach timeout, and falls back to mhi.pscad.launch() when no attachable instance is running.
  • New build_project / get_build_messages compile pre-flight tools.

PR #48.

🤖 Generated with Claude Code