Debugging Claude's MCP Server with Nix

Debugging Claude’s MCP Server with Nix When I first started using Claude with my Nix-managed development environment, I ran into an interesting issue. The default examples for starting a local MCP (Model Context Protocol) server with npx were giving me cryptic error messages whenever I tried to restart Claude: Error: spawn ENOENT Investigation My first step was to check the Claude logs at ~/Library/Logs/Claude/mcp*.log using tail. I also used the MCP inspector tool (so snazzy) to verify that my API keys and tools were configured correctly. Running the tools manually with npx in my terminal worked fine, so what was going on? ...

Feb 17, 2025 · Christopher Boette