UNPKG

@baruchiro/actual-mcp

Version:

Actual Budget MCP server exposing API functionality

25 lines 851 B
// ---------------------------- // GET GROUPED CATEGORY TOOL // ---------------------------- import { successWithJson, errorFromCatch } from '../../../utils/response.js'; import { fetchAllCategoryGroups } from '../../../core/data/fetch-categories.js'; export const schema = { name: 'get-grouped-categories', description: 'Retrieve a list of all category groups with their id, name, type and category list.', inputSchema: { type: 'object', description: 'This tool does not accept any arguments.', properties: {}, additionalProperties: false, }, }; export async function handler() { try { const categoryGroups = await fetchAllCategoryGroups(); return successWithJson(categoryGroups); } catch (err) { return errorFromCatch(err); } } //# sourceMappingURL=index.js.map