@anton.andrusenko/shopify-mcp-admin 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/dist/index.js +9 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14199,18 +14199,23 @@ function setupToolHandlers(server) {
|
|
|
14199
14199
|
};
|
|
14200
14200
|
});
|
|
14201
14201
|
server.server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
14202
|
-
const { name, arguments: params } = request.params;
|
|
14203
|
-
log.debug(`tools/call received: ${
|
|
14202
|
+
const { name: rawName, arguments: params } = request.params;
|
|
14203
|
+
log.debug(`tools/call received: ${rawName}`);
|
|
14204
|
+
const nameParts = rawName.split(":");
|
|
14205
|
+
const name = nameParts.length > 1 ? nameParts[nameParts.length - 1] : rawName;
|
|
14206
|
+
if (name !== rawName) {
|
|
14207
|
+
log.debug(`Stripped prefix from tool name: "${rawName}" -> "${name}"`);
|
|
14208
|
+
}
|
|
14204
14209
|
const tool = getToolByName(name);
|
|
14205
14210
|
if (!tool) {
|
|
14206
14211
|
const availableTools = getRegisteredTools();
|
|
14207
14212
|
const toolList = availableTools.length > 0 ? `Available tools: ${availableTools.map((t) => t.name).join(", ")}` : "No tools are currently registered.";
|
|
14208
|
-
log.warn(`Tool not found: ${name}`);
|
|
14213
|
+
log.warn(`Tool not found: ${name}${name !== rawName ? ` (received as "${rawName}")` : ""}`);
|
|
14209
14214
|
return {
|
|
14210
14215
|
content: [
|
|
14211
14216
|
{
|
|
14212
14217
|
type: "text",
|
|
14213
|
-
text: `Error: Tool "${name}" not found.
|
|
14218
|
+
text: `Error: Tool "${name}" not found${name !== rawName ? ` (received as "${rawName}")` : ""}.
|
|
14214
14219
|
|
|
14215
14220
|
Suggestion: Use tools/list to see available tools. ${toolList}`
|
|
14216
14221
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anton.andrusenko/shopify-mcp-admin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "MCP server for Shopify Admin API - enables AI agents to manage Shopify stores with 71 tools for products, inventory, collections, content, SEO, metafields, markets & translations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|