Troubleshooting
Doctor
The doctor command runs a series of checks against a server:
mcp time doctorCHECK STATUS DETAILresolve ok timecommand ok /home/user/.local/bin/uvxauth ok no auth requiredconnect ok initialize handshake succeededtools ok 2 tool(s) availableCommon errors
Command not found
error: command "uvx" not found: executable file not found in $PATHhint: make sure "uvx" is installed and on your PATHThe server command’s executable isn’t installed. Install it and make sure it’s on your PATH.
Server crashes on startup
error: server exited (code 1) before completing MCP handshakehint: npm error 404 Not Found - @foo/bar is not in this registry.The server command starts but crashes before it can respond. The hint shows the server’s stderr output. Try running the command directly to debug:
uvx mcp-server-timeServer doesn’t speak MCP
error: server started but did not respond to MCP handshakehint: the command may not be an MCP server, or it may need arguments.The command runs but doesn’t produce MCP-compatible JSON-RPC output on stdout. Make sure the command is actually an MCP server.
Connection timeout
error: context deadline exceededThe server took too long to respond. Try increasing the timeout:
mcp time tools --timeout 60sOAuth errors
If OAuth login fails or tokens expire:
mcp login notionThis triggers a fresh login flow.
Shell completions not working
Make sure you’ve sourced the completions in your shell config:
# bashsource <(mcptocli completion bash)
# zshsource <(mcptocli completion zsh)
# fishmcptocli completion fish | sourceThen open a new terminal for the changes to take effect.