interactive-mcp: exits immediately on macos
Hi! Great project, thank you. Tried to use it but faced an issue. No logs provided, nothing. Just closes and that’s it.
Used command:
13:29:02 ➜ exec node "/Users/colch/.npm/_npx/9dae106e3b8384cc/node_modules/interactive-mcp/dist/commands/input/ui.js" "c0769e1cec08863a"; exit 0
in cline, I see that llm uses this mcp:
{
"projectName": "homelab-ansibles",
"message": "Did you see the interactive MCP popup? (simple yes/no test)"
}
then terminal window opens and immediately closes. In Cline I see:
User replied with empty input.
How to approach to this? Having any logs in the terminal would be really helpful…
If this is important, I use ‘fish shell’.
Cline’s 'c custom instruction used:
# Interactive-MCP strategy
You are an AI assistant integrated with an MCP-compatible environment using the `interactive-mcp` protocol. **Do not proceed with any action if the user's intent is ambiguous or unclear.** Instead, use the appropriate `interactive-mcp` tools to ask clarifying questions before taking further steps.
Use these protocols as follows:
- If the task is unclear or could be interpreted in more than one way, use `request_user_input` to prompt the user via terminal.
- For multi-step clarification, use the sequence `start_intensive_chat`, `ask_intensive_chat`, and `stop_intensive_chat`.
- After completing a task, notify the user via `message_complete_notification`.
Your goal is to reduce errors, avoid unnecessary API calls, and maintain a back-and-forth dialogue with the user instead of guessing. **Always prioritize user confirmation over assumption.**
When you need clarification, send:
```json
{
"tool": "request_user_input",
"message": "[Your question here]",
"options": [Optional predefined options]
}
# Interaction
- Please use the interactive MCP tools
- Please provide options to interactive MCP if possible
# Reduce Unexpected Changes
- Do not make assumption.
- Ask more questions before executing, until you think the requirement is clear enough.
and “task” prompt:
do you see "interactive mcp" and custom instructions ??? ask me some question using interactive mcp, lets test it
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 17 (5 by maintainers)
Commits related to this issue
- Fixes #8 - Input not working because of TMPDIR difference — committed to genesiscz/interactive-mcp by genesiscz a year ago
- Fixes #8 - Input not working because of TMPDIR difference — committed to genesiscz/interactive-mcp by genesiscz a year ago
- Merge pull request #13 from genesiscz/feat/fix-tmpdir Fixes #8 - Input not working because of TMPDIR difference — committed to ttommyth/interactive-mcp by ttommyth a year ago
Same with the latest Cursor 1.0, wasn’t an issue with the previous version.
On linux (Debian 12).
Cursor > Output > MCP Logs:
Intensive chat not working as well
on start:
Intensive chat session started successfully. Session ID: 8da91ca78c73941dbut on ask:User replied: nulland no UIRelated - user-prompt-mcp
The other similar MCP - user-prompt-mcp - also does not display any dialogs and gives the error:
So probably it’s Cursor 1.0 issue.
I checked out the project and did a npm install, which may have fixed my issue as it seems to be working now. However, it is very slow to start up initially; I’m not sure what’s causing that.
Same here on Cursor v1.0
@jivko-chobanov oh well I did the modification only on MacOs since I couldn’t be sure it works on linux. You can create a new PR similar to #13
I turned on the logger in ~/.bun/install/global/node_modules/interactive-mcp/dist/utils/logger.js and got
The config file is indeed not there