check_project_compliance
Verify UI and localization compliance for Webasyst framework projects to ensure proper implementation and adherence to standards.
Instructions
Проверить базовое соответствие UI/локализации
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes |
Implementation Reference
- webasyst-mcp.js:1326-1338 (handler)The handler function that implements the core logic of the 'check_project_compliance' tool. It checks for the presence of required files and directories essential for UI and localization compliance in a Webasyst project.async function checkProjectComplianceTool({ project_path }) { const required = [ 'templates/ui_wrapper.html', 'lib/actions/backend', 'locale' ]; const missing = []; for (const item of required) { if (!(await fileExists(path.join(project_path, item)))) missing.push(item); } const text = missing.length ? `Требует доработки: ${missing.join(', ')}` : 'Базовые требования UI/локализации соблюдены'; return { content: [{ type: 'text', text }] }; }
- webasyst-mcp.js:1741-1741 (registration)Registration of the tool in the list of available tools, including its description and input schema definition.{ name: 'check_project_compliance', description: 'Проверить базовое соответствие UI/локализации', inputSchema: { type: 'object', properties: { project_path: { type: 'string' } }, required: ['project_path'] } },
- webasyst-mcp.js:1803-1803 (registration)The switch case in the CallToolRequestSchema handler that routes calls to the checkProjectComplianceTool function.case 'check_project_compliance': return await checkProjectComplianceTool(args);
- webasyst-mcp.js:22-28 (helper)Helper utility function used by the handler to check if files/directories exist.async function fileExists(p) { try { await fs.access(p); return true; } catch { return false; }