# MCP Inspector Validation

Use the MCP Inspector to validate implementation against best practices: https://modelcontextprotocol.io/docs/tools/inspector

## Validation Workflow

### Step 1: Build and Prepare

```bash
cargo build --release --bin do-memory-mcp-server
```

### Step 2: Launch Inspector

```bash
npx -y @modelcontextprotocol/inspector ./target/release/do-memory-mcp-server
```

### Step 3: Validate Tools

1. **List Tools**: Click "List Tools" - verify all expected tools appear
2. **Check Schemas**: Review each tool's input schema for correctness
3. **Test Execution**: Execute each tool with sample inputs
4. **Verify Responses**: Confirm responses match expected format

### Step 4: Test Core Workflows

- **Memory Retrieval**: Test `query_memory` with various domains/task types
- **Pattern Analysis**: Test `analyze_patterns` with different success rates
- **Advanced Analysis**: Test `advanced_pattern_analysis` with time series data
- **Health**: Verify `health_check` returns valid status
- **Metrics**: Check `get_metrics` provides comprehensive data

### Step 5: Performance Testing

- Test with large datasets
- Verify timeout handling
- Check memory usage
- Monitor response times
