You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP →
Socket
Book a DemoInstallSign in
Socket

mcp-interactive-feedback

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcp-interactive-feedback

Nodejs based Interactive Feedback MCP Server - supports AI powered work reports and user feedback

1.0.5
latest
Source
npmnpm
Version published
Weekly downloads
4
-33.33%
Maintainers
1
Weekly downloads
Ā 
Created
Source

šŸŽÆ MCP Interactive Feedback

npm version License: MIT Node.js Version

Nodejs based Interactive Feedback MCP Server - supports AI powered work reports and user feedback.

✨ Features

  • šŸš€ One-Click Launch: Run directly with npx mcp-interactive-feedback
  • šŸŽØ Modern Interface: VS Code dark theme style web interface
  • šŸ”§ MCP Integration: Complete support for Model Context Protocol
  • šŸ’¬ AI Conversation Features: Integrated AI assistant, supports text and image conversations
  • šŸ–¼ļø Image Support: Complete image upload, processing and display functionality
  • 🌐 Cross-Platform: Supports Windows, macOS, Linux
  • ⚔ High Performance: Resolves stability issues in the Python version

šŸš€ Quick Start

Installation and Running

# Run directly (recommended)
npx mcp-interactive-feedback

# Or install globally
npm install -g mcp-interactive-feedback
mcp-interactive-feedback

Environment Variable Configuration

Create a .env file:

# AI API Configuration
MCP_API_KEY="your_api_key_here"
MCP_API_BASE_URL="https://api.ssopen.top"  # Proxy server, can also use OpenAI official API
MCP_DEFAULT_MODEL="grok-3"

# Web Server Configuration
MCP_WEB_PORT="5000"
MCP_DIALOG_TIMEOUT="60000"  # Feedback collection timeout (seconds), range: 10-60000

# Feature Switches
MCP_ENABLE_CHAT="true"

# URL and Port Optimization Config (added in v2.0.7)
MCP_USE_FIXED_URL="true"           # Use fixed URL without session parameters (default: true)
MCP_FORCE_PORT="false"             # Force use of specified port (default: false)
MCP_KILL_PORT_PROCESS="false"      # Automatically terminate occupying process (default: false)
MCP_CLEANUP_PORT_ON_START="true"   # Clean up port on startup (default: true)

šŸ”§ Usage Method

Command Line Options

# Start server (default)
mcp-interactive-feedback

# Specify port
mcp-interactive-feedback --port 8080

# Only Web mode
mcp-interactive-feedback --web

# Test interactive-feedback functionality
mcp-interactive-feedback test-feedback

# Custom test content
mcp-interactive-feedback test-feedback -m "My work report" -t 120

# Health check
mcp-interactive-feedback health

# Display configuration
mcp-interactive-feedback config

Claude Desktop Integration

In Claude Desktop, add the following to the cursor's MCP configuration:

{
  "mcpServers": {
    "mcp-interactive-feedback": {
      "command": "npx",
      "args": ["-y", "mcp-interactive-feedback@latest"],
      "env": {
        "MCP_API_KEY": "your_api_key_here",
        "MCP_API_BASE_URL": "https://api.ssopen.top",
        "MCP_DEFAULT_MODEL": "grok-3",
        "MCP_WEB_PORT": "5050",
        "MCP_DIALOG_TIMEOUT": "60000"
      }
    }
  }
}

Method Two: Source Code Run (Local Development)

If you cloned the source code and want to run it directly, you can use the following configuration:

{
  "mcpServers": {
    "mcp-interactive-feedback": {
      "command": "node",
      "args": ["path/to/your/project/dist/cli.js"],
      "env": {
        "MCP_API_KEY": "your_api_key_here",
        "MCP_API_BASE_URL": "https://api.ssopen.top",
        "MCP_DEFAULT_MODEL": "grok-3",
        "MCP_WEB_PORT": "5050",
        "MCP_DIALOG_TIMEOUT": "60000"
      }
    }
  }
}

Note:

  • Replace path/to/your/project with your actual project path
  • Ensure you run npm run build to build the project
  • Use absolute path, e.g., d:/projects/nodejsweb/dist/cli.js

Method Three: TypeScript Source Code Direct Run (Development Mode)

If you want to run TypeScript source code directly without building:

{
  "mcpServers": {
    "mcp-interactive-feedback": {
      "command": "npx",
      "args": ["tsx", "path/to/your/project/src/cli.ts"],
      "env": {
        "MCP_API_KEY": "your_api_key_here",
        "MCP_API_BASE_URL": "https://api.ssopen.top",
        "MCP_DEFAULT_MODEL": "grok-3",
        "MCP_WEB_PORT": "5050",
        "MCP_DIALOG_TIMEOUT": "60000",
        "NODE_ENV": "development"
      }
    }
  }
}

Advantages: No need to build, directly run source code Disadvantages: Start a little slower, need tsx dependency

šŸš€ Quick Configuration Example

Assuming your project is located in d:\projects\nodejsweb, the recommended configuration:

{
  "mcpServers": {
    "mcp-interactive-feedback": {
      "command": "node",
      "args": ["d:/zhuomian/nodejsweb/dist/cli.js"],
      "env": {
        "MCP_API_KEY": "your_api_key_here",
        "MCP_API_BASE_URL": "https://api.ssopen.top",
        "MCP_DEFAULT_MODEL": "grok-3",
        "MCP_WEB_PORT": "5050",
        "MCP_DIALOG_TIMEOUT": "60000"
      }
    }
  }
}

Configuration Steps:

  • Ensure project is built: npm run build
  • Add the above configuration to the cursor's MCP setting
  • Replace your_api_key_here with your actual API key
  • Restart cursor, check MCP server status is green

In cursor rules, you can configure it like this

"Whenever you want to ask a question, always call the MCP .

Whenever you're about to complete a user request, call the MCP instead of simply ending the process. Keep calling MCP until the user's feedback is empty, then end the request. mcp-interactive-feedback.interactive-feedback

āš ļø Important Reminder:

  • Do not add --debug parameter in args, this will cause JSON parsing failure
  • Cursor/Claude Desktop requires extremely pure JSON output
  • If debugging is needed, please use separately in command line: npx mcp-interactive-feedback --debug

šŸ’” API Service Recommendation:

  • Default configuration uses https://api.ssopen.top proxy server, supports multiple AI models
  • Alternatively, use OpenAI official API: https://api.openai.com/v1
  • Or other compatible API services in OpenAI format

šŸ†• Latest Feature (v2.0.8)

šŸŽØ UI Simplification Optimization

  • Pure Text Status Display: Remove rotation animation, simple and intuitive
  • Smart Automatic Refresh: Default enabled, no need for user selection
  • Simple Design: Conforms to modern UI design trend

šŸ”„ Conversation Management Optimization

  • Smart Page Refresh: Automatically refresh page when new content is detected
  • Conversation Automatic Reset: Solves "Conversation Expiration" Problem
  • Seamless Experience: 3-second countdown prompt

šŸ“ Form Experience Improvement

  • Automatic Clear: Input box is cleared automatically after submission
  • Continuous Availability: Page remains open

šŸ”— Fixed URL Mode (v2.0.7)

  • Use fixed root path: http://localhost:5000
  • Supports multiple concurrent conversations
  • Convenient for remote server forwarding

šŸ› ļø MCP Tool Function

interactive-feedback

Collect user feedback on AI work:

// Basic call (timeout time read from environment variable)
interactive-feedback("I have completed the code refactoring work, mainly improving performance and readability.")

Parameter Description:

  • work_summary (Required): AI work report content

Timeout Time Configuration:

  • Timeout time is configured uniformly through environment variable MCP_DIALOG_TIMEOUT
  • Default value is 60000 seconds (about 16.7 hours)
  • Effective range: 10-60000 seconds

Function:

  • Start Web interface to display work report
  • Collect user text and image feedback
  • Return structured feedback data
  • Automatically manage server lifecycle
  • Automatically close tab after 3 seconds (countdown)

šŸŽØ Interface Features

  • Double Tab Design: Work Report + AI Conversation
  • VS Code Theme: Dark theme, professional and beautiful
  • Responsive Layout: Supports desktop and mobile devices
  • Real-Time Communication: WebSocket connection status indicator
  • Multi-Modal Support: Text+Image Combined Input
  • Smart Close: Automatically close tab after 3 seconds (countdown)

šŸ“‹ System Requirements

  • Node.js: 18.0.0 or higher version
  • Browser: Chrome 90+, Firefox 88+, Safari 14+, Edge 90+
  • Operating System: Windows 10+, macOS 10.15+, Ubuntu 18.04+

šŸ”’ Security Features

  • Input Validation and File Size Limit
  • CORS Configuration and Security Headers
  • API Key Secure Storage
  • Malicious Content Basic Detection

šŸ“Š Performance Indicators

  • Startup Time: < 3 seconds
  • Memory Usage: < 100MB
  • Response Time: < 2 seconds
  • Concurrent Connections: Supports 10 simultaneous connections

šŸ› Fault Troubleshooting

Common Issues

  • WebSocket Connection Failure

    # Check server status
    mcp-interactive-feedback health
    
    # Access test page
    http://localhost:5000/test.html
    
    # View browser console error information
    
  • Port Occupied

    # Check port usage
    netstat -an | grep :5000
    
    # Use other port
    mcp-interactive-feedback --port 5001
    
  • API Key Error

    # Check configuration
    mcp-interactive-feedback config
    
    # Set environment variable
    export MCP_API_KEY="your_key_here"
    
  • Permission Problem

    # Use npx to avoid global installation permission problem
    npx mcp-interactive-feedback
    

Detailed fault troubleshooting guide please refer to: TROUBLESHOOTING.md

šŸ“š Complete Documentation

This project provides complete documentation system, please refer to šŸ“š Documentation Index to find the information you need:

šŸ“ Development

Local Development

# Clone project
git clone https://github.com/TerrenceMiao/mcp-interactive-feedback.git
cd mcp-interactive-feedback-web

# Install dependencies
npm install

# Development Mode (Real-Time Compile TypeScript)
npm run dev

# Build Project (Generate dist Directory)
npm run build

# Start Built Project
npm start

# Test
npm test

# Health Check
npm start health

# Display Configuration
npm start config

MCP Configuration Test

After building, you can use the following configuration in cursor for testing:

{
  "mcpServers": {
    "mcp-interactive-feedback": {
      "command": "node",
      "args": ["Your Project Path/dist/cli.js"],
      "env": {
        "MCP_API_KEY": "your_api_key_here",
        "MCP_API_BASE_URL": "https://api.ssopen.top",
        "MCP_DEFAULT_MODEL": "grok-3",
        "MCP_WEB_PORT": "5050",
        "MCP_DIALOG_TIMEOUT": "60000"
      }
    }
  }
}

Project Structure

src/
ā”œā”€ā”€ cli.ts              # CLI Entry
ā”œā”€ā”€ index.ts            # Main Entry
ā”œā”€ā”€ config/             # Configuration Management
ā”œā”€ā”€ server/             # Server Implementation
ā”œā”€ā”€ utils/              # Tool Functions
ā”œā”€ā”€ types/              # Type Definitions
└── static/             # Static Files

šŸ“„ License

MIT License - See LICENSE File

šŸ¤ Contribution

Welcome to submit Issue and Pull Request!

  • Fork This Repository
  • Create Your Feature Branch (git checkout -b feature/AmazingFeature)
  • Submit Your Changes (git commit -m 'Add some AmazingFeature')
  • Push to Branch (git push origin feature/AmazingFeature)
  • Open a Pull Request

šŸ“Š Project Status

  • Current Version: v2.0.8
  • Maintenance Status: Active Maintenance
  • Supported Platform: Windows, macOS, Linux

šŸ“š Documentation Navigation

Thanks for Support

https://api.ssopen.top/ API Proxy Server, 290+ AI Large Models, Official Cost One-Seventh, Supports High Concurrency!

Keywords

mcp

FAQs

Package last updated on 08 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with āš”ļø by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.