Troubleshooting Guide
Common issues and their solutions when using the ActivityPub MCP Server. Find quick fixes for the most frequent problems.
🔧 Connection Issues
Server Not Responding
Symptoms:
- Tools timeout or return no response
- Error: "Failed to connect to MCP server"
- Claude reports server is unavailable
Solutions:
- Check server status:
npm run status
- Restart the server:
npm run restart
- Verify configuration:
npm run config:check
- Check logs for errors:
npm run logs
Network Connectivity Problems
Symptoms:
- Error: "Network request failed"
- Timeouts when fetching from instances
- Intermittent connection issues
Solutions:
- Check internet connection
- Test instance accessibility:
curl -I https://mastodon.social
- Configure proxy if needed:
export HTTP_PROXY=http://proxy:8080 export HTTPS_PROXY=http://proxy:8080
- Increase timeout settings in config
🚫 Access and Permission Issues
Actor Not Found
Symptoms:
- Error: "Actor not found"
- Error: "Failed to resolve actor"
- Empty results when searching for known actors
Solutions:
- Verify actor format:
# Correct formats: @username@instance.com https://instance.com/users/username https://instance.com/@username
- Check if actor exists:
curl https://instance.com/.well-known/webfinger?resource=acct:username@instance.com
- Try alternative discovery methods
- Clear cache and retry:
clear-cache actors
Rate Limiting
Symptoms:
- Error: "Rate limit exceeded"
- HTTP 429 responses
- Requests being throttled
Solutions:
- Wait before retrying (usually 15 minutes)
- Reduce request frequency
- Use different instances to distribute load
- Check rate limit headers:
curl -I https://instance.com/api/v1/accounts/lookup
Private Content Access
Symptoms:
- Error: "Access denied"
- Empty timelines for known active accounts
- Missing posts or limited content
Solutions:
- Respect privacy settings - this is expected behavior
- Try public instances and accounts
- Use accounts with public timelines
- Check instance privacy policies
⚙️ Configuration Issues
Invalid Configuration
Symptoms:
- Server fails to start
- Error: "Invalid configuration"
- Missing required settings
Solutions:
- Validate configuration file:
npm run config:validate
- Reset to default configuration:
npm run config:reset
- Check required environment variables
- Review configuration documentation
Claude Desktop Integration
Symptoms:
- Tools not appearing in Claude
- Error: "MCP server not found"
- Connection refused errors
Solutions:
- Check Claude Desktop configuration:
# macOS ~/Library/Application Support/Claude/claude_desktop_config.json # Windows %APPDATA%\Claude\claude_desktop_config.json
- Verify server path in config
- Restart Claude Desktop
- Check server logs for connection attempts
📊 Performance Issues
Slow Response Times
Symptoms:
- Tools take a long time to respond
- Timeouts on large requests
- High memory usage
Solutions:
- Clear cache:
clear-cache all
- Reduce request size (limit results)
- Use more specific queries
- Monitor system resources
Memory Issues
Symptoms:
- Server crashes with out-of-memory errors
- Gradual performance degradation
- High memory usage
Solutions:
- Restart server regularly
- Reduce cache size in configuration
- Limit concurrent requests
- Monitor memory usage
🔍 Debugging Tips
Enable Verbose Logging
export DEBUG=activitypub-mcp:*
npm start
This will show detailed logs for all operations.
Test Individual Components
# Test WebFinger resolution
curl "https://instance.com/.well-known/webfinger?resource=acct:user@instance.com"
# Test ActivityPub endpoint
curl -H "Accept: application/activity+json" "https://instance.com/users/username"
Check Instance Health
# Check if instance is up
curl -I https://instance.com
# Check API availability
curl https://instance.com/api/v1/instance
Monitor Network Traffic
Use browser developer tools or network monitoring tools to see actual HTTP requests and responses.
🆘 Getting Help
📋 Before Reporting Issues
- Check this troubleshooting guide
- Review the basic usage guide
- Test with known working instances (mastodon.social)
- Collect relevant logs and error messages
- Note your environment (OS, Node.js version, etc.)
🐛 Reporting Bugs
If you've found a bug, please report it on GitHub:
Report an IssueInclude:
- Steps to reproduce the issue
- Expected vs actual behavior
- Error messages and logs
- System information