MCP Troubleshooting
Common issues and solutions for MCP integration.
Connection Issuesβ
Server Not Connectingβ
Symptoms:
rad mcp testshows server as not connected- Tools not available
- Slash commands not working
Solutions:
-
Verify server configuration:
rad mcp list -
Check server is running (for stdio transport):
# Test the command manually
mcp-server --config config.json -
Verify URL is accessible (for HTTP/SSE):
curl https://api.example.com/mcp -
Check logs for detailed error messages
Connection Timeoutβ
Symptoms:
- Connection hangs
- Timeout errors
Solutions:
- Check network connectivity
- Verify firewall settings
- Increase timeout in configuration (if supported)
Authentication Issuesβ
OAuth Token Expiredβ
Symptoms:
- Authentication errors
- 401 Unauthorized responses
Solutions:
-
Check token status:
rad mcp auth status -
Verify refresh token is available
-
Check token_url is correct
-
Re-authenticate if needed
Token Not Foundβ
Symptoms:
- "No token found" errors
Solutions:
- Initial token may need to be obtained manually
- Check token storage directory exists:
~/.radium/mcp_tokens/ - Verify server has auth configured
Tool Issuesβ
Tools Not Availableβ
Symptoms:
rad mcp toolsshows no tools- Agents can't find MCP tools
Solutions:
-
Verify server is connected:
rad mcp test -
Check server has tools configured
-
Review server logs for tool discovery errors
-
Ensure server implements MCP protocol correctly
Tool Execution Failsβ
Symptoms:
- Tool calls return errors
- "Tool not found" errors
Solutions:
- Verify tool name is correct (check for server prefix)
- Check tool arguments match schema
- Review server logs for execution errors
- Test tool directly on server if possible
Slash Command Issuesβ
Commands Not Foundβ
Symptoms:
/commandnot recognized- "Unknown command" errors
Solutions:
-
List available commands:
rad mcp prompts -
Ensure MCP server is initialized
-
Check prompt names are correctly normalized
-
Verify server has prompts configured
Command Execution Failsβ
Symptoms:
- Slash command returns error
- No response from command
Solutions:
- Check server connection
- Verify prompt arguments
- Review server logs
- Test prompt directly on server
Content Issuesβ
Rich Content Not Displayingβ
Symptoms:
- Images/audio not showing
- Content appears as text
Solutions:
- Check content type is supported
- Verify content format matches MCP spec
- Check temp directory permissions
- Review content handler logs
General Debuggingβ
Enable Debug Loggingβ
Set environment variable for detailed logs:
RUST_LOG=radium_core::mcp=debug rad mcp test
Check Configurationβ
Validate configuration file:
# List servers
rad mcp list
# Test connections
rad mcp test
Review Logsβ
Check application logs for MCP-related messages:
- Connection attempts
- Tool discovery
- Execution errors
- Authentication issues
Getting Helpβ
If issues persist:
- Check MCP Protocol Specification
- Review server documentation
- Check server logs
- Verify server implements MCP correctly
- Test with minimal configuration
Common Error Messagesβ
"Failed to connect to MCP server"β
Possible Causes:
- Server not running (stdio)
- URL incorrect (HTTP/SSE)
- Network issues
- Authentication required
Solutions:
- For stdio: Verify server executable is in PATH and running
- For HTTP/SSE: Test URL with
curlto verify accessibility - Check network connectivity and firewall settings
- Verify authentication is configured if required
"Tool not found"β
Possible Causes:
- Tool name incorrect
- Server prefix missing
- Tool not discovered
- Server connection issue
Solutions:
- List available tools:
rad mcp tools - Check tool name includes server prefix (e.g.,
server-name/tool-name) - Verify server is connected:
rad mcp test - Check server provides the tool you're looking for
"Authentication error"β
Possible Causes:
- Token expired
- Invalid credentials
- Token URL incorrect
- Refresh token missing
Solutions:
- Check token status:
rad mcp auth status - Verify OAuth credentials in configuration
- Check
token_urlis correct - Ensure refresh token is available for auto-refresh
- Re-authenticate if needed
"MCP configuration error: Stdio transport requires 'command' field"β
Problem: Missing required field in configuration
Solution:
# Add the missing field
[[servers]]
name = "my-server"
transport = "stdio"
command = "mcp-server" # Required for stdio transport
"MCP configuration error: HTTP transport requires 'url' field"β
Problem: Missing URL for HTTP/SSE transport
Solution:
# Add the missing field
[[servers]]
name = "my-server"
transport = "http"
url = "https://api.example.com/mcp" # Required for HTTP/SSE transport
"MCP transport error: Failed to spawn process"β
Problem: Cannot execute the server command
Solutions:
- Verify command is in PATH:
which mcp-server - Use full path:
command = "/usr/local/bin/mcp-server" - Check file permissions:
chmod +x /path/to/mcp-server - For npm packages, use
npx:command = "npx"
"MCP connection error: Connection closed"β
Problem: Server disconnected unexpectedly
Solutions:
- Check server logs for errors
- Verify server is still running
- Check network stability (for remote servers)
- Review server resource usage (memory, CPU)