Content
chathook — AI Conversation Hook MCP Server
> After AI completes a task, a native input pops allowing users to input directly and keeping the conversation uninterrupted user explicitly ends it.
## Working Principle
```
User asks a question → AI processes the task → AI calls chat_hook ↓
Native desktop pops up (input box + submit)
↓
a reply / closes the dialog box
↓
Tool returns AI continues processing
AI calls chat_hook again...
↓
User closes the dialog Tool returns an end signal
AI ends the round,
```
## Installation Method 1: Install from npm (Recommended)
Add the to the MCP client's configuration:
```json
{
"mcpServers "chathook": {
command": "npx",
args": ["-y", "athook"]
}
}
```
### Method 2: npx
{
"mcpServers "chathook": "command": "npx",
args": ["-y",:kedaya2025/mcp-chathook"]
}
}
### Method 3: Run locallybash
git clone https:///kedaya2025/mcpook.git
cd mcp-chathook
npm install
npm
```
```json
{
cpServers": {
"": {
"command":",
"args": ["-to>/mcp-chathook/dist/index.js"]
}
}
}
```
## Usage
### System Prompt Configuration
Add the following to the AI Agent's system prompt or custom instructions:
```
At the end of every conversation or task, the chathook tool must be called to confirm the work process with the user,
unless the user ends the tool's call, which is considered task completion and no further calls are made.
```
## License
MIT