@yawlabs/caddy-mcp 1.2.5 → 1.2.6

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/README.md CHANGED
@@ -80,7 +80,7 @@ That's it. Now ask your AI assistant:
80
80
  |---|---|---|
81
81
  | `CADDY_ADMIN_URL` | `http://localhost:2019` | Caddy admin API URL. Set to `http://caddy:2019` inside Docker, or an https URL for remote admin. |
82
82
  | `CADDY_API_TOKEN` | (none) | Optional Bearer token for authenticated admin endpoints. Only needed if you've configured Caddy with auth. |
83
- | `CADDY_MAX_RETRIES` | `2` | Number of retries on transient failures (5xx, network errors). 4xx and 412 never retry. POSTs to `/config/*` and `/id/*` also skip retry (non-idempotent appends/creates -- retrying could duplicate routes or 409 a half-applied create). POSTs to `/load`, `/adapt`, `/stop` still retry. Hard-capped at 5. Set to `0` to disable. |
83
+ | `CADDY_MAX_RETRIES` | `2` | Number of retries on transient failures (5xx, network errors). 4xx and 412 never retry. POSTs to `/config/*` and `/id/*` also skip retry (non-idempotent appends/creates -- retrying could duplicate routes or 409 a half-applied create). POSTs to `/load`, `/adapt`, `/stop` still retry. Hard-capped at 5; values above the cap log a one-time stderr notice so the clamp is visible. Set to `0` to disable. |
84
84
  | `CADDY_LOAD_TIMEOUT` | `60000` | Timeout in ms for the `/load` endpoint; raise for ACME-heavy bring-ups where provisioning many certificates can exceed the default. Non-numeric, `<= 0`, or fractional values below 1ms fall back to the default. |
85
85
 
86
86
  **Alternate MCP clients:**
@@ -234,7 +234,7 @@ npm install
234
234
  npm run lint # Biome check
235
235
  npm run lint:fix # Auto-fix
236
236
  npm run build # tsup bundle
237
- npm test # Vitest (182 unit tests; +8 live-Caddy integration tests gated by CADDY_MCP_INTEGRATION=1)
237
+ npm test # Vitest (188 unit tests; +8 live-Caddy integration tests gated by CADDY_MCP_INTEGRATION=1)
238
238
  npm run typecheck # tsc --noEmit
239
239
  ```
240
240
 
package/dist/index.js CHANGED
@@ -842,9 +842,6 @@ function registerRouteTools(server) {
842
842
  ]
843
843
  };
844
844
  }
845
- if (isParentMissing(putRes)) {
846
- return serverNotFoundError(srv);
847
- }
848
845
  return formatResult(putRes);
849
846
  }
850
847
  if (!isUnknownId(existing)) {
package/dist/server.js CHANGED
@@ -840,9 +840,6 @@ function registerRouteTools(server) {
840
840
  ]
841
841
  };
842
842
  }
843
- if (isParentMissing(putRes)) {
844
- return serverNotFoundError(srv);
845
- }
846
843
  return formatResult(putRes);
847
844
  }
848
845
  if (!isUnknownId(existing)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yawlabs/caddy-mcp",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "mcpName": "io.github.YawLabs/caddy-mcp",
5
5
  "description": "MCP server for managing Caddy web servers via the admin API",
6
6
  "license": "MIT",