Skip to content

MCP server: fix array results and fmusim runs - #52

Merged
StephenSmith25 merged 1 commit into
masterfrom
fix/mcp-arrays
Nov 18, 2026
Merged

StephenSmith25 merged 1 commit into
masterfrom
fix/mcp-arrays

Conversation

@StephenSmith25

Copy link
Copy Markdown
Owner

Found by driving the MCP server like an agent through every template and the 1D pipe model, building each FMU and running it in fmusim:

  • Simulations recorded only the first 16 elements of an array, and the summary listed the first 30 series, so long array outputs pushed scalar outputs such as T_out out of the summary. MCP runs now record whole arrays, and the summary lists scalars first and each array as its final profile.
  • fmusim runs passed array start values as a Python list, which fmusim rejects; they are now space-separated. fmusim's array columns are expanded into name[1], name[2], ..., and its true/false Booleans are read.
  • A misspelt start value was silently ignored; MCP simulations now report it (the Studio keeps ignoring stale values).

Found by driving the MCP server like an agent through every template and the
1D pipe model, building each FMU and running it in fmusim:

- Simulations recorded only the first 16 elements of an array, and the
  summary listed the first 30 series, so long array outputs pushed scalar
  outputs such as T_out out of the summary. MCP runs now record whole arrays,
  and the summary lists scalars first and each array as its final profile.
- fmusim runs passed array start values as a Python list, which fmusim
  rejects; they are now space-separated. fmusim's array columns are expanded
  into name[1], name[2], ..., and its true/false Booleans are read.
- A misspelt start value was silently ignored; MCP simulations now report it
  (the Studio keeps ignoring stale values).
@StephenSmith25
StephenSmith25 merged commit 1712a5a into master Nov 18, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant