Troubleshooting
Common issues
Authentication Failures
- Verify your auth tokens are valid.
- Check that environment variables are properly set and match the expected names:
BEARQ_API_TOKENfor BearQBUGSNAG_AUTH_TOKENfor BugSnagREFLECT_API_TOKENfor ReflectSWAGGER_API_KEYfor SwaggerQMETRY_API_KEYfor QMetryZEPHYR_API_TOKENfor ZephyrQTM4J_API_KEYfor QTM4J
- Ensure you have the correct token type (Auth Token vs API Key) for each desired service.
Build and Installation Problems
- Ensure Node.js is installed and compatible (check requirements in package.json).
- Verify that
npm run buildcompleted successfully and created thedist/index.jsfile. - Check that the path to
dist/index.jsis correct in your MCP client configuration.
Connection Problems
- Confirm the MCP server builds and runs locally using the MCP Inspector.
- Check your MCP client configuration syntax and file paths.
- Verify that the
dist/index.jsfile exists and is executable.
Slow startup or initialize timeouts
initialize timeoutsBy default the local server loads every product integration at startup. On some machines, especially Machines/Environments with real-time antivirus scanning, this can delay the initialize response long enough for the MCP client to time out.
Set MCP_CLIENTS to the products you use so that only those are loaded. Names are comma-separated and case-insensitive:
"env": {
"MCP_CLIENTS": "QMetry",
"QMETRY_API_KEY": "your_qmetry_api_key"
}Valid names are BearQ, BugSnag, Collaborator, Contract Testing, QMetry, QTM4J, Reflect, Swagger and Zephyr. An unrecognized name loads no tools for that product.
Npx cache issues for local MCP server
Github issue link - 4108.
There can be issues when npx can cache some of the dependencies and this can result in your MCP server not running correctly. To fix this you will have to clear your local npx cache.
On Unix and Unix-Like systems (macOS and Linux):
rm -rvf "${NPM_CONFIG_CACHE:-$HOME/.npm}/_npx"On Windows:
Remove-Item -Path $(if ($env:NPM_CONFIG_CACHE) { "$env:NPM_CONFIG_CACHE\_npx" } else { "$env:APPDATA\npm-cache\_npx" }) -Recurse -Force -VerboseAfter doing the above you can reinstall the MCP server.
VS Code OAuth Authentication Error
If you encounter the following error when signing in via VS Code:
An error occurred while signing in:
Unknown or expired client_id; re-register via dynamic client registrationThis means VS Code's cached OAuth dynamic client registration has expired or become invalid. To fix this:
- Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+P). - Run the command:
Authentication: Remove Dynamic Authentication Providers. - Remove the problematic authentication provider from the list.
- Restart VS Code and sign in again.
For more details, see VS Code issue #250960.
Getting help
For additional support and troubleshooting:
- Visit the GitHub repository for documentation and issues.
- Check the MCP specification for protocol details.
- Contact SmartBear support for account-specific issues.
- Join the community discussions for tips and best practices.