Troubleshooting Guide
Common issues when running the Hyperstack API MCP Server or integrating it with Claude Desktop, with diagnostic procedures.
This guide outlines common issues that may occur when running the Hyperstack API MCP Server or integrating it with Claude Desktop. Each section provides structured diagnostic procedures and verified resolutions.
This MCP server can create, modify, and delete real Hyperstack resources, which may incur charges on your account. Always review actions before confirming them. NexGen Cloud is not liable for any unintended resource usage, costs, or data loss resulting from the use of this tool. Use it at your own risk.
Server Issues
Use the guidance below to resolve problems that prevent the MCP Server from starting or authenticating correctly.
Server Won't Start
Startup failures are most commonly caused by port conflicts or local environment configuration issues.
Error: Port 8080 is already in use
Another process is already bound to port 8080, which prevents the MCP Server from starting on its default port.
-
Identify the Process Using Port 8080
Determine which process is currently bound to port
8080.Find Process Using Port 8080lsof -i :8080 # macOS/Linux
netstat -ano | findstr :8080 # WindowsThese commands return the process ID (PID) using port
8080, allowing you to stop or reconfigure the conflicting service. -
Run the MCP Server on a Different Port
If you prefer not to stop the existing process, configure the MCP Server to use another port.
Run MCP Server on Port 8081export MCP_PORT=8081
make devSetting
MCP_PORToverrides the default port and starts the development server on port8081.
Authentication Failed
Authentication errors occur when the configured API key cannot be validated.
Error: Authentication failed - Invalid API key
This typically means the HYPERSTACK_API_KEY is missing, malformed, or no longer valid.
-
Check the Existing API Key
Confirm that the API key is correctly configured in your
.envfile.Check API Keycat .env | grep HYPERSTACK_API_KEYThis command prints the configured API key entry so you can verify that it exists and is correctly formatted.
-
Generate a New API Key
If the key is missing or invalid, generate a new one from Hyperstack Console – API Keys.
-
Update the Environment File
Replace the existing value in your
.envfile.Update API KeyHYPERSTACK_API_KEY=your_new_key_hereEnsure the
HYPERSTACK_API_KEYvariable contains a valid Hyperstack API key. -
Restart the MCP Server
Restart the server so the updated environment variable is loaded.
Claude Desktop Issues
The following checks help resolve connection problems between Claude Desktop and the MCP Server.
MCP Server Not Connected
Work through these steps to confirm that all required components are installed and correctly configured.
If Claude Desktop does not detect the MCP Server, complete the following checks.
-
Verify Server Health
Confirm that the MCP Server is running and reachable.
Health Checkcurl http://localhost:8080/healthThis queries the MCP Server health endpoint. A successful response confirms that the service is reachable on port
8080. If the server is not running:Start MCP Servercd hyperstack-mcp-server
make docker-runThese commands start the MCP Server using the project's Docker configuration.
-
Verify Node.js Installation
Ensure Node.js v18.0.0 or later is installed.
Check Node Versionnode --versionThis prints the installed Node.js version. If the version is below
v18.0.0, install the latest LTS release from https://nodejs.org. -
Verify mcp-remote Installation
Confirm that
mcp-remoteis installed globally.Check mcp-remotenpm list -g mcp-remoteThis checks whether the
mcp-remotepackage is installed globally. If it is not listed, install it:Install mcp-remotenpm install -g mcp-remoteThis installs the MCP proxy required for Claude Desktop connectivity.
-
Validate Claude Configuration File
Ensure the configuration file exists and contains the correct values:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Confirm that it includes:
- The absolute path to the Node.js executable
- The absolute path to the
proxy.jsfile frommcp-remote - The MCP endpoint:
http://127.0.0.1:8080/mcp
- macOS:
-
Restart Claude Desktop
Fully quit Claude Desktop and reopen it to load the updated configuration.
Invalid JSON Configuration
JSON parsing errors indicate a syntax issue in the Claude Desktop configuration file.
Error: Failed to parse configuration
-
Review Configuration Structure
Ensure your configuration matches the following structure:
Valid Configuration Example{
"mcpServers": {
"hyperstack-mcp": {
"command": "/path/to/node",
"args": [
"/path/to/mcp-remote/dist/proxy.js",
"http://127.0.0.1:8080/mcp"
]
}
}
}This shows the minimum valid structure required for Claude Desktop to load the MCP configuration.
-
Validate JSON Using CLI
Validate your configuration file using one of the following commands:
Validate JSON (macOS/Linux)python3 -m json.tool ~/Library/Application\ Support/Claude/claude_desktop_config.jsonValidate JSON (Windows)python -m json.tool %APPDATA%\Claude\claude_desktop_config.jsonThese commands validate JSON syntax and report formatting errors if the file contains invalid structure.
API Errors
The following errors are returned directly by the Hyperstack API.
Rate Limit Exceeded
A 429 response indicates that too many requests were sent in a short period of time.
Error: Rate limit exceeded (429)
-
Wait Before Retrying
Wait approximately 60 seconds before retrying your request so the rate limit window can reset.
Request Timeout
Timeout errors occur when a request takes longer than the allowed processing time.
Error: Request timeout
-
Reduce Request Size
Break large requests into smaller operations to reduce processing time.
-
Retry the Request
Wait briefly before attempting the request again.
Docker Issues
Use the steps below if Docker-related errors prevent the MCP Server from running.
Docker Not Running
This error occurs when the Docker daemon is not active.
Error: Cannot connect to Docker daemon
-
Start Docker Desktop
Ensure Docker Desktop is installed and running.
-
Confirm Docker Initialization
Wait until Docker reports that it is fully initialized before retrying.
Quick Diagnostics
Run the following commands to quickly verify your local environment.
Execute Diagnostic Commands
Follow the steps below to validate server health, Node.js installation, proxy installation, and API key configuration.
-
Check Server Health
Check Server Healthcurl http://localhost:8080/health || echo "Server not running" -
Check Node.js Installation
Check Node Versionnode --version || echo "Node.js not installed" -
Check mcp-remote Installation
Check mcp-remotenpm list -g mcp-remote || echo "mcp-remote not installed" -
Check API Key Configuration
Check API Key[ -n "$HYPERSTACK_API_KEY" ] && echo "API key set" || echo "API key not set"
Common Fixes
If issues persist, use the remediation steps below to reset your environment.
Complete Reset
Perform a clean restart of all services.
-
Stop All Services
Stop Servicesmake docker-downThis stops and removes running Docker containers defined in the project configuration.
-
Rebuild and Restart
Rebuild and Restartmake build
make docker-runThese commands rebuild the Docker image and restart the MCP Server container.
-
Restart Claude Desktop
Fully quit and reopen Claude Desktop.
Test Your API Key
Use a direct API request to confirm your API key is valid.
Send Test Request
curl -H "api-key: YOUR_API_KEY" \
https://infrahub-api.nexgencloud.com/v1/core/environments
A successful response returns a list of environments.
Related Documentation
- Hyperstack API MCP Server - Quickstart Guide — Launch the MCP Server, connect Claude Desktop, and validate your setup.
- Installation Guide — Complete Docker setup, runtime configuration, and container lifecycle management.
- Claude Desktop Setup Guide — Configure Claude Desktop with Node.js and
mcp-remoteto connect to the MCP Server. - MCP Tools and Operations Reference — Detailed reference for supported MCP tools, operations, and API mappings.
- Configuration Reference — Environment variables, runtime options, logging settings, and production configuration details.