auq-mcp-server 0.1.1 → 0.1.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/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  ## What does it do?
14
14
 
15
- Through the MCP server, your LLM can generate question sets consisting of multiple-choice, single-choice, and free-text questions (with an "Other" option for custom input) while coding or working, and wait for your answers.
15
+ Through this MCP server, your LLM can generate question sets consisting of multiple-choice, single-choice, and free-text questions (with an "Other" option for custom input) while coding or working, and wait for your answers.
16
16
 
17
17
  You can keep the `auq` CLI running in advance, or start it when questions are pending. With simple arrow key navigation, you can select answers and send them back to the AI—all within a clean terminal interface.
18
18
 
@@ -68,7 +68,7 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
68
68
  ```json
69
69
  {
70
70
  "mcpServers": {
71
- "auq": {
71
+ "ask-user-questions": {
72
72
  "command": "npx",
73
73
  "args": ["-y", "auq-mcp-server", "server"]
74
74
  }
@@ -85,7 +85,7 @@ Add to `.mcp.json` in your project root:
85
85
  ```json
86
86
  {
87
87
  "mcpServers": {
88
- "auq": {
88
+ "ask-user-questions": {
89
89
  "command": "npx",
90
90
  "args": ["-y", "auq-mcp-server", "server"],
91
91
  "env": {}
@@ -96,6 +96,35 @@ Add to `.mcp.json` in your project root:
96
96
 
97
97
  Restart your client after configuration.
98
98
 
99
+ ### Codex CLI
100
+
101
+ Add to `~/.codex/config.toml`:
102
+
103
+ ```toml
104
+ [mcp_servers.ask-user-questions]
105
+ command = "npx"
106
+ args = ["-y", "auq-mcp-server", "server"]
107
+ ```
108
+
109
+ **Full configuration example** (with optional settings):
110
+
111
+ ```toml
112
+ [mcp_servers.ask-user-questions]
113
+ command = "npx"
114
+ args = ["-y", "auq-mcp-server", "server"]
115
+
116
+ # Optional: Additional environment variables
117
+ # env = { "AUQ_SESSION_DIR" = "/custom/path" }
118
+
119
+ # Optional: Whitelist additional env vars
120
+ # env_vars = ["AUQ_SESSION_DIR"]
121
+
122
+ # Optional: Working directory
123
+ # cwd = "/Users/<user>/projects"
124
+ ```
125
+
126
+ Restart Codex CLI after saving the configuration.
127
+
99
128
  ---
100
129
 
101
130
  ## ✨ Features
package/dist/bin/auq.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { exec } from "child_process";
3
2
  import { readFileSync } from "fs";
4
3
  import { dirname, join } from "path";
5
4
  import { fileURLToPath } from "url";
@@ -54,26 +53,10 @@ if (command === "--version" || command === "-v") {
54
53
  }
55
54
  // Handle 'server' command
56
55
  if (command === "server") {
57
- console.log("Starting MCP server...");
58
- const serverProcess = exec("node dist/src/server.js", (error, stdout, stderr) => {
59
- if (error) {
60
- console.error(`Error starting server: ${error.message}`);
61
- process.exit(1);
62
- }
63
- if (stderr) {
64
- console.error(stderr);
65
- }
66
- console.log(stdout);
67
- });
68
- // Forward signals
69
- process.on("SIGINT", () => {
70
- serverProcess.kill("SIGINT");
71
- process.exit(0);
72
- });
73
- process.on("SIGTERM", () => {
74
- serverProcess.kill("SIGTERM");
75
- process.exit(0);
76
- });
56
+ // Import and start the MCP server directly
57
+ // This avoids spawning a subprocess and outputting non-JSON to stdout
58
+ await import("../src/server.js");
59
+ // The server will start and handle stdio communication
77
60
  // Keep process alive
78
61
  await new Promise(() => { });
79
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auq-mcp-server",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "auq": "dist/bin/auq.js"