-
-
Notifications
You must be signed in to change notification settings - Fork 26
Troubleshooting
ravitemer edited this page Mar 31, 2025
·
3 revisions
Common issues and their solutions when using MCPHub.nvim.
Ensure these dependencies are installed:
node --version # Should be >= 18.0.0
python --version # Should be installed
uvx --version # Should be installed
Most MCP servers use npx
or uvx
- verify these work in your terminal.
If the LLM isn't making correct tool calls:
-
Schema Support
- Models with function calling support (like claude-3.5) work best with Avante's schema format
- Only top-tier models handle XML-based tool formats correctly
- Consider upgrading to a better model if seeing incorrect tool usage
-
Common Tool Call Issues
- Missing
action
field - Incorrect
server_name
- Missing
tool_name
oruri
- Malformed arguments
- Missing
-
Recommended Models
- GPT-4o
- Claude 3.5 Sonnet
- Claude 3.7
- Gemini 2.0 Flash
- Gemini 2.0 Pro
- Mistral Large
If you get EADDRINUSE
error when starting MCPHub:
-
Find the process using the port:
lsof -i :[port] # Find process ID
-
Kill the process:
kill [pid] # Kill the process
Alternatively, change the port in your config:
require("mcphub").setup({
port = 37374 -- Use different port
})
Common configuration issues:
-
Invalid Path
- Ensure config path is absolute
- Default:
~/.config/mcphub/servers.json
-
Invalid JSON
- Verify file contains valid JSON
- Must have
mcpServers
key - Check JSON syntax
-
Server Configuration
- Validate server-specific requirements
- Check command and args exist on system
- Verify environment variables
Validate server setup using:
-
- GUI tool for verifying server operation
- Tests server endpoints
- Validates capabilities
-
- Command-line tool for testing
- Works with config files
- Quick server validation
-
MCPHub UI
- Check Logs view (press
L
) - Test tools individually
- Verify resource access
- Check Logs view (press
Test minimal setup using minimal.lua.
-
Issue Tracker
- Report bugs on GitHub Issues
- Include error messages
- Share minimal config
-
Discussions
- Ask questions in GitHub Discussions
- Share setups and tips
- Request features
-
Express API
- Access directly: http://localhost:[port]/api
- Test server endpoints
- Debug connection issues
-
Server Won't Start
- Check node version
- Verify mcp-hub installation
- Check port availability
-
Tools Not Working
- Verify server is enabled
- Check tool isn't disabled
- Review server logs
-
Resource Access Fails
- Check URI format
- Verify resource exists
- Check server connectivity
-
Chat Plugin Issues
- Verify extension config
- Check tool approval settings
- Review plugin logs