Open
Description
Describe the bug
Can't use URLs that don't end in /mcp
or /sse
To Reproduce
Steps to reproduce the behavior:
- Run a local MCP server using remote transport on a root level, e.g.
http://localhost:37242
- Try to connect using the CLI:
npx -y @modelcontextprotocol/inspector --cli --transport http http://localhost:37242 --method tools/list
- See it fail with:
Failed to connect to MCP server: Error POSTing to endpoint (HTTP 404): <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /</pre>
</body>
</html>
Failed with exit code: 1
Expected behavior
It should be able to connect instead, and spit out a valid JSON.