@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/dist/index.cjs CHANGED
@@ -790,6 +790,33 @@ var CATALOG = {
790
790
  }
791
791
  ]
792
792
  },
793
+ "Connection": {
794
+ "entity": "Connection",
795
+ "verdict": "live",
796
+ "group": "platform",
797
+ "read": "partial",
798
+ "write": "none",
799
+ "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.",
800
+ "usage": "GET /v3/company/{companyId}/connection",
801
+ "fields": [
802
+ {
803
+ "qbo": "Connection.online",
804
+ "support": "full",
805
+ "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."
806
+ },
807
+ {
808
+ "qbo": "Connection.transport",
809
+ "support": "full",
810
+ "note": "The leg that would serve a call now: agent, qbwc or sandbox; null when offline."
811
+ },
812
+ {
813
+ "qbo": "Connection.lastSeenAt",
814
+ "support": "partial",
815
+ "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)."
816
+ }
817
+ ],
818
+ "unsupported": []
819
+ },
793
820
  "CreditCardPayment": {
794
821
  "entity": "CreditCardPayment",
795
822
  "verdict": "gap",
@@ -1429,6 +1456,11 @@ var CATALOG = {
1429
1456
  "support": "full",
1430
1457
  "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."
1431
1458
  },
1459
+ {
1460
+ "qbo": "PayrollInfo",
1461
+ "support": "partial",
1462
+ "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."
1463
+ },
1432
1464
  {
1433
1465
  "qbo": "AdditionalContactRef",
1434
1466
  "support": "none",
@@ -1443,9 +1475,9 @@ var CATALOG = {
1443
1475
  "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)."
1444
1476
  },
1445
1477
  {
1446
- "case": "Payroll fields",
1478
+ "case": "Writing payroll fields",
1447
1479
  "error": "UNSUPPORTED_BY_DESKTOP",
1448
- "note": "Pay rates, pay periods, wage items and other EmployeePayrollInfo content are license-gated in Desktop and not exposed for read or write."
1480
+ "note": "Pay periods, earnings rates and sick or vacation hours are read-only (see PayrollInfo). Set them in QuickBooks Desktop."
1449
1481
  }
1450
1482
  ]
1451
1483
  },
@@ -2262,6 +2294,64 @@ var CATALOG = {
2262
2294
  }
2263
2295
  ]
2264
2296
  },
2297
+ "Paycheck": {
2298
+ "entity": "Paycheck",
2299
+ "verdict": "live",
2300
+ "group": "transactions",
2301
+ "read": "partial",
2302
+ "write": "none",
2303
+ "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",
2304
+ "fields": [
2305
+ {
2306
+ "qbo": "MetaData",
2307
+ "support": "full",
2308
+ "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."
2309
+ },
2310
+ {
2311
+ "qbo": "TxnDate",
2312
+ "support": "full",
2313
+ "note": "The check date. Pushed to Desktop as a TransactionDateRangeFilter."
2314
+ },
2315
+ {
2316
+ "qbo": "DocNumber",
2317
+ "support": "full",
2318
+ "note": "Desktop RefNumber. Filters on it are applied by the gateway after the read."
2319
+ },
2320
+ {
2321
+ "qbo": "EmployeeRef",
2322
+ "support": "full",
2323
+ "note": "Desktop EntityRef, the employee. An equality filter is pushed to Desktop as a TransactionEntityFilter."
2324
+ },
2325
+ {
2326
+ "qbo": "BankAccountRef",
2327
+ "support": "full",
2328
+ "note": "Desktop AccountRef, the bank account the check is drawn on."
2329
+ },
2330
+ {
2331
+ "qbo": "NetPay",
2332
+ "support": "full",
2333
+ "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."
2334
+ }
2335
+ ],
2336
+ "unsupported": [
2337
+ {
2338
+ "case": "Earnings, taxes and deductions",
2339
+ "error": "UNSUPPORTED_BY_DESKTOP",
2340
+ "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."
2341
+ },
2342
+ {
2343
+ "case": "create, update, delete or void",
2344
+ "error": "UNSUPPORTED_BY_DESKTOP",
2345
+ "note": "Paycheck is read-only through TenkeyBridge. Paychecks are created in QuickBooks Desktop payroll.",
2346
+ "workaround": "Create or void the paycheck in QuickBooks Desktop (Employees, Pay Employees); it shows up on the next read."
2347
+ },
2348
+ {
2349
+ "case": "File without payroll",
2350
+ "error": "PAYROLL_SUBSCRIPTION_REQUIRED",
2351
+ "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)."
2352
+ }
2353
+ ]
2354
+ },
2265
2355
  "Payment": {
2266
2356
  "entity": "Payment",
2267
2357
  "verdict": "live",
@@ -2390,6 +2480,43 @@ var CATALOG = {
2390
2480
  }
2391
2481
  ]
2392
2482
  },
2483
+ "PayrollItemWage": {
2484
+ "entity": "PayrollItemWage",
2485
+ "verdict": "live",
2486
+ "group": "lists",
2487
+ "read": "full",
2488
+ "write": "none",
2489
+ "headline": "TenkeyBridge extension: read/query the payroll wage items (Regular Pay, Overtime Pay, ...) a TimeActivity can name; QuickBooks Desktop only",
2490
+ "fields": [
2491
+ {
2492
+ "qbo": "Name",
2493
+ "support": "full",
2494
+ "note": "Up to 31 characters."
2495
+ },
2496
+ {
2497
+ "qbo": "Active",
2498
+ "support": "full",
2499
+ "note": "Queries return active items only unless you filter on Active."
2500
+ },
2501
+ {
2502
+ "qbo": "WageType",
2503
+ "support": "full",
2504
+ "note": "Desktop's enum string, unchanged: Bonus, Commission, HourlyOvertime, HourlyRegular, HourlySick, HourlyVacation, SalaryRegular, SalarySick, SalaryVacation."
2505
+ },
2506
+ {
2507
+ "qbo": "ExpenseAccountRef",
2508
+ "support": "full"
2509
+ }
2510
+ ],
2511
+ "unsupported": [
2512
+ {
2513
+ "case": "Create, update, deactivate or delete",
2514
+ "error": "UNSUPPORTED_BY_DESKTOP",
2515
+ "note": "PayrollItemWage is read-only through TenkeyBridge. Reading wage items works on a company file without a payroll subscription.",
2516
+ "workaround": "Create or edit the wage item in QuickBooks Desktop (Lists, Payroll Item List); it shows up on the next read."
2517
+ }
2518
+ ]
2519
+ },
2393
2520
  "Preferences": {
2394
2521
  "entity": "Preferences",
2395
2522
  "verdict": "live",
@@ -2949,7 +3076,7 @@ var CATALOG = {
2949
3076
  {
2950
3077
  "qbo": "Desktop extension reports",
2951
3078
  "support": "full",
2952
- "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."
3079
+ "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."
2953
3080
  },
2954
3081
  {
2955
3082
  "qbo": "start_date / end_date / date_macro",
@@ -3682,9 +3809,8 @@ var CATALOG = {
3682
3809
  },
3683
3810
  {
3684
3811
  "qbo": "PayrollItemRef",
3685
- "support": "none",
3686
- "note": "Desktop PayrollItemWageRef has no QBO Accounting TimeActivity equivalent (QBO Payroll is a separate product).",
3687
- "error": "UNSUPPORTED_BY_DESKTOP"
3812
+ "support": "full",
3813
+ "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.'
3688
3814
  },
3689
3815
  {
3690
3816
  "qbo": "TxnNumber",
@@ -4133,7 +4259,7 @@ function registerTools(server, client, access) {
4133
4259
  hide("run_report", server.registerTool(
4134
4260
  "run_report",
4135
4261
  {
4136
- 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.",
4262
+ 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.",
4137
4263
  inputSchema: {
4138
4264
  report: import_zod.z.string().describe('Report name, e.g. "ProfitAndLoss" (case-insensitive).'),
4139
4265
  params: import_zod.z.record(import_zod.z.string()).optional().describe('Query params, e.g. { "date_macro": "Last Month" }.')
@@ -4148,6 +4274,21 @@ function registerTools(server, client, access) {
4148
4274
  }
4149
4275
  }
4150
4276
  ));
4277
+ hide("get_connection", server.registerTool(
4278
+ "get_connection",
4279
+ {
4280
+ 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.",
4281
+ inputSchema: {}
4282
+ },
4283
+ async () => {
4284
+ if (!client.connection) return fail("This TenkeyBridge client has no connection() method; upgrade @tenkeybridge/client to 0.10.1.");
4285
+ try {
4286
+ return ok(await client.connection());
4287
+ } catch (err) {
4288
+ return failure(err);
4289
+ }
4290
+ }
4291
+ ));
4151
4292
  hide("get", server.registerTool(
4152
4293
  "get",
4153
4294
  {
@@ -4305,7 +4446,7 @@ function registerTools(server, client, access) {
4305
4446
  }
4306
4447
 
4307
4448
  // src/version.ts
4308
- var PKG_VERSION = "0.9.0";
4449
+ var PKG_VERSION = "0.10.1";
4309
4450
 
4310
4451
  // src/server.ts
4311
4452
  var SERVER_NAME = "tenkeybridge";