Files
MetasploitMCP/requirements-test.txt
cbdmaul 1aec6127e6 Fix timeout handling and add debugging for MCP tools
- Add RPC_CALL_TIMEOUT (30s) constant for RPC operations
- Wrap list_exploits and list_payloads with asyncio.wait_for to prevent hanging
- Add timeout handling to list_active_sessions and list_listeners
- Add timeout handling to health check endpoint
- Improve error messages with specific timeout information
- Add debug logging for RPC calls to help diagnose communication issues
- Add check_msf_connection() helper function for connection status
- Add comprehensive timeout error handling with user-friendly messages

Fixes issue where list_exploits call would hang for 3+ minutes when
Metasploit server is slow or unresponsive. Now fails fast with clear
error message after 30 second timeout.
2025-08-17 13:16:10 -04:00

7 lines
128 B
Plaintext

# Testing dependencies for MetasploitMCP
pytest>=7.0.0
pytest-asyncio>=0.21.0
pytest-mock>=3.10.0
pytest-cov>=4.0.0
mock>=4.0.3