@tenkeybridge/mcp 0.7.0 → 0.9.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/dist/index.cjs CHANGED
@@ -32,7 +32,8 @@ __export(index_exports, {
32
32
  registerResources: () => registerResources,
33
33
  registerTools: () => registerTools,
34
34
  resolveCatalog: () => resolveCatalog,
35
- resolveEntityName: () => resolveEntityName
35
+ resolveEntityName: () => resolveEntityName,
36
+ toolVisible: () => toolVisible
36
37
  });
37
38
  module.exports = __toCommonJS(index_exports);
38
39
 
@@ -304,9 +305,8 @@ var CATALOG = {
304
305
  },
305
306
  {
306
307
  "qbo": "LinkedTxn",
307
- "support": "none",
308
- "note": "QBO Bill has no paid-by LinkedTxn field. Desktop may return LinkedTxn when IncludeLinkedTxns is set, but there is no honest QBO home \u2014 not projected.",
309
- "error": "UNSUPPORTED_BY_DESKTOP"
308
+ "support": "partial",
309
+ "note": "Read-only, populated on read: the PurchaseOrder a bill was created from and the BillPayment(s) and VendorCredit(s) applied to it, as {TxnId, TxnType}. Desktop-only link types (ItemReceipt, ...) are omitted. Proven live on QuickBooks Enterprise 24 (2026-10-20): a Bill created from a purchase order carries the PO, and a paid bill carries its check payment. Accepted and ignored on write, as in QBO. Linking a new Bill to a PurchaseOrder is not supported: Desktop's BillAdd LinkToTxnID pulls the PO's lines in, and a line-level link next to explicit lines is refused (3153)."
310
310
  },
311
311
  {
312
312
  "qbo": "operation=void",
@@ -595,6 +595,65 @@ var CATALOG = {
595
595
  ],
596
596
  "unsupported": []
597
597
  },
598
+ "ClearedStatus": {
599
+ "entity": "ClearedStatus",
600
+ "verdict": "live",
601
+ "group": "platform",
602
+ "read": "partial",
603
+ "write": "partial",
604
+ "headline": "TenkeyBridge extension (QBO has none): POST /clearedstatus sets QuickBooks Desktop's cleared status (Cleared, NotCleared, Pending) on a check, deposit, bill payment check or journal entry, for the transaction's own bank side (TxnId alone) or for one line (LineId). GET /clearedstatus reads it back per split with one bounded QuickBooks read.",
605
+ "usage": "POST /v3/company/{companyId}/clearedstatus[?requestid=...] and GET /v3/company/{companyId}/clearedstatus?txnid=...&txntype=...",
606
+ "fields": [
607
+ {
608
+ "qbo": "TxnId",
609
+ "support": "full",
610
+ "note": "The Id of the transaction, as a read of the Purchase, Deposit, BillPayment or JournalEntry returned it."
611
+ },
612
+ {
613
+ "qbo": "LineId",
614
+ "support": "full",
615
+ "note": "Optional. A Line.Id of that transaction: sets that one line's account side. The line's account must be a balance sheet account other than A/R and A/P (a bank, credit card or other current asset account); an income, expense or cost of goods line is 422 UNSUPPORTED_BY_DESKTOP. Without it, a Check, Deposit or BillPayment sets its own bank side and a JournalEntry sets its first line."
616
+ },
617
+ {
618
+ "qbo": "ClearedStatus",
619
+ "support": "full",
620
+ "note": "Cleared, NotCleared or Pending (case sensitive). Reconciled is QuickBooks' own state and cannot be written."
621
+ },
622
+ {
623
+ "qbo": "TxnType",
624
+ "support": "partial",
625
+ "note": "Optional on the write: Purchase, Deposit, BillPayment or JournalEntry. Send it with a requestid so a lost outcome can be reconciled with a read. Required on the read (and Transfer is allowed there)."
626
+ },
627
+ {
628
+ "qbo": "Splits",
629
+ "support": "full",
630
+ "note": "In the read-back: one entry per bank or balance sheet posting of the transaction, with Role (Header, Line, From, To), LineId (the value to send back), ClearedStatus and Amount. SetByTxnId marks the split a request without a LineId would set."
631
+ }
632
+ ],
633
+ "unsupported": [
634
+ {
635
+ "case": "Transfer",
636
+ "error": "UNSUPPORTED_BY_DESKTOP",
637
+ "note": "QuickBooks Desktop refuses a Transfer id for a cleared status change (probe, QB Enterprise 24), so neither side of a transfer can be set. It can be read back. Record the movement as a deposit, check or journal entry instead, or clear it in QuickBooks.",
638
+ "workaround": "Use a Deposit (line from the clearing account) or a JournalEntry, and set the line you need by LineId."
639
+ },
640
+ {
641
+ "case": "Income, expense, cost of goods, A/R or A/P line",
642
+ "error": "UNSUPPORTED_BY_DESKTOP",
643
+ "note": "QuickBooks only keeps a cleared status for lines on other balance sheet accounts. A TxnId alone on a JournalEntry whose first line is on such an account is refused the same way."
644
+ },
645
+ {
646
+ "case": "Invoice, Bill, SalesReceipt and the other transaction types",
647
+ "error": "UNSUPPORTED_BY_DESKTOP",
648
+ "note": "Only Purchase (check), Deposit, BillPayment (check) and JournalEntry are supported. A credit card Purchase or a credit card BillPayment was not probed."
649
+ },
650
+ {
651
+ "case": "Cleared status on an ordinary read",
652
+ "error": "n/a",
653
+ "note": "Entity reads never carry a cleared status and never cost an extra QuickBooks read; QuickBooks' Ret objects do not hold one. Use GET /clearedstatus."
654
+ }
655
+ ]
656
+ },
598
657
  "CompanyCurrency": {
599
658
  "entity": "CompanyCurrency",
600
659
  "verdict": "live",
@@ -905,9 +964,24 @@ var CATALOG = {
905
964
  "qbo": "ApplyTaxAfterDiscount",
906
965
  "support": "partial",
907
966
  "note": "Maps onto the discount line's own sales tax code, proven live on QuickBooks Enterprise 24: Tax is tax after the discount (true), Non is tax on the full amount (false). On write, true or false is never sent as a field; every discount line with no TaxCodeRef of its own is coded Tax or Non, and an explicit TAX or NON that contradicts the value is 400 (code 2010, element Line.DiscountLineDetail.TaxCodeRef). A custom tax code on a discount line wins. DiscountLineDetail.TaxCodeRef is written as that line's sales tax code. With no discount lines the value is accepted and does nothing. Read: present only when the form has discount lines and they are all Tax (true) or all Non (false); omitted when mixed. On a sparse update with no Line, a value equal to the current one is accepted; a different one is 422 UNSUPPORTED_BY_DESKTOP, so send the full Line array to change it. Any value that is not a boolean is 400 (code 2010)."
967
+ },
968
+ {
969
+ "qbo": "operation=void",
970
+ "support": "partial",
971
+ "note": "TenkeyBridge extension: QBO cannot void a CreditMemo; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType CreditMemo), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-20). The re-read shows PrivateNote as `VOID: <memo>` (bare `VOID:` when there was none), TotalAmt, Balance and RemainingCredit at 0 and every line quantity and amount at 0, with the lines kept. A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. A credit memo that was applied to an invoice can be voided too: the credit is released, so the invoice's balance reopens by the credit that had been applied and its LinkedTxn drops the credit memo (the cash payment stays). The response is whatever Desktop returns on the re-read (nothing is fabricated)."
908
972
  }
909
973
  ],
910
974
  "unsupported": [
975
+ {
976
+ "case": "GET /{id}/pdf",
977
+ "error": "UNSUPPORTED_BY_DESKTOP",
978
+ "note": "qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application."
979
+ },
980
+ {
981
+ "case": "POST /{id}/send (actually sending the email)",
982
+ "error": "UNSUPPORTED_BY_DESKTOP",
983
+ "note": "The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email."
984
+ },
911
985
  {
912
986
  "case": "Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)",
913
987
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
@@ -1555,6 +1629,16 @@ var CATALOG = {
1555
1629
  }
1556
1630
  ],
1557
1631
  "unsupported": [
1632
+ {
1633
+ "case": "GET /{id}/pdf",
1634
+ "error": "UNSUPPORTED_BY_DESKTOP",
1635
+ "note": "qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application."
1636
+ },
1637
+ {
1638
+ "case": "POST /{id}/send (actually sending the email)",
1639
+ "error": "UNSUPPORTED_BY_DESKTOP",
1640
+ "note": "The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email."
1641
+ },
1558
1642
  {
1559
1643
  "case": "Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)",
1560
1644
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
@@ -1630,7 +1714,7 @@ var CATALOG = {
1630
1714
  "group": "purchasing",
1631
1715
  "read": "full",
1632
1716
  "write": "partial",
1633
- "headline": "Quantity adjustments to inventory items \u2014 create, read, update (header and lines) and delete",
1717
+ "headline": "Quantity and value adjustments to inventory items: create (by difference, to an absolute quantity or value, or with your own value), read, update (header and lines) and delete",
1634
1718
  "fields": [
1635
1719
  {
1636
1720
  "qbo": "AdjustAccountRef",
@@ -1654,7 +1738,7 @@ var CATALOG = {
1654
1738
  {
1655
1739
  "qbo": "Line",
1656
1740
  "support": "partial",
1657
- "note": "DetailType ItemAdjustmentLineDetail with ItemRef and QtyDiff. QtyDiff is a signed change in quantity on hand (nonzero, at most 5 decimal places) and maps to Desktop QuantityAdjustment/QuantityDifference (never NewQuantity); quantity on hand changes by exactly that amount, verified live. The same item on two lines is refused (Desktop rejects it). Desktop's value elements (ValueAdjustment/NewValue) are not exposed for writing; Desktop's ValueDifference (quantity times the item's average cost, verified live) is returned read-only as Line.Amount; the Ret line is flat QuantityDifference/ValueDifference. Line.Description and Line.Amount cannot be written (Desktop has no line memo and computes the value from the item's average cost). Update: Line is the WHOLE table, as in QBO. A line sent with its Id keeps that line (QtyDiff changes it), a line with no Id is added, and a line you leave out is deleted. Omit Line to leave every line alone; an empty array is refused (2020), and a repeated or unknown Id is refused (2010). Posting a read back whole works: an Amount on an existing line that equals the value the read returned is ignored, while a different Amount is UNSUPPORTED_BY_DESKTOP. Updating a value adjustment line (one with no quantity change) is UNSUPPORTED_BY_DESKTOP."
1741
+ "note": "DetailType ItemAdjustmentLineDetail with ItemRef and QtyDiff. QtyDiff is a signed change in quantity on hand (nonzero, at most 5 decimal places) and maps to Desktop QuantityAdjustment/QuantityDifference; quantity on hand changes by exactly that amount, verified live. The absolute forms are TenkeyBridge extensions inside ItemAdjustmentLineDetail (QBO only has the QtyDiff delta), create only: NewQty is the quantity on hand AFTER the adjustment (a number of at least 0, at most 5 decimal places; Desktop QuantityAdjustment/NewQuantity). NewValue is the item's TOTAL inventory value after the adjustment (not a unit cost; at most 2 decimal places; Desktop ValueAdjustment/NewValue). Send NewQty alone, NewValue alone (quantity unchanged, QtyDiff reads 0) or both; QtyDiff next to either is a 400 (2010) because Desktop silently ignores NewValue beside a quantity difference. A read never returns NewQty or NewValue, only the resulting QtyDiff and Amount. Proven live on QuickBooks Enterprise 24 (2026-10-20): NewQty 55 on a 50-unit item at average cost 18.00 reads QtyDiff 5, Amount 90.00; NewValue 123.45 on 55 units worth 990.00 reads Amount -866.55 and moves the average cost, and deleting the adjustment reverses it. The same item on two lines is refused (Desktop rejects it). Desktop's ValueDifference is Line.Amount, the value change of the line (the Ret line is flat QuantityDifference/ValueDifference). Without an Amount Desktop computes it as the quantity change times the item's average cost; Line.Amount sets it yourself (proven live 2026-10-21): QtyDiff with Amount, NewQty with Amount, or Amount alone (a value-only line, QtyDiff reads 0). Amount takes at most 2 decimals and cannot be combined with NewValue (both set the value; 400, 2010). A negative Amount is accepted only on a value-only line: next to a quantity decrease Desktop silently ignores it and prices the units at average cost, and next to an increase it refuses it (3210), so the gateway answers 400 (2010) up front. A positive Amount next to a quantity decrease is honored, and 0.00 next to a quantity is honored. Line.Description cannot be written (Desktop has no line memo). Update: Line is the WHOLE table, as in QBO. A line sent with its Id keeps that line (QtyDiff changes it), a line with no Id is added, and a line you leave out is deleted. Omit Line to leave every line alone; an empty array is refused (2020), and a repeated or unknown Id is refused (2010). Posting a read back whole works: an Amount on an existing line that equals the value the read returned is ignored. A different Amount is sent as ValueDifference, alone (the quantity is kept) or with a new QtyDiff. Desktop remembers whether a value was set explicitly: a QtyDiff-only update re-prices a computed value at average cost but keeps an explicit Amount. A value-only line (no quantity change) can be updated with a new Amount, or given a QtyDiff and an Amount; sent unchanged it is kept as it is."
1658
1742
  },
1659
1743
  {
1660
1744
  "qbo": "CurrencyRef",
@@ -1674,9 +1758,14 @@ var CATALOG = {
1674
1758
  ],
1675
1759
  "unsupported": [
1676
1760
  {
1677
- "case": "Absolute quantity (NewQuantity) and value adjustments",
1761
+ "case": "NewQty or NewValue on an update line",
1678
1762
  "error": "UNSUPPORTED_BY_DESKTOP",
1679
- "note": "QBO's InventoryAdjustment only has QtyDiff (a delta), so Desktop's NewQuantity/NewValue forms have no QBO field to map from."
1763
+ "note": "Desktop's InventoryAdjustmentLineMod only has QuantityDifference and ValueDifference, so the absolute forms work on create only. To change an existing line send QtyDiff."
1764
+ },
1765
+ {
1766
+ "case": "QtyDiff together with NewQty or NewValue on the same line",
1767
+ "error": "2010",
1768
+ "note": "Refused up front: Desktop silently ignores NewValue next to a quantity difference, and NewQty contradicts it. Send QtyDiff alone, or NewQty and/or NewValue."
1680
1769
  }
1681
1770
  ]
1682
1771
  },
@@ -1826,6 +1915,16 @@ var CATALOG = {
1826
1915
  }
1827
1916
  ],
1828
1917
  "unsupported": [
1918
+ {
1919
+ "case": "GET /{id}/pdf",
1920
+ "error": "UNSUPPORTED_BY_DESKTOP",
1921
+ "note": "qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application."
1922
+ },
1923
+ {
1924
+ "case": "POST /{id}/send (actually sending the email)",
1925
+ "error": "UNSUPPORTED_BY_DESKTOP",
1926
+ "note": "The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email."
1927
+ },
1829
1928
  {
1830
1929
  "case": "Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)",
1831
1930
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
@@ -1874,7 +1973,7 @@ var CATALOG = {
1874
1973
  {
1875
1974
  "qbo": "DesktopItemType",
1876
1975
  "support": "partial",
1877
- "note": "TenkeyBridge extension (QBO has no such field). Read on every item: Service, NonInventory, Inventory, InventoryAssembly, FixedAsset, OtherCharge, Discount, Subtotal, Payment, SalesTax, SalesTaxGroup or Group. It is also the write selector for the families QBO has no Type for: Discount, OtherCharge, Subtotal, Payment and InventoryAssembly (send it with the matching Type: Service for the first four, Inventory for InventoryAssembly). A value that disagrees with Type, or one that tries to change on update, is a 400 with code 2010. SalesTax and SalesTaxGroup items cannot be written through the Item API (write a sales tax item through POST /taxrate and a sales tax group through POST /taxservice/taxcode); FixedAsset create is not supported."
1976
+ "note": "TenkeyBridge extension (QBO has no such field). Read on every item: Service, NonInventory, Inventory, InventoryAssembly, FixedAsset, OtherCharge, Discount, Subtotal, Payment, SalesTax, SalesTaxGroup or Group. It is also the write selector for the families QBO has no Type for: Discount, OtherCharge, Subtotal, Payment, InventoryAssembly and FixedAsset (send it with the matching Type: Service for the first four, Inventory for InventoryAssembly, NonInventory for FixedAsset). A value that disagrees with Type, or one that tries to change on update, is a 400 with code 2010. FixedAsset is written with Type NonInventory (the same pair a read returns); see the fixed asset rows below. SalesTax and SalesTaxGroup items cannot be written through the Item API (write a sales tax item through POST /taxrate and a sales tax group through POST /taxservice/taxcode)."
1878
1977
  },
1879
1978
  {
1880
1979
  "qbo": "ItemGroupDetail",
@@ -1921,10 +2020,35 @@ var CATALOG = {
1921
2020
  "support": "partial",
1922
2021
  "note": "TenkeyBridge extension. Read only, on SalesTaxGroup items: the member tax items."
1923
2022
  },
2023
+ {
2024
+ "qbo": "PurchaseDate",
2025
+ "support": "partial",
2026
+ "note": "TenkeyBridge extension. Fixed asset items only (any other item type is a 400, code 2010). The date the asset was bought (YYYY-MM-DD). Required on create (Desktop requires it); read back as sent."
2027
+ },
2028
+ {
2029
+ "qbo": "AcquiredAs",
2030
+ "support": "partial",
2031
+ "note": "TenkeyBridge extension. Fixed asset items only: New or Old (default New on create). Desktop requires it, so a create always sends it."
2032
+ },
2033
+ {
2034
+ "qbo": "VendorOrPayeeName",
2035
+ "support": "partial",
2036
+ "note": "TenkeyBridge extension. Fixed asset items only: who the asset was bought from (text, max 50 characters)."
2037
+ },
2038
+ {
2039
+ "qbo": "Location",
2040
+ "support": "partial",
2041
+ "note": "TenkeyBridge extension. Fixed asset items only: where the asset is kept (max 50 characters)."
2042
+ },
2043
+ {
2044
+ "qbo": "SerialNumber",
2045
+ "support": "partial",
2046
+ "note": "TenkeyBridge extension. Fixed asset items only (max 30 characters)."
2047
+ },
1924
2048
  {
1925
2049
  "qbo": "Description",
1926
2050
  "support": "full",
1927
- "note": "Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory."
2051
+ "note": "Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory. On a fixed asset item it is the asset description (AssetDesc, max 50 characters), read as the purchase description when the asset has none."
1928
2052
  },
1929
2053
  {
1930
2054
  "qbo": "UnitPrice",
@@ -1964,12 +2088,12 @@ var CATALOG = {
1964
2088
  {
1965
2089
  "qbo": "AssetAccountRef",
1966
2090
  "support": "full",
1967
- "note": "Inventory only; required on create."
2091
+ "note": "Inventory and fixed asset items; required on create for both (a fixed asset item with no asset account is refused by Desktop, error 3180, so it is a 400 here with code 2020)."
1968
2092
  },
1969
2093
  {
1970
2094
  "qbo": "PurchaseDesc",
1971
2095
  "support": "full",
1972
- "note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase). Purchase-side fields must be present at creation: Desktop cannot turn an existing sales-only item into a two-sided one, so adding them on update is refused with UNSUPPORTED_BY_DESKTOP."
2096
+ "note": "Fixed asset items: required on create (Description is used when it is omitted), max 50 characters. Inventory and two-sided Service/NonInventory (SalesAndPurchase). Purchase-side fields must be present at creation: Desktop cannot turn an existing sales-only item into a two-sided one, so adding them on update is refused with UNSUPPORTED_BY_DESKTOP."
1973
2097
  },
1974
2098
  {
1975
2099
  "qbo": "PurchaseCost",
@@ -2020,9 +2144,9 @@ var CATALOG = {
2020
2144
  "workaround": "Write a sales tax item through the TaxRate endpoint (POST /taxrate) and a sales tax group through POST /taxservice/taxcode."
2021
2145
  },
2022
2146
  {
2023
- "case": "Creating or updating FixedAsset items",
2024
- "error": "UNSUPPORTED_BY_DESKTOP",
2025
- "note": "Fixed assets read as Type NonInventory with DesktopItemType FixedAsset. Writing them is not supported."
2147
+ "case": "Fixed asset item fields beyond the listed extensions (PONumber, Notes, warranty date, asset number, cost basis, year-end depreciation, sales information)",
2148
+ "error": "UNMAPPED_FIELD",
2149
+ "note": "Fixed asset items write and read the fields listed on the DesktopItemType row. The other Desktop fixed asset fields are not mapped."
2026
2150
  },
2027
2151
  {
2028
2152
  "case": "Category items, and turning a sales-only item into a two-sided one",
@@ -2499,7 +2623,12 @@ var CATALOG = {
2499
2623
  {
2500
2624
  "qbo": "Line",
2501
2625
  "support": "partial",
2502
- "note": "ItemBasedExpenseLineDetail only (PurchaseOrderLineAdd). AccountBasedExpenseLineDetail returns UNSUPPORTED_BY_DESKTOP. ReceivedQty maps from ReceivedQuantity on read (read-only). Updates carrying Line send the full line table (PurchaseOrderLineMod): a line with the Id a read returned keeps that Desktop line (Id = TxnLineID), a line without an Id is added, and any existing line omitted from the array is deleted \u2014 send the whole array. Fields you omit from a line that carries an Id are filled from the current record; changing Qty or UnitPrice without Amount recomputes Amount, and restating Amount alone drops the inherited Rate and Qty. An Id that is not a line of the PO is a 400; an Id listed twice is 2010; an empty Line array is refused. Per-line IsManuallyClosed is not exposed. Item group lines (PurchaseOrderLineGroupRet) read as their component item lines, in the group's place and in Desktop's order, each carrying the TenkeyBridge extension fields GroupLineId (the group's Id) and GroupItemRef; the Id on those component lines is read-only. Group lines cannot be created, and a purchase order that has them refuses a Line update with UNSUPPORTED_BY_DESKTOP (a table update would delete the groups); header-only updates still work. Verified live on QuickBooks Enterprise 24 (2026-09-30): the Id/new/deleted-line table, qty recompute and OSR child order are accepted."
2626
+ "note": "ItemBasedExpenseLineDetail only (PurchaseOrderLineAdd). AccountBasedExpenseLineDetail returns UNSUPPORTED_BY_DESKTOP. ReceivedQty maps from ReceivedQuantity on read (read-only). Updates carrying Line send the full line table (PurchaseOrderLineMod): a line with the Id a read returned keeps that Desktop line (Id = TxnLineID), a line without an Id is added, and any existing line omitted from the array is deleted \u2014 send the whole array. Fields you omit from a line that carries an Id are filled from the current record; changing Qty or UnitPrice without Amount recomputes Amount, and restating Amount alone drops the inherited Rate and Qty. An Id that is not a line of the PO is a 400; an Id listed twice is 2010; an empty Line array is refused. Per-line IsManuallyClosed is not exposed. Item group lines (PurchaseOrderLineGroupRet) read as their component item lines, in the group's place and in Desktop's order, each carrying the TenkeyBridge extension fields GroupLineId (the group's Id), GroupItemRef and GroupQuantity; the component lines are read-only. Create: send {DetailType: GroupLineDetail, GroupLineDetail: {GroupItemRef, Quantity}} among the item lines (PurchaseOrderLineGroupAdd; GroupItemRef is required, Quantity optional). Update, with the whole Line array: send all of a group's component lines back to keep the group, none of them to delete it; sending only some is a 400 (2010). A component can be edited in place: change its Qty, UnitPrice, Amount, Description, ItemRef, ClassRef or CustomerRef in the whole array and send every component of the group (the gateway sends one nested PurchaseOrderLineMod per component inside the group's PurchaseOrderLineGroupMod; Desktop deletes any component left out of that list, so a partial list with an edit is a 400, 2010). The edit follows the plain item line rules: a Qty or UnitPrice change re-derives Amount, an Amount change keeps the quantity and derives the rate, an Amount that only repeats the read is ignored. Edits survive a later group quantity change (the component quantities follow the group quantity, 5 at group quantity 2 becomes 7.5 at 3). Changing a component's DetailType or GroupLineId, or combining a component edit with a change to the group's item or quantity in the same request, is a 400 (2010). To change the group itself send a GroupLineDetail line whose Id is the group's GroupLineId (GroupItemRef and Quantity you omit are filled from the current record; PurchaseOrderLineGroupMod); a GroupLineDetail line without an Id adds a new group. An Id cannot change a line between item and group (400, 2010). Verified live on QuickBooks Enterprise 24 (2026-09-30, group create and update 2026-10-20, component edits 2026-10-21): the Id/new/deleted-line table, qty recompute and OSR child order are accepted."
2627
+ },
2628
+ {
2629
+ "qbo": "LinkedTxn",
2630
+ "support": "partial",
2631
+ "note": "Read-only, populated on read: the Bill(s) created from the purchase order, as {TxnId, TxnType: Bill}. Desktop-only link types (ItemReceipt, ...) are omitted. On a keyed GET, a query and every page of a paged query (live, 2026-10-21). Accepted and ignored on write, as in QBO. Linking a new Bill to a purchase order is not supported (see Bill.LinkedTxn)."
2503
2632
  },
2504
2633
  {
2505
2634
  "qbo": "TotalAmt",
@@ -2805,16 +2934,22 @@ var CATALOG = {
2805
2934
  "note": "Desktop's custom summary report (CustomSummaryReportQueryRq, rows by Class over OrdinaryIncome accounts): one row per class plus Unclassified and TOTAL. Takes dates or date_macro, accounting_method, summarize_column_by (Month, Week, Days, Quarter, Year), customer, item, class and transaction_type. The account filter is fixed to income, so account, account_type, vendor and the modified-date filter fault.",
2806
2935
  "error": "REPORT_UNSUPPORTED_OPTION"
2807
2936
  },
2937
+ {
2938
+ "qbo": "TransactionListWithSplits",
2939
+ "support": "partial",
2940
+ "note": "Desktop's custom transaction detail report (CustomDetailReportQueryRq, rows by Account): every transaction line with a Split column, grouped under each account it touches. Takes dates or date_macro, accounting_method, customer, vendor, item, class, account or account_type, transaction_type, start_moddate/end_moddate and columns (default columns: date, type, number, name, memo, account, split, amount). No column split. Each filter was proven against QuickBooks Enterprise 24 (2026-10-20). Desktop groups the rows by account, so a transaction with two splits appears under both accounts.",
2941
+ "error": "REPORT_UNSUPPORTED_OPTION"
2942
+ },
2808
2943
  {
2809
2944
  "qbo": "BudgetOverview / BudgetVsActuals",
2810
2945
  "support": "partial",
2811
- "note": "BudgetSummaryReportQueryRq ProfitAndLossBudgetOverview / ProfitAndLossBudgetVsActual, one column group per month plus a period total. Desktop scopes a budget report by fiscal year, so these take fiscal_year (four digits, default: the current year) instead of dates, and no filters or column split; column titles are qualified with their month (for example 'Jan 26 - Budget'). Profit and loss budgets only; balance sheet budgets stay on the Budget entity. Read-only, like QBO.",
2946
+ "note": "BudgetSummaryReportQueryRq ProfitAndLossBudgetOverview / ProfitAndLossBudgetVsActual, one column group per month plus a period total. Desktop scopes a budget report by fiscal year, so these take fiscal_year (four digits, default: the current year) instead of dates, plus an optional class filter (one or more class Ids; sent as BudgetCriterion AccountsAndClasses so the budget side follows the filter, live-proven on a class budget), and no other filters or column split; column titles are qualified with their month (for example 'Jan 26 - Budget'). Profit and loss budgets only; balance sheet budgets stay on the Budget entity. A budget set up only by class (or by customer) reads as zeros without the class filter: the unfiltered read asks Desktop for the account budget, and no customer filter is offered (qbXML cannot create a customer budget, and BudgetCriterion AccountsAndCustomers returned nothing beyond the account budget on the test file). Read-only, like QBO.",
2812
2947
  "error": "REPORT_UNSUPPORTED_OPTION"
2813
2948
  },
2814
2949
  {
2815
2950
  "qbo": "Desktop extension reports",
2816
2951
  "support": "full",
2817
- "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. 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."
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."
2818
2953
  },
2819
2954
  {
2820
2955
  "qbo": "start_date / end_date / date_macro",
@@ -2895,11 +3030,6 @@ var CATALOG = {
2895
3030
  "error": "REPORT_UNKNOWN",
2896
3031
  "note": "Desktop has no departments. Use ClassSales."
2897
3032
  },
2898
- {
2899
- "case": "TransactionListWithSplits",
2900
- "error": "REPORT_UNKNOWN",
2901
- "note": "No Desktop SDK report of that name. Use JournalReport."
2902
- },
2903
3033
  {
2904
3034
  "case": "other QBO report names",
2905
3035
  "error": "REPORT_UNKNOWN",
@@ -3040,6 +3170,16 @@ var CATALOG = {
3040
3170
  }
3041
3171
  ],
3042
3172
  "unsupported": [
3173
+ {
3174
+ "case": "GET /{id}/pdf",
3175
+ "error": "UNSUPPORTED_BY_DESKTOP",
3176
+ "note": "qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application."
3177
+ },
3178
+ {
3179
+ "case": "POST /{id}/send (actually sending the email)",
3180
+ "error": "UNSUPPORTED_BY_DESKTOP",
3181
+ "note": "The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email."
3182
+ },
3043
3183
  {
3044
3184
  "case": "ApplyTaxAfterDiscount changed on a sparse update that carries no Line",
3045
3185
  "error": "UNSUPPORTED_BY_DESKTOP",
@@ -3118,7 +3258,8 @@ var CATALOG = {
3118
3258
  {
3119
3259
  "case": "Create or update",
3120
3260
  "error": "UNSUPPORTED_BY_DESKTOP",
3121
- "note": "TaxAgency is a read-only projection of tax-vendor Vendors. Manage the Vendor (and ItemSalesTax.TaxVendorRef) in Desktop."
3261
+ "note": "TaxAgency is a read-only projection of the Vendors that a sales tax item names as its tax agency. Desktop has no tax agency record of its own (live probe 2026-10-20: a VendorAdd flagged IsSalesTaxAgency is accepted but nothing reads it back, and the vendor does not become an agency). A vendor becomes a tax agency when a tax rate points at it.",
3262
+ "workaround": "Create the vendor with POST /vendor, then create a tax rate that names it (POST /taxrate with AgencyRef). It then appears in /taxagency."
3122
3263
  }
3123
3264
  ]
3124
3265
  },
@@ -3877,6 +4018,36 @@ function registerResources(server) {
3877
4018
  // src/tools.ts
3878
4019
  var import_client2 = require("@tenkeybridge/client");
3879
4020
  var import_zod = require("zod");
4021
+
4022
+ // src/access.ts
4023
+ var NEEDS = {
4024
+ query: { op: "read" },
4025
+ get: { op: "read" },
4026
+ create: { op: "create" },
4027
+ update: { op: "update" },
4028
+ delete: { op: "delete" },
4029
+ void: { op: "void" },
4030
+ run_report: { op: "read", entity: "Report" },
4031
+ get_cleared_status: { op: "read", entity: "ClearedStatus" },
4032
+ set_cleared_status: { op: "update", entity: "ClearedStatus" }
4033
+ };
4034
+ function layerAllows(rules, op, entity) {
4035
+ return rules.some((r) => {
4036
+ if (!r.ops.includes(op)) return false;
4037
+ if (!entity) return true;
4038
+ return r.entity === "*" || r.entity === entity;
4039
+ });
4040
+ }
4041
+ function toolVisible(access, tool) {
4042
+ if (!access) return true;
4043
+ const need = NEEDS[tool];
4044
+ if (!need) return true;
4045
+ if (!layerAllows(access.rules, need.op, need.entity)) return false;
4046
+ if (access.companyRules && !layerAllows(access.companyRules, need.op, need.entity)) return false;
4047
+ return true;
4048
+ }
4049
+
4050
+ // src/tools.ts
3880
4051
  function ok(result) {
3881
4052
  return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
3882
4053
  }
@@ -3892,7 +4063,9 @@ function failure(err) {
3892
4063
  code: err.code,
3893
4064
  message: err.message,
3894
4065
  fixes: err.tkb?.fixes,
3895
- docsUrl: err.tkb?.docsUrl
4066
+ docsUrl: err.tkb?.docsUrl,
4067
+ ...err.code === "SCOPE_DENIED" ? { hint: "This credential is restricted. Ask the owner of this OAuth app to widen its access in the TenkeyBridge portal. Do not retry." } : {},
4068
+ ...err.code === "IP_NOT_ALLOWED" ? { hint: "This OAuth app only accepts calls from certain IP addresses and this server is not one of them. Ask the owner to add this server's public address under Allowed IP addresses in the TenkeyBridge portal. Do not retry or re-authorize." } : {}
3896
4069
  },
3897
4070
  null,
3898
4071
  2
@@ -3927,9 +4100,12 @@ function readOnly(name) {
3927
4100
  `${name} is read-only through TenkeyBridge (write: ${import_client2.ENTITIES[name].write}).` + (entry ? ` ${entry.headline}` : "") + ` Detail: compat://entity/${name.toLowerCase()}`
3928
4101
  );
3929
4102
  }
3930
- function registerTools(server, client) {
4103
+ function registerTools(server, client, access) {
4104
+ const hide = (name, tool) => {
4105
+ if (!toolVisible(access, name)) tool.disable();
4106
+ };
3931
4107
  const entityArg = import_zod.z.string().describe('Entity name, e.g. "Invoice" or "Customer" (case-insensitive). See compat://catalog.');
3932
- server.registerTool(
4108
+ hide("query", server.registerTool(
3933
4109
  "query",
3934
4110
  {
3935
4111
  description: "Run a QBO-style query against the connected QuickBooks Desktop company file. Supports AND-joined WHERE conditions (=, !=, <, >, <=, >=, IN, LIKE; no OR) plus startPosition/maxResults paging. Check the compat://catalog resource for entity support first.",
@@ -3953,11 +4129,11 @@ function registerTools(server, client) {
3953
4129
  return failure(err);
3954
4130
  }
3955
4131
  }
3956
- );
3957
- server.registerTool(
4132
+ ));
4133
+ hide("run_report", server.registerTool(
3958
4134
  "run_report",
3959
4135
  {
3960
- 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. Read compat://entity/reports for the available reports and which params each takes.",
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.",
3961
4137
  inputSchema: {
3962
4138
  report: import_zod.z.string().describe('Report name, e.g. "ProfitAndLoss" (case-insensitive).'),
3963
4139
  params: import_zod.z.record(import_zod.z.string()).optional().describe('Query params, e.g. { "date_macro": "Last Month" }.')
@@ -3971,8 +4147,8 @@ function registerTools(server, client) {
3971
4147
  return failure(err);
3972
4148
  }
3973
4149
  }
3974
- );
3975
- server.registerTool(
4150
+ ));
4151
+ hide("get", server.registerTool(
3976
4152
  "get",
3977
4153
  {
3978
4154
  description: "Fetch one entity by Id (singletons like CompanyInfo and Preferences need no id).",
@@ -3994,8 +4170,8 @@ function registerTools(server, client) {
3994
4170
  return failure(err);
3995
4171
  }
3996
4172
  }
3997
- );
3998
- server.registerTool(
4173
+ ));
4174
+ hide("create", server.registerTool(
3999
4175
  "create",
4000
4176
  {
4001
4177
  description: "Create an entity from QBO-shaped JSON (same payloads as the QuickBooks Online API). Check compat://entity/{name} for field support first.",
@@ -4014,8 +4190,8 @@ function registerTools(server, client) {
4014
4190
  return failure(err);
4015
4191
  }
4016
4192
  }
4017
- );
4018
- server.registerTool(
4193
+ ));
4194
+ hide("update", server.registerTool(
4019
4195
  "update",
4020
4196
  {
4021
4197
  description: "Sparse-update an entity: payload must include Id plus only the fields to change.",
@@ -4037,8 +4213,8 @@ function registerTools(server, client) {
4037
4213
  return failure(err);
4038
4214
  }
4039
4215
  }
4040
- );
4041
- server.registerTool(
4216
+ ));
4217
+ hide("delete", server.registerTool(
4042
4218
  "delete",
4043
4219
  {
4044
4220
  description: "Delete an entity by Id (SyncToken optional, as in QBO).",
@@ -4058,8 +4234,8 @@ function registerTools(server, client) {
4058
4234
  return failure(err);
4059
4235
  }
4060
4236
  }
4061
- );
4062
- server.registerTool(
4237
+ ));
4238
+ hide("void", server.registerTool(
4063
4239
  "void",
4064
4240
  {
4065
4241
  description: 'Void a transaction by Id + SyncToken (QBO ?operation=void). Supported: Invoice, SalesReceipt, Purchase, BillPayment, and as TenkeyBridge extensions Bill, VendorCredit, Deposit, JournalEntry, InventoryAdjustment. Destructive: on QuickBooks Desktop the record stays but its totals are zeroed and its memo is prefixed "VOID:". Returns the post-void record. Fetch the current SyncToken with the get tool first.',
@@ -4082,17 +4258,60 @@ function registerTools(server, client) {
4082
4258
  return failure(err);
4083
4259
  }
4084
4260
  }
4085
- );
4261
+ ));
4262
+ const CLEARED_NEEDS = "This TenkeyBridge client has no cleared status methods; upgrade @tenkeybridge/client to 0.8.0.";
4263
+ hide("set_cleared_status", server.registerTool(
4264
+ "set_cleared_status",
4265
+ {
4266
+ description: "Set QuickBooks Desktop's cleared status (Cleared, NotCleared, Pending) on an existing Purchase (check), Deposit, BillPayment (check) or JournalEntry. A TenkeyBridge extension (QBO has no equivalent). With only the transaction id it sets the transaction's own bank/card side (a journal entry's first line); with line_id it sets that one line's account side, which must be a bank or other balance sheet account other than A/R and A/P (an expense or income line is refused). A Transfer cannot be cleared through the API. Setting a status is idempotent, so retrying is safe; pass request_id (and txn_type) for replay protection. Use get_cleared_status to confirm what stuck.",
4267
+ inputSchema: {
4268
+ txn_id: import_zod.z.string().describe("Id of the transaction, as returned by get/query."),
4269
+ cleared_status: import_zod.z.enum(["Cleared", "NotCleared", "Pending"]),
4270
+ line_id: import_zod.z.string().optional().describe("Line.Id of the line whose account side to set; omit to set the transaction's own bank side."),
4271
+ txn_type: import_zod.z.enum(["Purchase", "Deposit", "BillPayment", "JournalEntry"]).optional().describe("Entity of the transaction; lets a lost outcome be reconciled with a read."),
4272
+ request_id: import_zod.z.string().optional().describe("Idempotency key (1-50 printable ASCII characters).")
4273
+ }
4274
+ },
4275
+ async ({ txn_id, cleared_status, line_id, txn_type, request_id }) => {
4276
+ if (!client.setClearedStatus) return fail(CLEARED_NEEDS);
4277
+ try {
4278
+ return ok(await client.setClearedStatus(
4279
+ { TxnId: txn_id, ClearedStatus: cleared_status, ...line_id !== void 0 ? { LineId: line_id } : {}, ...txn_type !== void 0 ? { TxnType: txn_type } : {} },
4280
+ request_id !== void 0 ? { requestId: request_id } : {}
4281
+ ));
4282
+ } catch (err) {
4283
+ return failure(err);
4284
+ }
4285
+ }
4286
+ ));
4287
+ hide("get_cleared_status", server.registerTool(
4288
+ "get_cleared_status",
4289
+ {
4290
+ description: "Read the cleared status of each bank / balance sheet split of one transaction (Purchase, Deposit, BillPayment, JournalEntry, or Transfer). Costs one extra bounded QuickBooks read (the transaction's own accounts on its own date). Each split has Role, LineId (to send to set_cleared_status) and ClearedStatus; SetByTxnId marks the split a set without line_id would change. Other values QuickBooks reports (such as a reconciled state) are passed through as it spells them.",
4291
+ inputSchema: {
4292
+ txn_id: import_zod.z.string(),
4293
+ txn_type: import_zod.z.enum(["Purchase", "Deposit", "BillPayment", "JournalEntry", "Transfer"])
4294
+ }
4295
+ },
4296
+ async ({ txn_id, txn_type }) => {
4297
+ if (!client.getClearedStatus) return fail(CLEARED_NEEDS);
4298
+ try {
4299
+ return ok(await client.getClearedStatus({ txnId: txn_id, txnType: txn_type }));
4300
+ } catch (err) {
4301
+ return failure(err);
4302
+ }
4303
+ }
4304
+ ));
4086
4305
  }
4087
4306
 
4088
4307
  // src/version.ts
4089
- var PKG_VERSION = "0.7.0";
4308
+ var PKG_VERSION = "0.9.0";
4090
4309
 
4091
4310
  // src/server.ts
4092
4311
  var SERVER_NAME = "tenkeybridge";
4093
- function buildServer(client) {
4312
+ function buildServer(client, access) {
4094
4313
  const server = new import_mcp2.McpServer({ name: SERVER_NAME, version: PKG_VERSION });
4095
- registerTools(server, client);
4314
+ registerTools(server, client, access);
4096
4315
  registerResources(server);
4097
4316
  return server;
4098
4317
  }
@@ -4174,6 +4393,7 @@ function persistRefreshToken(file, refreshToken) {
4174
4393
  registerResources,
4175
4394
  registerTools,
4176
4395
  resolveCatalog,
4177
- resolveEntityName
4396
+ resolveEntityName,
4397
+ toolVisible
4178
4398
  });
4179
4399
  //# sourceMappingURL=index.cjs.map