Troubleshooting¶
Tests: pytest: command not found¶
Some environments (e.g., system Python 3.13) install packages into user site without exposing console scripts on PATH. Use the module form instead:
Alternatively, ensure your virtual environment is active so pytest is on PATH.
Git push: authentication errors¶
If pushing to https://github.com/... fails with username/password errors:
- Switch to SSH remote:
git remote set-url origin git@github.com:user/repo.git - Or configure a credential helper:
git config credential.helper store - Or use a personal access token (PAT) in the HTTPS URL.
GitOperations detects HTTPS and logs guidance. It also avoids double credential injection.
Missing optional dependencies¶
Vector search and some agents require extras. Install as needed:
MCP Connection Errors¶
Error: "No module named 'starlette'"¶
Symptom:
WARNING | src.mcp.qwen_config_generator:_detect_available_tools:110 |
[QwenMCPConfig] Failed to detect available tools: No module named 'starlette'
Cause: Missing FastMCP dependencies (fastmcp requires starlette).
Solution:
The system will automatically fall back to basic memory tools if fastmcp is not installed.
Error: "SSE connection timeout"¶
Symptom:
ERROR | src.mcp.client:_connect_sse:255 | [MCPClient] SSE connection timeout
ERROR | src.mcp.client:connect:127 | [MCPClient] Failed to connect:
SSE connection timeout - server did not respond
Possible Causes:
1. MCP Hub server is not running
2. URL is incorrect (check MCP_HUB_URL environment variable)
3. Network connectivity issues
4. Firewall blocking the connection
Solutions:
Docker mode:
# 1. Check if MCP Hub container is running
docker ps | grep mcp-hub
# 2. Check MCP Hub health
curl http://localhost:8765/health
# 3. Check docker-compose logs
docker-compose logs mcp-hub
# 4. Verify MCP_HUB_URL is correct
echo $MCP_HUB_URL
# Should be: http://mcp-hub:8765/sse
# 5. Restart MCP Hub service
docker-compose restart mcp-hub
Standalone mode:
# 1. Check if MCP Hub process is running
ps aux | grep mcp_hub_server
# 2. Check MCP Hub health
curl http://127.0.0.1:8765/health
# 3. Check logs
tail -f logs/mcp_hub.log
# 4. Restart the application
python -m main
Error: "Failed to parse SSE data"¶
Symptom:
WARNING | src.mcp.client:_connect_sse:232 | [MCPClient] Failed to parse SSE data:
Expecting value: line 1 column 1 (char 0)
Cause: MCP Hub server sent empty or invalid SSE data.
Solutions: 1. Update to the latest version (this error is fixed in recent versions) 2. Check MCP Hub server logs for errors 3. Verify MCP Hub is using FastMCP 0.1.0 or later
Error: "Failed to connect to MCP Hub"¶
Symptom:
WARNING | src.mcp.tools_description:get_mcp_tools_description:48 |
[MCPToolsDescription] Failed to connect to MCP Hub at http://mcp-hub:8765/sse
Diagnostic Steps:
-
Verify MCP Hub URL:
-
Check Docker network connectivity (Docker mode):
-
Check firewall rules:
-
Enable debug logging: