@hiberus-magento/magento-rest 0.1.0 → 0.2.0
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 +100 -16
- package/THIRD-PARTY-NOTICES.txt +1 -0
- package/dist/cli.js +42 -10
- package/dist/mcp.js +1435 -100
- package/package.json +4 -2
- package/server.json +56 -0
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiberus-magento/magento-rest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "MCP server and CLI for the Magento 2 REST API — catalog, orders, customers, stock and content reads, with opt-in write tools.",
|
|
5
|
+
"mcpName": "io.github.hiberus-magento/magento-rest",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"mcp",
|
|
7
8
|
"mcp-server",
|
|
@@ -40,7 +41,8 @@
|
|
|
40
41
|
"!dist/metafile-*.json",
|
|
41
42
|
"LICENSE",
|
|
42
43
|
"README.md",
|
|
43
|
-
"THIRD-PARTY-NOTICES.txt"
|
|
44
|
+
"THIRD-PARTY-NOTICES.txt",
|
|
45
|
+
"server.json"
|
|
44
46
|
],
|
|
45
47
|
"devDependencies": {
|
|
46
48
|
"@modelcontextprotocol/sdk": "1.30.0",
|
package/server.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"name": "io.github.hiberus-magento/magento-rest",
|
|
4
|
+
"title": "Magento 2 / Adobe Commerce (REST)",
|
|
5
|
+
"description": "Read and act on a Magento 2 / Adobe Commerce store through its REST API.",
|
|
6
|
+
"version": "0.2.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"url": "https://github.com/hiberus-magento/mcp-servers",
|
|
9
|
+
"source": "github",
|
|
10
|
+
"subfolder": "packages/magento-rest"
|
|
11
|
+
},
|
|
12
|
+
"packages": [
|
|
13
|
+
{
|
|
14
|
+
"registryType": "npm",
|
|
15
|
+
"identifier": "@hiberus-magento/magento-rest",
|
|
16
|
+
"version": "0.2.0",
|
|
17
|
+
"transport": {
|
|
18
|
+
"type": "stdio"
|
|
19
|
+
},
|
|
20
|
+
"environmentVariables": [
|
|
21
|
+
{
|
|
22
|
+
"name": "MAGENTO_REST_BASE_URL",
|
|
23
|
+
"description": "The store's REST root, ending in /rest/V1 (or /rest/<store_code>/V1 for one store view). Must be https.",
|
|
24
|
+
"isRequired": true,
|
|
25
|
+
"format": "string",
|
|
26
|
+
"placeholder": "https://<host>/rest/V1"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "MAGENTO_REST_TOKEN",
|
|
30
|
+
"description": "The Access Token of a Magento integration (System > Extensions > Integrations), sent as a Bearer. Magento 2.4.4+ also needs Stores > Configuration > Services > OAuth > Consumer Settings > Allow OAuth Access Tokens to be used as standalone Bearer tokens = Yes.",
|
|
31
|
+
"isRequired": true,
|
|
32
|
+
"isSecret": true,
|
|
33
|
+
"format": "string"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "MAGENTO_REST_GROUPS",
|
|
37
|
+
"description": "Comma-separated tool groups to load, e.g. products,orders. Empty loads every REST group. Groups: products, store, categories, customers, orders, sales-documents, stock, carts, cms, attributes, media, promotions, tax, analytics.",
|
|
38
|
+
"isRequired": false,
|
|
39
|
+
"format": "string",
|
|
40
|
+
"placeholder": "products,orders"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "MCP_WRITES_ENABLED",
|
|
44
|
+
"description": "When true, write tools are listed and callable; otherwise only read tools exist.",
|
|
45
|
+
"isRequired": false,
|
|
46
|
+
"format": "boolean",
|
|
47
|
+
"default": "false",
|
|
48
|
+
"choices": [
|
|
49
|
+
"true",
|
|
50
|
+
"false"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|