@tenkeybridge/mcp 0.4.0 → 0.5.0
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 +83 -11
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +83 -11
- 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 +83 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2477,7 +2477,7 @@ var CATALOG = {
|
|
|
2477
2477
|
"group": "platform",
|
|
2478
2478
|
"read": "partial",
|
|
2479
2479
|
"write": "none",
|
|
2480
|
-
"headline": "
|
|
2480
|
+
"headline": "Forty-eight QBO-compatible reports served from QuickBooks Desktop: 24 translated live from Desktop's report engine (summary, detail, aging, balance, sales and sales-tax reports), 22 Desktop extension reports with no QBO twin, and two composites, AccountList (built from Desktop's account list) and CashFlow (built from several queries). CashFlow is derived, not translated: Desktop's SDK has no cash-flow report, so it is computed from Profit and Loss and two Trial Balances and checked against Desktop before it is returned.",
|
|
2481
2481
|
"usage": "GET /v3/company/{companyId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31&summarize_column_by=Month",
|
|
2482
2482
|
"fields": [
|
|
2483
2483
|
{
|
|
@@ -2520,6 +2520,16 @@ var CATALOG = {
|
|
|
2520
2520
|
"support": "partial",
|
|
2521
2521
|
"note": "GeneralDetailReportQueryRq Journal / TxnListByDate. ColKeys best-effort. Journal's per-transaction unlabeled subtotals become header-less Sections; TransactionList is a flat Data list. Desktop refuses ReportBasis on both, so accounting_method faults."
|
|
2522
2522
|
},
|
|
2523
|
+
{
|
|
2524
|
+
"qbo": "InventoryValuationDetail / TransactionListByCustomer / TransactionListByVendor",
|
|
2525
|
+
"support": "partial",
|
|
2526
|
+
"note": "GeneralDetailReportQueryRq InventoryValuationDetail / TxnListByCustomer / TxnListByVendor. ColKeys best-effort. Desktop refuses ReportBasis on all three (3151), so accounting_method faults. InventoryValuationDetail takes the item filter only."
|
|
2527
|
+
},
|
|
2528
|
+
{
|
|
2529
|
+
"qbo": "TaxSummary",
|
|
2530
|
+
"support": "partial",
|
|
2531
|
+
"note": "Desktop's Sales Tax Liability report (GeneralSummaryReportQueryRq SalesTaxLiability): taxable and non-taxable sales and tax collected. accounting_method is honored. Desktop refuses SummarizeColumnsBy here, so summarize_column_by takes Total only."
|
|
2532
|
+
},
|
|
2523
2533
|
{
|
|
2524
2534
|
"qbo": "CustomerBalanceDetail / VendorBalanceDetail",
|
|
2525
2535
|
"support": "partial",
|
|
@@ -2530,6 +2540,21 @@ var CATALOG = {
|
|
|
2530
2540
|
"support": "partial",
|
|
2531
2541
|
"note": "AgingReportQueryRq ARAgingDetail / APAgingDetail, as-of (report_date), with the receivable (customer) or payable (vendor) filter. ColKeys best-effort."
|
|
2532
2542
|
},
|
|
2543
|
+
{
|
|
2544
|
+
"qbo": "CashFlow",
|
|
2545
|
+
"support": "partial",
|
|
2546
|
+
"note": "Derived (TkbDerivedReport): Desktop's SDK has no cash-flow report, so TenkeyBridge builds the indirect-method statement from Desktop's Profit and Loss and two Trial Balances, classified by account type. Bank accounts plus Undeposited Funds count as cash, as in QBO. Fixed Asset accounts, including accumulated depreciation, are investing (Desktop's own default classification). Self-checking: if the derived net income differs from Desktop's by a cent, or a trial-balance row cannot be matched to an account, the call fails with REPORT_COMPOSE_FAILED (502) instead of answering. Five QuickBooks round trips. Sandbox realms serve it from captured sample inputs (SandboxStaticReport)."
|
|
2547
|
+
},
|
|
2548
|
+
{
|
|
2549
|
+
"qbo": "AccountList",
|
|
2550
|
+
"support": "partial",
|
|
2551
|
+
"note": "Built from Desktop's account list (AccountQueryRq). Desktop has no account detail type, so that column is absent."
|
|
2552
|
+
},
|
|
2553
|
+
{
|
|
2554
|
+
"qbo": "Desktop extension reports",
|
|
2555
|
+
"support": "full",
|
|
2556
|
+
"note": "ProfitAndLossByClass, ProfitAndLossByJob, ProfitAndLossPrevYearComp, ProfitAndLossYTDComp, BalanceSheetPrevYearComp, BalanceSheetByClass, PurchaseByVendorSummary, PurchaseByItemSummary, SalesByRepSummary, InventoryStockStatusByItem, OpenInvoices, UnpaidBillsDetail, OpenPOs, SalesByCustomerDetail, SalesByItemDetail, IncomeByCustomerDetail, ExpenseByVendorDetail, PurchaseByVendorDetail, DepositDetail, CheckDetail, BalanceSheetDetail, CollectionsReport. Desktop reports with no QBO twin, served under their Desktop names in the same QBO report JSON."
|
|
2557
|
+
},
|
|
2533
2558
|
{
|
|
2534
2559
|
"qbo": "start_date / end_date / date_macro",
|
|
2535
2560
|
"support": "full",
|
|
@@ -2558,6 +2583,30 @@ var CATALOG = {
|
|
|
2558
2583
|
"note": "Comma-separated Ids \u2192 ReportEntityFilter (customer + vendor) / ReportItemFilter / ReportClassFilter. AR reports accept customer only, AP reports vendor only; InventoryValuationSummary accepts item only.",
|
|
2559
2584
|
"error": "REPORT_UNSUPPORTED_OPTION"
|
|
2560
2585
|
},
|
|
2586
|
+
{
|
|
2587
|
+
"qbo": "account / account_type",
|
|
2588
|
+
"support": "partial",
|
|
2589
|
+
"note": "account is comma-separated account Ids (ReportAccountFilter ListID); account_type is one QBO account type (Bank, AccountsReceivable, OtherCurrentAsset, FixedAsset, OtherAsset, AccountsPayable, CreditCard, OtherCurrentLiability, LongTermLiability, Equity, Income, CostOfGoodsSold, Expense, OtherIncome, OtherExpense) mapped to AccountTypeFilter. Sending both faults. Accepted on the summary reports (except InventoryValuationSummary) and on every detail report except AgedReceivableDetail / AgedPayableDetail. The aging reports refuse both: Desktop's aging account filter does not filter meaningfully.",
|
|
2590
|
+
"error": "REPORT_UNSUPPORTED_OPTION"
|
|
2591
|
+
},
|
|
2592
|
+
{
|
|
2593
|
+
"qbo": "transaction_type",
|
|
2594
|
+
"support": "partial",
|
|
2595
|
+
"note": "Comma-separated QBO transaction types (Invoice, CreditMemo, SalesReceipt, Payment, Deposit, Transfer, Estimate, Bill, VendorCredit, BillPayment, BillPaymentCheck, BillPaymentCreditCard, Check, CreditCardCharge, CreditCardCredit, PurchaseOrder, JournalEntry, InventoryQuantityAdjustment) mapped to ReportTxnTypeFilter. BillPayment fans out to both check and credit-card bill payments. Types with no single Desktop twin (Expense, CashPurchase, RefundReceipt) fault. Accepted on summary, detail and aging reports (not InventoryValuationSummary).",
|
|
2596
|
+
"error": "REPORT_UNSUPPORTED_OPTION"
|
|
2597
|
+
},
|
|
2598
|
+
{
|
|
2599
|
+
"qbo": "start_moddate / end_moddate",
|
|
2600
|
+
"support": "partial",
|
|
2601
|
+
"note": "ISO dates that filter on the transaction last-modified date (ReportModifiedDateRangeFilter). Both are required together, otherwise REPORT_INVALID_DATE. Detail reports only (not AgedReceivableDetail / AgedPayableDetail); summary and aging reports refuse them.",
|
|
2602
|
+
"error": "REPORT_INVALID_DATE"
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
"qbo": "columns",
|
|
2606
|
+
"support": "partial",
|
|
2607
|
+
"note": "Comma-separated QBO ColKeys (tx_date, txn_type, doc_num, txn_num, name, cust_name, vend_name, memo, account_name, split_acc, klass_name, is_cleared, debt_amt, credit_amt, subt_nat_amount, rbal_nat_amount, subt_open_bal, due_date, past_due, po_num, term_name) mapped to IncludeColumn; aliases dedupe and an unknown key faults listing the accepted ones. Detail reports and AgedReceivableDetail / AgedPayableDetail only. When columns is sent, data rows carry the QuickBooks transaction id as id on the txn_type cell (GeneralLedger cost-posting rows have none). If txn_type is not among the requested columns, the id is on the first cell.",
|
|
2608
|
+
"error": "REPORT_UNSUPPORTED_OPTION"
|
|
2609
|
+
},
|
|
2561
2610
|
{
|
|
2562
2611
|
"qbo": "Column titles",
|
|
2563
2612
|
"support": "partial",
|
|
@@ -2566,14 +2615,9 @@ var CATALOG = {
|
|
|
2566
2615
|
],
|
|
2567
2616
|
"unsupported": [
|
|
2568
2617
|
{
|
|
2569
|
-
"case": "
|
|
2570
|
-
"error": "REPORT_UNKNOWN",
|
|
2571
|
-
"note": "QuickBooks Desktop's SDK has no cash-flow report (StatementOfCashFlows is refused with 3110 on every qbXML version)."
|
|
2572
|
-
},
|
|
2573
|
-
{
|
|
2574
|
-
"case": "columns / department / qzurl / adjusted_gain_loss",
|
|
2618
|
+
"case": "department / qzurl / adjusted_gain_loss",
|
|
2575
2619
|
"error": "REPORT_UNSUPPORTED_OPTION",
|
|
2576
|
-
"note": "
|
|
2620
|
+
"note": "Desktop has no departments (use class); QuickZoom URLs and multicurrency gain/loss adjustment are QBO-only."
|
|
2577
2621
|
},
|
|
2578
2622
|
{
|
|
2579
2623
|
"case": "aging_period / num_periods / aging_method",
|
|
@@ -2586,7 +2630,17 @@ var CATALOG = {
|
|
|
2586
2630
|
"note": "qbXML's SummarizeColumnsBy has no per-item, per-employee or per-location split (ItemType splits by item type, not by item)."
|
|
2587
2631
|
},
|
|
2588
2632
|
{
|
|
2589
|
-
"case": "
|
|
2633
|
+
"case": "ClassSales / DepartmentSales",
|
|
2634
|
+
"error": "REPORT_UNKNOWN",
|
|
2635
|
+
"note": "No Desktop SDK report. Use ProfitAndLoss?summarize_column_by=Classes."
|
|
2636
|
+
},
|
|
2637
|
+
{
|
|
2638
|
+
"case": "TransactionListWithSplits",
|
|
2639
|
+
"error": "REPORT_UNKNOWN",
|
|
2640
|
+
"note": "No Desktop SDK report of that name. Use JournalReport."
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
"case": "other QBO report names",
|
|
2590
2644
|
"error": "REPORT_UNKNOWN",
|
|
2591
2645
|
"note": "Not shipped. The fault lists the supported reports."
|
|
2592
2646
|
}
|
|
@@ -3506,7 +3560,7 @@ function unknownEntity(name) {
|
|
|
3506
3560
|
if (gap) {
|
|
3507
3561
|
if (gap.verdict === "live") {
|
|
3508
3562
|
return fail(
|
|
3509
|
-
`${gap.entity} is a platform endpoint, not reachable through this server's entity tools. Call the REST API directly: ${gap.usage}
|
|
3563
|
+
`${gap.entity} is a platform endpoint, not reachable through this server's entity tools. ${gap.entity === "Reports" ? "Use the run_report tool." : `Call the REST API directly: ${gap.usage}.`} Detail: compat://entity/${gap.entity.toLowerCase()}`
|
|
3510
3564
|
);
|
|
3511
3565
|
}
|
|
3512
3566
|
const cases = gap.unsupported.map((u) => `- ${u.case}: ${u.error}${u.workaround ? ` \u2014 workaround: ${u.workaround}` : ""}`).join("\n");
|
|
@@ -3554,6 +3608,24 @@ function registerTools(server, client) {
|
|
|
3554
3608
|
}
|
|
3555
3609
|
}
|
|
3556
3610
|
);
|
|
3611
|
+
server.registerTool(
|
|
3612
|
+
"run_report",
|
|
3613
|
+
{
|
|
3614
|
+
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. Read compat://entity/reports for the available reports and which params each takes.",
|
|
3615
|
+
inputSchema: {
|
|
3616
|
+
report: import_zod.z.string().describe('Report name, e.g. "ProfitAndLoss" (case-insensitive).'),
|
|
3617
|
+
params: import_zod.z.record(import_zod.z.string()).optional().describe('Query params, e.g. { "date_macro": "Last Month" }.')
|
|
3618
|
+
}
|
|
3619
|
+
},
|
|
3620
|
+
async ({ report, params }) => {
|
|
3621
|
+
if (!client.report) return fail("This TenkeyBridge client has no report() method; upgrade @tenkeybridge/client to 0.5.0.");
|
|
3622
|
+
try {
|
|
3623
|
+
return ok(await client.report(report, params ?? {}));
|
|
3624
|
+
} catch (err) {
|
|
3625
|
+
return failure(err);
|
|
3626
|
+
}
|
|
3627
|
+
}
|
|
3628
|
+
);
|
|
3557
3629
|
server.registerTool(
|
|
3558
3630
|
"get",
|
|
3559
3631
|
{
|
|
@@ -3668,7 +3740,7 @@ function registerTools(server, client) {
|
|
|
3668
3740
|
}
|
|
3669
3741
|
|
|
3670
3742
|
// src/version.ts
|
|
3671
|
-
var PKG_VERSION = "0.
|
|
3743
|
+
var PKG_VERSION = "0.5.0";
|
|
3672
3744
|
|
|
3673
3745
|
// src/server.ts
|
|
3674
3746
|
var SERVER_NAME = "tenkeybridge";
|