inspector icon indicating copy to clipboard operation
inspector copied to clipboard

Error output from MCP server Processing request of type ListToolsRequest

Open dgzxx-2000 opened this issue 8 months ago • 5 comments

dgzxx-2000 avatar Apr 10 '25 12:04 dgzxx-2000

Image

Click List Tools to display Error output from MCP server Processing request of type ListToolsRequest

dgzxx-2000 avatar Apr 10 '25 12:04 dgzxx-2000

@dgzxx-2000 can please you provide the exact replication steps and the server code you've been using ?

kavinkumar807 avatar Apr 10 '25 16:04 kavinkumar807

@dgzxx-2000您能否提供确切的复制步骤和您一直在使用的服务器代码?

npx -y @modelcontextprotocol/inspector uv run serve.py

Image

dgzxx-2000 avatar Apr 11 '25 07:04 dgzxx-2000

@dgzxx-2000 able to replicate this when I run the above command, but when I run main branch and 0.8.2 tag branch in local the issue does not appear

@pulkitsharma07 @cliffhall Am I missing something here?

kavinkumar807 avatar Apr 12 '25 12:04 kavinkumar807

This message is not being generated by the Inspector itself.

Searching the Inspector project for the words "Processing request"

Image

Serendipitously, I just merged a PR that adds a clear button for those stderr messages shown in the sidebar.

In order to test it, I had to add this PR for periodic notifications/stderr message being sent from the everything server to the client, in order to test that feature.

How the server sends such a message

Image

My conclusion is that this message is coming from your server. Where is the source for your server.py?

cliffhall avatar Apr 14 '25 21:04 cliffhall

Hi @dgzxx-2000 checking to see if we're good to close this, or if not could you provide the source code for your server.py as Cliff suggested? Thanks!

olaservo avatar May 11 '25 13:05 olaservo

Closing but feel free to re-open if needed.

olaservo avatar May 30 '25 11:05 olaservo

I'm having a similar problem but with langgraph, at the moment I want to list available tools, the process never ends and it cannot go to the other nodes.

ChellShort avatar Jun 04 '25 16:06 ChellShort

I'm having a similar problem but with langgraph, at the moment I want to list available tools, the process never ends and it cannot go to the other nodes.

Hi @ChellShort! This issue was opened against the Inspector. Sounds like you're having a problem with langgraph talking to a particular server. The problem could be with the server itself, or (less likely) with the SDK the server is built upon.

As next steps, I would suggest

  • Testing the given server with the latest version of the Inspector, which has no problem fetching and processing the tool list from properly configured servers.
  • If the Inspector AND langgraph are both having issues with this server's tool list, open an issue in the repo of the server you are attempting to get the tool list from (if one doesn't already exist).

cliffhall avatar Jun 04 '25 16:06 cliffhall

Thanks for the quick response! I figured out that I was trying to pass the MCP client object through the config to the graph, but what I needed was to use the MCP adapters of langgraph.

Image

Sorry for the mistake

ChellShort avatar Jun 04 '25 17:06 ChellShort

Thanks for the quick response! I figured out that I was trying to pass the MCP client object through the config to the graph, but what I needed was to use the MCP adapters of langgraph.

Image

Sorry for the mistake

No worries, @ChellShort. Glad you got it sorted!

cliffhall avatar Jun 04 '25 19:06 cliffhall