@jurislm/coolify-plugin 4.0.13 → 4.0.15

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coolify-plugin",
3
- "version": "4.0.13",
3
+ "version": "4.0.15",
4
4
  "description": "Fallback Codex metadata for local stdio Coolify tools.",
5
5
  "author": {
6
6
  "name": "JurisLM",
package/README.md CHANGED
@@ -35,7 +35,7 @@ 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**. Set `COOLIFY_BASE_URL` and `COOLIFY_ACCESS_TOKEN` in the plugin's **Configure** panel. Desktop-launched Cursor may not inherit values exported in a terminal; after saving, 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**. 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.
39
39
 
40
40
  ## OpenAPI contract
41
41
 
package/dist/config.js CHANGED
@@ -4,9 +4,16 @@ export class ConfigError extends Error {
4
4
  this.name = "ConfigError";
5
5
  }
6
6
  }
7
+ function cursorValue(env, name, cursorName) {
8
+ const cursor = env[cursorName]?.trim();
9
+ return cursor === `\${${name}}` ? undefined : cursor;
10
+ }
7
11
  export function loadConfig(env = process.env) {
8
- const rawUrl = env.COOLIFY_BASE_URL?.trim();
9
- const token = env.COOLIFY_ACCESS_TOKEN?.trim();
12
+ const cloudUrl = env.COOLIFY_BASE_URL?.trim();
13
+ const cloudToken = env.COOLIFY_ACCESS_TOKEN?.trim();
14
+ const useCloud = Boolean(cloudUrl || cloudToken);
15
+ const rawUrl = useCloud ? cloudUrl : cursorValue(env, "COOLIFY_BASE_URL", "CURSOR_COOLIFY_BASE_URL");
16
+ const token = useCloud ? cloudToken : cursorValue(env, "COOLIFY_ACCESS_TOKEN", "CURSOR_COOLIFY_ACCESS_TOKEN");
10
17
  if (!rawUrl)
11
18
  return { ...(token ? { token } : {}), timeoutMs: 30_000 };
12
19
  let url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jurislm/coolify-plugin",
3
- "version": "4.0.13",
3
+ "version": "4.0.15",
4
4
  "description": "Portable local stdio MCP plugin for Coolify",
5
5
  "publishConfig": {
6
6
  "access": "public"
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.13",
4
+ "version": "4.0.15",
5
5
  "description": "Portable Coolify MCP plugin with local stdio tools generated from the official OpenAPI contract.",
6
6
  "author": {
7
7
  "name": "JurisLM",