get_system_config
Retrieve system configuration details from the Webasyst framework to access settings and parameters for development tasks.
Instructions
Получить системную конфигурацию
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- webasyst-mcp.js:160-166 (handler)The main handler function for the 'get_system_config' tool. It finds the Webasyst root, locates wa-config/SystemConfig.class.php, reads its content (truncated to 2000 chars), and returns it as a text response.async function getSystemConfigTool() { const rootPath = await findWebasystRoot(); const cfg = path.join(rootPath, 'wa-config', 'SystemConfig.class.php'); if (!(await fileExists(cfg))) throw new Error('Системная конфигурация не найдена'); const content = await fs.readFile(cfg, 'utf-8'); return { content: [{ type: 'text', text: `Системная конфигурация:\n\n${content.substring(0, 2000)}...` }] }; }
- webasyst-mcp.js:1705-1705 (registration)Tool registration in the ListTools response, including name, description, and empty input schema.{ name: 'get_system_config', description: 'Получить системную конфигурацию', inputSchema: { type: 'object', properties: {} } },
- webasyst-mcp.js:1767-1767 (registration)Tool handler dispatch in the CallToolRequest switch statement.case 'get_system_config': return await getSystemConfigTool(args);
- webasyst-mcp.js:1705-1705 (schema)Input schema definition: no required parameters (empty object).{ name: 'get_system_config', description: 'Получить системную конфигурацию', inputSchema: { type: 'object', properties: {} } },