@jurislm/coolify-plugin 4.0.17 → 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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coolify-plugin",
3
- "version": "4.0.17",
3
+ "version": "4.0.18",
4
4
  "description": "Fallback Codex metadata for local stdio Coolify tools.",
5
5
  "author": {
6
6
  "name": "JurisLM",
package/README.md CHANGED
@@ -37,6 +37,8 @@ codex plugin add coolify-plugin@coolify-marketplace
37
37
 
38
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
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.
41
+
40
42
  ## OpenAPI contract
41
43
 
42
44
  `openapi/coolify-openapi.json` is built from the official Coolify v4.3.23 release. `api/manifest.json` records the upstream SHA-256, the current API contract corrections, and the persisted SHA-256. `bun run api:check` verifies the contract offline before checking generated parity. The runtime uses the generated schemas directly.
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 cursorValue(env, name, cursorName) {
8
- const cursor = env[cursorName]?.trim();
9
- return cursor === `\${${name}}` || cursor === `\${${cursorName}}` ? undefined : cursor;
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.COOLIFY_BASE_URL?.trim();
13
- const cloudToken = env.COOLIFY_ACCESS_TOKEN?.trim();
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 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");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jurislm/coolify-plugin",
3
- "version": "4.0.17",
3
+ "version": "4.0.18",
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.17",
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",