MCP Probe Documentation

Complete reference guide for MCP Probe features, configuration, and advanced usage.

๐Ÿ“– Overview

MCP Probe is a comprehensive debugging and testing tool for Model Context Protocol (MCP) servers. This documentation covers all aspects of using MCP Probe effectively.

๐Ÿš€ Quick Navigation

๐Ÿ”ง Core Features

Interactive Debugging

  • TUI Interface - Rich terminal interface for real-time debugging
  • Message Inspection - View raw protocol messages and responses
  • Session Management - Save, replay, and share debug sessions

Automated Testing

  • Protocol Compliance - Comprehensive MCP specification testing
  • CI/CD Integration - Automated testing in build pipelines
  • Custom Test Suites - Target specific functionality areas

Validation & Export

  • Parameter Validation - Auto-fix common parameter issues
  • Capability Export - Generate documentation in multiple formats
  • Report Generation - HTML, Markdown, JSON, and YAML reports

๐Ÿ”Œ Transport Support

Stdio Transport

Local process communication via stdin/stdout pipes.

mcp-probe debug --stdio python server.py

HTTP+SSE Transport

HTTP requests with Server-Sent Events for real-time updates.

mcp-probe debug --http-sse http://localhost:3000/sse

HTTP Streaming Transport

Full-duplex HTTP streaming communication.

mcp-probe debug --http-stream http://localhost:3000/stream

โš™๏ธ Configuration

MCP Probe uses TOML configuration files for flexible setup:

[defaults]
transport = "stdio"
timeout = 30
max_retries = 3

[stdio]
working_dir = "/path/to/servers"
environment = { "DEBUG" = "1" }

[validation]
rules = ["schema-validation", "tool-parameters"]
severity = "warning"

๐Ÿ“ File Organization

Automatic file organization in ~/.mcp-probe/:

~/.mcp-probe/
โ”œโ”€โ”€ logs/           # Timestamped log files
โ”œโ”€โ”€ reports/        # Generated reports with date prefixes
โ”œโ”€โ”€ sessions/       # Saved debug sessions
โ””โ”€โ”€ config/         # Configuration files

๐Ÿงช Testing Framework

Test Suites

  • Connection Tests - Handshake and connection validation
  • Tool Tests - Tool listing and parameter validation
  • Resource Tests - Resource access and permissions
  • Protocol Tests - General MCP compliance

Validation Rules

  • Schema Validation - JSON schema compliance
  • Parameter Validation - Type checking and format validation
  • URI Validation - Resource URI format validation

๐Ÿ” Troubleshooting

Common Issues

Connection Timeouts

# Increase timeout
mcp-probe debug --stdio python server.py --timeout 60

# Enable debug logging
RUST_LOG=debug mcp-probe debug --stdio python server.py

Permission Errors

# Check file permissions
chmod +x server.py

# Verify working directory
mcp-probe debug --stdio python server.py --working-dir /correct/path

Debug Logging

Enable detailed logging for troubleshooting:

# Debug level
RUST_LOG=debug mcp-probe debug --stdio python server.py

# Trace level (very verbose)
RUST_LOG=trace mcp-probe debug --stdio python server.py

๐Ÿ“Š Performance

Optimization Tips

  • Use --non-interactive mode for automation
  • Enable compression for HTTP transports
  • Limit session duration with --timeout
  • Use specific test suites instead of all

Benchmarking

# Time operations
time mcp-probe debug --non-interactive --stdio python server.py

# Memory usage analysis
/usr/bin/time -v mcp-probe debug --stdio python server.py

๐Ÿ”— Integration

CI/CD Pipelines

# GitHub Actions example
- name: Test MCP Server
  run: |
    mcp-probe test --stdio python server.py \
      --report --output-dir ./test-reports

Docker Integration

FROM rust:1.75
RUN cargo install mcp-cli
WORKDIR /workspace
CMD ["mcp-probe", "--help"]

๐Ÿ“š Additional Resources


This documentation is for MCP Probe v0.2.4. For the latest updates, visit our GitHub repository.