magector 2.11.0 → 2.11.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/package.json +5 -5
- package/src/mcp-server.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magector",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"description": "Semantic code search for Magento 2 — index, search, MCP server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/mcp-server.js",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"ruvector": "^0.1.96"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@magector/cli-darwin-arm64": "2.11.
|
|
37
|
-
"@magector/cli-linux-x64": "2.11.
|
|
38
|
-
"@magector/cli-linux-arm64": "2.11.
|
|
39
|
-
"@magector/cli-win32-x64": "2.11.
|
|
36
|
+
"@magector/cli-darwin-arm64": "2.11.1",
|
|
37
|
+
"@magector/cli-linux-x64": "2.11.1",
|
|
38
|
+
"@magector/cli-linux-arm64": "2.11.1",
|
|
39
|
+
"@magector/cli-win32-x64": "2.11.1"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
42
42
|
"magento",
|
package/src/mcp-server.js
CHANGED
|
@@ -4578,8 +4578,11 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
4578
4578
|
if (pluginFile) {
|
|
4579
4579
|
reg.methods = extractPluginMethods(pluginFile);
|
|
4580
4580
|
reg.resolvedFile = pluginFile.replace(fpRoot2 + '/', '');
|
|
4581
|
-
// Read
|
|
4582
|
-
|
|
4581
|
+
// Read method bodies — only for targetMethod if specified (reduces token bloat)
|
|
4582
|
+
const methodsToRead = args.targetMethod
|
|
4583
|
+
? reg.methods.filter(m => m.targetMethod === args.targetMethod)
|
|
4584
|
+
: reg.methods;
|
|
4585
|
+
for (const m of methodsToRead) {
|
|
4583
4586
|
const body = readFullMethodBody(pluginFile, m.name);
|
|
4584
4587
|
if (body) m.body = body;
|
|
4585
4588
|
}
|