auq-mcp-server 0.1.2 → 0.1.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/README.md +46 -8
- package/dist/src/tui/components/StepperView.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,14 +61,27 @@ npx auq
|
|
|
61
61
|
|
|
62
62
|
## 🔌 MCP Server Configuration
|
|
63
63
|
|
|
64
|
-
###
|
|
64
|
+
### Cursor
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
[](https://cursor.com/en-US/install-mcp?name=ask-user-questions&config=eyJlbnYiOnt9LCJjb21tYW5kIjoibnB4IC15IGF1cS1tY3Atc2VydmVyIHNlcnZlciJ9)
|
|
67
|
+
|
|
68
|
+
### Claude Code (CLI)
|
|
69
|
+
|
|
70
|
+
**Method 1: Using CLI** (Recommended)
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
claude mcp add --transport stdio ask-user-questions -- npx -y auq-mcp-server server
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Method 2: Manual Configuration**
|
|
77
|
+
|
|
78
|
+
Add to `.mcp.json` in your project root (for team-wide sharing):
|
|
67
79
|
|
|
68
80
|
```json
|
|
69
81
|
{
|
|
70
82
|
"mcpServers": {
|
|
71
83
|
"ask-user-questions": {
|
|
84
|
+
"type": "stdio",
|
|
72
85
|
"command": "npx",
|
|
73
86
|
"args": ["-y", "auq-mcp-server", "server"]
|
|
74
87
|
}
|
|
@@ -76,25 +89,33 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
|
|
|
76
89
|
}
|
|
77
90
|
```
|
|
78
91
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
### Cursor / Other MCP Clients
|
|
92
|
+
Or add to `~/.claude.json` for global access across all projects.
|
|
82
93
|
|
|
83
|
-
|
|
94
|
+
**With environment variables:**
|
|
84
95
|
|
|
85
96
|
```json
|
|
86
97
|
{
|
|
87
98
|
"mcpServers": {
|
|
88
99
|
"ask-user-questions": {
|
|
100
|
+
"type": "stdio",
|
|
89
101
|
"command": "npx",
|
|
90
102
|
"args": ["-y", "auq-mcp-server", "server"],
|
|
91
|
-
"env": {
|
|
103
|
+
"env": {
|
|
104
|
+
"AUQ_SESSION_DIR": "${AUQ_SESSION_DIR}"
|
|
105
|
+
}
|
|
92
106
|
}
|
|
93
107
|
}
|
|
94
108
|
}
|
|
95
109
|
```
|
|
96
110
|
|
|
97
|
-
|
|
111
|
+
**Manage servers:**
|
|
112
|
+
```bash
|
|
113
|
+
claude mcp list # View all servers
|
|
114
|
+
claude mcp get ask-user-questions # Server details
|
|
115
|
+
claude mcp remove ask-user-questions # Remove server
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**Verify setup:** Type `/mcp` in Claude Code to check server status.
|
|
98
119
|
|
|
99
120
|
### Codex CLI
|
|
100
121
|
|
|
@@ -125,6 +146,23 @@ args = ["-y", "auq-mcp-server", "server"]
|
|
|
125
146
|
|
|
126
147
|
Restart Codex CLI after saving the configuration.
|
|
127
148
|
|
|
149
|
+
### Claude Desktop
|
|
150
|
+
|
|
151
|
+
Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
|
|
152
|
+
|
|
153
|
+
```json
|
|
154
|
+
{
|
|
155
|
+
"mcpServers": {
|
|
156
|
+
"ask-user-questions": {
|
|
157
|
+
"command": "npx",
|
|
158
|
+
"args": ["-y", "auq-mcp-server", "server"]
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**Restart Claude Desktop** after saving.
|
|
165
|
+
|
|
128
166
|
---
|
|
129
167
|
|
|
130
168
|
## ✨ Features
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Box, Text, useApp, useInput } from "ink";
|
|
2
2
|
import React, { useEffect, useRef, useState } from "react";
|
|
3
3
|
import { SessionManager } from "../../session/SessionManager.js";
|
|
4
|
+
import { getSessionDirectory } from "../../session/utils.js";
|
|
4
5
|
import { theme } from "../theme.js";
|
|
5
6
|
import { ConfirmationDialog } from "./ConfirmationDialog.js";
|
|
6
7
|
import { QuestionDisplay } from "./QuestionDisplay.js";
|
|
@@ -77,7 +78,7 @@ export const StepperView = ({ onComplete, sessionId, sessionRequest, }) => {
|
|
|
77
78
|
const handleConfirm = async (userAnswers) => {
|
|
78
79
|
setSubmitting(true);
|
|
79
80
|
try {
|
|
80
|
-
const sessionManager = new SessionManager();
|
|
81
|
+
const sessionManager = new SessionManager({ baseDir: getSessionDirectory() });
|
|
81
82
|
await sessionManager.saveSessionAnswers(sessionId, {
|
|
82
83
|
answers: userAnswers,
|
|
83
84
|
sessionId,
|
|
@@ -114,7 +115,7 @@ export const StepperView = ({ onComplete, sessionId, sessionRequest, }) => {
|
|
|
114
115
|
// Handle session rejection
|
|
115
116
|
const handleRejectSession = async (reason) => {
|
|
116
117
|
try {
|
|
117
|
-
const sessionManager = new SessionManager();
|
|
118
|
+
const sessionManager = new SessionManager({ baseDir: getSessionDirectory() });
|
|
118
119
|
await sessionManager.rejectSession(sessionId, reason);
|
|
119
120
|
// Call onComplete with rejection flag
|
|
120
121
|
if (onComplete) {
|