Skip to main content
Glama

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
NameRequiredDescriptionDefault
project_pathYes

Implementation Reference

  • 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 }] }; }
  • 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'] } },
  • The switch case in the CallToolRequestSchema handler that routes calls to the checkProjectComplianceTool function.
    case 'check_project_compliance': return await checkProjectComplianceTool(args);
  • 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; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/emmy-design/webasyst-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server