@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/dist/index.d.cts CHANGED
@@ -25,6 +25,7 @@ interface EntityAccessorLike {
25
25
  }
26
26
  type GatewayClient = Record<string, unknown> & {
27
27
  query(entity: string, opts?: QueryOptions): Promise<unknown>;
28
+ connection?(): Promise<unknown>;
28
29
  report?(name: string, params?: Record<string, string>): Promise<unknown>;
29
30
  setClearedStatus?(args: {
30
31
  TxnId: string;
@@ -97,6 +98,6 @@ declare function resolveEntityName(name: string): EntityName | undefined;
97
98
  type CatalogSummaryRow = Pick<CatalogEntry, "entity" | "verdict" | "group" | "read" | "write" | "headline" | "usage">;
98
99
  declare function catalogSummary(): CatalogSummaryRow[];
99
100
 
100
- declare const PKG_VERSION = "0.10.0";
101
+ declare const PKG_VERSION = "0.10.1";
101
102
 
102
103
  export { CATALOG, type CatalogEntry, type CatalogField, type CatalogSummaryRow, type CatalogUnsupported, type EntityAccessorLike, type GatewayClient, type McpAuth, type McpConfig, PKG_VERSION, SERVER_NAME, buildServer, catalogSummary, defaultTokenFile, loadConfig, persistRefreshToken, readStoredRefreshToken, registerResources, registerTools, resolveCatalog, resolveEntityName, toolVisible };
package/dist/index.d.ts CHANGED
@@ -25,6 +25,7 @@ interface EntityAccessorLike {
25
25
  }
26
26
  type GatewayClient = Record<string, unknown> & {
27
27
  query(entity: string, opts?: QueryOptions): Promise<unknown>;
28
+ connection?(): Promise<unknown>;
28
29
  report?(name: string, params?: Record<string, string>): Promise<unknown>;
29
30
  setClearedStatus?(args: {
30
31
  TxnId: string;
@@ -97,6 +98,6 @@ declare function resolveEntityName(name: string): EntityName | undefined;
97
98
  type CatalogSummaryRow = Pick<CatalogEntry, "entity" | "verdict" | "group" | "read" | "write" | "headline" | "usage">;
98
99
  declare function catalogSummary(): CatalogSummaryRow[];
99
100
 
100
- declare const PKG_VERSION = "0.10.0";
101
+ declare const PKG_VERSION = "0.10.1";
101
102
 
102
103
  export { CATALOG, type CatalogEntry, type CatalogField, type CatalogSummaryRow, type CatalogUnsupported, type EntityAccessorLike, type GatewayClient, type McpAuth, type McpConfig, PKG_VERSION, SERVER_NAME, buildServer, catalogSummary, defaultTokenFile, loadConfig, persistRefreshToken, readStoredRefreshToken, registerResources, registerTools, resolveCatalog, resolveEntityName, toolVisible };
package/dist/index.js CHANGED
@@ -751,6 +751,33 @@ var CATALOG = {
751
751
  }
752
752
  ]
753
753
  },
754
+ "Connection": {
755
+ "entity": "Connection",
756
+ "verdict": "live",
757
+ "group": "platform",
758
+ "read": "partial",
759
+ "write": "none",
760
+ "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.",
761
+ "usage": "GET /v3/company/{companyId}/connection",
762
+ "fields": [
763
+ {
764
+ "qbo": "Connection.online",
765
+ "support": "full",
766
+ "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."
767
+ },
768
+ {
769
+ "qbo": "Connection.transport",
770
+ "support": "full",
771
+ "note": "The leg that would serve a call now: agent, qbwc or sandbox; null when offline."
772
+ },
773
+ {
774
+ "qbo": "Connection.lastSeenAt",
775
+ "support": "partial",
776
+ "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)."
777
+ }
778
+ ],
779
+ "unsupported": []
780
+ },
754
781
  "CreditCardPayment": {
755
782
  "entity": "CreditCardPayment",
756
783
  "verdict": "gap",
@@ -4208,6 +4235,21 @@ function registerTools(server, client, access) {
4208
4235
  }
4209
4236
  }
4210
4237
  ));
4238
+ hide("get_connection", server.registerTool(
4239
+ "get_connection",
4240
+ {
4241
+ 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.",
4242
+ inputSchema: {}
4243
+ },
4244
+ async () => {
4245
+ if (!client.connection) return fail("This TenkeyBridge client has no connection() method; upgrade @tenkeybridge/client to 0.10.1.");
4246
+ try {
4247
+ return ok(await client.connection());
4248
+ } catch (err) {
4249
+ return failure(err);
4250
+ }
4251
+ }
4252
+ ));
4211
4253
  hide("get", server.registerTool(
4212
4254
  "get",
4213
4255
  {
@@ -4365,7 +4407,7 @@ function registerTools(server, client, access) {
4365
4407
  }
4366
4408
 
4367
4409
  // src/version.ts
4368
- var PKG_VERSION = "0.10.0";
4410
+ var PKG_VERSION = "0.10.1";
4369
4411
 
4370
4412
  // src/server.ts
4371
4413
  var SERVER_NAME = "tenkeybridge";