SETUP_GUIDE.mdβ’5.79 kB
# π MCP Testing Harness Setup Guide
## Overview
Your MCP Testing Harness is now a comprehensive platform that includes:
1. **Enhanced MCP Server** (port 8000) - Universal testing platform with print functionality
2. **Simple Print Server** (port 8001) - Dedicated print server (optional)
3. **Multiple Web Interfaces** - Different UIs for different purposes
## π― **How the Print Server Fits into Your MCP Harness**
### **Architecture:**
```
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MCP Testing Harness β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββ β
β β Print Tools β β Server Mgmt β β Web UI β β
β β β’ print_message β β β’ register β β β’ Tabs β β
β β β’ list_messages β β β’ list β β β’ Forms β β
β β β’ clear_messagesβ β β’ test β β β’ Real-time β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
### **Integration Benefits:**
- β
**Unified Platform**: All MCP servers managed from one place
- β
**Print Functionality**: Built into the main harness
- β
**Server Management**: Register and test other MCP servers
- β
**Web Interface**: Easy-to-use tabs for different functions
- β
**Extensible**: Easy to add more servers and tools
## π **Quick Start Guide**
### **Step 1: Start the Enhanced MCP Harness**
```bash
py -3 enhanced_mcp_harness.py
```
This starts your main MCP server on port 8000 with print functionality built-in.
### **Step 2: Start the Enhanced Web Interface**
```bash
py -3 enhanced_web_interface.py
```
This provides a tabbed interface at http://localhost:3003
### **Step 3: Test the Setup**
```bash
py -3 test_client.py
```
This tests the main harness functionality.
## π **Available Web Interfaces**
| Interface | URL | Purpose |
|-----------|-----|---------|
| **Enhanced** | http://localhost:3003 | Main interface with tabs |
| **Simple Print** | http://localhost:3002 | Dedicated print interface |
| **Original** | http://localhost:3001 | Basic testing interface |
## π¨οΈ **Print Functionality**
### **Available Tools:**
- `print_message` - Send messages to display
- `list_messages` - List all stored messages
- `clear_messages` - Clear all messages
### **Message Levels:**
- **Info** - General information
- **Success** - Successful operations
- **Warning** - Warnings and alerts
- **Error** - Error messages
## π§ **Server Management**
### **Register Other MCP Servers:**
1. Go to the "Server Management" tab
2. Enter server details (name, host, port)
3. Click "Register Server"
4. Test the server using "Test Server"
### **Example Servers to Register:**
- **Simple Print Server**: localhost:8001
- **Any MCP Server**: localhost:8002, 8003, etc.
## π§ͺ **Testing Options**
### **1. Web Interface Testing:**
- Use the tabs in the enhanced web interface
- Send messages and manage servers through forms
### **2. MCP Client Testing:**
- Connect any MCP client to localhost:8000
- Use Claude Desktop with localhost:8000
### **3. Python Testing:**
```bash
py -3 test_client.py # Test main harness
py -3 test_print_client.py # Test print server
```
## π **Port Summary**
| Port | Service | Description |
|------|---------|-------------|
| 8000 | Enhanced MCP Harness | Main testing platform |
| 8001 | Simple Print Server | Dedicated print server |
| 3001 | Basic Web Interface | Original testing UI |
| 3002 | Print Web Interface | Dedicated print UI |
| 3003 | Enhanced Web Interface | Main tabbed UI |
## π― **Use Cases**
### **For Testing Other MCP Servers:**
1. Start the enhanced harness (port 8000)
2. Register other MCP servers through the web interface
3. Test them using the built-in testing tools
4. Monitor results in the web interface
### **For Print Functionality:**
1. Send messages through the web interface
2. Use MCP clients to call print tools
3. View messages in real-time
4. Clear messages when needed
### **For Development:**
1. Use as a testing harness for your own MCP servers
2. Add custom tools to the enhanced server
3. Extend the web interface with new features
4. Use as a reference implementation
## π **Next Steps**
1. **Test the enhanced harness** with the web interface
2. **Register your simple print server** (if running separately)
3. **Try different MCP clients** connecting to localhost:8000
4. **Explore the tabbed interface** for different functions
5. **Add more MCP servers** to the management system
## π‘ **Tips**
- The enhanced harness includes print functionality, so you don't need the separate print server unless you want isolation
- Use the tabbed interface for different operations
- Register other MCP servers to test them centrally
- The web interface provides real-time feedback
- All tools are available through both MCP protocol and web interface
Your MCP Testing Harness is now a comprehensive platform that can handle print functionality and manage multiple MCP servers from a central location! π