accounting
FreshBooks MCP Integration for Vercel AI SDK
Connect FreshBooks to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect FreshBooks to Vercel AI SDK
Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.
Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with
--write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.
FreshBooks MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"mcpServers": {
"kosmokrator-freshbooks": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=freshbooks",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=freshbooks --write=deny Why Use KosmoKrator Here
Expose only FreshBooks instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
FreshBooks Tools Visible to Vercel AI SDK
Vercel AI SDK sees stable MCP tool names generated from the FreshBooks integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__freshbooks__freshbooks_list_invoices | freshbooks.freshbooks_list_invoices | Read | List invoices from FreshBooks. Returns invoice details including status, amounts, client info, and dates. Supports filtering by status, client, date range, and more. |
integration__freshbooks__freshbooks_get_invoice | freshbooks.freshbooks_get_invoice | Read | Get details of a specific FreshBooks invoice by ID. Returns full invoice data including line items, amounts, client details, status, and payment info. |
integration__freshbooks__freshbooks_create_invoice | freshbooks.freshbooks_create_invoice | Write | Create a new invoice in FreshBooks. Requires at minimum a client ID and line items. Supports setting due date, notes, discount, and other invoice fields. |
integration__freshbooks__freshbooks_list_clients | freshbooks.freshbooks_list_clients | Read | List clients from FreshBooks. Returns client details including name, email, company, and balance. Supports filtering and pagination. |
integration__freshbooks__freshbooks_get_client | freshbooks.freshbooks_get_client | Read | Get details of a specific FreshBooks client by ID. Returns full client profile including contact info, company details, and outstanding balance. |
integration__freshbooks__freshbooks_list_projects | freshbooks.freshbooks_list_projects | Read | List projects from FreshBooks. Returns project details including title, description, billing method, budget, and active status. Supports filtering and pagination. |
integration__freshbooks__freshbooks_list_payments | freshbooks.freshbooks_list_payments | Read | List payments from FreshBooks. Returns payment details including amount, date, client, invoice, and payment method. Supports filtering and pagination. |
integration__freshbooks__freshbooks_get_current_user | freshbooks.freshbooks_get_current_user | Read | Get the profile of the currently authenticated FreshBooks user. Returns user details including name, email, and linked business/member information. Useful for verifying connection and identity. |