Skip to main content
Glama

Moneybird MCP Server

MIT License
39
18
  • Apple
financial-accounts.ts1.43 kB
import { z } from 'zod'; import { getClient } from '../services/client.js'; export const GetFinancialAccountSchema = z.object({ id: z.string().describe('The ID of the financial account to retrieve'), }); export const ListFinancialAccountsSchema = z.object({ page: z.number().int().positive().optional().describe('Page number (starts from 1)'), perPage: z.number().int().min(1).max(100).optional().describe('Number of items per page (max 100)'), }); export async function getFinancialAccount(id: string) { const client = getClient(); const accounts = await client.getFinancialAccounts(); const account = accounts.find((account: any) => account.id === id); if (!account) { throw new Error(`Financial account with ID ${id} not found`); } return account; } export async function listFinancialAccounts(options?: z.infer<typeof ListFinancialAccountsSchema>) { const client = getClient(); const accounts = await client.getFinancialAccounts(); // Basic pagination if requested if (options?.page && options?.perPage) { const startIndex = (options.page - 1) * options.perPage; const endIndex = startIndex + options.perPage; return { accounts: accounts.slice(startIndex, endIndex), page: options.page, perPage: options.perPage, totalCount: accounts.length, totalPages: Math.ceil(accounts.length / options.perPage) }; } return { accounts }; }

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/vanderheijden86/moneybird-mcp-server'

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