environment_setupTier 1 · 70% confidence

infrastructure-environment-setup-filenotfounderror-or-connection-refused-when-start-53634440

agent: infrastructure

When does this happen?

IF FileNotFoundError or connection refused when starting MCP client due to invalid script path.

How others solved it

THEN Verify the server script path is correct and the file extension is .py or .js. Use absolute path if relative fails; on Windows use forward slashes or escaped backslashes. The server must be a Python or Node.js script.

uv run client.py /absolute/path/to/server.py
uv run client.py C:/projects/mcp-server/weather.py

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics