setup_seo_optimization
Configure basic SEO settings for Webasyst sites, including robots.txt and sitemap.xml files, to improve search engine visibility.
Instructions
Базовые SEO-настройки (robots/sitemap)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_path | Yes | ||
| features | No | ||
| analytics_codes | No | ||
| webasyst_path | No |
Implementation Reference
- webasyst-mcp.js:1267-1272 (handler)The handler function that implements the tool logic: creates basic robots.txt and empty sitemap.xml in the given site_path.async function setupSeoOptimizationTool({ site_path, features = [], analytics_codes = {}, webasyst_path }) { const robots = `User-agent: *\nDisallow:\n`; await fs.writeFile(path.join(site_path, 'robots.txt'), robots); await fs.writeFile(path.join(site_path, 'sitemap.xml'), `<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n</urlset>\n`); return { content: [{ type: 'text', text: `SEO базовая настройка выполнена в ${site_path}` }] }; }
- webasyst-mcp.js:1737-1738 (schema)Input schema definition for the tool, specifying parameters like site_path (required), features, analytics_codes, webasyst_path.{ name: 'setup_seo_optimization', description: 'Базовые SEO-настройки (robots/sitemap)', inputSchema: { type: 'object', properties: { site_path: { type: 'string' }, features: { type: 'array', items: { type: 'string' } }, analytics_codes: { type: 'object' }, webasyst_path: { type: 'string' } }, required: ['site_path'] } }, { name: 'analyze_project', description: 'Проанализировать проект Webasyst', inputSchema: { type: 'object', properties: { project_path: { type: 'string' }, analysis_type: { type: 'string' }, generate_report: { type: 'boolean' } }, required: ['project_path'] } },
- webasyst-mcp.js:1799-1799 (registration)Registers the tool handler in the CallToolRequest switch statement.case 'setup_seo_optimization': return await setupSeoOptimizationTool(args);
- webasyst-mcp.js:1737-1738 (registration)Adds the tool to the list of available tools returned by ListToolsRequest.{ name: 'setup_seo_optimization', description: 'Базовые SEO-настройки (robots/sitemap)', inputSchema: { type: 'object', properties: { site_path: { type: 'string' }, features: { type: 'array', items: { type: 'string' } }, analytics_codes: { type: 'object' }, webasyst_path: { type: 'string' } }, required: ['site_path'] } }, { name: 'analyze_project', description: 'Проанализировать проект Webasyst', inputSchema: { type: 'object', properties: { project_path: { type: 'string' }, analysis_type: { type: 'string' }, generate_report: { type: 'boolean' } }, required: ['project_path'] } },