@centry-digital/bukku-mcp 1.1.0 → 2.0.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.
Files changed (109) hide show
  1. package/build/config/env.d.ts +1 -0
  2. package/build/config/env.d.ts.map +1 -0
  3. package/build/config/env.js +2 -1
  4. package/build/index.d.ts +1 -0
  5. package/build/index.d.ts.map +1 -0
  6. package/build/index.js +1813 -44
  7. package/build/tools/custom/account-tools.d.ts +2 -1
  8. package/build/tools/custom/account-tools.d.ts.map +1 -0
  9. package/build/tools/custom/account-tools.js +2 -2
  10. package/build/tools/custom/contact-archive.d.ts +2 -1
  11. package/build/tools/custom/contact-archive.d.ts.map +1 -0
  12. package/build/tools/custom/contact-archive.js +2 -2
  13. package/build/tools/custom/control-panel-archive.d.ts +2 -1
  14. package/build/tools/custom/control-panel-archive.d.ts.map +1 -0
  15. package/build/tools/custom/control-panel-archive.js +2 -2
  16. package/build/tools/custom/file-upload.d.ts +2 -1
  17. package/build/tools/custom/file-upload.d.ts.map +1 -0
  18. package/build/tools/custom/file-upload.js +2 -2
  19. package/build/tools/custom/journal-entry-tools.d.ts +2 -1
  20. package/build/tools/custom/journal-entry-tools.d.ts.map +1 -0
  21. package/build/tools/custom/journal-entry-tools.js +2 -3
  22. package/build/tools/custom/location-tools.d.ts +2 -1
  23. package/build/tools/custom/location-tools.d.ts.map +1 -0
  24. package/build/tools/custom/location-tools.js +2 -2
  25. package/build/tools/custom/product-archive.d.ts +2 -1
  26. package/build/tools/custom/product-archive.d.ts.map +1 -0
  27. package/build/tools/custom/product-archive.js +2 -2
  28. package/build/tools/custom/reference-data.d.ts +3 -2
  29. package/build/tools/custom/reference-data.d.ts.map +1 -0
  30. package/build/tools/custom/reference-data.js +2 -2
  31. package/build/tools/factory.d.ts +2 -2
  32. package/build/tools/factory.d.ts.map +1 -0
  33. package/build/tools/factory.js +2 -2
  34. package/build/tools/registry.d.ts +2 -1
  35. package/build/tools/registry.d.ts.map +1 -0
  36. package/build/tools/registry.js +3 -41
  37. package/package.json +9 -22
  38. package/LICENSE +0 -21
  39. package/README.md +0 -269
  40. package/build/client/bukku-client.d.ts +0 -62
  41. package/build/client/bukku-client.js +0 -195
  42. package/build/errors/transform.d.ts +0 -14
  43. package/build/errors/transform.js +0 -141
  44. package/build/errors/transform.test.d.ts +0 -1
  45. package/build/errors/transform.test.js +0 -101
  46. package/build/tools/cache/reference-cache.d.ts +0 -42
  47. package/build/tools/cache/reference-cache.js +0 -63
  48. package/build/tools/configs/account.d.ts +0 -17
  49. package/build/tools/configs/account.js +0 -28
  50. package/build/tools/configs/bank-money-in.d.ts +0 -10
  51. package/build/tools/configs/bank-money-in.js +0 -22
  52. package/build/tools/configs/bank-money-out.d.ts +0 -10
  53. package/build/tools/configs/bank-money-out.js +0 -22
  54. package/build/tools/configs/bank-transfer.d.ts +0 -11
  55. package/build/tools/configs/bank-transfer.js +0 -23
  56. package/build/tools/configs/contact-group.d.ts +0 -11
  57. package/build/tools/configs/contact-group.js +0 -19
  58. package/build/tools/configs/contact.d.ts +0 -14
  59. package/build/tools/configs/contact.js +0 -25
  60. package/build/tools/configs/delivery-order.d.ts +0 -8
  61. package/build/tools/configs/delivery-order.js +0 -20
  62. package/build/tools/configs/file.d.ts +0 -18
  63. package/build/tools/configs/file.js +0 -26
  64. package/build/tools/configs/goods-received-note.d.ts +0 -8
  65. package/build/tools/configs/goods-received-note.js +0 -20
  66. package/build/tools/configs/journal-entry.d.ts +0 -14
  67. package/build/tools/configs/journal-entry.js +0 -26
  68. package/build/tools/configs/location.d.ts +0 -20
  69. package/build/tools/configs/location.js +0 -28
  70. package/build/tools/configs/product-bundle.d.ts +0 -18
  71. package/build/tools/configs/product-bundle.js +0 -29
  72. package/build/tools/configs/product-group.d.ts +0 -14
  73. package/build/tools/configs/product-group.js +0 -22
  74. package/build/tools/configs/product.d.ts +0 -24
  75. package/build/tools/configs/product.js +0 -35
  76. package/build/tools/configs/purchase-bill.d.ts +0 -9
  77. package/build/tools/configs/purchase-bill.js +0 -21
  78. package/build/tools/configs/purchase-credit-note.d.ts +0 -8
  79. package/build/tools/configs/purchase-credit-note.js +0 -20
  80. package/build/tools/configs/purchase-order.d.ts +0 -8
  81. package/build/tools/configs/purchase-order.js +0 -20
  82. package/build/tools/configs/purchase-payment.d.ts +0 -8
  83. package/build/tools/configs/purchase-payment.js +0 -20
  84. package/build/tools/configs/purchase-refund.d.ts +0 -8
  85. package/build/tools/configs/purchase-refund.js +0 -20
  86. package/build/tools/configs/sales-credit-note.d.ts +0 -8
  87. package/build/tools/configs/sales-credit-note.js +0 -20
  88. package/build/tools/configs/sales-invoice.d.ts +0 -8
  89. package/build/tools/configs/sales-invoice.js +0 -20
  90. package/build/tools/configs/sales-order.d.ts +0 -8
  91. package/build/tools/configs/sales-order.js +0 -20
  92. package/build/tools/configs/sales-payment.d.ts +0 -8
  93. package/build/tools/configs/sales-payment.js +0 -20
  94. package/build/tools/configs/sales-quote.d.ts +0 -8
  95. package/build/tools/configs/sales-quote.js +0 -20
  96. package/build/tools/configs/sales-refund.d.ts +0 -8
  97. package/build/tools/configs/sales-refund.js +0 -20
  98. package/build/tools/configs/tag-group.d.ts +0 -11
  99. package/build/tools/configs/tag-group.js +0 -22
  100. package/build/tools/configs/tag.d.ts +0 -11
  101. package/build/tools/configs/tag.js +0 -22
  102. package/build/tools/validation/double-entry.d.ts +0 -46
  103. package/build/tools/validation/double-entry.js +0 -66
  104. package/build/types/api-responses.d.ts +0 -21
  105. package/build/types/api-responses.js +0 -6
  106. package/build/types/bukku.d.ts +0 -93
  107. package/build/types/bukku.js +0 -11
  108. package/build/utils/logger.d.ts +0 -6
  109. package/build/utils/logger.js +0 -8
@@ -1,5 +1,5 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import type { BukkuClient } from "../../client/bukku-client.js";
2
+ import type { BukkuClient } from 'core';
3
3
  /**
4
4
  * Custom Account Tools
5
5
  *
@@ -19,3 +19,4 @@ import type { BukkuClient } from "../../client/bukku-client.js";
19
19
  * @returns Number of tools registered (always 3)
20
20
  */
21
21
  export declare function registerAccountCustomTools(server: McpServer, client: BukkuClient): number;
22
+ //# sourceMappingURL=account-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-tools.d.ts","sourceRoot":"","sources":["../../../src/tools/custom/account-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAKxC;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,WAAW,GAClB,MAAM,CAkHR"}
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- import { transformHttpError, transformNetworkError } from "../../errors/transform.js";
3
- import { log } from "../../utils/logger.js";
2
+ import { transformHttpError, transformNetworkError, createLogger } from 'core';
3
+ const log = createLogger('bukku-mcp');
4
4
  /**
5
5
  * Custom Account Tools
6
6
  *
@@ -1,5 +1,5 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import type { BukkuClient } from "../../client/bukku-client.js";
2
+ import type { BukkuClient } from 'core';
3
3
  /**
4
4
  * Custom Contact Archive/Unarchive Tools
5
5
  *
@@ -15,3 +15,4 @@ import type { BukkuClient } from "../../client/bukku-client.js";
15
15
  * @returns Number of tools registered (always 2)
16
16
  */
17
17
  export declare function registerContactArchiveTools(server: McpServer, client: BukkuClient): number;
18
+ //# sourceMappingURL=contact-archive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact-archive.d.ts","sourceRoot":"","sources":["../../../src/tools/custom/contact-archive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAKxC;;;;;;GAMG;AAEH;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,WAAW,GAClB,MAAM,CAgER"}
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- import { transformHttpError, transformNetworkError } from "../../errors/transform.js";
3
- import { log } from "../../utils/logger.js";
2
+ import { transformHttpError, transformNetworkError, createLogger } from 'core';
3
+ const log = createLogger('bukku-mcp');
4
4
  /**
5
5
  * Custom Contact Archive/Unarchive Tools
6
6
  *
@@ -1,5 +1,5 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import type { BukkuClient } from "../../client/bukku-client.js";
2
+ import type { BukkuClient } from 'core';
3
3
  /**
4
4
  * Custom Control Panel Archive/Unarchive Tools
5
5
  *
@@ -15,3 +15,4 @@ import type { BukkuClient } from "../../client/bukku-client.js";
15
15
  * @returns Number of tools registered (always 2)
16
16
  */
17
17
  export declare function registerControlPanelArchiveTools(server: McpServer, client: BukkuClient): number;
18
+ //# sourceMappingURL=control-panel-archive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-panel-archive.d.ts","sourceRoot":"","sources":["../../../src/tools/custom/control-panel-archive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAKxC;;;;;;GAMG;AAEH;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,WAAW,GAClB,MAAM,CAgER"}
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- import { transformHttpError, transformNetworkError } from "../../errors/transform.js";
3
- import { log } from "../../utils/logger.js";
2
+ import { transformHttpError, transformNetworkError, createLogger } from 'core';
3
+ const log = createLogger('bukku-mcp');
4
4
  /**
5
5
  * Custom Control Panel Archive/Unarchive Tools
6
6
  *
@@ -1,5 +1,5 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import type { BukkuClient } from "../../client/bukku-client.js";
2
+ import type { BukkuClient } from 'core';
3
3
  /**
4
4
  * Custom File Upload Tool
5
5
  *
@@ -15,3 +15,4 @@ import type { BukkuClient } from "../../client/bukku-client.js";
15
15
  * @returns Number of tools registered (always 1)
16
16
  */
17
17
  export declare function registerFileUploadTool(server: McpServer, client: BukkuClient): number;
18
+ //# sourceMappingURL=file-upload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload.d.ts","sourceRoot":"","sources":["../../../src/tools/custom/file-upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAKxC;;;;;;GAMG;AAEH;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,WAAW,GAClB,MAAM,CA8BR"}
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- import { transformHttpError, transformNetworkError } from "../../errors/transform.js";
3
- import { log } from "../../utils/logger.js";
2
+ import { transformHttpError, transformNetworkError, createLogger } from 'core';
3
+ const log = createLogger('bukku-mcp');
4
4
  /**
5
5
  * Custom File Upload Tool
6
6
  *
@@ -1,5 +1,5 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import type { BukkuClient } from "../../client/bukku-client.js";
2
+ import type { BukkuClient } from 'core';
3
3
  /**
4
4
  * Custom Journal Entry Tools
5
5
  *
@@ -18,3 +18,4 @@ import type { BukkuClient } from "../../client/bukku-client.js";
18
18
  * @returns Number of tools registered (always 2)
19
19
  */
20
20
  export declare function registerJournalEntryTools(server: McpServer, client: BukkuClient): number;
21
+ //# sourceMappingURL=journal-entry-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"journal-entry-tools.d.ts","sourceRoot":"","sources":["../../../src/tools/custom/journal-entry-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAKxC;;;;;;;;;GASG;AAEH;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,WAAW,GAClB,MAAM,CAqGR"}
@@ -1,7 +1,6 @@
1
1
  import { z } from "zod";
2
- import { transformHttpError, transformNetworkError } from "../../errors/transform.js";
3
- import { log } from "../../utils/logger.js";
4
- import { validateDoubleEntry } from "../validation/double-entry.js";
2
+ import { transformHttpError, transformNetworkError, createLogger, validateDoubleEntry } from 'core';
3
+ const log = createLogger('bukku-mcp');
5
4
  /**
6
5
  * Custom Journal Entry Tools
7
6
  *
@@ -1,5 +1,5 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import type { BukkuClient } from "../../client/bukku-client.js";
2
+ import type { BukkuClient } from 'core';
3
3
  /**
4
4
  * Custom Location Tools for Get, Update, and Delete Operations
5
5
  *
@@ -18,3 +18,4 @@ import type { BukkuClient } from "../../client/bukku-client.js";
18
18
  * @returns Number of tools registered (always 3)
19
19
  */
20
20
  export declare function registerLocationTools(server: McpServer, client: BukkuClient): number;
21
+ //# sourceMappingURL=location-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-tools.d.ts","sourceRoot":"","sources":["../../../src/tools/custom/location-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAKxC;;;;;;;;;GASG;AAEH;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,WAAW,GAClB,MAAM,CA0FR"}
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- import { transformHttpError, transformNetworkError } from "../../errors/transform.js";
3
- import { log } from "../../utils/logger.js";
2
+ import { transformHttpError, transformNetworkError, createLogger } from 'core';
3
+ const log = createLogger('bukku-mcp');
4
4
  /**
5
5
  * Custom Location Tools for Get, Update, and Delete Operations
6
6
  *
@@ -1,5 +1,5 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import type { BukkuClient } from "../../client/bukku-client.js";
2
+ import type { BukkuClient } from 'core';
3
3
  /**
4
4
  * Custom Product Archive/Unarchive Tools
5
5
  *
@@ -15,3 +15,4 @@ import type { BukkuClient } from "../../client/bukku-client.js";
15
15
  * @returns Number of tools registered (always 4)
16
16
  */
17
17
  export declare function registerProductArchiveTools(server: McpServer, client: BukkuClient): number;
18
+ //# sourceMappingURL=product-archive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-archive.d.ts","sourceRoot":"","sources":["../../../src/tools/custom/product-archive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAKxC;;;;;;GAMG;AAEH;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,WAAW,GAClB,MAAM,CA8HR"}
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- import { transformHttpError, transformNetworkError } from "../../errors/transform.js";
3
- import { log } from "../../utils/logger.js";
2
+ import { transformHttpError, transformNetworkError, createLogger } from 'core';
3
+ const log = createLogger('bukku-mcp');
4
4
  /**
5
5
  * Custom Product Archive/Unarchive Tools
6
6
  *
@@ -9,8 +9,8 @@
9
9
  * There are NO separate CRUD endpoints for these entity types.
10
10
  */
11
11
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
12
- import type { BukkuClient } from "../../client/bukku-client.js";
13
- import type { ReferenceDataCache } from "../cache/reference-cache.js";
12
+ import type { BukkuClient } from 'core';
13
+ import type { ReferenceDataCache } from 'core';
14
14
  /**
15
15
  * Register all reference data list tools
16
16
  * @param server MCP server instance
@@ -19,3 +19,4 @@ import type { ReferenceDataCache } from "../cache/reference-cache.js";
19
19
  * @returns Number of tools registered
20
20
  */
21
21
  export declare function registerReferenceDataTools(server: McpServer, client: BukkuClient, cache: ReferenceDataCache): number;
22
+ //# sourceMappingURL=reference-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reference-data.d.ts","sourceRoot":"","sources":["../../../src/tools/custom/reference-data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AA6D/C;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,kBAAkB,GACxB,MAAM,CAyCR"}
@@ -8,8 +8,8 @@
8
8
  * IMPORTANT: The Bukku API only provides a READ endpoint for reference data.
9
9
  * There are NO separate CRUD endpoints for these entity types.
10
10
  */
11
- import { transformHttpError, transformNetworkError } from "../../errors/transform.js";
12
- import { log } from "../../utils/logger.js";
11
+ import { transformHttpError, transformNetworkError, createLogger } from 'core';
12
+ const log = createLogger('bukku-mcp');
13
13
  /**
14
14
  * Reference data types available from POST /v2/lists endpoint
15
15
  */
@@ -1,6 +1,5 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import type { BukkuClient } from "../client/bukku-client.js";
3
- import type { CrudEntityConfig } from "../types/bukku.js";
2
+ import type { BukkuClient, CrudEntityConfig } from 'core';
4
3
  /**
5
4
  * CRUD Factory Pattern
6
5
  *
@@ -24,3 +23,4 @@ import type { CrudEntityConfig } from "../types/bukku.js";
24
23
  * @returns Number of tools registered
25
24
  */
26
25
  export declare function registerCrudTools(server: McpServer, client: BukkuClient, config: CrudEntityConfig): number;
26
+ //# sourceMappingURL=factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/tools/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAK1D;;;;;;;;;;;;;GAaG;AAEH;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,gBAAgB,GACvB,MAAM,CA6OR"}
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- import { transformHttpError, transformNetworkError } from "../errors/transform.js";
3
- import { log } from "../utils/logger.js";
2
+ import { transformHttpError, transformNetworkError, createLogger } from 'core';
3
+ const log = createLogger('bukku-mcp');
4
4
  /**
5
5
  * CRUD Factory Pattern
6
6
  *
@@ -1,5 +1,5 @@
1
1
  import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import type { BukkuClient } from "../client/bukku-client.js";
2
+ import type { BukkuClient } from 'core';
3
3
  /**
4
4
  * Tool Registry
5
5
  *
@@ -20,3 +20,4 @@ import type { BukkuClient } from "../client/bukku-client.js";
20
20
  * @returns Number of tools registered
21
21
  */
22
22
  export declare function registerAllTools(server: McpServer, client: BukkuClient): number;
23
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/tools/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AA4BxC;;;;;;;;;;;GAWG;AAEH;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,GAAG,MAAM,CAyF/E"}
@@ -1,53 +1,15 @@
1
1
  import { registerCrudTools } from "./factory.js";
2
- // Sales entities (Phase 2)
3
- import { salesQuoteConfig } from "./configs/sales-quote.js";
4
- import { salesOrderConfig } from "./configs/sales-order.js";
5
- import { deliveryOrderConfig } from "./configs/delivery-order.js";
6
- import { salesInvoiceConfig } from "./configs/sales-invoice.js";
7
- import { salesCreditNoteConfig } from "./configs/sales-credit-note.js";
8
- import { salesPaymentConfig } from "./configs/sales-payment.js";
9
- import { salesRefundConfig } from "./configs/sales-refund.js";
10
- // Purchase entities (Phase 3)
11
- import { purchaseOrderConfig } from "./configs/purchase-order.js";
12
- import { goodsReceivedNoteConfig } from "./configs/goods-received-note.js";
13
- import { purchaseBillConfig } from "./configs/purchase-bill.js";
14
- import { purchaseCreditNoteConfig } from "./configs/purchase-credit-note.js";
15
- import { purchasePaymentConfig } from "./configs/purchase-payment.js";
16
- import { purchaseRefundConfig } from "./configs/purchase-refund.js";
17
- // Banking entities (Phase 4)
18
- import { bankMoneyInConfig } from "./configs/bank-money-in.js";
19
- import { bankMoneyOutConfig } from "./configs/bank-money-out.js";
20
- import { bankTransferConfig } from "./configs/bank-transfer.js";
21
- // Contact entities (Phase 4)
22
- import { contactConfig } from "./configs/contact.js";
23
- import { contactGroupConfig } from "./configs/contact-group.js";
24
- // Product entities (Phase 5)
25
- import { productConfig } from "./configs/product.js";
26
- import { productBundleConfig } from "./configs/product-bundle.js";
27
- import { productGroupConfig } from "./configs/product-group.js";
28
- // Accounting entities (Phase 6)
29
- import { journalEntryConfig } from "./configs/journal-entry.js";
30
- import { accountConfig } from "./configs/account.js";
31
- // File entities (Phase 7)
32
- import { fileConfig } from "./configs/file.js";
33
- // Control panel entities (Phase 7)
34
- import { locationConfig } from "./configs/location.js";
35
- import { tagConfig } from "./configs/tag.js";
36
- import { tagGroupConfig } from "./configs/tag-group.js";
37
- // Custom tools (Phase 4)
2
+ // All entity configs from core
3
+ import { salesQuoteConfig, salesOrderConfig, deliveryOrderConfig, salesInvoiceConfig, salesCreditNoteConfig, salesPaymentConfig, salesRefundConfig, purchaseOrderConfig, goodsReceivedNoteConfig, purchaseBillConfig, purchaseCreditNoteConfig, purchasePaymentConfig, purchaseRefundConfig, bankMoneyInConfig, bankMoneyOutConfig, bankTransferConfig, contactConfig, contactGroupConfig, productConfig, productBundleConfig, productGroupConfig, journalEntryConfig, accountConfig, fileConfig, locationConfig, tagConfig, tagGroupConfig, ReferenceDataCache, } from 'core';
4
+ // Custom tools (local within mcp)
38
5
  import { registerContactArchiveTools } from "./custom/contact-archive.js";
39
- // Custom tools (Phase 5)
40
6
  import { registerProductArchiveTools } from "./custom/product-archive.js";
41
7
  import { registerReferenceDataTools } from "./custom/reference-data.js";
42
- // Custom tools (Phase 6)
43
8
  import { registerJournalEntryTools } from "./custom/journal-entry-tools.js";
44
9
  import { registerAccountCustomTools } from "./custom/account-tools.js";
45
- // Custom tools (Phase 7)
46
10
  import { registerFileUploadTool } from "./custom/file-upload.js";
47
11
  import { registerLocationTools } from "./custom/location-tools.js";
48
12
  import { registerControlPanelArchiveTools } from "./custom/control-panel-archive.js";
49
- // Cache (Phase 5)
50
- import { ReferenceDataCache } from "./cache/reference-cache.js";
51
13
  /**
52
14
  * Tool Registry
53
15
  *
package/package.json CHANGED
@@ -1,41 +1,32 @@
1
1
  {
2
2
  "name": "@centry-digital/bukku-mcp",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "Bukku accounting API tools for Claude via Model Context Protocol",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
7
7
  "bin": {
8
8
  "bukku-mcp": "build/index.js"
9
9
  },
10
+ "files": ["build/", "LICENSE", "README.md"],
10
11
  "scripts": {
11
- "build": "tsc",
12
- "start": "node build/index.js",
13
- "test": "node --test --experimental-strip-types 'src/**/*.test.ts'",
14
- "prepublishOnly": "npm run build && npm test",
15
- "prepack": "npm run build"
12
+ "build": "tsc --build"
16
13
  },
17
14
  "keywords": [
18
- "mcp",
19
- "bukku",
20
- "accounting",
21
- "claude",
22
- "anthropic",
23
- "api",
24
- "bookkeeping",
25
- "invoicing"
15
+ "mcp", "bukku", "accounting", "claude",
16
+ "anthropic", "api", "bookkeeping", "invoicing"
26
17
  ],
27
18
  "author": "Centry Digital",
28
19
  "license": "MIT",
29
20
  "repository": {
30
21
  "type": "git",
31
- "url": "https://github.com/centry-digital/bukku-mcp.git"
22
+ "url": "https://github.com/centry-digital/bukku.git"
32
23
  },
33
- "homepage": "https://github.com/centry-digital/bukku-mcp",
24
+ "homepage": "https://github.com/centry-digital/bukku",
34
25
  "bugs": {
35
- "url": "https://github.com/centry-digital/bukku-mcp/issues"
26
+ "url": "https://github.com/centry-digital/bukku/issues"
36
27
  },
37
28
  "engines": {
38
- "node": ">=18.0.0"
29
+ "node": ">=20.0.0"
39
30
  },
40
31
  "publishConfig": {
41
32
  "access": "public"
@@ -43,9 +34,5 @@
43
34
  "dependencies": {
44
35
  "@modelcontextprotocol/sdk": "^1.26.0",
45
36
  "zod": "^4.3.6"
46
- },
47
- "devDependencies": {
48
- "@types/node": "^25.2.1",
49
- "typescript": "^5.9.3"
50
37
  }
51
38
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Centry Digital Sdn. Bhd.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.