@tenkeybridge/mcp 0.9.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli.js +149 -8
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +149 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +149 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**MCP server for [TenkeyBridge](https://tenkeybridge.com) — give AI agents QuickBooks
|
|
4
4
|
Desktop & Enterprise through the QuickBooks Online–compatible REST API.**
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Ten tools: `query`, `get`, `create`, `update`, `delete`, `void` (Invoice, SalesReceipt, Purchase, BillPayment), `run_report` (QBO-style reports), `get_connection` (is the file online), and `set_cleared_status` / `get_cleared_status` (QuickBooks Desktop cleared status), over the live API, plus a
|
|
7
7
|
compatibility-catalog resource (`compat://catalog`, `compat://entity/{name}`) so agents
|
|
8
8
|
can check entity and field support *before* calling instead of learning by 400. Errors
|
|
9
9
|
come back structured (`status`, `code`, `fixes`, `docsUrl`) for self-correction.
|
package/dist/cli.js
CHANGED
|
@@ -821,6 +821,33 @@ var CATALOG = {
|
|
|
821
821
|
}
|
|
822
822
|
]
|
|
823
823
|
},
|
|
824
|
+
"Connection": {
|
|
825
|
+
"entity": "Connection",
|
|
826
|
+
"verdict": "live",
|
|
827
|
+
"group": "platform",
|
|
828
|
+
"read": "partial",
|
|
829
|
+
"write": "none",
|
|
830
|
+
"headline": "GET /v3/company/{companyId}/connection: whether the company file is connected right now, answered from presence alone (never reaches QuickBooks). A TenkeyBridge extension; QuickBooks Online has no equivalent.",
|
|
831
|
+
"usage": "GET /v3/company/{companyId}/connection",
|
|
832
|
+
"fields": [
|
|
833
|
+
{
|
|
834
|
+
"qbo": "Connection.online",
|
|
835
|
+
"support": "full",
|
|
836
|
+
"note": "true when the agent socket is open or the Web Connector is online (a sandbox realm is always online). An offline file is a normal 200 answer with online false, never a 503."
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"qbo": "Connection.transport",
|
|
840
|
+
"support": "full",
|
|
841
|
+
"note": "The leg that would serve a call now: agent, qbwc or sandbox; null when offline."
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"qbo": "Connection.lastSeenAt",
|
|
845
|
+
"support": "partial",
|
|
846
|
+
"note": "Now when an agent is connected; otherwise the Web Connector's last poll time; null when no Web Connector check-in is stored (an agent-only file reads null once disconnected)."
|
|
847
|
+
}
|
|
848
|
+
],
|
|
849
|
+
"unsupported": []
|
|
850
|
+
},
|
|
824
851
|
"CreditCardPayment": {
|
|
825
852
|
"entity": "CreditCardPayment",
|
|
826
853
|
"verdict": "gap",
|
|
@@ -1460,6 +1487,11 @@ var CATALOG = {
|
|
|
1460
1487
|
"support": "full",
|
|
1461
1488
|
"note": "Desktop TargetBonus, a money amount. Accepted on create and update without a payroll subscription (verified live on QuickBooks Enterprise 24, 2026-10-15); Desktop's create response omits it but reads return it."
|
|
1462
1489
|
},
|
|
1490
|
+
{
|
|
1491
|
+
"qbo": "PayrollInfo",
|
|
1492
|
+
"support": "partial",
|
|
1493
|
+
"note": "TenkeyBridge extension, read-only: Desktop's EmployeePayrollInfo as { PayPeriod, ClassRef, Earnings: [{ PayrollItemRef, Rate | RatePercent }], UseTimeDataToCreatePaychecks, SickHours, VacationHours } with hours as decimal numbers (PT40H30M0S reads 40.5). Present only when the file has a payroll subscription and the integrated app may access personal data (Edit, Preferences, Integrated Applications); otherwise absent. A create carrying PayrollInfo, or an update that changes it, answers 422 UNSUPPORTED_BY_DESKTOP; an unchanged echo on update is ignored. Not filterable."
|
|
1494
|
+
},
|
|
1463
1495
|
{
|
|
1464
1496
|
"qbo": "AdditionalContactRef",
|
|
1465
1497
|
"support": "none",
|
|
@@ -1474,9 +1506,9 @@ var CATALOG = {
|
|
|
1474
1506
|
"note": "QBO employees are deactivated, not deleted. Desktop can delete an employee with no transactions, but TenkeyBridge keeps deactivate-only to match QBO (sparse update with Active:false)."
|
|
1475
1507
|
},
|
|
1476
1508
|
{
|
|
1477
|
-
"case": "
|
|
1509
|
+
"case": "Writing payroll fields",
|
|
1478
1510
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1479
|
-
"note": "Pay
|
|
1511
|
+
"note": "Pay periods, earnings rates and sick or vacation hours are read-only (see PayrollInfo). Set them in QuickBooks Desktop."
|
|
1480
1512
|
}
|
|
1481
1513
|
]
|
|
1482
1514
|
},
|
|
@@ -2293,6 +2325,64 @@ var CATALOG = {
|
|
|
2293
2325
|
}
|
|
2294
2326
|
]
|
|
2295
2327
|
},
|
|
2328
|
+
"Paycheck": {
|
|
2329
|
+
"entity": "Paycheck",
|
|
2330
|
+
"verdict": "live",
|
|
2331
|
+
"group": "transactions",
|
|
2332
|
+
"read": "partial",
|
|
2333
|
+
"write": "none",
|
|
2334
|
+
"headline": "TenkeyBridge extension: read-only list of QuickBooks Desktop payroll paychecks (header rows: employee, bank account, date, check number, net pay). QuickBooks Online has no Paycheck entity. Needs a payroll subscription and the personal-data permission",
|
|
2335
|
+
"fields": [
|
|
2336
|
+
{
|
|
2337
|
+
"qbo": "MetaData",
|
|
2338
|
+
"support": "full",
|
|
2339
|
+
"note": "Id is Desktop's TxnID. CreateTime and LastUpdatedTime come from Desktop's TimeCreated / TimeModified. There is no SyncToken: Desktop's paycheck rows carry no EditSequence."
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
"qbo": "TxnDate",
|
|
2343
|
+
"support": "full",
|
|
2344
|
+
"note": "The check date. Pushed to Desktop as a TransactionDateRangeFilter."
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
"qbo": "DocNumber",
|
|
2348
|
+
"support": "full",
|
|
2349
|
+
"note": "Desktop RefNumber. Filters on it are applied by the gateway after the read."
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
"qbo": "EmployeeRef",
|
|
2353
|
+
"support": "full",
|
|
2354
|
+
"note": "Desktop EntityRef, the employee. An equality filter is pushed to Desktop as a TransactionEntityFilter."
|
|
2355
|
+
},
|
|
2356
|
+
{
|
|
2357
|
+
"qbo": "BankAccountRef",
|
|
2358
|
+
"support": "full",
|
|
2359
|
+
"note": "Desktop AccountRef, the bank account the check is drawn on."
|
|
2360
|
+
},
|
|
2361
|
+
{
|
|
2362
|
+
"qbo": "NetPay",
|
|
2363
|
+
"support": "full",
|
|
2364
|
+
"note": "Desktop Amount with the sign flipped: Desktop reports money out as negative, NetPay is the positive take-home amount. Filterable, applied by the gateway."
|
|
2365
|
+
}
|
|
2366
|
+
],
|
|
2367
|
+
"unsupported": [
|
|
2368
|
+
{
|
|
2369
|
+
"case": "Earnings, taxes and deductions",
|
|
2370
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2371
|
+
"note": "qbXML has no paycheck detail query: the paycheck list answers header rows only. Pay stub lines (earnings, taxes, deductions, hours) come from the payroll reports."
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
"case": "create, update, delete or void",
|
|
2375
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2376
|
+
"note": "Paycheck is read-only through TenkeyBridge. Paychecks are created in QuickBooks Desktop payroll.",
|
|
2377
|
+
"workaround": "Create or void the paycheck in QuickBooks Desktop (Employees, Pay Employees); it shows up on the next read."
|
|
2378
|
+
},
|
|
2379
|
+
{
|
|
2380
|
+
"case": "File without payroll",
|
|
2381
|
+
"error": "PAYROLL_SUBSCRIPTION_REQUIRED",
|
|
2382
|
+
"note": "Desktop answers status 3262 when the company file has no payroll subscription (422 PAYROLL_SUBSCRIPTION_REQUIRED), and 3261 when the integrated app lacks the personal-data permission (403 QB_PERSONAL_DATA_DENIED)."
|
|
2383
|
+
}
|
|
2384
|
+
]
|
|
2385
|
+
},
|
|
2296
2386
|
"Payment": {
|
|
2297
2387
|
"entity": "Payment",
|
|
2298
2388
|
"verdict": "live",
|
|
@@ -2421,6 +2511,43 @@ var CATALOG = {
|
|
|
2421
2511
|
}
|
|
2422
2512
|
]
|
|
2423
2513
|
},
|
|
2514
|
+
"PayrollItemWage": {
|
|
2515
|
+
"entity": "PayrollItemWage",
|
|
2516
|
+
"verdict": "live",
|
|
2517
|
+
"group": "lists",
|
|
2518
|
+
"read": "full",
|
|
2519
|
+
"write": "none",
|
|
2520
|
+
"headline": "TenkeyBridge extension: read/query the payroll wage items (Regular Pay, Overtime Pay, ...) a TimeActivity can name; QuickBooks Desktop only",
|
|
2521
|
+
"fields": [
|
|
2522
|
+
{
|
|
2523
|
+
"qbo": "Name",
|
|
2524
|
+
"support": "full",
|
|
2525
|
+
"note": "Up to 31 characters."
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
"qbo": "Active",
|
|
2529
|
+
"support": "full",
|
|
2530
|
+
"note": "Queries return active items only unless you filter on Active."
|
|
2531
|
+
},
|
|
2532
|
+
{
|
|
2533
|
+
"qbo": "WageType",
|
|
2534
|
+
"support": "full",
|
|
2535
|
+
"note": "Desktop's enum string, unchanged: Bonus, Commission, HourlyOvertime, HourlyRegular, HourlySick, HourlyVacation, SalaryRegular, SalarySick, SalaryVacation."
|
|
2536
|
+
},
|
|
2537
|
+
{
|
|
2538
|
+
"qbo": "ExpenseAccountRef",
|
|
2539
|
+
"support": "full"
|
|
2540
|
+
}
|
|
2541
|
+
],
|
|
2542
|
+
"unsupported": [
|
|
2543
|
+
{
|
|
2544
|
+
"case": "Create, update, deactivate or delete",
|
|
2545
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2546
|
+
"note": "PayrollItemWage is read-only through TenkeyBridge. Reading wage items works on a company file without a payroll subscription.",
|
|
2547
|
+
"workaround": "Create or edit the wage item in QuickBooks Desktop (Lists, Payroll Item List); it shows up on the next read."
|
|
2548
|
+
}
|
|
2549
|
+
]
|
|
2550
|
+
},
|
|
2424
2551
|
"Preferences": {
|
|
2425
2552
|
"entity": "Preferences",
|
|
2426
2553
|
"verdict": "live",
|
|
@@ -2980,7 +3107,7 @@ var CATALOG = {
|
|
|
2980
3107
|
{
|
|
2981
3108
|
"qbo": "Desktop extension reports",
|
|
2982
3109
|
"support": "full",
|
|
2983
|
-
"note": "ProfitAndLossByClass, ProfitAndLossByJob, ProfitAndLossPrevYearComp, ProfitAndLossYTDComp, BalanceSheetPrevYearComp, BalanceSheetByClass, PurchaseByVendorSummary, PurchaseByItemSummary, SalesByRepSummary, InventoryStockStatusByItem, OpenInvoices, UnpaidBillsDetail, OpenPOs, SalesByCustomerDetail, SalesByItemDetail, IncomeByCustomerDetail, ExpenseByVendorDetail, PurchaseByVendorDetail, DepositDetail, CheckDetail, BalanceSheetDetail, CollectionsReport, and since Reports wave 4 TxnDetailByAccount, UnbilledCostsByJob, AuditTrail, 1099Detail, SalesByRepDetail, PurchaseByItemDetail, OpenPOsByJob, EstimatesByJob, JobProgressInvoicesVsEstimates, OpenSalesOrderByCustomer, OpenSalesOrderByItem, PendingSales, IncomeTaxDetail, MissingChecks, SalesTaxRevenueSummary, IncomeTaxSummary, BalanceSheetSummary, InventoryStockStatusByVendor, and the Job and Time reports JobProfitabilitySummary, JobEstimatesVsActualsSummary, ItemProfitability, ItemEstimatesVsActuals, JobProfitabilityDetail, JobEstimatesVsActualsDetail, TimeByJobSummary, TimeByJobDetail, TimeByItem, TimeByName, and since Reports wave 5 PhysicalInventoryWorksheet (a bare snapshot: Desktop refuses every period, filter, basis and column option on it, so the gateway refuses them too) and the Advanced Inventory reports InventoryValuationSummaryBySite, LotNumberInStockBySite and SerialNumberInStockBySite (sent bare; a company file without Advanced Inventory answers 3250, which becomes a 422 REPORT_FEATURE_UNAVAILABLE naming the feature; not live-proven past that gate, and unavailable in the sandbox). Filters are enabled only where they were proven live on QuickBooks Enterprise 24 (2026-10-20): customer/vendor, item, class, account type, transaction type and modified date on the detail reports (not the account filter on UnbilledCostsByJob and PendingSales, which Desktop fails with an internal error), the same minus modified date on the summaries, all but vendor on the four Job summaries, customer, item and class on the Time reports; the two Job detail reports require a customer or job Id and take no other filter; MissingChecks requires account Ids (Desktop refuses a bare query and an account type, as it does ReportBasis) and takes transaction type, class, modified date and columns. 1099Detail takes no filter at all (an entity filter crashed QuickBooks, so the gateway refuses every filter on it before it reaches Desktop). The Time reports take no columns (Desktop refuses Duration). Desktop reports with no QBO twin, served under their Desktop names in the same QBO report JSON."
|
|
3110
|
+
"note": "ProfitAndLossByClass, ProfitAndLossByJob, ProfitAndLossPrevYearComp, ProfitAndLossYTDComp, BalanceSheetPrevYearComp, BalanceSheetByClass, PurchaseByVendorSummary, PurchaseByItemSummary, SalesByRepSummary, InventoryStockStatusByItem, OpenInvoices, UnpaidBillsDetail, OpenPOs, SalesByCustomerDetail, SalesByItemDetail, IncomeByCustomerDetail, ExpenseByVendorDetail, PurchaseByVendorDetail, DepositDetail, CheckDetail, BalanceSheetDetail, CollectionsReport, and since Reports wave 4 TxnDetailByAccount, UnbilledCostsByJob, AuditTrail, 1099Detail, SalesByRepDetail, PurchaseByItemDetail, OpenPOsByJob, EstimatesByJob, JobProgressInvoicesVsEstimates, OpenSalesOrderByCustomer, OpenSalesOrderByItem, PendingSales, IncomeTaxDetail, MissingChecks, SalesTaxRevenueSummary, IncomeTaxSummary, BalanceSheetSummary, InventoryStockStatusByVendor, and the Job and Time reports JobProfitabilitySummary, JobEstimatesVsActualsSummary, ItemProfitability, ItemEstimatesVsActuals, JobProfitabilityDetail, JobEstimatesVsActualsDetail, TimeByJobSummary, TimeByJobDetail, TimeByItem, TimeByName, and since Reports wave 5 PhysicalInventoryWorksheet (a bare snapshot: Desktop refuses every period, filter, basis and column option on it, so the gateway refuses them too) and the Advanced Inventory reports InventoryValuationSummaryBySite, LotNumberInStockBySite and SerialNumberInStockBySite (sent bare; a company file without Advanced Inventory answers 3250, which becomes a 422 REPORT_FEATURE_UNAVAILABLE naming the feature; not live-proven past that gate, and unavailable in the sandbox). Six payroll reports (2026-12-03): PayrollTransactionDetail, PayrollItemDetail, PayrollTransactionsByPayee and PayrollReviewDetail (PayrollDetailReportQueryRq) and PayrollSummary and EmployeeEarningsSummary (PayrollSummaryReportQueryRq). They take a period only (start_date/end_date or date_macro): no filter, column split, accounting_method or columns, because only the period was proven live, and anything else is refused before Desktop. They need a QuickBooks Desktop payroll subscription (status 3262 becomes 422 PAYROLL_SUBSCRIPTION_REQUIRED) and the integrated-application personal-data permission (status 3261 becomes 403 QB_PERSONAL_DATA_DENIED). The sandbox replays one fixed capture of each. Filters are enabled only where they were proven live on QuickBooks Enterprise 24 (2026-10-20): customer/vendor, item, class, account type, transaction type and modified date on the detail reports (not the account filter on UnbilledCostsByJob and PendingSales, which Desktop fails with an internal error), the same minus modified date on the summaries, all but vendor on the four Job summaries, customer, item and class on the Time reports; the two Job detail reports require a customer or job Id and take no other filter; MissingChecks requires account Ids (Desktop refuses a bare query and an account type, as it does ReportBasis) and takes transaction type, class, modified date and columns. 1099Detail takes no filter at all (an entity filter crashed QuickBooks, so the gateway refuses every filter on it before it reaches Desktop). The Time reports take no columns (Desktop refuses Duration). Desktop reports with no QBO twin, served under their Desktop names in the same QBO report JSON."
|
|
2984
3111
|
},
|
|
2985
3112
|
{
|
|
2986
3113
|
"qbo": "start_date / end_date / date_macro",
|
|
@@ -3713,9 +3840,8 @@ var CATALOG = {
|
|
|
3713
3840
|
},
|
|
3714
3841
|
{
|
|
3715
3842
|
"qbo": "PayrollItemRef",
|
|
3716
|
-
"support": "
|
|
3717
|
-
"note":
|
|
3718
|
-
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
3843
|
+
"support": "full",
|
|
3844
|
+
"note": 'TenkeyBridge extension (QBO Accounting has no equivalent): maps to Desktop PayrollItemWageRef, read from and written to the entry as { value, name }. Pick a wage item from the PayrollItemWage list (Regular Pay, Overtime Pay, ...). Required on every entry for an employee whose "Use time data to create paychecks" is on: without it QuickBooks refuses the save (statusCode 3180, "Activities for this employee must have a payroll item"). For an employee set not to use time data it is optional and stored when sent. Vendor entries accept and store one too. A sparse update that omits it keeps the stored item; sending a different one changes it; it cannot be cleared.'
|
|
3719
3845
|
},
|
|
3720
3846
|
{
|
|
3721
3847
|
"qbo": "TxnNumber",
|
|
@@ -4164,7 +4290,7 @@ function registerTools(server, client, access) {
|
|
|
4164
4290
|
hide("run_report", server.registerTool(
|
|
4165
4291
|
"run_report",
|
|
4166
4292
|
{
|
|
4167
|
-
description: "Run a QuickBooks Desktop report and get QBO-style report JSON (Header, Columns, Rows). Report names are QBO names such as ProfitAndLoss, BalanceSheet or CashFlow, plus Desktop extension reports. Params use QBO names, e.g. start_date, end_date, date_macro, accounting_method, summarize_column_by, customer, vendor, item, class, account, account_type, transaction_type, columns, report_date, start_moddate, end_moddate. BudgetOverview and BudgetVsActuals take fiscal_year instead of dates; MissingChecks requires account, and JobProfitabilityDetail and JobEstimatesVsActualsDetail require customer. ClassSales gives income by class; TransactionListWithSplits lists every split line. Read compat://entity/reports for the available reports and which params each takes.",
|
|
4293
|
+
description: "Run a QuickBooks Desktop report and get QBO-style report JSON (Header, Columns, Rows). Report names are QBO names such as ProfitAndLoss, BalanceSheet or CashFlow, plus Desktop extension reports. Params use QBO names, e.g. start_date, end_date, date_macro, accounting_method, summarize_column_by, customer, vendor, item, class, account, account_type, transaction_type, columns, report_date, start_moddate, end_moddate. BudgetOverview and BudgetVsActuals take fiscal_year instead of dates; MissingChecks requires account, and JobProfitabilityDetail and JobEstimatesVsActualsDetail require customer. ClassSales gives income by class; TransactionListWithSplits lists every split line. The payroll reports (PayrollTransactionDetail, PayrollSummary and four more) take a period only (start_date, end_date or date_macro). Read compat://entity/reports for the available reports and which params each takes.",
|
|
4168
4294
|
inputSchema: {
|
|
4169
4295
|
report: z.string().describe('Report name, e.g. "ProfitAndLoss" (case-insensitive).'),
|
|
4170
4296
|
params: z.record(z.string()).optional().describe('Query params, e.g. { "date_macro": "Last Month" }.')
|
|
@@ -4179,6 +4305,21 @@ function registerTools(server, client, access) {
|
|
|
4179
4305
|
}
|
|
4180
4306
|
}
|
|
4181
4307
|
));
|
|
4308
|
+
hide("get_connection", server.registerTool(
|
|
4309
|
+
"get_connection",
|
|
4310
|
+
{
|
|
4311
|
+
description: "Check whether the QuickBooks company file is reachable right now: { online, transport (agent, qbwc, sandbox or null), lastSeenAt }. An offline file answers online false, not an error. For a Web Connector file lastSeenAt is the last stored check-in and can be null or slightly behind while online is true. Costs no QuickBooks round trip.",
|
|
4312
|
+
inputSchema: {}
|
|
4313
|
+
},
|
|
4314
|
+
async () => {
|
|
4315
|
+
if (!client.connection) return fail("This TenkeyBridge client has no connection() method; upgrade @tenkeybridge/client to 0.10.1.");
|
|
4316
|
+
try {
|
|
4317
|
+
return ok(await client.connection());
|
|
4318
|
+
} catch (err) {
|
|
4319
|
+
return failure(err);
|
|
4320
|
+
}
|
|
4321
|
+
}
|
|
4322
|
+
));
|
|
4182
4323
|
hide("get", server.registerTool(
|
|
4183
4324
|
"get",
|
|
4184
4325
|
{
|
|
@@ -4336,7 +4477,7 @@ function registerTools(server, client, access) {
|
|
|
4336
4477
|
}
|
|
4337
4478
|
|
|
4338
4479
|
// src/version.ts
|
|
4339
|
-
var PKG_VERSION = "0.
|
|
4480
|
+
var PKG_VERSION = "0.10.1";
|
|
4340
4481
|
|
|
4341
4482
|
// src/server.ts
|
|
4342
4483
|
var SERVER_NAME = "tenkeybridge";
|