mcp-magento-cms 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/README.md +24 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -85,13 +85,33 @@ Use your storefront base URL **without** a trailing slash, for example:
85
85
  }
86
86
  ```
87
87
 
88
- **Local ddev / mkcert only** — Node may not trust the local TLS cert. Add:
88
+ **Local ddev / self-signed HTTPS** — Node often rejects the local TLS cert and MCP calls fail with `fetch failed`. Add:
89
89
 
90
90
  ```json
91
- "NODE_EXTRA_CA_CERTS": "/absolute/path/to/mkcert/rootCA.pem"
91
+ "NODE_TLS_REJECT_UNAUTHORIZED": "0"
92
92
  ```
93
93
 
94
- Typical Linux path: `$HOME/.local/share/mkcert/rootCA.pem`
94
+ Example for a ddev store:
95
+
96
+ ```json
97
+ {
98
+ "mcpServers": {
99
+ "magento-cms": {
100
+ "command": "npx",
101
+ "args": ["-y", "mcp-magento-cms"],
102
+ "env": {
103
+ "MAGENTO_BASE_URL": "https://your-project.ddev.site",
104
+ "MAGENTO_ACCESS_TOKEN": "YOUR_INTEGRATION_ACCESS_TOKEN",
105
+ "NODE_TLS_REJECT_UNAUTHORIZED": "0"
106
+ }
107
+ }
108
+ }
109
+ }
110
+ ```
111
+
112
+ Use this **only for local/dev**. Prefer a trusted public HTTPS cert in production (omit this variable).
113
+
114
+ Optional alternative (if mkcert CA is installed): set `NODE_EXTRA_CA_CERTS` to your mkcert root CA path instead (e.g. `$HOME/.local/share/mkcert/rootCA.pem`).
95
115
 
96
116
  Optional env vars:
97
117
 
@@ -99,6 +119,7 @@ Optional env vars:
99
119
  |----------|---------|---------|
100
120
  | `MAGENTO_STORE_CODE` | (empty) | REST store code |
101
121
  | `MAGENTO_ADMIN_PATH` | `admin` | Admin path used in edit links |
122
+ | `NODE_TLS_REJECT_UNAUTHORIZED` | (unset) | Set `"0"` for local ddev / self-signed SSL |
102
123
 
103
124
  ### 4. Restart MCP
104
125
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-magento-cms",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Cursor MCP: Magento CMS pages/blocks with Page Builder Row→Text (zero npm deps)",
5
5
  "type": "module",
6
6
  "main": "src/index.js",