Repository navigation
v1.14.0
What's in this release
Input validation hardening and two bug fixes. No new features, no breaking changes. Every previously valid call behaves identically, the only difference is that malformed inputs now get a clear error instead of silently creating bad data.
Bug fixes
- Waste bridges were silently broken.
create_bridgewithwaste=Truewas passing the value to the wrong parameter (provider_flow_idinstead ofwaste), so waste bridges were always created as product bridges. If you've already built waste treatment bridges through the MCP, please check them, they're wired as products. edit_processcould remove the quantitative reference exchange, leaving a process that openLCA can't calculate. Now blocked unless a replacement qref is added in the same call.
Input validation
- Category path traversal (HIGH):
../../etc/passwdand similar strings rejected in all category fields acrosscreate_flow,create_bridge,create_process,edit_process,extract_model,create_product_system. - Parameter name validation (MEDIUM): empty names and non-alphanumeric names (e.g.
import os; os.system('rm -rf /')) now rejected increate_processandedit_process. - Negative qref amounts (MEDIUM):
create_processnow rejects negative amounts on quantitative reference exchanges. - Formula validation (MEDIUM): formulas are now checked against openLCA's expression grammar. Code-like strings such as
import('os').system('whoami')are rejected. - UUID validation (MEDIUM):
provider_idoncreate_bridgenow requires valid UUID format. - Limit bounds (LOW):
search_processesandsearch_flowsreturn an error forlimit <= 0instead of silently defaulting to 20. - Monte Carlo iterations (LOW):
monte_carlorejectsiterations <= 0. - Empty scenarios (LOW):
run_scenariosrejects an empty scenarios dict.
Schema fix
provider_flow_idadded to thecreate_bridgetool schema (was supported by the function but missing from the MCP tool definition).
Upgrade
pip install --upgrade b280-olca-mcp