Question: How to Debug MCP Server that fails to connect?

Resolved 💬 5 comments Opened Feb 25, 2025 by roychri Closed Mar 5, 2025

How do we identify issues or the cause when an mcp server fails to connect? Or access the logs?

I tried with npx -y @user/app but that always failed.
But when I use /path/to/project/bin/index.js it works.

Are there any log files anywhere?

I tried --debug and --verbose and both together but I saw no output about why the mcp server is failing when using npx.

Funny enough, the @modelcontextprotocol/server-github works just fine with npx.
The one that fails is @roychri/mcp-server-asana when I try it with npx on claude-code but that works just fine with Claude Desktop app or with the mcp inspector.

Thanks!

PS: Awesome work on this awesome claude-code tool!

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗