modelcontextprotocol / inspector

Visual testing tool for MCP servers
https://modelcontextprotocol.io
MIT License
35 stars 6 forks source link

Inspector not loading local variables #83

Open tech4life87 opened 12 hours ago

tech4life87 commented 12 hours ago

I been using inspector since yesterday with no issue. Had an update and now getting this error while not loading variables @modelcontextprotocol/inspector@0.2.3 node version: 20.12.1

index-k3fLs7fd.js:185 
GET http://localhost:3000/config net::ERR_CONNECTION_REFUSED
(anonymous) @ index-k3fLs7fd.js:185
Ra @ index-k3fLs7fd.js:40
no @ index-k3fLs7fd.js:40
zf @ index-k3fLs7fd.js:40
tr @ index-k3fLs7fd.js:38
Dx @ index-k3fLs7fd.js:40
cr @ index-k3fLs7fd.js:40
_h @ index-k3fLs7fd.js:40
k @ index-k3fLs7fd.js:25
M @ index-k3fLs7fd.js:25
index-k3fLs7fd.js:185 Error fetching default environment: TypeError: Failed to fetch
    at index-k3fLs7fd.js:185:32453
    at Ra (index-k3fLs7fd.js:40:24263)
    at no (index-k3fLs7fd.js:40:42318)
    at zf (index-k3fLs7fd.js:40:36565)
    at tr (index-k3fLs7fd.js:38:3274)
    at Dx (index-k3fLs7fd.js:40:41221)
    at cr (index-k3fLs7fd.js:40:40215)
    at _h (index-k3fLs7fd.js:40:35675)
    at k (index-k3fLs7fd.js:25:1554)
    at MessagePort.M (index-k3fLs7fd.js:25:1919)
ashwin-ant commented 12 hours ago

Can you share the command that you're using to start the inspector?

tech4life87 commented 11 hours ago

Can you share the command that you're using to start the inspector? The default command generated from create-mcp-server command. npx @modelcontextprotocol/inspector uv --directory /Users/user/s3-mcp-server run s3-mcp-server as a workaround I am just reverting to previous version with npx @modelcontextprotocol/inspector@0.2.2 uv --directory /Users/user/s3-mcp-server run s3-mcp-server

ashwin-ant commented 10 hours ago

Are you able to run any of the example servers? Launching with this command works fine for me, for example:

npx @modelcontextprotocol/inspector uvx mcp-server-git
jacksteamdev commented 7 hours ago

@ashwin-ant I'm experiencing this issue in some contexts. It depends on where and how I run the command. Unfortunately, I haven't been able to create a minimal reproduction.

The app created by npx @modelcontextprotocol/create-server works out of the box, but the inspector has quit working for a local project I've been working on.

In this screenshot, the inspector is trying to fetch from localhost:3000, but lsof -i :3000 shows no process is running on port 3000:

image