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.
- package/README.md +24 -3
- 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 /
|
|
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
|
-
"
|
|
91
|
+
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
|
|
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
|
|