@baitong-dev/question-mcp 0.0.1 → 0.0.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ const zod_1 = __importDefault(require("zod"));
9
9
  const question_txt_1 = __importDefault(require("../question.txt"));
10
10
  const mcp_helpers_1 = require("@baitong-dev/mcp-helpers");
11
11
  const MCP_NAME = 'Question MCP';
12
- const MCP_VERSION = '0.0.1';
12
+ const MCP_VERSION = '0.0.2';
13
13
  const server = new mcp_js_1.McpServer({
14
14
  name: MCP_NAME,
15
15
  version: MCP_VERSION
@@ -28,7 +28,7 @@ server.registerTool('question', {
28
28
  }, async (args, extra) => {
29
29
  const result = await question.ask(args.questions, args.toolInfo, extra);
30
30
  return {
31
- content: [{ type: 'text', text: JSON.stringify(result) }],
31
+ content: [{ type: 'text', text: result.output }],
32
32
  structuredContent: result
33
33
  };
34
34
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baitong-dev/question-mcp",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "main": "./dist/index.js",
5
5
  "bin": {
6
6
  "@baitong-dev/question-mcp": "./dist/index.js"