Skip to main content
Glama
hlebtkachenko

POHODA MCP Server

pohoda_list_settings

Export specific settings lists from POHODA accounting software, including numerical series, bank accounts, stores, and categories, for integration with MCP-compatible clients.

Instructions

Export settings/lists from POHODA. Types: numericalSeries, cashRegister, bankAccount, centre, activity, payment, store, storage, category, accountingUnit

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
settingsTypeYesType of settings to export

Implementation Reference

  • The implementation of the `pohoda_list_settings` tool, which handles the request to export settings from POHODA based on the provided settingsType.
    server.tool(
      "pohoda_list_settings",
      "Export settings/lists from POHODA. Types: numericalSeries, cashRegister, bankAccount, centre, activity, payment, store, storage, category, accountingUnit",
      {
        settingsType: z.enum(settingsTypeEnum).describe("Type of settings to export"),
      },
      async (params) => {
        try {
          const cfg = SETTINGS_TYPES[params.settingsType];
          if (!cfg) return err(`Unknown settings type: ${params.settingsType}`);
    
          const xml = buildExportRequest(
            { ico: client.ico },
            cfg.listTag,
            cfg.listNs,
            cfg.requestTag,
          );
          const resp = parseResponse(await client.sendXml(xml));
          const data = extractListData(resp);
          return jsonResult(`Settings: ${params.settingsType}`, data, data.length);
        } catch (e) {
          return err((e as Error).message);
        }
      },
    );

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/hlebtkachenko/pohoda-mcp'

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