@tenkeybridge/mcp 0.8.0 → 0.10.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
 
@@ -1428,6 +1429,11 @@ var CATALOG = {
1428
1429
  "support": "full",
1429
1430
  "note": "Desktop TargetBonus, a money amount. Accepted on create and update without a payroll subscription (verified live on QuickBooks Enterprise 24, 2026-10-15); Desktop's create response omits it but reads return it."
1430
1431
  },
1432
+ {
1433
+ "qbo": "PayrollInfo",
1434
+ "support": "partial",
1435
+ "note": "TenkeyBridge extension, read-only: Desktop's EmployeePayrollInfo as { PayPeriod, ClassRef, Earnings: [{ PayrollItemRef, Rate | RatePercent }], UseTimeDataToCreatePaychecks, SickHours, VacationHours } with hours as decimal numbers (PT40H30M0S reads 40.5). Present only when the file has a payroll subscription and the integrated app may access personal data (Edit, Preferences, Integrated Applications); otherwise absent. A create carrying PayrollInfo, or an update that changes it, answers 422 UNSUPPORTED_BY_DESKTOP; an unchanged echo on update is ignored. Not filterable."
1436
+ },
1431
1437
  {
1432
1438
  "qbo": "AdditionalContactRef",
1433
1439
  "support": "none",
@@ -1442,9 +1448,9 @@ var CATALOG = {
1442
1448
  "note": "QBO employees are deactivated, not deleted. Desktop can delete an employee with no transactions, but TenkeyBridge keeps deactivate-only to match QBO (sparse update with Active:false)."
1443
1449
  },
1444
1450
  {
1445
- "case": "Payroll fields",
1451
+ "case": "Writing payroll fields",
1446
1452
  "error": "UNSUPPORTED_BY_DESKTOP",
1447
- "note": "Pay rates, pay periods, wage items and other EmployeePayrollInfo content are license-gated in Desktop and not exposed for read or write."
1453
+ "note": "Pay periods, earnings rates and sick or vacation hours are read-only (see PayrollInfo). Set them in QuickBooks Desktop."
1448
1454
  }
1449
1455
  ]
1450
1456
  },
@@ -2261,6 +2267,64 @@ var CATALOG = {
2261
2267
  }
2262
2268
  ]
2263
2269
  },
2270
+ "Paycheck": {
2271
+ "entity": "Paycheck",
2272
+ "verdict": "live",
2273
+ "group": "transactions",
2274
+ "read": "partial",
2275
+ "write": "none",
2276
+ "headline": "TenkeyBridge extension: read-only list of QuickBooks Desktop payroll paychecks (header rows: employee, bank account, date, check number, net pay). QuickBooks Online has no Paycheck entity. Needs a payroll subscription and the personal-data permission",
2277
+ "fields": [
2278
+ {
2279
+ "qbo": "MetaData",
2280
+ "support": "full",
2281
+ "note": "Id is Desktop's TxnID. CreateTime and LastUpdatedTime come from Desktop's TimeCreated / TimeModified. There is no SyncToken: Desktop's paycheck rows carry no EditSequence."
2282
+ },
2283
+ {
2284
+ "qbo": "TxnDate",
2285
+ "support": "full",
2286
+ "note": "The check date. Pushed to Desktop as a TransactionDateRangeFilter."
2287
+ },
2288
+ {
2289
+ "qbo": "DocNumber",
2290
+ "support": "full",
2291
+ "note": "Desktop RefNumber. Filters on it are applied by the gateway after the read."
2292
+ },
2293
+ {
2294
+ "qbo": "EmployeeRef",
2295
+ "support": "full",
2296
+ "note": "Desktop EntityRef, the employee. An equality filter is pushed to Desktop as a TransactionEntityFilter."
2297
+ },
2298
+ {
2299
+ "qbo": "BankAccountRef",
2300
+ "support": "full",
2301
+ "note": "Desktop AccountRef, the bank account the check is drawn on."
2302
+ },
2303
+ {
2304
+ "qbo": "NetPay",
2305
+ "support": "full",
2306
+ "note": "Desktop Amount with the sign flipped: Desktop reports money out as negative, NetPay is the positive take-home amount. Filterable, applied by the gateway."
2307
+ }
2308
+ ],
2309
+ "unsupported": [
2310
+ {
2311
+ "case": "Earnings, taxes and deductions",
2312
+ "error": "UNSUPPORTED_BY_DESKTOP",
2313
+ "note": "qbXML has no paycheck detail query: the paycheck list answers header rows only. Pay stub lines (earnings, taxes, deductions, hours) come from the payroll reports."
2314
+ },
2315
+ {
2316
+ "case": "create, update, delete or void",
2317
+ "error": "UNSUPPORTED_BY_DESKTOP",
2318
+ "note": "Paycheck is read-only through TenkeyBridge. Paychecks are created in QuickBooks Desktop payroll.",
2319
+ "workaround": "Create or void the paycheck in QuickBooks Desktop (Employees, Pay Employees); it shows up on the next read."
2320
+ },
2321
+ {
2322
+ "case": "File without payroll",
2323
+ "error": "PAYROLL_SUBSCRIPTION_REQUIRED",
2324
+ "note": "Desktop answers status 3262 when the company file has no payroll subscription (422 PAYROLL_SUBSCRIPTION_REQUIRED), and 3261 when the integrated app lacks the personal-data permission (403 QB_PERSONAL_DATA_DENIED)."
2325
+ }
2326
+ ]
2327
+ },
2264
2328
  "Payment": {
2265
2329
  "entity": "Payment",
2266
2330
  "verdict": "live",
@@ -2389,6 +2453,43 @@ var CATALOG = {
2389
2453
  }
2390
2454
  ]
2391
2455
  },
2456
+ "PayrollItemWage": {
2457
+ "entity": "PayrollItemWage",
2458
+ "verdict": "live",
2459
+ "group": "lists",
2460
+ "read": "full",
2461
+ "write": "none",
2462
+ "headline": "TenkeyBridge extension: read/query the payroll wage items (Regular Pay, Overtime Pay, ...) a TimeActivity can name; QuickBooks Desktop only",
2463
+ "fields": [
2464
+ {
2465
+ "qbo": "Name",
2466
+ "support": "full",
2467
+ "note": "Up to 31 characters."
2468
+ },
2469
+ {
2470
+ "qbo": "Active",
2471
+ "support": "full",
2472
+ "note": "Queries return active items only unless you filter on Active."
2473
+ },
2474
+ {
2475
+ "qbo": "WageType",
2476
+ "support": "full",
2477
+ "note": "Desktop's enum string, unchanged: Bonus, Commission, HourlyOvertime, HourlyRegular, HourlySick, HourlyVacation, SalaryRegular, SalarySick, SalaryVacation."
2478
+ },
2479
+ {
2480
+ "qbo": "ExpenseAccountRef",
2481
+ "support": "full"
2482
+ }
2483
+ ],
2484
+ "unsupported": [
2485
+ {
2486
+ "case": "Create, update, deactivate or delete",
2487
+ "error": "UNSUPPORTED_BY_DESKTOP",
2488
+ "note": "PayrollItemWage is read-only through TenkeyBridge. Reading wage items works on a company file without a payroll subscription.",
2489
+ "workaround": "Create or edit the wage item in QuickBooks Desktop (Lists, Payroll Item List); it shows up on the next read."
2490
+ }
2491
+ ]
2492
+ },
2392
2493
  "Preferences": {
2393
2494
  "entity": "Preferences",
2394
2495
  "verdict": "live",
@@ -2948,7 +3049,7 @@ var CATALOG = {
2948
3049
  {
2949
3050
  "qbo": "Desktop extension reports",
2950
3051
  "support": "full",
2951
- "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."
3052
+ "note": "ProfitAndLossByClass, ProfitAndLossByJob, ProfitAndLossPrevYearComp, ProfitAndLossYTDComp, BalanceSheetPrevYearComp, BalanceSheetByClass, PurchaseByVendorSummary, PurchaseByItemSummary, SalesByRepSummary, InventoryStockStatusByItem, OpenInvoices, UnpaidBillsDetail, OpenPOs, SalesByCustomerDetail, SalesByItemDetail, IncomeByCustomerDetail, ExpenseByVendorDetail, PurchaseByVendorDetail, DepositDetail, CheckDetail, BalanceSheetDetail, CollectionsReport, and since Reports wave 4 TxnDetailByAccount, UnbilledCostsByJob, AuditTrail, 1099Detail, SalesByRepDetail, PurchaseByItemDetail, OpenPOsByJob, EstimatesByJob, JobProgressInvoicesVsEstimates, OpenSalesOrderByCustomer, OpenSalesOrderByItem, PendingSales, IncomeTaxDetail, MissingChecks, SalesTaxRevenueSummary, IncomeTaxSummary, BalanceSheetSummary, InventoryStockStatusByVendor, and the Job and Time reports JobProfitabilitySummary, JobEstimatesVsActualsSummary, ItemProfitability, ItemEstimatesVsActuals, JobProfitabilityDetail, JobEstimatesVsActualsDetail, TimeByJobSummary, TimeByJobDetail, TimeByItem, TimeByName, and since Reports wave 5 PhysicalInventoryWorksheet (a bare snapshot: Desktop refuses every period, filter, basis and column option on it, so the gateway refuses them too) and the Advanced Inventory reports InventoryValuationSummaryBySite, LotNumberInStockBySite and SerialNumberInStockBySite (sent bare; a company file without Advanced Inventory answers 3250, which becomes a 422 REPORT_FEATURE_UNAVAILABLE naming the feature; not live-proven past that gate, and unavailable in the sandbox). Six payroll reports (2026-12-03): PayrollTransactionDetail, PayrollItemDetail, PayrollTransactionsByPayee and PayrollReviewDetail (PayrollDetailReportQueryRq) and PayrollSummary and EmployeeEarningsSummary (PayrollSummaryReportQueryRq). They take a period only (start_date/end_date or date_macro): no filter, column split, accounting_method or columns, because only the period was proven live, and anything else is refused before Desktop. They need a QuickBooks Desktop payroll subscription (status 3262 becomes 422 PAYROLL_SUBSCRIPTION_REQUIRED) and the integrated-application personal-data permission (status 3261 becomes 403 QB_PERSONAL_DATA_DENIED). The sandbox replays one fixed capture of each. Filters are enabled only where they were proven live on QuickBooks Enterprise 24 (2026-10-20): customer/vendor, item, class, account type, transaction type and modified date on the detail reports (not the account filter on UnbilledCostsByJob and PendingSales, which Desktop fails with an internal error), the same minus modified date on the summaries, all but vendor on the four Job summaries, customer, item and class on the Time reports; the two Job detail reports require a customer or job Id and take no other filter; MissingChecks requires account Ids (Desktop refuses a bare query and an account type, as it does ReportBasis) and takes transaction type, class, modified date and columns. 1099Detail takes no filter at all (an entity filter crashed QuickBooks, so the gateway refuses every filter on it before it reaches Desktop). The Time reports take no columns (Desktop refuses Duration). Desktop reports with no QBO twin, served under their Desktop names in the same QBO report JSON."
2952
3053
  },
2953
3054
  {
2954
3055
  "qbo": "start_date / end_date / date_macro",
@@ -3681,9 +3782,8 @@ var CATALOG = {
3681
3782
  },
3682
3783
  {
3683
3784
  "qbo": "PayrollItemRef",
3684
- "support": "none",
3685
- "note": "Desktop PayrollItemWageRef has no QBO Accounting TimeActivity equivalent (QBO Payroll is a separate product).",
3686
- "error": "UNSUPPORTED_BY_DESKTOP"
3785
+ "support": "full",
3786
+ "note": 'TenkeyBridge extension (QBO Accounting has no equivalent): maps to Desktop PayrollItemWageRef, read from and written to the entry as { value, name }. Pick a wage item from the PayrollItemWage list (Regular Pay, Overtime Pay, ...). Required on every entry for an employee whose "Use time data to create paychecks" is on: without it QuickBooks refuses the save (statusCode 3180, "Activities for this employee must have a payroll item"). For an employee set not to use time data it is optional and stored when sent. Vendor entries accept and store one too. A sparse update that omits it keeps the stored item; sending a different one changes it; it cannot be cleared.'
3687
3787
  },
3688
3788
  {
3689
3789
  "qbo": "TxnNumber",
@@ -4017,6 +4117,36 @@ function registerResources(server) {
4017
4117
  // src/tools.ts
4018
4118
  var import_client2 = require("@tenkeybridge/client");
4019
4119
  var import_zod = require("zod");
4120
+
4121
+ // src/access.ts
4122
+ var NEEDS = {
4123
+ query: { op: "read" },
4124
+ get: { op: "read" },
4125
+ create: { op: "create" },
4126
+ update: { op: "update" },
4127
+ delete: { op: "delete" },
4128
+ void: { op: "void" },
4129
+ run_report: { op: "read", entity: "Report" },
4130
+ get_cleared_status: { op: "read", entity: "ClearedStatus" },
4131
+ set_cleared_status: { op: "update", entity: "ClearedStatus" }
4132
+ };
4133
+ function layerAllows(rules, op, entity) {
4134
+ return rules.some((r) => {
4135
+ if (!r.ops.includes(op)) return false;
4136
+ if (!entity) return true;
4137
+ return r.entity === "*" || r.entity === entity;
4138
+ });
4139
+ }
4140
+ function toolVisible(access, tool) {
4141
+ if (!access) return true;
4142
+ const need = NEEDS[tool];
4143
+ if (!need) return true;
4144
+ if (!layerAllows(access.rules, need.op, need.entity)) return false;
4145
+ if (access.companyRules && !layerAllows(access.companyRules, need.op, need.entity)) return false;
4146
+ return true;
4147
+ }
4148
+
4149
+ // src/tools.ts
4020
4150
  function ok(result) {
4021
4151
  return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
4022
4152
  }
@@ -4032,7 +4162,9 @@ function failure(err) {
4032
4162
  code: err.code,
4033
4163
  message: err.message,
4034
4164
  fixes: err.tkb?.fixes,
4035
- docsUrl: err.tkb?.docsUrl
4165
+ docsUrl: err.tkb?.docsUrl,
4166
+ ...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." } : {},
4167
+ ...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." } : {}
4036
4168
  },
4037
4169
  null,
4038
4170
  2
@@ -4067,9 +4199,12 @@ function readOnly(name) {
4067
4199
  `${name} is read-only through TenkeyBridge (write: ${import_client2.ENTITIES[name].write}).` + (entry ? ` ${entry.headline}` : "") + ` Detail: compat://entity/${name.toLowerCase()}`
4068
4200
  );
4069
4201
  }
4070
- function registerTools(server, client) {
4202
+ function registerTools(server, client, access) {
4203
+ const hide = (name, tool) => {
4204
+ if (!toolVisible(access, name)) tool.disable();
4205
+ };
4071
4206
  const entityArg = import_zod.z.string().describe('Entity name, e.g. "Invoice" or "Customer" (case-insensitive). See compat://catalog.');
4072
- server.registerTool(
4207
+ hide("query", server.registerTool(
4073
4208
  "query",
4074
4209
  {
4075
4210
  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.",
@@ -4093,11 +4228,11 @@ function registerTools(server, client) {
4093
4228
  return failure(err);
4094
4229
  }
4095
4230
  }
4096
- );
4097
- server.registerTool(
4231
+ ));
4232
+ hide("run_report", server.registerTool(
4098
4233
  "run_report",
4099
4234
  {
4100
- 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.",
4235
+ description: "Run a QuickBooks Desktop report and get QBO-style report JSON (Header, Columns, Rows). Report names are QBO names such as ProfitAndLoss, BalanceSheet or CashFlow, plus Desktop extension reports. Params use QBO names, e.g. start_date, end_date, date_macro, accounting_method, summarize_column_by, customer, vendor, item, class, account, account_type, transaction_type, columns, report_date, start_moddate, end_moddate. BudgetOverview and BudgetVsActuals take fiscal_year instead of dates; MissingChecks requires account, and JobProfitabilityDetail and JobEstimatesVsActualsDetail require customer. ClassSales gives income by class; TransactionListWithSplits lists every split line. The payroll reports (PayrollTransactionDetail, PayrollSummary and four more) take a period only (start_date, end_date or date_macro). Read compat://entity/reports for the available reports and which params each takes.",
4101
4236
  inputSchema: {
4102
4237
  report: import_zod.z.string().describe('Report name, e.g. "ProfitAndLoss" (case-insensitive).'),
4103
4238
  params: import_zod.z.record(import_zod.z.string()).optional().describe('Query params, e.g. { "date_macro": "Last Month" }.')
@@ -4111,8 +4246,8 @@ function registerTools(server, client) {
4111
4246
  return failure(err);
4112
4247
  }
4113
4248
  }
4114
- );
4115
- server.registerTool(
4249
+ ));
4250
+ hide("get", server.registerTool(
4116
4251
  "get",
4117
4252
  {
4118
4253
  description: "Fetch one entity by Id (singletons like CompanyInfo and Preferences need no id).",
@@ -4134,8 +4269,8 @@ function registerTools(server, client) {
4134
4269
  return failure(err);
4135
4270
  }
4136
4271
  }
4137
- );
4138
- server.registerTool(
4272
+ ));
4273
+ hide("create", server.registerTool(
4139
4274
  "create",
4140
4275
  {
4141
4276
  description: "Create an entity from QBO-shaped JSON (same payloads as the QuickBooks Online API). Check compat://entity/{name} for field support first.",
@@ -4154,8 +4289,8 @@ function registerTools(server, client) {
4154
4289
  return failure(err);
4155
4290
  }
4156
4291
  }
4157
- );
4158
- server.registerTool(
4292
+ ));
4293
+ hide("update", server.registerTool(
4159
4294
  "update",
4160
4295
  {
4161
4296
  description: "Sparse-update an entity: payload must include Id plus only the fields to change.",
@@ -4177,8 +4312,8 @@ function registerTools(server, client) {
4177
4312
  return failure(err);
4178
4313
  }
4179
4314
  }
4180
- );
4181
- server.registerTool(
4315
+ ));
4316
+ hide("delete", server.registerTool(
4182
4317
  "delete",
4183
4318
  {
4184
4319
  description: "Delete an entity by Id (SyncToken optional, as in QBO).",
@@ -4198,8 +4333,8 @@ function registerTools(server, client) {
4198
4333
  return failure(err);
4199
4334
  }
4200
4335
  }
4201
- );
4202
- server.registerTool(
4336
+ ));
4337
+ hide("void", server.registerTool(
4203
4338
  "void",
4204
4339
  {
4205
4340
  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.',
@@ -4222,9 +4357,9 @@ function registerTools(server, client) {
4222
4357
  return failure(err);
4223
4358
  }
4224
4359
  }
4225
- );
4360
+ ));
4226
4361
  const CLEARED_NEEDS = "This TenkeyBridge client has no cleared status methods; upgrade @tenkeybridge/client to 0.8.0.";
4227
- server.registerTool(
4362
+ hide("set_cleared_status", server.registerTool(
4228
4363
  "set_cleared_status",
4229
4364
  {
4230
4365
  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.",
@@ -4247,8 +4382,8 @@ function registerTools(server, client) {
4247
4382
  return failure(err);
4248
4383
  }
4249
4384
  }
4250
- );
4251
- server.registerTool(
4385
+ ));
4386
+ hide("get_cleared_status", server.registerTool(
4252
4387
  "get_cleared_status",
4253
4388
  {
4254
4389
  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.",
@@ -4265,17 +4400,17 @@ function registerTools(server, client) {
4265
4400
  return failure(err);
4266
4401
  }
4267
4402
  }
4268
- );
4403
+ ));
4269
4404
  }
4270
4405
 
4271
4406
  // src/version.ts
4272
- var PKG_VERSION = "0.8.0";
4407
+ var PKG_VERSION = "0.10.0";
4273
4408
 
4274
4409
  // src/server.ts
4275
4410
  var SERVER_NAME = "tenkeybridge";
4276
- function buildServer(client) {
4411
+ function buildServer(client, access) {
4277
4412
  const server = new import_mcp2.McpServer({ name: SERVER_NAME, version: PKG_VERSION });
4278
- registerTools(server, client);
4413
+ registerTools(server, client, access);
4279
4414
  registerResources(server);
4280
4415
  return server;
4281
4416
  }
@@ -4357,6 +4492,7 @@ function persistRefreshToken(file, refreshToken) {
4357
4492
  registerResources,
4358
4493
  registerTools,
4359
4494
  resolveCatalog,
4360
- resolveEntityName
4495
+ resolveEntityName,
4496
+ toolVisible
4361
4497
  });
4362
4498
  //# sourceMappingURL=index.cjs.map