The Human-in-the-Loop MCP Server is a simple yet powerful tool designed to enable a human-in-the-loop workflow in applications like Cline and Cursor. This server is particularly useful for developing desktop applications that require complex user interactions for testing and validation.
To install the MCP server in Cline, follow these steps:
pip install uv
Linux/Mac: curl -LsSf https://astral.sh/uv/install.sh | sh
Clone the Repository:
shell
git clone https://github.com/mrexodia/user-feedback-mcp.git
Configure MCP Servers in Cline:
cline_mcp_settings.json
:json
{
"mcpServers": {
"github.com/mrexodia/user-feedback-mcp": {
"command": "uv",
"args": [
"--directory",
"c:\\MCP\\user-feedback-mcp",
"run",
"server.py"
],
"timeout": 600,
"autoApprove": [
"user_feedback"
]
}
}
}
The server creates a .user-feedback.json
file in your project directory upon saving the configuration. Here's an example of the configuration file:
{
"command": "npm run dev",
"execute_automatically": false
}
For optimal results, include the following in your custom prompt:
Before completing the task, use the user_feedback MCP tool to ask the user for feedback.
This ensures that Cline uses the MCP server to request user feedback before marking the task as completed.
To run the server in development mode:
uv run fastmcp dev server.py
This will open a web interface at http://localhost:5173 for testing and interaction with the MCP tools.
The server provides the following tool for user feedback:
<use_mcp_tool>
<server_name>github.com/mrexodia/user-feedback-mcp</server_name>
<tool_name>user_feedback</tool_name>
<arguments>
{
"project_directory": "C:/MCP/user-feedback-mcp",
"summary": "I've implemented the changes you requested."
}
</arguments>
</use_mcp_tool>
This project is licensed under the MIT License. For more details, see the LICENSE file.