UNPKG

actual-mcp

Version:

Actual Budget MCP server exposing API functionality

32 lines 951 B
// ---------------------------- // DELETE PAYEE TOOL // ---------------------------- import { deletePayee } from '../../../actual-api.js'; import { successWithJson, errorFromCatch } from '../../../utils/response.js'; export const schema = { name: 'delete-payee', description: 'Delete a payee', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID of the payee. Should be in UUID format.', }, }, required: ['id'], }, }; export async function handler(args) { try { if (!args.id || typeof args.id !== 'string') { return errorFromCatch('id is required and must be a string'); } await deletePayee(args.id); return successWithJson('Successfully deleted payee ' + args.id); } catch (err) { return errorFromCatch(err); } } //# sourceMappingURL=index.js.map