Skip to main content
Glama

get_system_config

Retrieve system configuration details from the Webasyst framework to access settings and parameters for development tasks.

Instructions

Получить системную конфигурацию

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)}...` }] }; }
  • Tool registration in the ListTools response, including name, description, and empty input schema.
    { name: 'get_system_config', description: 'Получить системную конфигурацию', inputSchema: { type: 'object', properties: {} } },
  • Tool handler dispatch in the CallToolRequest switch statement.
    case 'get_system_config': return await getSystemConfigTool(args);
  • Input schema definition: no required parameters (empty object).
    { name: 'get_system_config', description: 'Получить системную конфигурацию', inputSchema: { type: 'object', properties: {} } },

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