@tenkeybridge/mcp 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  **MCP server for [TenkeyBridge](https://tenkeybridge.com) — give AI agents QuickBooks
4
4
  Desktop & Enterprise through the QuickBooks Online–compatible REST API.**
5
5
 
6
- Nine tools: `query`, `get`, `create`, `update`, `delete`, `void` (Invoice, SalesReceipt, Purchase, BillPayment), `run_report` (QBO-style reports), and `set_cleared_status` / `get_cleared_status` (QuickBooks Desktop cleared status), over the live API, plus a
6
+ Ten tools: `query`, `get`, `create`, `update`, `delete`, `void` (Invoice, SalesReceipt, Purchase, BillPayment), `run_report` (QBO-style reports), `get_connection` (is the file online), and `set_cleared_status` / `get_cleared_status` (QuickBooks Desktop cleared status), over the live API, plus a
7
7
  compatibility-catalog resource (`compat://catalog`, `compat://entity/{name}`) so agents
8
8
  can check entity and field support *before* calling instead of learning by 400. Errors
9
9
  come back structured (`status`, `code`, `fixes`, `docsUrl`) for self-correction.
package/dist/cli.js CHANGED
@@ -821,6 +821,33 @@ var CATALOG = {
821
821
  }
822
822
  ]
823
823
  },
824
+ "Connection": {
825
+ "entity": "Connection",
826
+ "verdict": "live",
827
+ "group": "platform",
828
+ "read": "partial",
829
+ "write": "none",
830
+ "headline": "GET /v3/company/{companyId}/connection: whether the company file is connected right now, answered from presence alone (never reaches QuickBooks). A TenkeyBridge extension; QuickBooks Online has no equivalent.",
831
+ "usage": "GET /v3/company/{companyId}/connection",
832
+ "fields": [
833
+ {
834
+ "qbo": "Connection.online",
835
+ "support": "full",
836
+ "note": "true when the agent socket is open or the Web Connector is online (a sandbox realm is always online). An offline file is a normal 200 answer with online false, never a 503."
837
+ },
838
+ {
839
+ "qbo": "Connection.transport",
840
+ "support": "full",
841
+ "note": "The leg that would serve a call now: agent, qbwc or sandbox; null when offline."
842
+ },
843
+ {
844
+ "qbo": "Connection.lastSeenAt",
845
+ "support": "partial",
846
+ "note": "Now when an agent is connected; otherwise the Web Connector's last poll time; null when no Web Connector check-in is stored (an agent-only file reads null once disconnected)."
847
+ }
848
+ ],
849
+ "unsupported": []
850
+ },
824
851
  "CreditCardPayment": {
825
852
  "entity": "CreditCardPayment",
826
853
  "verdict": "gap",
@@ -4278,6 +4305,21 @@ function registerTools(server, client, access) {
4278
4305
  }
4279
4306
  }
4280
4307
  ));
4308
+ hide("get_connection", server.registerTool(
4309
+ "get_connection",
4310
+ {
4311
+ description: "Check whether the QuickBooks company file is reachable right now: { online, transport (agent, qbwc, sandbox or null), lastSeenAt }. An offline file answers online false, not an error. For a Web Connector file lastSeenAt is the last stored check-in and can be null or slightly behind while online is true. Costs no QuickBooks round trip.",
4312
+ inputSchema: {}
4313
+ },
4314
+ async () => {
4315
+ if (!client.connection) return fail("This TenkeyBridge client has no connection() method; upgrade @tenkeybridge/client to 0.10.1.");
4316
+ try {
4317
+ return ok(await client.connection());
4318
+ } catch (err) {
4319
+ return failure(err);
4320
+ }
4321
+ }
4322
+ ));
4281
4323
  hide("get", server.registerTool(
4282
4324
  "get",
4283
4325
  {
@@ -4435,7 +4477,7 @@ function registerTools(server, client, access) {
4435
4477
  }
4436
4478
 
4437
4479
  // src/version.ts
4438
- var PKG_VERSION = "0.10.0";
4480
+ var PKG_VERSION = "0.10.1";
4439
4481
 
4440
4482
  // src/server.ts
4441
4483
  var SERVER_NAME = "tenkeybridge";