Ontheia 0.6.5 — MCP env and crash diagnostics
A chain of two MCP bugs that together caused a long debug loop are fixed.
Non-secret env values written with the value: inline prefix (for example
"MCP_EMAIL_ADDRESS": "value:foo@bar") were passed to child MCP servers
unstripped. Servers that validate their config at startup — such as
@codefuturist/email-mcp with a Zod email schema — then rejected the literal
value:foo@bar and crashed. The value: prefix is now stripped consistently
for all env string values, alongside the existing secret: resolution and
plain passthrough.
When a stdio MCP server crashed at startup, the orchestrator recorded only the
transport-level "Connection closed" in app.mcp_server_status, hiding the real
reason (for example "Invalid email address"). The child's stderr is now
captured to a small tail, logged at info level, and appended to the status
excerpt, so the admin UI shows the actual crash output instead of a generic
connection error.
Both fixes are covered by regression specs.