mirror of
https://github.com/Sea-Haven-Industries/sh-mcp.git
synced 2026-10-06 19:22:04 +00:00
29 lines
1.2 KiB
TypeScript
29 lines
1.2 KiB
TypeScript
|
|
/**
|
||
|
|
* @sh-mcp/qbo — QuickBooks Online tools for the sh-mcp finance tier.
|
||
|
|
*
|
||
|
|
* Exports the pre-wired tools array (using QboClientImpl, which is stubbed
|
||
|
|
* until the DEFERRED auth layer is implemented) plus the factory and types
|
||
|
|
* needed by consumers that inject their own client.
|
||
|
|
*
|
||
|
|
* The wire transport (OpenAPI / MCP) is generated from the registry in the
|
||
|
|
* server layer; this package only defines tools.
|
||
|
|
*/
|
||
|
|
|
||
|
|
export { makeSearchVendorsTool } from './tools.js';
|
||
|
|
export type { SearchVendorsInput, SearchVendorsOutput, VendorRecord } from './tools.js';
|
||
|
|
export type { QboClientInterface, QboVendor, SearchVendorsParams, SearchVendorsResult } from './client.js';
|
||
|
|
export { QboClientImpl, QboApiError, QboThrottleError } from './client.js';
|
||
|
|
|
||
|
|
import { makeSearchVendorsTool } from './tools.js';
|
||
|
|
import { QboClientImpl } from './client.js';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Default tools array wired with QboClientImpl.
|
||
|
|
*
|
||
|
|
* NOTE: QboClientImpl.searchVendors is stubbed (throws NotImplementedError)
|
||
|
|
* until the real OAuth/Secrets Manager integration is built (see client.ts
|
||
|
|
* TODO). For production use, instantiate QboClientImpl only after the
|
||
|
|
* DEFERRED auth layer is in place, or inject your own QboClientInterface.
|
||
|
|
*/
|
||
|
|
export const tools = [makeSearchVendorsTool(new QboClientImpl())];
|