UNPKG

@baruchiro/actual-mcp

Version:

Actual Budget MCP server exposing API functionality

21 lines 656 B
// ---------------------------- // CREATE RULE TOOL // ---------------------------- import { successWithJson, errorFromCatch } from '../../../utils/response.js'; import { createRule } from '../../../actual-api.js'; import { RuleInputSchema } from '../input-schema.js'; export const schema = { name: 'create-rule', description: 'Create a new rule', inputSchema: RuleInputSchema, }; export async function handler(args) { try { const { id } = await createRule(args); return successWithJson('Successfully created rule ' + id); } catch (err) { return errorFromCatch(err); } } //# sourceMappingURL=index.js.map