recker 1.0.40 → 1.0.41
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/mcp/tools/seo.js +10 -21
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/mcp/tools/seo.js
CHANGED
|
@@ -76,7 +76,6 @@ function generateQuickWins(report) {
|
|
|
76
76
|
async function seoAnalyze(args) {
|
|
77
77
|
const url = String(args.url || '');
|
|
78
78
|
const categories = args.categories;
|
|
79
|
-
const verbose = Boolean(args.verbose);
|
|
80
79
|
if (!url) {
|
|
81
80
|
return {
|
|
82
81
|
content: [{ type: 'text', text: 'Error: url is required' }],
|
|
@@ -121,26 +120,21 @@ async function seoAnalyze(args) {
|
|
|
121
120
|
}));
|
|
122
121
|
}
|
|
123
122
|
if (summary.warnings.length > 0) {
|
|
124
|
-
output.warnings = summary.warnings.
|
|
123
|
+
output.warnings = summary.warnings.map(c => ({
|
|
125
124
|
name: c.name,
|
|
126
125
|
message: c.message,
|
|
127
126
|
recommendation: c.recommendation,
|
|
128
127
|
}));
|
|
129
|
-
if (!verbose && summary.warnings.length > 10) {
|
|
130
|
-
output.warningsNote = `Showing 10 of ${summary.warnings.length} warnings. Use verbose=true to see all.`;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
if (verbose) {
|
|
134
|
-
output.detailedAnalysis = {
|
|
135
|
-
title: report.title,
|
|
136
|
-
metaDescription: report.metaDescription,
|
|
137
|
-
headings: report.headings,
|
|
138
|
-
content: report.content,
|
|
139
|
-
links: report.links,
|
|
140
|
-
images: report.images,
|
|
141
|
-
technical: report.technical,
|
|
142
|
-
};
|
|
143
128
|
}
|
|
129
|
+
output.detailedAnalysis = {
|
|
130
|
+
title: report.title,
|
|
131
|
+
metaDescription: report.metaDescription,
|
|
132
|
+
headings: report.headings,
|
|
133
|
+
content: report.content,
|
|
134
|
+
links: report.links,
|
|
135
|
+
images: report.images,
|
|
136
|
+
technical: report.technical,
|
|
137
|
+
};
|
|
144
138
|
return {
|
|
145
139
|
content: [{
|
|
146
140
|
type: 'text',
|
|
@@ -348,11 +342,6 @@ Perfect for analyzing your localhost dev server or any public URL. Categories in
|
|
|
348
342
|
items: { type: 'string' },
|
|
349
343
|
description: 'Filter by specific categories (e.g., ["meta", "security", "performance"]). Leave empty for all.',
|
|
350
344
|
},
|
|
351
|
-
verbose: {
|
|
352
|
-
type: 'boolean',
|
|
353
|
-
description: 'Include detailed analysis (headings, links, images breakdown)',
|
|
354
|
-
default: false,
|
|
355
|
-
},
|
|
356
345
|
},
|
|
357
346
|
required: ['url'],
|
|
358
347
|
},
|
package/dist/version.js
CHANGED