@jurislm/coolify-plugin 4.0.16 → 4.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +3 -1
- package/dist/config.js +10 -7
- package/package.json +1 -1
- package/plugin.json +1 -1
package/README.md
CHANGED
|
@@ -35,7 +35,9 @@ codex plugin add coolify-plugin@coolify-marketplace
|
|
|
35
35
|
|
|
36
36
|
## Install in Cursor
|
|
37
37
|
|
|
38
|
-
In Cursor, open **Customize → Plugins → Add Marketplace → Import from GitHub**, enter `https://github.com/jurislm/coolify-plugin`, then install **Coolify Plugin**. The marketplace selects `plugins/cursor`, keeping the Codex-only root `.mcp.json` out of Cursor's plugin root. For Cloud Agents, set both `COOLIFY_BASE_URL` and `COOLIFY_ACCESS_TOKEN` in the Cloud environment's secrets and start a new agent from that environment. Local agents can use the plugin's **Configure** panel. If either Cloud environment variable is set, the plugin uses only the Cloud pair and does not mix it with Configure values. Run a read-only Coolify tool to verify provider access.
|
|
38
|
+
In Cursor, open **Customize → Plugins → Add Marketplace → Import from GitHub**, enter `https://github.com/jurislm/coolify-plugin`, then install **Coolify Plugin**. The marketplace selects `plugins/cursor`, keeping the Codex-only root `.mcp.json` out of Cursor's plugin root. For Cloud Agents, set both `COOLIFY_BASE_URL` and `COOLIFY_ACCESS_TOKEN` in the Cloud environment's secrets and start a new agent from that environment. Local agents can use the plugin's **Configure** panel. After updating from v4.0.16 or earlier, re-enter both Local Configure fields because their variable names changed. If either Cloud environment variable is set, the plugin uses only the Cloud pair and does not mix it with Configure values. Run a read-only Coolify tool to verify provider access.
|
|
39
|
+
|
|
40
|
+
If Cursor Cloud passes literal `${COOLIFY_BASE_URL}` and `${COOLIFY_ACCESS_TOKEN}` to a stdio server, also set `COOLIFY_CLOUD_BASE_URL` and `COOLIFY_CLOUD_ACCESS_TOKEN` in the same Cloud environment. The plugin uses this pair first and never mixes it with the canonical or Configure pair.
|
|
39
41
|
|
|
40
42
|
## OpenAPI contract
|
|
41
43
|
|
package/dist/config.js
CHANGED
|
@@ -4,16 +4,19 @@ export class ConfigError extends Error {
|
|
|
4
4
|
this.name = "ConfigError";
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
const
|
|
9
|
-
return
|
|
7
|
+
function environmentValue(env, name, alias) {
|
|
8
|
+
const value = env[name]?.trim();
|
|
9
|
+
return value === `\${${name}}` || (alias && value === `\${${alias}}`) ? undefined : value;
|
|
10
10
|
}
|
|
11
11
|
export function loadConfig(env = process.env) {
|
|
12
|
-
const cloudUrl = env
|
|
13
|
-
const cloudToken = env
|
|
12
|
+
const cloudUrl = environmentValue(env, "COOLIFY_CLOUD_BASE_URL");
|
|
13
|
+
const cloudToken = environmentValue(env, "COOLIFY_CLOUD_ACCESS_TOKEN");
|
|
14
14
|
const useCloud = Boolean(cloudUrl || cloudToken);
|
|
15
|
-
const
|
|
16
|
-
const
|
|
15
|
+
const canonicalUrl = environmentValue(env, "COOLIFY_BASE_URL");
|
|
16
|
+
const canonicalToken = environmentValue(env, "COOLIFY_ACCESS_TOKEN");
|
|
17
|
+
const useCanonical = Boolean(canonicalUrl || canonicalToken);
|
|
18
|
+
const rawUrl = useCloud ? cloudUrl : useCanonical ? canonicalUrl : environmentValue(env, "CURSOR_COOLIFY_BASE_URL", "COOLIFY_BASE_URL");
|
|
19
|
+
const token = useCloud ? cloudToken : useCanonical ? canonicalToken : environmentValue(env, "CURSOR_COOLIFY_ACCESS_TOKEN", "COOLIFY_ACCESS_TOKEN");
|
|
17
20
|
if (!rawUrl)
|
|
18
21
|
return { ...(token ? { token } : {}), timeoutMs: 30_000 };
|
|
19
22
|
let url;
|
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "coolify-plugin",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.18",
|
|
5
5
|
"description": "Portable Coolify MCP plugin with local stdio tools generated from the official OpenAPI contract.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "JurisLM",
|