Troubleshooting
The server will not connect
Separate process startup problems from credential and repository errors.
Start with the earliest failing step. A server that never launches cannot discover tools; a discovered tool that returns ACCESS_DENIED has already passed startup. Fixing these stages in order avoids changing permissions to solve a runtime problem.
Identify the failure stage
Symptom | Likely stage |
|---|---|
Command not found / process exits | Runtime or distribution startup |
Server starts, no advertised tools | Protocol initialization or client enablement |
Tool call returns AUTH_REQUIRED | Credential delivery |
Tool call returns ACCESS_DENIED | Repository access |
Successful empty list | Filtering; see Empty results |
Check the command environment
Confirm the verified package exists and the intended version is available.
Confirm npx can be resolved by the client process.
Validate the JSON or TOML syntax and remove duplicate server entries.
Reload the connection after changing configuration.
Do not run an unverified package merely because its name appears in a copied example. @toolport/mcp is a placeholder in this template. A real operator must provide the distribution to test.
Read the right logs
Inspect the client’s MCP server log and the server’s sanitized diagnostic output. Startup errors often include a command path or config parse message. Remove tokens and private issue content before sharing a log. Local stdio servers must keep protocol messages on stdout and diagnostics separate.
Create a small reproduction
Use a minimal command entry and one repository-specific list_labels call. Record client/server versions, operating system, transport and the exact sanitized error. Restore one setting at a time rather than changing package, scope and token together.
Next step
If the process now connects but no tools appear, use Tools do not appear. If a tool returns an error code, use the Error reference; the process itself is already reachable.