recker 1.0.40-next.b4fa2a1 → 1.0.40
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 +21 -10
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/mcp/tools/seo.js
CHANGED
|
@@ -76,6 +76,7 @@ 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);
|
|
79
80
|
if (!url) {
|
|
80
81
|
return {
|
|
81
82
|
content: [{ type: 'text', text: 'Error: url is required' }],
|
|
@@ -120,21 +121,26 @@ async function seoAnalyze(args) {
|
|
|
120
121
|
}));
|
|
121
122
|
}
|
|
122
123
|
if (summary.warnings.length > 0) {
|
|
123
|
-
output.warnings = summary.warnings.map(c => ({
|
|
124
|
+
output.warnings = summary.warnings.slice(0, verbose ? undefined : 10).map(c => ({
|
|
124
125
|
name: c.name,
|
|
125
126
|
message: c.message,
|
|
126
127
|
recommendation: c.recommendation,
|
|
127
128
|
}));
|
|
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
|
+
};
|
|
128
143
|
}
|
|
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
|
-
};
|
|
138
144
|
return {
|
|
139
145
|
content: [{
|
|
140
146
|
type: 'text',
|
|
@@ -342,6 +348,11 @@ Perfect for analyzing your localhost dev server or any public URL. Categories in
|
|
|
342
348
|
items: { type: 'string' },
|
|
343
349
|
description: 'Filter by specific categories (e.g., ["meta", "security", "performance"]). Leave empty for all.',
|
|
344
350
|
},
|
|
351
|
+
verbose: {
|
|
352
|
+
type: 'boolean',
|
|
353
|
+
description: 'Include detailed analysis (headings, links, images breakdown)',
|
|
354
|
+
default: false,
|
|
355
|
+
},
|
|
345
356
|
},
|
|
346
357
|
required: ['url'],
|
|
347
358
|
},
|
package/dist/version.js
CHANGED