bimp-mcp 0.2.1 → 0.2.2

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/client.js CHANGED
@@ -1,3 +1,8 @@
1
+ import nodeFetch from "node-fetch";
2
+ function _fetch(url, init) {
3
+ const fn = typeof globalThis.fetch === "function" ? globalThis.fetch : nodeFetch;
4
+ return fn(url, init);
5
+ }
1
6
  export class BimpClient {
2
7
  config;
3
8
  tokens = null;
@@ -151,7 +156,7 @@ export class BimpClient {
151
156
  const timer = setTimeout(() => controller.abort(), timeoutMs);
152
157
  fetchOptions.signal = controller.signal;
153
158
  try {
154
- return await fetch(url, fetchOptions);
159
+ return await _fetch(url, fetchOptions);
155
160
  }
156
161
  finally {
157
162
  clearTimeout(timer);
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ for (const tool of generatedTools) {
28
28
  }
29
29
  const utilityTools = createUtilityTools(client, toolMap);
30
30
  const nomenclaturesTools = createNomenclaturesTools(client);
31
- const server = new McpServer({ name: "bimp-mcp", version: "0.2.0" }, { capabilities: { logging: {} } });
31
+ const server = new McpServer({ name: "bimp-mcp", version: "0.2.2" }, { capabilities: { logging: {} } });
32
32
  // Register prompts via McpServer (uses Zod, type-safe)
33
33
  for (const [name, prompt] of Object.entries(PROMPT_TEXTS)) {
34
34
  server.registerPrompt(name, { description: prompt.description }, () => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bimp-mcp",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "MCP server for BIMP ERP API — ~140 tools dynamically generated from OpenAPI spec, plus planning/accounting fields and bulk operations",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -39,6 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@modelcontextprotocol/sdk": "^1.12.0",
42
+ "node-fetch": "^3.3.2",
42
43
  "zod": "^3.25.0"
43
44
  },
44
45
  "devDependencies": {