MCP Troubleshooting
Solutions for common issues when configuring and using Model Context Protocol (MCP) with Azion Platform and code assistants.
This guide helps resolve common issues with MCP configuration and usage.
Connection issues
Authentication failed
Symptoms:
- Error: “401 Unauthorized"
- "Invalid token” message
- Connection refused by MCP server
Solutions:
-
Verify token format:
-
Check token validity:
- Navigate to Azion Console
- Verify token is active and not expired
- Ensure token has necessary permissions
-
Test with MCP Inspector:
Configure as
streamable-httpwith your token to validate connection.
Never share your Personal Token or commit it to version control.
Connection timeout
Symptoms:
- Request times out after 30+ seconds
- No response from MCP server
- ”Network error” messages
Solutions:
-
Check server URL:
- Correct URL:
https://mcp.azion.com - Ensure no typos in URL
- Correct URL:
-
Test network connectivity:
-
Try alternative connection:
- Consider using a different network connection
- Check if VPN is interfering
-
Check firewall/proxy settings:
- Ensure HTTPS traffic to mcp.azion.com is allowed
- Verify proxy configuration if applicable
Tools not appearing
No tools listed in assistant
Symptoms:
- Code assistant doesn’t show Azion tools
- ”No tools available” message
- Commands not recognized
Solutions:
-
Verify MCP support:
- Ensure your code assistant version supports MCP
- Update to latest version if needed
-
Check configuration syntax:
Claude Code
Cursor
Verify JSON syntax in settings is validWindsurf
Check.codeium/windsurf/mcp_config.jsonexists and is valid JSON -
Restart the assistant:
- Close and reopen the application
- For Claude Code:
claude serve --restart
Tool execution errors
”Tool not found” error
Symptoms:
- Specific tool names not recognized
- ”Unknown tool” errors
Solutions:
-
Verify tool name: Correct tool names:
search_azion_docs_and_sitesearch_azion_code_samplessearch_azion_cli_commandssearch_azion_api_v3_commandssearch_azion_api_v4_commandssearch_azion_terraformcreate_rules_enginecreate_graphql_querydeploy_azion_static_site
-
Check API profile:
- v3 profiles may have limited tool access
- Consider upgrading to v4 profile
Empty or incomplete responses
Symptoms:
- Tools return no results
- Partial responses
- Generic answers instead of Azion-specific information
Solutions:
-
Refine your query:
-
Use specific tool hints:
-
Break complex requests:
- Split multi-part questions
- Ask for clarification if needed
Configuration file issues
JSON parsing errors
Symptoms:
- “Invalid JSON” errors
- Configuration not loaded
Solutions:
-
Validate JSON syntax:
-
Common JSON issues:
- Missing commas between properties
- Trailing commas (not allowed in JSON)
- Incorrect quote types (must use double quotes)
- Unclosed brackets or braces
-
Example valid configuration:
Node.js related issues
npx command not found
Symptoms:
- “npx: command not found"
- "Node.js is required”
Solutions:
-
Install Node.js:
-
Update npm:
mcp-remote package issues
Symptoms:
- “Cannot find module ‘mcp-remote‘“
- Package installation fails
Solutions:
-
Clear npm cache:
-
Install globally:
-
Use specific version:
Performance issues
Slow response times
Solutions:
-
Optimize connection:
- Ensure stable network connection
- Minimize concurrent requests
-
Optimize queries:
- Be specific in requests
- Avoid overly broad searches
-
Check network latency:
OAuth and SSO issues
Token validation fails
Symptoms:
- “Invalid token” after OAuth flow
- UserInfo returns 401
Solutions:
-
Verify token format:
- Ensure the token is sent with
Bearerprefix - Check if using correct SSO domain (production vs stage)
- Ensure the token is sent with
-
Check token expiration:
- OAuth tokens expire after a set period
- Request a new token if expired
-
Verify SSO endpoints:
- Production:
https://sso.azion.com/oauth/* - Stage:
https://stage-sso.azion.com/oauth/*
- Production:
Client not authorized
Solutions:
- Verify client ID and secret are correct
- Check redirect URI matches exactly what’s configured in SSO
- Ensure required scopes are enabled for the client
Environment-specific issues
Stage environment not responding
Solutions:
-
Verify URL:
- Stage URL:
https://stage-mcp.azion.com - Production URL:
https://mcp.azion.com
- Stage URL:
-
Check environment status:
- Stage may have different availability than production
- Use production for critical workflows
Local development issues
Solutions:
- Verify server is running:
- Check environment variables:
- Restart local server:
Getting help
If issues persist after trying these solutions:
-
Contact support:
- Include error messages
- Specify code assistant and version
- Provide configuration (without tokens)
- Describe steps to reproduce
-
Community resources: