@baitong-dev/question-mcp 0.0.1 → 0.0.3

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
@@ -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.3",
4
4
  "main": "./dist/index.js",
5
5
  "bin": {
6
6
  "@baitong-dev/question-mcp": "./dist/index.js"
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@modelcontextprotocol/sdk": "^1.25.1",
20
20
  "zod": "^4.3.4",
21
- "@baitong-dev/mcp-helpers": "0.0.5"
21
+ "@baitong-dev/mcp-helpers": "0.0.6"
22
22
  },
23
23
  "devDependencies": {
24
24
  "typescript": "^5.9.2"
package/question.txt CHANGED
@@ -5,6 +5,6 @@ Use this tool when you need to ask the user questions during execution. This all
5
5
  4. Offer choices to the user about what direction to take.
6
6
 
7
7
  Usage notes:
8
- - When `custom` is enabled (default), a "Type your own answer" option is added automatically; don't include "Other" or catch-all options
8
+ - When `custom` is enabled (default: false), a "Type your own answer" option is added automatically; don't include "Other" or catch-all options
9
9
  - Answers are returned as arrays of labels; set `multiple: true` to allow selecting more than one
10
10
  - If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label