Repository navigation
First tagged release. It combines the main branch with the domain-manager
work developed on develop (formerly agentic-bem).
Security
- Per-token file isolation for the streamable-HTTP transport (#5, fixes
#3). Before this release, any valid bearer token could read and write any
file the server process could reach, including other users' files and
/proc/self/environ. Each token is now confined to its own workspace
(<MCP_USER_DATA_ROOT>/<label>) plus the read-only shared sample, example,
and weather folders;..traversal and symlinks out of the workspace are
rejected; file access fails closed when a request has no identity; and an
MCP session is bound to the token that opened it. Operators who ran the HTTP
transport with real tokens before 0.2.0 should rotateMCP_TOKENS.
Reported by Syed Anas Mohiuddin (@SyedAnas01). - Over HTTP, every tool output (edited models, simulation runs, reports,
output_path/output_directory/runs_dir/target_patharguments) is
written inside the caller's workspace, using the same layout aswork/:
models/derived/,models/uploads/,runs/,reports/. Paths outside
it, including other users' workspaces, are rejected. - Simulation runs are private to the token that submitted them: other tokens
cannot see, wait on, or cancel them, and two tokens may use the same
run_id. - Over HTTP, models that would escape the caller's workspace are refused
before EnergyPlus runs them (simulations and output discovery runs):
PythonPlugin:*objects, which make EnergyPlus run Python code from the
model,ExternalInterface:*objects (co-simulation and FMUs), and file
references (Schedule:File,Schedule:File:Shading,
Construction:WindowDataFile, ASHRAE 205 representation files, and
Table:Lookup/Table:IndependentVariableexternal files) that use..or
point outside the caller's readable folders. Stdio users are unaffected. server_manageractionslogs,clear_logs, andstatuswith the full
configuration require a token listed inMCP_ADMIN_LABELS. Tokens are
compared in constant time.
Known limitations
- The HTTP transport is experimental and meant for a group of trusted
colleagues, not the public: EnergyPlus was not designed to run untrusted
models, and tokens do not expire and are not rate limited. - Links issued by
file_transferare kept in memory, so a server restart
invalidates outstanding links (stored files are kept).
Added
-
Streamable-HTTP transport with bearer-token authentication
(MCP_TRANSPORT=streamable-http,MCP_TOKENS), a/healthendpoint, and
optional DNS-rebinding protection (MCP_ALLOWED_HOSTS). -
file_transfertool for remote clients (#1). Over HTTP, the server
issues one-time upload and download links:request_upload,
upload_status,list_uploads,delete_upload,request_download. Files
move directly over HTTP (curlor a browser upload page) instead of through
the conversation. Uploads go to the caller'smodels/uploads/folder;
downloads are single use, limited to files the caller may read, and send
folders as.zip. Links expire (MCP_TRANSFER_TTL_SECONDS), and uploads are
capped per file and per user (MCP_UPLOAD_MAX_BYTES,
MCP_USER_QUOTA_BYTES). Registered only with the HTTP transport. -
GitHub Actions CI running the test suite on Python 3.10-3.13.
-
idf_modification(action="find"), a read-only object lookup: objects of
a type (exact or wildcard, e.g.SetpointManager:*), objects with any field
equal to a name (node, schedule, construction; case-insensitive), or both,
narrowed byname_containsand capped bylimit. Results use the eppy field
names thatmodifyaccepts and mark each match asdefinesor
references. When the name is listed in a*NodeList, objects that use the
list are returned too, markedvia. Thediagnose-simulation-errorsskill
and catalog use it for missing-reference, duplicate-name, node, and
setpoint errors. -
diagnose-simulation-errorsskill, witherror-catalog.md: real
EnergyPlus 26.1 messages for input-schema, missing-reference,
duplicate-name, node-connection, setpoint, sizing, weather, geometry, and
psychrometric problems, how to inspect each with the server's tools, and
which warnings affect results. -
reference_docstool. Section-level access to the EnergyPlus Input
Output Reference, Engineering Reference, Output Details and Examples, and
Plant Application Guide for the installed release:status,search,
get_section(by object type, cross-reference label, or section id, paged),
andget_field, which pairs a field's constraints from the installed IDD
with its documentation. A Dockerfile build stage generates the index from
the documentation's LaTeX source at the release tag matchingEPLUS_VER
(.devcontainer/build_reference_docs.py, git + pandoc in the build stage
only) and installs it under<EnergyPlus>/ReferenceDocs;
EPLUS_REFERENCE_DOCS_DIRoverrides the location. -
Agent skills.
list_skillsandget_skillserve Markdown skills from
energyplus_mcp_server/skills/, and the server now sends MCP instructions
pointing agents to them. First skill:learn-from-examples, with a
DataSets guide. -
example_librarytool. Read-onlystatus,object_types,search,
describe, andget_objectsover the installed EnergyPlusExampleFiles
andDataSets. The inventory is rebuilt automatically when the installation
changes;EPLUS_EXAMPLE_INVENTORY_CACHEoptionally persists it.
get_objectsreturns eppy field names and follows IDD reference lists to
the schedules, curves, constructions, and zones an object uses. -
idf_modificationandfile_utilsdescriptions point to the skill and the
example library. -
Read-only samples and a writable work area.
sample_files/is split
intobasic/,mcp_paper/, andweather/, and everything the server
writes goes underwork/(models/uploads,models/derived,runs,
reports), which Git ignores. Tool calls whoseoutput_path,
output_directory,target_path, orruns_dirpoints intosample_files/
or the EnergyPlus installation are rejected. A bare filename or the older
sample_files/<name>path still resolves. -
Concurrent simulations.
simulation_managerqueues runs and executes
up toMCP_MAX_CONCURRENT_SIMULATIONS(default: CPU count minus one) at
once, each as its own EnergyPlus process with its own run and working
directory. New actions:submit,run_batch,wait,cancel, and a real
status(per run, or the whole queue).runkeeps returning the finished
result but no longer blocks the server, so parallelruncalls overlap.
MCP_SIMULATION_TIMEOUT_SECONDSoptionally stops runs that exceed a
wall-clock limit. Every run writesrun_record.jsonat submission and at
each status change; records orphaned by a stopped server are marked
interruptedon the next start. -
EPLUS_DIST_SUFFIXDocker build-arg so users can rebuild against older
(Ubuntu22.04) or newer EnergyPlus releases without editing the Dockerfile. -
README section "Building against a different EnergyPlus version"
documenting theEPLUS_VER/EPLUS_HASH/EPLUS_PREFIX/
EPLUS_DIST_SUFFIXoverrides, including the extra files that still need
manual updates when overriding (until path auto-detection lands). -
README Codex setup section — UI form fields for the Connect to a
custom MCP dialog plus a~/.codex/config.tomlvariant for the CLI. -
A prerequisites block in the README listing Docker and git.
-
Cross-platform config paths (macOS / Windows / Linux) for Claude Desktop
and Cursor; Windows path-escaping guidance (JSON vs form vs TOML). -
Verify step after each client config.
Changed
- Error parsing (
post_processing(action="parse_errors"), run status).
The parser now reads the recurring-error summary (repeat counts, warmup and
sizing counts, Max/Min) and attaches counts to matching messages; reports
the runstatus(completed,terminated, orincompletefor a crash),
EnergyPlus's owntotals, and per-phase subtotals (replacing
phase_counts, which added the phase subtotals to the totals and
double-counted); tags each message with acategory, object, and schema
field; and takes the first Severe message, not the Fatal announcement, as
the primary issue.simulation_manager(action="status")includes this
summary for successful runs too. Tests use real 26.1.errfiles. - Edits without an explicit
output_pathwrite towork/models/derived/
instead of beside the source model; HVAC diagrams and geometry viewers
default towork/reports/; simulations default towork/runs/(was
outputs/) and stage their input copy in the run directory. - Bare filenames resolve in the workspace (including
sample_files
categories andwork/models) before EnergyPlusExampleFiles. idf_modificationresolvesidf_pathlike the other tools.- Simulations and the output variable/meter discovery runs launch the
EnergyPlus command line directly instead of eppy'sIDF.run, which changed
the server's working directory andsys.stderrand (for meter discovery)
printed to stdout, corrupting the stdio transport. Default run directories
now carry a random suffix, so two runs of one model in the same second no
longer share a directory. - Calibration run records start as
queued(withstarted_atupdated when
EnergyPlus launches) instead ofrunning. simulation_timeoutnow defaults to 0 (no limit); it was never enforced.mcpis pinned below 2.0, whose API the server does not support yet.illustrative examples/is gone: its two models are now
sample_files/mcp_paper/5ZoneAirCooled_baseline.idfand
5ZoneAirCooled_improved.idf, its weather file is insample_files/weather/,
and its committed simulation outputs and diagram were removed.- EnergyPlus default bumped from 25.1.0 to 26.1.0. The Docker image now
bakes in EnergyPlus v26.1.0
(EPLUS_HASH=6f2e40d102). Updated in.devcontainer/Dockerfile,
energyplus_mcp_server/config.py(version+ default install path), and
energyplus-mcp-server/.vscode/mcp.json. - Dockerfile EnergyPlus download switched from
Linux-Ubuntu22.04-*to
Linux-Ubuntu24.04-*. NREL stopped shipping Ubuntu 22.04 builds starting
with 26.1.0.
Fixed
- Output variable and meter discovery use unique temporary files and clean
them up on failure, so concurrent requests no longer collide. - The
.errparser matched only unindented lines, but EnergyPlus indents
every message, so warning, severe, and fatal counts were always zero. - Repo URL and folder name across all install snippets
(tsbyq/EnergyPlus_MCP→LBNL-ETA/EnergyPlus-MCP). - VS Code client config updated from the outdated
"mcp.servers"key in
.vscode/settings.jsonto"servers"in.vscode/mcp.json(VS Code
1.102+ native MCP format). - MCP Inspector invocation corrected to
npx @modelcontextprotocol/inspector …(was a non-existent
uv run mcp-inspectorcommand). - Troubleshooting steps updated to use
server_manageractions
(the standaloneget_server_status/get_server_logs/get_error_logs
tools only exist on this branch whenMCP_EXPOSE_SERVER_WRAPPERS=true). - Table of Contents rebuilt to match the actual section headers (old TOC
referenced several sections that no longer existed). - Stray
outputs_managerJSON block that had landed after## License
removed;Tool Surface Profiles (config.yaml)section folded into
## Configurationwhere the TOC can reach it.
Upgrading: operators who ran the streamable-HTTP transport with real tokens before 0.2.0 should rotate MCP_TOKENS. See the README for HTTP setup, file_transfer, and Cloud Run deployment.