@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.js CHANGED
@@ -266,9 +266,8 @@ var CATALOG = {
266
266
  },
267
267
  {
268
268
  "qbo": "LinkedTxn",
269
- "support": "none",
270
- "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.",
271
- "error": "UNSUPPORTED_BY_DESKTOP"
269
+ "support": "partial",
270
+ "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)."
272
271
  },
273
272
  {
274
273
  "qbo": "operation=void",
@@ -557,6 +556,65 @@ var CATALOG = {
557
556
  ],
558
557
  "unsupported": []
559
558
  },
559
+ "ClearedStatus": {
560
+ "entity": "ClearedStatus",
561
+ "verdict": "live",
562
+ "group": "platform",
563
+ "read": "partial",
564
+ "write": "partial",
565
+ "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.",
566
+ "usage": "POST /v3/company/{companyId}/clearedstatus[?requestid=...] and GET /v3/company/{companyId}/clearedstatus?txnid=...&txntype=...",
567
+ "fields": [
568
+ {
569
+ "qbo": "TxnId",
570
+ "support": "full",
571
+ "note": "The Id of the transaction, as a read of the Purchase, Deposit, BillPayment or JournalEntry returned it."
572
+ },
573
+ {
574
+ "qbo": "LineId",
575
+ "support": "full",
576
+ "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."
577
+ },
578
+ {
579
+ "qbo": "ClearedStatus",
580
+ "support": "full",
581
+ "note": "Cleared, NotCleared or Pending (case sensitive). Reconciled is QuickBooks' own state and cannot be written."
582
+ },
583
+ {
584
+ "qbo": "TxnType",
585
+ "support": "partial",
586
+ "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)."
587
+ },
588
+ {
589
+ "qbo": "Splits",
590
+ "support": "full",
591
+ "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."
592
+ }
593
+ ],
594
+ "unsupported": [
595
+ {
596
+ "case": "Transfer",
597
+ "error": "UNSUPPORTED_BY_DESKTOP",
598
+ "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.",
599
+ "workaround": "Use a Deposit (line from the clearing account) or a JournalEntry, and set the line you need by LineId."
600
+ },
601
+ {
602
+ "case": "Income, expense, cost of goods, A/R or A/P line",
603
+ "error": "UNSUPPORTED_BY_DESKTOP",
604
+ "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."
605
+ },
606
+ {
607
+ "case": "Invoice, Bill, SalesReceipt and the other transaction types",
608
+ "error": "UNSUPPORTED_BY_DESKTOP",
609
+ "note": "Only Purchase (check), Deposit, BillPayment (check) and JournalEntry are supported. A credit card Purchase or a credit card BillPayment was not probed."
610
+ },
611
+ {
612
+ "case": "Cleared status on an ordinary read",
613
+ "error": "n/a",
614
+ "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."
615
+ }
616
+ ]
617
+ },
560
618
  "CompanyCurrency": {
561
619
  "entity": "CompanyCurrency",
562
620
  "verdict": "live",
@@ -867,9 +925,24 @@ var CATALOG = {
867
925
  "qbo": "ApplyTaxAfterDiscount",
868
926
  "support": "partial",
869
927
  "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)."
928
+ },
929
+ {
930
+ "qbo": "operation=void",
931
+ "support": "partial",
932
+ "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)."
870
933
  }
871
934
  ],
872
935
  "unsupported": [
936
+ {
937
+ "case": "GET /{id}/pdf",
938
+ "error": "UNSUPPORTED_BY_DESKTOP",
939
+ "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."
940
+ },
941
+ {
942
+ "case": "POST /{id}/send (actually sending the email)",
943
+ "error": "UNSUPPORTED_BY_DESKTOP",
944
+ "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."
945
+ },
873
946
  {
874
947
  "case": "Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)",
875
948
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
@@ -1517,6 +1590,16 @@ var CATALOG = {
1517
1590
  }
1518
1591
  ],
1519
1592
  "unsupported": [
1593
+ {
1594
+ "case": "GET /{id}/pdf",
1595
+ "error": "UNSUPPORTED_BY_DESKTOP",
1596
+ "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."
1597
+ },
1598
+ {
1599
+ "case": "POST /{id}/send (actually sending the email)",
1600
+ "error": "UNSUPPORTED_BY_DESKTOP",
1601
+ "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."
1602
+ },
1520
1603
  {
1521
1604
  "case": "Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)",
1522
1605
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
@@ -1592,7 +1675,7 @@ var CATALOG = {
1592
1675
  "group": "purchasing",
1593
1676
  "read": "full",
1594
1677
  "write": "partial",
1595
- "headline": "Quantity adjustments to inventory items \u2014 create, read, update (header and lines) and delete",
1678
+ "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",
1596
1679
  "fields": [
1597
1680
  {
1598
1681
  "qbo": "AdjustAccountRef",
@@ -1616,7 +1699,7 @@ var CATALOG = {
1616
1699
  {
1617
1700
  "qbo": "Line",
1618
1701
  "support": "partial",
1619
- "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."
1702
+ "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."
1620
1703
  },
1621
1704
  {
1622
1705
  "qbo": "CurrencyRef",
@@ -1636,9 +1719,14 @@ var CATALOG = {
1636
1719
  ],
1637
1720
  "unsupported": [
1638
1721
  {
1639
- "case": "Absolute quantity (NewQuantity) and value adjustments",
1722
+ "case": "NewQty or NewValue on an update line",
1640
1723
  "error": "UNSUPPORTED_BY_DESKTOP",
1641
- "note": "QBO's InventoryAdjustment only has QtyDiff (a delta), so Desktop's NewQuantity/NewValue forms have no QBO field to map from."
1724
+ "note": "Desktop's InventoryAdjustmentLineMod only has QuantityDifference and ValueDifference, so the absolute forms work on create only. To change an existing line send QtyDiff."
1725
+ },
1726
+ {
1727
+ "case": "QtyDiff together with NewQty or NewValue on the same line",
1728
+ "error": "2010",
1729
+ "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."
1642
1730
  }
1643
1731
  ]
1644
1732
  },
@@ -1788,6 +1876,16 @@ var CATALOG = {
1788
1876
  }
1789
1877
  ],
1790
1878
  "unsupported": [
1879
+ {
1880
+ "case": "GET /{id}/pdf",
1881
+ "error": "UNSUPPORTED_BY_DESKTOP",
1882
+ "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."
1883
+ },
1884
+ {
1885
+ "case": "POST /{id}/send (actually sending the email)",
1886
+ "error": "UNSUPPORTED_BY_DESKTOP",
1887
+ "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."
1888
+ },
1791
1889
  {
1792
1890
  "case": "Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)",
1793
1891
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
@@ -1836,7 +1934,7 @@ var CATALOG = {
1836
1934
  {
1837
1935
  "qbo": "DesktopItemType",
1838
1936
  "support": "partial",
1839
- "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."
1937
+ "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)."
1840
1938
  },
1841
1939
  {
1842
1940
  "qbo": "ItemGroupDetail",
@@ -1883,10 +1981,35 @@ var CATALOG = {
1883
1981
  "support": "partial",
1884
1982
  "note": "TenkeyBridge extension. Read only, on SalesTaxGroup items: the member tax items."
1885
1983
  },
1984
+ {
1985
+ "qbo": "PurchaseDate",
1986
+ "support": "partial",
1987
+ "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."
1988
+ },
1989
+ {
1990
+ "qbo": "AcquiredAs",
1991
+ "support": "partial",
1992
+ "note": "TenkeyBridge extension. Fixed asset items only: New or Old (default New on create). Desktop requires it, so a create always sends it."
1993
+ },
1994
+ {
1995
+ "qbo": "VendorOrPayeeName",
1996
+ "support": "partial",
1997
+ "note": "TenkeyBridge extension. Fixed asset items only: who the asset was bought from (text, max 50 characters)."
1998
+ },
1999
+ {
2000
+ "qbo": "Location",
2001
+ "support": "partial",
2002
+ "note": "TenkeyBridge extension. Fixed asset items only: where the asset is kept (max 50 characters)."
2003
+ },
2004
+ {
2005
+ "qbo": "SerialNumber",
2006
+ "support": "partial",
2007
+ "note": "TenkeyBridge extension. Fixed asset items only (max 30 characters)."
2008
+ },
1886
2009
  {
1887
2010
  "qbo": "Description",
1888
2011
  "support": "full",
1889
- "note": "Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory."
2012
+ "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."
1890
2013
  },
1891
2014
  {
1892
2015
  "qbo": "UnitPrice",
@@ -1926,12 +2049,12 @@ var CATALOG = {
1926
2049
  {
1927
2050
  "qbo": "AssetAccountRef",
1928
2051
  "support": "full",
1929
- "note": "Inventory only; required on create."
2052
+ "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)."
1930
2053
  },
1931
2054
  {
1932
2055
  "qbo": "PurchaseDesc",
1933
2056
  "support": "full",
1934
- "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."
2057
+ "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."
1935
2058
  },
1936
2059
  {
1937
2060
  "qbo": "PurchaseCost",
@@ -1982,9 +2105,9 @@ var CATALOG = {
1982
2105
  "workaround": "Write a sales tax item through the TaxRate endpoint (POST /taxrate) and a sales tax group through POST /taxservice/taxcode."
1983
2106
  },
1984
2107
  {
1985
- "case": "Creating or updating FixedAsset items",
1986
- "error": "UNSUPPORTED_BY_DESKTOP",
1987
- "note": "Fixed assets read as Type NonInventory with DesktopItemType FixedAsset. Writing them is not supported."
2108
+ "case": "Fixed asset item fields beyond the listed extensions (PONumber, Notes, warranty date, asset number, cost basis, year-end depreciation, sales information)",
2109
+ "error": "UNMAPPED_FIELD",
2110
+ "note": "Fixed asset items write and read the fields listed on the DesktopItemType row. The other Desktop fixed asset fields are not mapped."
1988
2111
  },
1989
2112
  {
1990
2113
  "case": "Category items, and turning a sales-only item into a two-sided one",
@@ -2461,7 +2584,12 @@ var CATALOG = {
2461
2584
  {
2462
2585
  "qbo": "Line",
2463
2586
  "support": "partial",
2464
- "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."
2587
+ "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."
2588
+ },
2589
+ {
2590
+ "qbo": "LinkedTxn",
2591
+ "support": "partial",
2592
+ "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)."
2465
2593
  },
2466
2594
  {
2467
2595
  "qbo": "TotalAmt",
@@ -2767,16 +2895,22 @@ var CATALOG = {
2767
2895
  "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.",
2768
2896
  "error": "REPORT_UNSUPPORTED_OPTION"
2769
2897
  },
2898
+ {
2899
+ "qbo": "TransactionListWithSplits",
2900
+ "support": "partial",
2901
+ "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.",
2902
+ "error": "REPORT_UNSUPPORTED_OPTION"
2903
+ },
2770
2904
  {
2771
2905
  "qbo": "BudgetOverview / BudgetVsActuals",
2772
2906
  "support": "partial",
2773
- "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.",
2907
+ "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.",
2774
2908
  "error": "REPORT_UNSUPPORTED_OPTION"
2775
2909
  },
2776
2910
  {
2777
2911
  "qbo": "Desktop extension reports",
2778
2912
  "support": "full",
2779
- "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."
2913
+ "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."
2780
2914
  },
2781
2915
  {
2782
2916
  "qbo": "start_date / end_date / date_macro",
@@ -2857,11 +2991,6 @@ var CATALOG = {
2857
2991
  "error": "REPORT_UNKNOWN",
2858
2992
  "note": "Desktop has no departments. Use ClassSales."
2859
2993
  },
2860
- {
2861
- "case": "TransactionListWithSplits",
2862
- "error": "REPORT_UNKNOWN",
2863
- "note": "No Desktop SDK report of that name. Use JournalReport."
2864
- },
2865
2994
  {
2866
2995
  "case": "other QBO report names",
2867
2996
  "error": "REPORT_UNKNOWN",
@@ -3002,6 +3131,16 @@ var CATALOG = {
3002
3131
  }
3003
3132
  ],
3004
3133
  "unsupported": [
3134
+ {
3135
+ "case": "GET /{id}/pdf",
3136
+ "error": "UNSUPPORTED_BY_DESKTOP",
3137
+ "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."
3138
+ },
3139
+ {
3140
+ "case": "POST /{id}/send (actually sending the email)",
3141
+ "error": "UNSUPPORTED_BY_DESKTOP",
3142
+ "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."
3143
+ },
3005
3144
  {
3006
3145
  "case": "ApplyTaxAfterDiscount changed on a sparse update that carries no Line",
3007
3146
  "error": "UNSUPPORTED_BY_DESKTOP",
@@ -3080,7 +3219,8 @@ var CATALOG = {
3080
3219
  {
3081
3220
  "case": "Create or update",
3082
3221
  "error": "UNSUPPORTED_BY_DESKTOP",
3083
- "note": "TaxAgency is a read-only projection of tax-vendor Vendors. Manage the Vendor (and ItemSalesTax.TaxVendorRef) in Desktop."
3222
+ "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.",
3223
+ "workaround": "Create the vendor with POST /vendor, then create a tax rate that names it (POST /taxrate with AgencyRef). It then appears in /taxagency."
3084
3224
  }
3085
3225
  ]
3086
3226
  },
@@ -3839,6 +3979,36 @@ function registerResources(server) {
3839
3979
  // src/tools.ts
3840
3980
  import { ENTITIES as ENTITIES2, TenkeyBridgeApiError } from "@tenkeybridge/client";
3841
3981
  import { z } from "zod";
3982
+
3983
+ // src/access.ts
3984
+ var NEEDS = {
3985
+ query: { op: "read" },
3986
+ get: { op: "read" },
3987
+ create: { op: "create" },
3988
+ update: { op: "update" },
3989
+ delete: { op: "delete" },
3990
+ void: { op: "void" },
3991
+ run_report: { op: "read", entity: "Report" },
3992
+ get_cleared_status: { op: "read", entity: "ClearedStatus" },
3993
+ set_cleared_status: { op: "update", entity: "ClearedStatus" }
3994
+ };
3995
+ function layerAllows(rules, op, entity) {
3996
+ return rules.some((r) => {
3997
+ if (!r.ops.includes(op)) return false;
3998
+ if (!entity) return true;
3999
+ return r.entity === "*" || r.entity === entity;
4000
+ });
4001
+ }
4002
+ function toolVisible(access, tool) {
4003
+ if (!access) return true;
4004
+ const need = NEEDS[tool];
4005
+ if (!need) return true;
4006
+ if (!layerAllows(access.rules, need.op, need.entity)) return false;
4007
+ if (access.companyRules && !layerAllows(access.companyRules, need.op, need.entity)) return false;
4008
+ return true;
4009
+ }
4010
+
4011
+ // src/tools.ts
3842
4012
  function ok(result) {
3843
4013
  return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
3844
4014
  }
@@ -3854,7 +4024,9 @@ function failure(err) {
3854
4024
  code: err.code,
3855
4025
  message: err.message,
3856
4026
  fixes: err.tkb?.fixes,
3857
- docsUrl: err.tkb?.docsUrl
4027
+ docsUrl: err.tkb?.docsUrl,
4028
+ ...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." } : {},
4029
+ ...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." } : {}
3858
4030
  },
3859
4031
  null,
3860
4032
  2
@@ -3889,9 +4061,12 @@ function readOnly(name) {
3889
4061
  `${name} is read-only through TenkeyBridge (write: ${ENTITIES2[name].write}).` + (entry ? ` ${entry.headline}` : "") + ` Detail: compat://entity/${name.toLowerCase()}`
3890
4062
  );
3891
4063
  }
3892
- function registerTools(server, client) {
4064
+ function registerTools(server, client, access) {
4065
+ const hide = (name, tool) => {
4066
+ if (!toolVisible(access, name)) tool.disable();
4067
+ };
3893
4068
  const entityArg = z.string().describe('Entity name, e.g. "Invoice" or "Customer" (case-insensitive). See compat://catalog.');
3894
- server.registerTool(
4069
+ hide("query", server.registerTool(
3895
4070
  "query",
3896
4071
  {
3897
4072
  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.",
@@ -3915,11 +4090,11 @@ function registerTools(server, client) {
3915
4090
  return failure(err);
3916
4091
  }
3917
4092
  }
3918
- );
3919
- server.registerTool(
4093
+ ));
4094
+ hide("run_report", server.registerTool(
3920
4095
  "run_report",
3921
4096
  {
3922
- 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.",
4097
+ 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.",
3923
4098
  inputSchema: {
3924
4099
  report: z.string().describe('Report name, e.g. "ProfitAndLoss" (case-insensitive).'),
3925
4100
  params: z.record(z.string()).optional().describe('Query params, e.g. { "date_macro": "Last Month" }.')
@@ -3933,8 +4108,8 @@ function registerTools(server, client) {
3933
4108
  return failure(err);
3934
4109
  }
3935
4110
  }
3936
- );
3937
- server.registerTool(
4111
+ ));
4112
+ hide("get", server.registerTool(
3938
4113
  "get",
3939
4114
  {
3940
4115
  description: "Fetch one entity by Id (singletons like CompanyInfo and Preferences need no id).",
@@ -3956,8 +4131,8 @@ function registerTools(server, client) {
3956
4131
  return failure(err);
3957
4132
  }
3958
4133
  }
3959
- );
3960
- server.registerTool(
4134
+ ));
4135
+ hide("create", server.registerTool(
3961
4136
  "create",
3962
4137
  {
3963
4138
  description: "Create an entity from QBO-shaped JSON (same payloads as the QuickBooks Online API). Check compat://entity/{name} for field support first.",
@@ -3976,8 +4151,8 @@ function registerTools(server, client) {
3976
4151
  return failure(err);
3977
4152
  }
3978
4153
  }
3979
- );
3980
- server.registerTool(
4154
+ ));
4155
+ hide("update", server.registerTool(
3981
4156
  "update",
3982
4157
  {
3983
4158
  description: "Sparse-update an entity: payload must include Id plus only the fields to change.",
@@ -3999,8 +4174,8 @@ function registerTools(server, client) {
3999
4174
  return failure(err);
4000
4175
  }
4001
4176
  }
4002
- );
4003
- server.registerTool(
4177
+ ));
4178
+ hide("delete", server.registerTool(
4004
4179
  "delete",
4005
4180
  {
4006
4181
  description: "Delete an entity by Id (SyncToken optional, as in QBO).",
@@ -4020,8 +4195,8 @@ function registerTools(server, client) {
4020
4195
  return failure(err);
4021
4196
  }
4022
4197
  }
4023
- );
4024
- server.registerTool(
4198
+ ));
4199
+ hide("void", server.registerTool(
4025
4200
  "void",
4026
4201
  {
4027
4202
  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.',
@@ -4044,17 +4219,60 @@ function registerTools(server, client) {
4044
4219
  return failure(err);
4045
4220
  }
4046
4221
  }
4047
- );
4222
+ ));
4223
+ const CLEARED_NEEDS = "This TenkeyBridge client has no cleared status methods; upgrade @tenkeybridge/client to 0.8.0.";
4224
+ hide("set_cleared_status", server.registerTool(
4225
+ "set_cleared_status",
4226
+ {
4227
+ 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.",
4228
+ inputSchema: {
4229
+ txn_id: z.string().describe("Id of the transaction, as returned by get/query."),
4230
+ cleared_status: z.enum(["Cleared", "NotCleared", "Pending"]),
4231
+ line_id: z.string().optional().describe("Line.Id of the line whose account side to set; omit to set the transaction's own bank side."),
4232
+ txn_type: z.enum(["Purchase", "Deposit", "BillPayment", "JournalEntry"]).optional().describe("Entity of the transaction; lets a lost outcome be reconciled with a read."),
4233
+ request_id: z.string().optional().describe("Idempotency key (1-50 printable ASCII characters).")
4234
+ }
4235
+ },
4236
+ async ({ txn_id, cleared_status, line_id, txn_type, request_id }) => {
4237
+ if (!client.setClearedStatus) return fail(CLEARED_NEEDS);
4238
+ try {
4239
+ return ok(await client.setClearedStatus(
4240
+ { TxnId: txn_id, ClearedStatus: cleared_status, ...line_id !== void 0 ? { LineId: line_id } : {}, ...txn_type !== void 0 ? { TxnType: txn_type } : {} },
4241
+ request_id !== void 0 ? { requestId: request_id } : {}
4242
+ ));
4243
+ } catch (err) {
4244
+ return failure(err);
4245
+ }
4246
+ }
4247
+ ));
4248
+ hide("get_cleared_status", server.registerTool(
4249
+ "get_cleared_status",
4250
+ {
4251
+ 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.",
4252
+ inputSchema: {
4253
+ txn_id: z.string(),
4254
+ txn_type: z.enum(["Purchase", "Deposit", "BillPayment", "JournalEntry", "Transfer"])
4255
+ }
4256
+ },
4257
+ async ({ txn_id, txn_type }) => {
4258
+ if (!client.getClearedStatus) return fail(CLEARED_NEEDS);
4259
+ try {
4260
+ return ok(await client.getClearedStatus({ txnId: txn_id, txnType: txn_type }));
4261
+ } catch (err) {
4262
+ return failure(err);
4263
+ }
4264
+ }
4265
+ ));
4048
4266
  }
4049
4267
 
4050
4268
  // src/version.ts
4051
- var PKG_VERSION = "0.7.0";
4269
+ var PKG_VERSION = "0.9.0";
4052
4270
 
4053
4271
  // src/server.ts
4054
4272
  var SERVER_NAME = "tenkeybridge";
4055
- function buildServer(client) {
4273
+ function buildServer(client, access) {
4056
4274
  const server = new McpServer2({ name: SERVER_NAME, version: PKG_VERSION });
4057
- registerTools(server, client);
4275
+ registerTools(server, client, access);
4058
4276
  registerResources(server);
4059
4277
  return server;
4060
4278
  }
@@ -4135,6 +4353,7 @@ export {
4135
4353
  registerResources,
4136
4354
  registerTools,
4137
4355
  resolveCatalog,
4138
- resolveEntityName
4356
+ resolveEntityName,
4357
+ toolVisible
4139
4358
  };
4140
4359
  //# sourceMappingURL=index.js.map