@commercetools/commerce-mcp 3.0.1 → 4.0.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 CHANGED
@@ -13,10 +13,10 @@ pnpm run build
13
13
  pnpm add link:../typescript
14
14
 
15
15
  # run the server in terminal
16
- npx ts-node src/index.ts --tools=products.read --clientId=CLIENT_ID --clientSecret=CLIENT_SECRET --authUrl=AUTH_URL --projectKey=PROJECT_KEY --apiUrl=API_URL
16
+ npx ts-node src/index.ts --tools=read_products --clientId=CLIENT_ID --clientSecret=CLIENT_SECRET --authUrl=AUTH_URL --projectKey=PROJECT_KEY --apiUrl=API_URL
17
17
 
18
18
  # test using mcptools : Install mcptools from https://github.com/f/mcptools
19
- mcp call list_products --params '{"limit": 2}' npx ts-node /<absolute-path>/commerce-agent/modelcontextprotocol/src/index.ts --tools=all \
19
+ mcp call read_products --params '{"limit": 2}' npx ts-node /<absolute-path>/commerce-agent/modelcontextprotocol/src/index.ts --tools=all \
20
20
  --projectKey="PROJECT_KEY" \
21
21
  --clientSecret="CLIENT_SECRET" \
22
22
  --clientId="CLIENT_ID" \
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ const PUBLIC_ARGS = [
20
20
  'apiUrl',
21
21
  'dynamicToolLoadingThreshold',
22
22
  'toolOutputFormat',
23
+ 'logging',
23
24
  ];
24
25
  const ACCEPTED_ARGS = [...PUBLIC_ARGS, ...HIDDEN_ARGS];
25
26
  var modelcontextprotocol_2 = require("@commercetools/commerce-agent/modelcontextprotocol");
@@ -108,7 +109,7 @@ function parseArgs(args) {
108
109
  }
109
110
  // Validate tools against accepted enum values
110
111
  options.tools.forEach((tool) => {
111
- if (tool == 'all' || tool == 'all.read') {
112
+ if (tool == 'all' || tool == 'read_all') {
112
113
  return;
113
114
  }
114
115
  if (!modelcontextprotocol_1.ACCEPTED_TOOLS.includes(tool.trim())) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools/commerce-mcp",
3
- "version": "3.0.1",
3
+ "version": "4.0.0",
4
4
  "mcpName": "io.github.commercetools/commerce-mcp",
5
5
  "homepage": "https://github.com/commercetools/commerce-mcp",
6
6
  "description": "A command line tool for setting up commercetools MCP server",
@@ -23,7 +23,7 @@
23
23
  "colors": "^1.4.0",
24
24
  "dotenv": "^17.2.1",
25
25
  "mcp-remote": "^0.1.18",
26
- "@commercetools/commerce-agent": "3.1.0",
26
+ "@commercetools/commerce-agent": "4.0.0",
27
27
  "@commercetools/processors": "0.0.0"
28
28
  },
29
29
  "keywords": [