StuMason/coolify-mcp
TypeScript
Issue Opened
Issue #135 opened: env_vars create/update should support is_buildtime and is_runtime flags
Context
When creating or updating environment variables via the env_vars tool, there's no way to control the is_buildtime and is_runtime flags. All vars default to is_buildtime: true, is_runtime: true.
This causes a hard failure when setting multiline values (like PEM keys for PASSPORT_PRIVATE_KEY) because Coolify injects build-time vars as ARG directives in the Dockerfile, and multiline values break the Dockerfile parser:
Dockerfile:11
--------------------
9 | ARG DB_CONNECTION=pgsql
10 | ARG PASSPORT_PRIVATE_KEY=-----BEGIN PRIVATE KEY-----
11 | >>> MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggko...
--------------------
ERROR: failed to build: dockerfile parse error on line 11: unknown instruction
Expected behaviour
The create and update actions on env_vars should accept optional is_buildtime and is_runtime boolean parameters, defaulting to the current behaviour if not provided.
{
"action": "create",
"resource": "application",
"uuid": "...",
"key": "PASSPORT_PRIVATE_KEY",
"value": "-----BEGIN PRIVATE KEY-----\n...",
"is_buildtime": false,
"is_runtime": true
}
Workaround
Currently the only way to set a runtime-only variable is via the Coolify web UI.