@loadmill/mcp 0.0.2-rc.1 → 0.0.2-rc.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/index.js CHANGED
@@ -1,19 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const node_util_1 = tslib_1.__importDefault(require("node:util"));
5
3
  const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
6
4
  const mcp_server_1 = require("./mcp-server");
7
5
  const transport = new stdio_js_1.StdioServerTransport();
8
6
  transport.onmessage = async (message) => {
9
- const output = 'Loadmill MCP:\n' +
10
- node_util_1.default.inspect(message, { depth: null, colors: false });
11
- process.stderr.write(output + '\n'); // one write, one `[warning]` block
7
+ // eslint-disable-next-line no-console
8
+ console.error('Loadmill MCP:\n' + JSON.stringify(message, null, 2));
12
9
  };
13
10
  transport.onerror = async (error) => {
14
- const output = 'Loadmill MCP Error:\n' +
15
- node_util_1.default.inspect(error, { depth: null, colors: false });
16
- process.stderr.write(output + '\n'); // one write, one `[warning]` block
11
+ // eslint-disable-next-line no-console
12
+ console.error('Loadmill MCP Error:\n' + JSON.stringify(error, null, 2));
17
13
  };
18
14
  exports.default = async () => {
19
15
  await mcp_server_1.mcpServer.connect(transport);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,kEAA6B;AAE7B,wEAAiF;AACjF,6CAAyC;AAEzC,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;AAE7C,SAAS,CAAC,SAAS,GAAG,KAAK,EAAE,OAAO,EAAE,EAAE;IACtC,MAAM,MAAM,GACV,iBAAiB;QACjB,mBAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IACxD,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name": "@loadmill/mcp",
3
- "version": "0.0.2-rc.1",
3
+ "version": "0.0.2-rc.2",
4
4
  "description": "Loadmill mcp library",
5
5
  "main": "dist/",
6
6
  "module": "src/",
@@ -17,9 +17,6 @@
17
17
  "node": ">=18.0.0"
18
18
  },
19
19
  "license": "Apache-2.0",
20
- "devDependencies": {
21
- "@types/node": "18.11.9"
22
- },
23
20
  "dependencies": {
24
21
  "@modelcontextprotocol/sdk": "^1.17.2",
25
22
  "superagent": "^10.0.1"