mcp-magento-cms 1.0.0 → 1.0.1

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
@@ -72,35 +72,25 @@ node scripts/smoke-e2e.js
72
72
  node scripts/test-compose.js
73
73
  ```
74
74
 
75
- ### 4. Cursor MCP config
75
+ ### 4. Publish to npm (once)
76
76
 
77
- **Cursor → Settings → MCP**, or project file `.cursor/mcp.json`:
77
+ ```bash
78
+ npm login
79
+ npm publish --access public
80
+ ```
78
81
 
79
- Use **absolute** path to `index.js`:
82
+ Bump `version` in `package.json` before each later publish.
80
83
 
81
- ```json
82
- {
83
- "mcpServers": {
84
- "magento-cms": {
85
- "command": "node",
86
- "args": [
87
- "/home/YOUR_USER/htdocs/mage248p3/tools/mcp-magento-cms/src/index.js"
88
- ]
89
- }
90
- }
91
- }
92
- ```
84
+ ### 5. Cursor MCP config
93
85
 
94
- Secrets can stay in `.env` next to the server (auto-loaded). Or pass env:
86
+ **Cursor → Settings → MCP**, or project file `.cursor/mcp.json`:
95
87
 
96
88
  ```json
97
89
  {
98
90
  "mcpServers": {
99
91
  "magento-cms": {
100
- "command": "node",
101
- "args": [
102
- "/ABSOLUTE/PATH/tools/mcp-magento-cms/src/index.js"
103
- ],
92
+ "command": "npx",
93
+ "args": ["-y", "mcp-magento-cms"],
104
94
  "env": {
105
95
  "MAGENTO_BASE_URL": "https://mage248p3.ddev.site",
106
96
  "MAGENTO_ACCESS_TOKEN": "YOUR_TOKEN"
@@ -110,6 +100,8 @@ Secrets can stay in `.env` next to the server (auto-loaded). Or pass env:
110
100
  }
111
101
  ```
112
102
 
103
+ For ddev + mkcert, also set `NODE_EXTRA_CA_CERTS` to your mkcert root CA path.
104
+
113
105
  See also `cursor-mcp.example.json`. Restart MCP / Cursor after changes.
114
106
 
115
107
  ## Prompts to try
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "mcp-magento-cms",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
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",
7
+ "bin": {
8
+ "mcp-magento-cms": "./src/index.js"
9
+ },
10
+ "files": [
11
+ "src",
12
+ "README.md"
13
+ ],
7
14
  "scripts": {
8
15
  "start": "node src/index.js",
9
16
  "health": "node scripts/health-check.js",
package/src/index.js CHANGED
File without changes
package/.env.example DELETED
@@ -1,11 +0,0 @@
1
- # Magento (ddev or remote) — no trailing slash
2
- MAGENTO_BASE_URL=https://mage248p3.ddev.site
3
-
4
- # Integration Access Token from Admin → System → Integrations
5
- MAGENTO_ACCESS_TOKEN=
6
-
7
- # Optional store code for REST (default: all / empty uses /rest/V1)
8
- # MAGENTO_STORE_CODE=default
9
-
10
- # Optional admin path prefix for edit links (default: admin)
11
- # MAGENTO_ADMIN_PATH=admin
@@ -1,15 +0,0 @@
1
- {
2
- "mcpServers": {
3
- "magento-cms": {
4
- "command": "node",
5
- "args": [
6
- "/home/ajaykumar.prajapati@brainvire.com/htdocs/mage248p3/tools/mcp-magento-cms/src/index.js"
7
- ],
8
- "env": {
9
- "MAGENTO_BASE_URL": "https://mage248p3.ddev.site",
10
- "MAGENTO_ACCESS_TOKEN": "REPLACE_WITH_INTEGRATION_ACCESS_TOKEN",
11
- "NODE_EXTRA_CA_CERTS": "/home/ajaykumar.prajapati@brainvire.com/.local/share/mkcert/rootCA.pem"
12
- }
13
- }
14
- }
15
- }